Subscriptions
Get subscriptions
Retrieves all subscriptions for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
customerCustomerDtoRequiredRepresents a customer in the PayNow system with their associated profiles and metadata.
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
invaliddayweekmonthyear
linesSubscriptionLineDto[]RequiredLine items associated with this subscription.
next_billing_amountSubscriptionBillingAmountDtoRequiredRepresents a billing amount breakdown for a subscription.
next_billing_presentment_amountSubscriptionBillingAmountDtoRequiredRepresents a billing amount breakdown for a subscription.
invalidcreatedThe subscription has been created but is not yet active.
activeThe subscription is currently active and will renew.
canceledThe subscription has been canceled and will no longer renew.
tax_jurisdictionsSalesTaxJurisdictionDto[]RequiredList of tax jurisdictions applicable to this subscription.
taxesSalesTaxJurisdictionTaxDto[]RequiredList of taxes applied within this jurisdiction.
gift_to_customerCustomerDtoOptionalRepresents a customer in the PayNow system with their associated profiles and metadata.
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
payment_methodPaymentMethodDtoOptionalRepresents a stored payment method
method_detailsPaymentMethodDetailsDtoRequiredContains detailed information about a payment method.
DISCLAIMER: These fields are not guaranteed to be backwards compatible and may change or be removed without notice.
pending_changeSubscriptionChangeDtoOptionalA pending or applied change to a subscription.
linesSubscriptionChangeLineDto[]RequiredA single line item within a subscription change.
next_billing_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
next_billing_presentment_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
prorated_amountSubscriptionChangeProratedAmountDtoRequiredThe total prorated charge for a subscription change, expressed in both settlement and presentment currencies.
invalidimmediateSubscription will be updated instantly, and a proration charge will be applied.
next_billing_periodSubscription will be updated at the end of the billing period, no proration will be applied.
noneNo proration is applied, subscription is updated instantly.
invalidpending_paymentThe change is pending payment before it can be applied.
pending_renewalThe change will be applied at the next renewal.
appliedThe change has been applied to the subscription.
canceledThe change was canceled and will not be applied.
pending_verificationThe change requires a verification code sent to the customer's e-mail.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/subscriptions" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.subscriptions.getSubscriptions();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/subscriptions", headers=headers)[
{
"cancel_at_period_end": true,
"coupon_ids": [
"411486491630370816"
],
"created_at": "2024-01-01T00:00:00Z",
"currency": "string",
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"discount_amount": 0,
"discount_amount_str": "string",
"gift": true,
"id": "411486491630370816",
"initial_discount_amount": 0,
"initial_discount_amount_str": "string",
"initial_giftcard_usage_amount": 0,
"initial_giftcard_usage_amount_str": "string",
"initial_subtotal_amount": 0,
"initial_subtotal_amount_str": "string",
"initial_tax_amount": 0,
"initial_tax_amount_str": "string",
"initial_total_amount": 0,
"initial_total_amount_str": "string",
"interval_scale": "invalid",
"interval_value": 0,
"lines": [
{
"currency": "string",
"discount_amount": 0,
"discount_amount_str": "string",
"id": "411486491630370816",
"initial_discount_amount": 0,
"initial_discount_amount_str": "string",
"initial_giftcard_usage_amount": 0,
"initial_giftcard_usage_amount_str": "string",
"initial_subtotal_amount": 0,
"initial_subtotal_amount_str": "string",
"initial_tax_amount": 0,
"initial_tax_amount_str": "string",
"initial_total_amount": 0,
"initial_total_amount_str": "string",
"price": 0,
"product_id": "411486491630370816",
"product_name": "string",
"product_version_id": "411486491630370816",
"store_id": "411486491630370816",
"subscription_id": "411486491630370816",
"subtotal_amount": 0,
"subtotal_amount_str": "string",
"tax_amount": 0,
"tax_amount_str": "string",
"tax_inclusive": true,
"total_amount": 0,
"total_amount_str": "string",
"checkout_line_id": "411486491630370816",
"initial_order_line_id": "411486491630370816",
"pricing_region_id": "string",
"gift_to_customer_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816",
"sale_id": "411486491630370816",
"sale_version_id": "411486491630370816",
"trial_id": "411486491630370816",
"product_image_url": "string",
"presentment_currency": "string",
"presentment_subtotal_amount": 0,
"presentment_subtotal_amount_str": "string",
"presentment_discount_amount": 0,
"presentment_discount_amount_str": "string",
"presentment_tax_amount": 0,
"presentment_tax_amount_str": "string",
"presentment_total_amount": 0,
"presentment_total_amount_str": "string",
"initial_presentment_discount_amount": 0,
"initial_presentment_discount_amount_str": "string",
"initial_presentment_subtotal_amount": 0,
"initial_presentment_subtotal_amount_str": "string",
"initial_presentment_giftcard_usage_amount": 0,
"initial_presentment_giftcard_usage_amount_str": "string",
"initial_presentment_tax_amount": 0,
"initial_presentment_tax_amount_str": "string",
"initial_presentment_total_amount": 0,
"initial_presentment_total_amount_str": "string"
}
],
"next_billing_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"next_billing_presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"past_due": true,
"pretty_id": "string",
"price": 0,
"status": "invalid",
"store_id": "411486491630370816",
"subtotal_amount": 0,
"subtotal_amount_str": "string",
"tax_amount": 0,
"tax_amount_str": "string",
"tax_inclusive": true,
"tax_jurisdictions": [
{
"name": "EU OSS",
"taxes": [
{
"tax_amount": "string",
"tax_name": "string",
"tax_rate": "string",
"taxable_amount": "string"
}
],
"not_taxed_reason": "string"
}
],
"total_amount": 0,
"total_amount_str": "string",
"payment_method_id": "411486491630370816",
"payment_method": {
"created_at": "2025-03-15T10:20:30Z",
"customer_id": "411486491630370816",
"gateway": "string",
"gateway_customer_id": "string",
"gateway_entity_identifier": "string",
"gateway_id": "string",
"gateway_type": "card",
"id": "411486491630370816",
"method_details": {
"card": {
"brand": "visa",
"country": "US",
"exp_month": 12,
"exp_year": 2028,
"fingerprint": "abc123def456",
"funding": "credit",
"last4": "4242",
"bin": 424242,
"issuer": "Chase Bank",
"description": "Visa Signature",
"brand_product": "F",
"wallet": {
"type": "apple_pay"
}
},
"cashapp": {
"buyer_id": "buyer_abc123",
"cashtag": "$johndoe"
},
"paypal": {
"country": "US",
"payer_email": "john.doe@example.com",
"payer_id": "PAYERID123",
"payer_name": "John Doe",
"vault": true,
"pending_vault_approval": false,
"standalone_setup": false
},
"link": {
"email": "john.doe@example.com"
},
"crypto": {
"confirmations": 6,
"crypto_amount": "0.00150000",
"crypto_currency": "BTC",
"total_paid": "0.00150000",
"transaction_hashes": [
"string"
]
},
"steamskins": {
"items": [
{
"app_id": 730,
"id": "string",
"name": "AK-47 | Redline",
"price": 2500
}
]
},
"ideal": {
"bank": "abn_amro",
"bic": "ABNANL2A",
"iban_last4": 1234,
"payer_name": "John Doe"
},
"p24": {
"bank": "ing",
"payer_name": "Jan Kowalski"
},
"bancontact": {
"bank": "bnp_paribas",
"bank_name": "BNP Paribas",
"bic": "GEBABEBB",
"iban_last4": 3456,
"payer_name": "Jean Dupont"
},
"klarna": {
"country": "SE",
"method_category": "pay_later"
},
"alipay": {
"buyer_id": "buyer_abc123",
"fingerprint": "fingerprint_xyz789"
},
"pay_by_bank": {
"bank_name": "Chase Bank",
"bic": "CHASUS33",
"country": "US",
"payer_name": "John Smith"
},
"pix": {
"bank_name": "Banco do Brasil",
"bank_account_number": "12345-6",
"payer_name": "João Silva"
},
"paysafecard": {
"first_name": "string",
"last_name": "string",
"psc_id": "string",
"association_id": "string"
}
},
"method_type": "card",
"updated_at": "2025-03-20T14:30:00Z"
},
"pending_change": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"lines": [
{
"amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"id": "411486491630370816",
"is_deleted": true,
"presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"price": 0,
"product": {
"custom_variables": {},
"id": "411486491630370816",
"name": "string",
"version_id": "411486491630370816",
"image_url": "string",
"selected_gameserver_id": "411486491630370816",
"pricing_region_id": "string"
},
"prorated_amount": 0,
"prorated_presentment_amount": 0,
"remaining_minutes": 0,
"tax_inclusive": true,
"total_minutes": 0,
"subscription_line_id": "411486491630370816"
}
],
"next_billing_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"next_billing_presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"off_session": true,
"prorated_amount": {
"currency": "string",
"presentment_currency": "string",
"presentment_prorated_amount": 0,
"prorated_amount": 0
},
"proration_behavior": "invalid",
"status": "invalid",
"subscription_id": "411486491630370816",
"prorated_order_id": "411486491630370816",
"applied_at": "2024-01-01T00:00:00Z"
},
"coupon_id": "411486491630370816",
"coupon_repeating_ends_at": "2024-01-01T00:00:00Z",
"affiliate_id": "411486491630370816",
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"billing_name": "string",
"billing_email": "string",
"billing_country": "string",
"billing_tax_id": "string",
"customer_ip": "string",
"gift_to_customer_id": "411486491630370816",
"gift_to_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"product_name": "string",
"product_image_url": "string",
"price_str": "string",
"presentment_currency": "string",
"presentment_subtotal_amount": 0,
"presentment_subtotal_amount_str": "string",
"presentment_discount_amount": 0,
"presentment_discount_amount_str": "string",
"presentment_tax_amount": 0,
"presentment_tax_amount_str": "string",
"presentment_total_amount": 0,
"presentment_total_amount_str": "string",
"initial_presentment_discount_amount": 0,
"initial_presentment_discount_amount_str": "string",
"initial_presentment_subtotal_amount": 0,
"initial_presentment_subtotal_amount_str": "string",
"initial_presentment_giftcard_usage_amount": 0,
"initial_presentment_giftcard_usage_amount_str": "string",
"initial_presentment_tax_amount": 0,
"initial_presentment_tax_amount_str": "string",
"initial_presentment_total_amount": 0,
"initial_presentment_total_amount_str": "string",
"fx_rate": "string",
"pricing_region_id": "string",
"current_period_start": "2024-01-01T00:00:00Z",
"current_period_end": "2024-01-01T00:00:00Z",
"billing_cycle_sequence": 0,
"next_attempt_at": "2024-01-01T00:00:00Z",
"attempt_count": 0,
"updated_at": "2024-01-01T00:00:00Z",
"active_at": "2024-01-01T00:00:00Z",
"canceled_at": "2024-01-01T00:00:00Z",
"cancel_reason": "string",
"cancellation_requested_at": "2024-01-01T00:00:00Z"
}
]Get subscription by ID
Retrieves a subscription for the specified store by the supplied ID.
Authorization: APIKey TOKEN.Show fieldsHide fields
customerCustomerDtoRequiredRepresents a customer in the PayNow system with their associated profiles and metadata.
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
invaliddayweekmonthyear
linesSubscriptionLineDto[]RequiredLine items associated with this subscription.
next_billing_amountSubscriptionBillingAmountDtoRequiredRepresents a billing amount breakdown for a subscription.
next_billing_presentment_amountSubscriptionBillingAmountDtoRequiredRepresents a billing amount breakdown for a subscription.
invalidcreatedThe subscription has been created but is not yet active.
activeThe subscription is currently active and will renew.
canceledThe subscription has been canceled and will no longer renew.
tax_jurisdictionsSalesTaxJurisdictionDto[]RequiredList of tax jurisdictions applicable to this subscription.
taxesSalesTaxJurisdictionTaxDto[]RequiredList of taxes applied within this jurisdiction.
gift_to_customerCustomerDtoOptionalRepresents a customer in the PayNow system with their associated profiles and metadata.
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
payment_methodPaymentMethodDtoOptionalRepresents a stored payment method
method_detailsPaymentMethodDetailsDtoRequiredContains detailed information about a payment method.
DISCLAIMER: These fields are not guaranteed to be backwards compatible and may change or be removed without notice.
pending_changeSubscriptionChangeDtoOptionalA pending or applied change to a subscription.
linesSubscriptionChangeLineDto[]RequiredA single line item within a subscription change.
next_billing_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
next_billing_presentment_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
prorated_amountSubscriptionChangeProratedAmountDtoRequiredThe total prorated charge for a subscription change, expressed in both settlement and presentment currencies.
invalidimmediateSubscription will be updated instantly, and a proration charge will be applied.
next_billing_periodSubscription will be updated at the end of the billing period, no proration will be applied.
noneNo proration is applied, subscription is updated instantly.
invalidpending_paymentThe change is pending payment before it can be applied.
pending_renewalThe change will be applied at the next renewal.
appliedThe change has been applied to the subscription.
canceledThe change was canceled and will not be applied.
pending_verificationThe change requires a verification code sent to the customer's e-mail.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.subscriptions.getSubscriptionById("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}", headers=headers){
"cancel_at_period_end": true,
"coupon_ids": [
"411486491630370816"
],
"created_at": "2024-01-01T00:00:00Z",
"currency": "string",
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"discount_amount": 0,
"discount_amount_str": "string",
"gift": true,
"id": "411486491630370816",
"initial_discount_amount": 0,
"initial_discount_amount_str": "string",
"initial_giftcard_usage_amount": 0,
"initial_giftcard_usage_amount_str": "string",
"initial_subtotal_amount": 0,
"initial_subtotal_amount_str": "string",
"initial_tax_amount": 0,
"initial_tax_amount_str": "string",
"initial_total_amount": 0,
"initial_total_amount_str": "string",
"interval_scale": "invalid",
"interval_value": 0,
"lines": [
{
"currency": "string",
"discount_amount": 0,
"discount_amount_str": "string",
"id": "411486491630370816",
"initial_discount_amount": 0,
"initial_discount_amount_str": "string",
"initial_giftcard_usage_amount": 0,
"initial_giftcard_usage_amount_str": "string",
"initial_subtotal_amount": 0,
"initial_subtotal_amount_str": "string",
"initial_tax_amount": 0,
"initial_tax_amount_str": "string",
"initial_total_amount": 0,
"initial_total_amount_str": "string",
"price": 0,
"product_id": "411486491630370816",
"product_name": "string",
"product_version_id": "411486491630370816",
"store_id": "411486491630370816",
"subscription_id": "411486491630370816",
"subtotal_amount": 0,
"subtotal_amount_str": "string",
"tax_amount": 0,
"tax_amount_str": "string",
"tax_inclusive": true,
"total_amount": 0,
"total_amount_str": "string",
"checkout_line_id": "411486491630370816",
"initial_order_line_id": "411486491630370816",
"pricing_region_id": "string",
"gift_to_customer_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816",
"sale_id": "411486491630370816",
"sale_version_id": "411486491630370816",
"trial_id": "411486491630370816",
"product_image_url": "string",
"presentment_currency": "string",
"presentment_subtotal_amount": 0,
"presentment_subtotal_amount_str": "string",
"presentment_discount_amount": 0,
"presentment_discount_amount_str": "string",
"presentment_tax_amount": 0,
"presentment_tax_amount_str": "string",
"presentment_total_amount": 0,
"presentment_total_amount_str": "string",
"initial_presentment_discount_amount": 0,
"initial_presentment_discount_amount_str": "string",
"initial_presentment_subtotal_amount": 0,
"initial_presentment_subtotal_amount_str": "string",
"initial_presentment_giftcard_usage_amount": 0,
"initial_presentment_giftcard_usage_amount_str": "string",
"initial_presentment_tax_amount": 0,
"initial_presentment_tax_amount_str": "string",
"initial_presentment_total_amount": 0,
"initial_presentment_total_amount_str": "string"
}
],
"next_billing_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"next_billing_presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"past_due": true,
"pretty_id": "string",
"price": 0,
"status": "invalid",
"store_id": "411486491630370816",
"subtotal_amount": 0,
"subtotal_amount_str": "string",
"tax_amount": 0,
"tax_amount_str": "string",
"tax_inclusive": true,
"tax_jurisdictions": [
{
"name": "EU OSS",
"taxes": [
{
"tax_amount": "string",
"tax_name": "string",
"tax_rate": "string",
"taxable_amount": "string"
}
],
"not_taxed_reason": "string"
}
],
"total_amount": 0,
"total_amount_str": "string",
"payment_method_id": "411486491630370816",
"payment_method": {
"created_at": "2025-03-15T10:20:30Z",
"customer_id": "411486491630370816",
"gateway": "string",
"gateway_customer_id": "string",
"gateway_entity_identifier": "string",
"gateway_id": "string",
"gateway_type": "card",
"id": "411486491630370816",
"method_details": {
"card": {
"brand": "visa",
"country": "US",
"exp_month": 12,
"exp_year": 2028,
"fingerprint": "abc123def456",
"funding": "credit",
"last4": "4242",
"bin": 424242,
"issuer": "Chase Bank",
"description": "Visa Signature",
"brand_product": "F",
"wallet": {
"type": "apple_pay"
}
},
"cashapp": {
"buyer_id": "buyer_abc123",
"cashtag": "$johndoe"
},
"paypal": {
"country": "US",
"payer_email": "john.doe@example.com",
"payer_id": "PAYERID123",
"payer_name": "John Doe",
"vault": true,
"pending_vault_approval": false,
"standalone_setup": false
},
"link": {
"email": "john.doe@example.com"
},
"crypto": {
"confirmations": 6,
"crypto_amount": "0.00150000",
"crypto_currency": "BTC",
"total_paid": "0.00150000",
"transaction_hashes": [
"string"
]
},
"steamskins": {
"items": [
{
"app_id": 730,
"id": "string",
"name": "AK-47 | Redline",
"price": 2500
}
]
},
"ideal": {
"bank": "abn_amro",
"bic": "ABNANL2A",
"iban_last4": 1234,
"payer_name": "John Doe"
},
"p24": {
"bank": "ing",
"payer_name": "Jan Kowalski"
},
"bancontact": {
"bank": "bnp_paribas",
"bank_name": "BNP Paribas",
"bic": "GEBABEBB",
"iban_last4": 3456,
"payer_name": "Jean Dupont"
},
"klarna": {
"country": "SE",
"method_category": "pay_later"
},
"alipay": {
"buyer_id": "buyer_abc123",
"fingerprint": "fingerprint_xyz789"
},
"pay_by_bank": {
"bank_name": "Chase Bank",
"bic": "CHASUS33",
"country": "US",
"payer_name": "John Smith"
},
"pix": {
"bank_name": "Banco do Brasil",
"bank_account_number": "12345-6",
"payer_name": "João Silva"
},
"paysafecard": {
"first_name": "string",
"last_name": "string",
"psc_id": "string",
"association_id": "string"
}
},
"method_type": "card",
"updated_at": "2025-03-20T14:30:00Z"
},
"pending_change": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"lines": [
{
"amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"id": "411486491630370816",
"is_deleted": true,
"presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"price": 0,
"product": {
"custom_variables": {},
"id": "411486491630370816",
"name": "string",
"version_id": "411486491630370816",
"image_url": "string",
"selected_gameserver_id": "411486491630370816",
"pricing_region_id": "string"
},
"prorated_amount": 0,
"prorated_presentment_amount": 0,
"remaining_minutes": 0,
"tax_inclusive": true,
"total_minutes": 0,
"subscription_line_id": "411486491630370816"
}
],
"next_billing_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"next_billing_presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"off_session": true,
"prorated_amount": {
"currency": "string",
"presentment_currency": "string",
"presentment_prorated_amount": 0,
"prorated_amount": 0
},
"proration_behavior": "invalid",
"status": "invalid",
"subscription_id": "411486491630370816",
"prorated_order_id": "411486491630370816",
"applied_at": "2024-01-01T00:00:00Z"
},
"coupon_id": "411486491630370816",
"coupon_repeating_ends_at": "2024-01-01T00:00:00Z",
"affiliate_id": "411486491630370816",
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"billing_name": "string",
"billing_email": "string",
"billing_country": "string",
"billing_tax_id": "string",
"customer_ip": "string",
"gift_to_customer_id": "411486491630370816",
"gift_to_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"product_name": "string",
"product_image_url": "string",
"price_str": "string",
"presentment_currency": "string",
"presentment_subtotal_amount": 0,
"presentment_subtotal_amount_str": "string",
"presentment_discount_amount": 0,
"presentment_discount_amount_str": "string",
"presentment_tax_amount": 0,
"presentment_tax_amount_str": "string",
"presentment_total_amount": 0,
"presentment_total_amount_str": "string",
"initial_presentment_discount_amount": 0,
"initial_presentment_discount_amount_str": "string",
"initial_presentment_subtotal_amount": 0,
"initial_presentment_subtotal_amount_str": "string",
"initial_presentment_giftcard_usage_amount": 0,
"initial_presentment_giftcard_usage_amount_str": "string",
"initial_presentment_tax_amount": 0,
"initial_presentment_tax_amount_str": "string",
"initial_presentment_total_amount": 0,
"initial_presentment_total_amount_str": "string",
"fx_rate": "string",
"pricing_region_id": "string",
"current_period_start": "2024-01-01T00:00:00Z",
"current_period_end": "2024-01-01T00:00:00Z",
"billing_cycle_sequence": 0,
"next_attempt_at": "2024-01-01T00:00:00Z",
"attempt_count": 0,
"updated_at": "2024-01-01T00:00:00Z",
"active_at": "2024-01-01T00:00:00Z",
"canceled_at": "2024-01-01T00:00:00Z",
"cancel_reason": "string",
"cancellation_requested_at": "2024-01-01T00:00:00Z"
}Cancel subscription by ID
Cancels a subscription for the specified store by the supplied ID.
Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/cancel" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"cancel_at_period_end": true
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.subscriptions.cancelSubscription("411486491630370816", {
cancel_at_period_end: true,
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"cancel_at_period_end": True,
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/cancel", headers=headers, json=payload)Stop pending subscription cancellation
Stops a pending subscription cancellation for the specified store by the supplied ID.
Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/stop-pending-cancellation" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.subscriptions.stopPendingSubscriptionCancellation("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/stop-pending-cancellation", headers=headers)Update items on a subscription
Updates the subscription lines, including the pricing, on an active subscription. The subscription must not be within 1 hour of its next renewal, and only one change can be pending at a time. **Access** This endpoint requires the Subscription Updates API feature flag to be enabled on your store. Contact PayNow to request access. **Proration behavior** Controlled by the `proration_behavior` field on the request: - `immediate` - the change is applied as soon as possible. Proration is calculated for the remaining period. If the prorated amount is ≥ $0.50 (or equivalent in other currencies), an order is initiated against the subscription's payment method; the change is applied once the payment succeeds. If the prorated amount is below $0.50, no order is created and the change is applied instantly. Only one proration order is allowed per billing cycle - a second immediate change in the same period will be rejected if a proration was already charged. When a payment is triggered, the response will include a `pending_payment` object. The payment result is synchronous - check `pending_payment.declined` to determine whether the charge succeeded. If declined, `pending_payment.decline_code` contains the reason. - `next_billing_period` - no payment is created. The change is queued and will be applied automatically at the start of the next renewal cycle. Ideal for downgrades. - `none` - the change is applied instantly with no proration calculated or charged. **Reverting a pending change** If a `next_billing_period` change is pending and the new request specifies the same product versions that are already on the subscription (i.e. reverting back to the current state), the pending change is canceled rather than rejected. The canceled change record is returned in the response.
Authorization: APIKey TOKEN.linesUpdateSubscriptionLineRequestDto[]RequiredThe line items describing the desired state of the subscription after the change.
invalidimmediateSubscription will be updated instantly, and a proration charge will be applied.
next_billing_periodSubscription will be updated at the end of the billing period, no proration will be applied.
noneNo proration is applied, subscription is updated instantly.
Show fieldsHide fields
subscription_changeSubscriptionChangeDtoRequiredA pending or applied change to a subscription.
linesSubscriptionChangeLineDto[]RequiredA single line item within a subscription change.
next_billing_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
next_billing_presentment_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
prorated_amountSubscriptionChangeProratedAmountDtoRequiredThe total prorated charge for a subscription change, expressed in both settlement and presentment currencies.
invalidimmediateSubscription will be updated instantly, and a proration charge will be applied.
next_billing_periodSubscription will be updated at the end of the billing period, no proration will be applied.
noneNo proration is applied, subscription is updated instantly.
invalidpending_paymentThe change is pending payment before it can be applied.
pending_renewalThe change will be applied at the next renewal.
appliedThe change has been applied to the subscription.
canceledThe change was canceled and will not be applied.
pending_verificationThe change requires a verification code sent to the customer's e-mail.
pending_paymentCheckoutPaymentInfoDtoOptionalPayment outcome information returned after a subscription change triggers an immediate charge.
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/change" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"lines": [
{
"custom_variables": {},
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816"
}
],
"proration_behavior": "invalid"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.subscriptions.updateSubscription("411486491630370816", {
lines: [
{
custom_variables: {},
product_id: "411486491630370816",
product_version_id: "411486491630370816",
selected_gameserver_id: "411486491630370816",
},
],
proration_behavior: "invalid",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"lines": [
{
"custom_variables": {},
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816",
},
],
"proration_behavior": "invalid",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/change", headers=headers, json=payload){
"subscription_change": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"lines": [
{
"amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"id": "411486491630370816",
"is_deleted": true,
"presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"price": 0,
"product": {
"custom_variables": {},
"id": "411486491630370816",
"name": "string",
"version_id": "411486491630370816",
"image_url": "string",
"selected_gameserver_id": "411486491630370816",
"pricing_region_id": "string"
},
"prorated_amount": 0,
"prorated_presentment_amount": 0,
"remaining_minutes": 0,
"tax_inclusive": true,
"total_minutes": 0,
"subscription_line_id": "411486491630370816"
}
],
"next_billing_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"next_billing_presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"off_session": true,
"prorated_amount": {
"currency": "string",
"presentment_currency": "string",
"presentment_prorated_amount": 0,
"prorated_amount": 0
},
"proration_behavior": "invalid",
"status": "invalid",
"subscription_id": "411486491630370816",
"prorated_order_id": "411486491630370816",
"applied_at": "2024-01-01T00:00:00Z"
},
"pending_payment": {
"declined": true,
"status": "string",
"decline_message": "string",
"checkout_url": "string"
}
}Preview a subscription change
Simulates a subscription change and returns the pricing breakdown without creating any records or initiating a payment. Accepts the same request body as `POST change` — see that endpoint for full parameter documentation. Does not return the `pending_payment` field.
Authorization: APIKey TOKEN.linesUpdateSubscriptionLineRequestDto[]RequiredThe line items describing the desired state of the subscription after the change.
invalidimmediateSubscription will be updated instantly, and a proration charge will be applied.
next_billing_periodSubscription will be updated at the end of the billing period, no proration will be applied.
noneNo proration is applied, subscription is updated instantly.
Show fieldsHide fields
subscription_changeSubscriptionChangeDtoRequiredA pending or applied change to a subscription.
linesSubscriptionChangeLineDto[]RequiredA single line item within a subscription change.
next_billing_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
next_billing_presentment_amountSubscriptionChangeAmountDtoRequiredPricing breakdown for a subscription change, in the smallest units of the given currency (e.g. cents).
prorated_amountSubscriptionChangeProratedAmountDtoRequiredThe total prorated charge for a subscription change, expressed in both settlement and presentment currencies.
invalidimmediateSubscription will be updated instantly, and a proration charge will be applied.
next_billing_periodSubscription will be updated at the end of the billing period, no proration will be applied.
noneNo proration is applied, subscription is updated instantly.
invalidpending_paymentThe change is pending payment before it can be applied.
pending_renewalThe change will be applied at the next renewal.
appliedThe change has been applied to the subscription.
canceledThe change was canceled and will not be applied.
pending_verificationThe change requires a verification code sent to the customer's e-mail.
pending_paymentCheckoutPaymentInfoDtoOptionalPayment outcome information returned after a subscription change triggers an immediate charge.
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/change/preview" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"lines": [
{
"custom_variables": {},
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816"
}
],
"proration_behavior": "invalid"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.subscriptions.previewSubscriptionChange("411486491630370816", {
lines: [
{
custom_variables: {},
product_id: "411486491630370816",
product_version_id: "411486491630370816",
selected_gameserver_id: "411486491630370816",
},
],
proration_behavior: "invalid",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"lines": [
{
"custom_variables": {},
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816",
},
],
"proration_behavior": "invalid",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/subscriptions/{subscriptionId}/change/preview", headers=headers, json=payload){
"subscription_change": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"lines": [
{
"amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"id": "411486491630370816",
"is_deleted": true,
"presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"price": 0,
"product": {
"custom_variables": {},
"id": "411486491630370816",
"name": "string",
"version_id": "411486491630370816",
"image_url": "string",
"selected_gameserver_id": "411486491630370816",
"pricing_region_id": "string"
},
"prorated_amount": 0,
"prorated_presentment_amount": 0,
"remaining_minutes": 0,
"tax_inclusive": true,
"total_minutes": 0,
"subscription_line_id": "411486491630370816"
}
],
"next_billing_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"next_billing_presentment_amount": {
"currency": "string",
"discount": 0,
"subtotal": 0,
"tax": 0,
"total": 0
},
"off_session": true,
"prorated_amount": {
"currency": "string",
"presentment_currency": "string",
"presentment_prorated_amount": 0,
"prorated_amount": 0
},
"proration_behavior": "invalid",
"status": "invalid",
"subscription_id": "411486491630370816",
"prorated_order_id": "411486491630370816",
"applied_at": "2024-01-01T00:00:00Z"
},
"pending_payment": {
"declined": true,
"status": "string",
"decline_message": "string",
"checkout_url": "string"
}
}