Orders
Get orders
Retrieves all orders for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
applied_couponsOrderCouponUsageDto[]RequiredApplied coupons to this order
applied_giftcardsOrderGiftCardUsageDto[]RequiredApplied gift cards to this order
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.
linesOrderLineDto[]RequiredThe line items in this order
gift_to_customerCustomerDtoOptionalRepresents a customer in the PayNow system with their associated profiles and metadata.
unknownjavabedrock
payout_splitsOrderLinePayoutSplitDto[]OptionalThe payout splits for this order line
invaliddayweekmonthyear
createdcompletedcanceledrefundedchargeback
tax_jurisdictionsSalesTaxJurisdictionDto[]RequiredA list of all tax jurisdictions that were involved in the taxation of this order.
taxesSalesTaxJurisdictionTaxDto[]RequiredList of taxes applied within this jurisdiction.
one_timeOrder contains only one-time purchase items
subscription_initialOrder is the initial charge for a subscription
subscription_renewalOrder is a recurring renewal charge for a subscription
subscription_prorationOrder is a proration charge for a subscription
mixedOrder contains both one-time purchase and subscription items
last_payment_errorLastPaymentErrorDtoOptionalThe last payment decline object.
unknownAn unknown error occurred during payment processing.
generic_declineThe payment was declined for an unspecified reason.
call_issuerThe payment provider requires the customer to contact them.
authentication_requiredAdditional authentication is needed to complete the transaction.
currency_not_supportedThe chosen currency is not supported by this payment method.
duplicate_transactionAn identical transaction was recently processed.
expired_cardThe payment method has passed its expiration date.
fraudulentThe payment was flagged as potentially fraudulent.
incorrect_numberThe provided payment number is invalid.
incorrect_cvcThe security code for the payment method is incorrect.
incorrect_pinThe entered PIN is not valid.
incorrect_zipThe provided billing postal code is incorrect.
insufficient_fundsThe payment method lacks sufficient funds for the transaction.
invalid_accountThe payment method or associated account is not valid.
invalid_amountThe transaction amount is not allowed or is invalid.
invalid_expiry_monthThe expiration month for the payment method is invalid.
invalid_expiry_yearThe expiration year for the payment method is invalid.
issuer_not_availableThe payment provider's systems are currently unavailable.
lost_cardThe payment method has been reported as lost.
merchant_blacklistThe transaction was blocked by PayNow's security measures.
new_account_information_availableUpdated information is available for the payment method.
no_action_takenThe payment provider took no action on this transaction.
pickup_cardThe payment method has been flagged and cannot be used.
pin_try_exceededToo many incorrect PIN attempts have been made.
restricted_cardThe payment method has restrictions preventing its use.
stolen_cardThe payment method has been reported as stolen.
testmode_declineA test payment method was used in a live environment.
try_again_laterA temporary issue prevented the transaction from completing.
security_violationA security issue occurred during the transaction.
card_velocity_exceededThe payment method has exceeded its usage limits.
do_not_honorThe payment provider has chosen not to process this transaction.
processing_errorAn error occurred while processing the payment.
card_not_supportedThis payment method doesn't support this type of transaction.
transaction_not_allowedThis specific transaction is not permitted for this payment method.
authorization_revokedThe payment authorization has been revoked.
store_blockedThe payment was blocked by one of your store's configured rules.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/orders" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.orders.getOrders();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/orders", headers=headers)[
{
"applied_coupons": [
{
"coupon_id": "411486491630370816",
"coupon_version_id": "411486491630370816",
"usage_amount": 0
}
],
"applied_giftcards": [
{
"giftcard_id": "411486491630370816",
"usage_amount": 0
}
],
"billing_country": "US",
"billing_cycle_sequence": 0,
"billing_email": "john.doe@example.com",
"billing_name": "John Doe",
"currency": "usd",
"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"
},
"customer_id": "411486491630370816",
"customer_ip": "192.168.1.1",
"discount_amount": 500,
"discount_amount_str": "$5.00",
"giftcard_usage_amount": 0,
"giftcard_usage_amount_str": "$0.00",
"id": "411486491630370816",
"is_subscription": true,
"lines": [
{
"discount_amount": 0,
"discount_amount_str": "$0.00",
"gift": false,
"giftcard_usage_amount": 0,
"giftcard_usage_amount_str": "$0.00",
"id": "411486491630370816",
"presentment_discount_amount": 0,
"presentment_discount_amount_str": "€0.00",
"presentment_giftcard_usage_amount": 0,
"presentment_giftcard_usage_amount_str": "€0.00",
"presentment_subtotal_amount": 1999,
"presentment_subtotal_amount_str": "€19.99",
"presentment_tax_amount": 200,
"presentment_tax_amount_str": "€2.00",
"presentment_total_amount": 2199,
"presentment_total_amount_str": "€21.99",
"price": 1999,
"price_str": "$19.99",
"product_id": "411486491630370816",
"product_name": "Premium Game Pass",
"product_version_id": "411486491630370816",
"quantity": 1,
"subtotal_amount": 1999,
"subtotal_amount_str": "$19.99",
"tax_amount": 200,
"tax_amount_str": "$2.00",
"tax_inclusive": false,
"total_amount": 2199,
"total_amount_str": "$21.99",
"checkout_line_id": "411486491630370816",
"product_image_url": "https://cdn.example.com/images/premium-game-pass.jpg",
"description": "string",
"created_giftcard_id": "string",
"subscription_id": "411486491630370816",
"subscription_line_id": "411486491630370816",
"subscription_change_line_id": "411486491630370816",
"trial_id": "411486491630370816",
"subscription_interval_value": 1,
"subscription_interval_scale": "invalid",
"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"
},
"sale_id": "411486491630370816",
"sale_version_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816",
"payout_splits": [
{
"platform_fee": 0,
"user_id": "411486491630370816",
"percentage": 0
}
],
"pricing_region_id": "eu",
"custom_variables": {}
}
],
"presentment_currency": "eur",
"presentment_discount_amount": 500,
"presentment_discount_amount_str": "€5.00",
"presentment_giftcard_usage_amount": 0,
"presentment_giftcard_usage_amount_str": "€0.00",
"presentment_subtotal_amount": 9995,
"presentment_subtotal_amount_str": "€99.95",
"presentment_tax_amount": 999,
"presentment_tax_amount_str": "€9.99",
"presentment_total_amount": 10494,
"presentment_total_amount_str": "€104.94",
"pretty_id": "pn-355eevennsow",
"status": "created",
"store_id": "411486491630370816",
"subtotal_amount": 9995,
"subtotal_amount_str": "$99.95",
"tax_amount": 999,
"tax_amount_str": "$9.99",
"tax_jurisdictions": [
{
"name": "EU OSS",
"taxes": [
{
"tax_amount": "string",
"tax_name": "string",
"tax_rate": "string",
"taxable_amount": "string"
}
],
"not_taxed_reason": "string"
}
],
"total_amount": 10494,
"total_amount_str": "$104.94",
"type": "one_time",
"checkout_id": "411486491630370816",
"checkout_token": "c4qqilpphugeqf2gndnkk5ad8fdq",
"subscription_id": "411486491630370816",
"coupon_id": "411486491630370816",
"giftcard_id": "411486491630370816",
"affiliate_id": "411486491630370816",
"billing_tax_id": "string",
"created_at": "2025-04-01T15:30:45Z",
"completed_at": "2025-04-01T15:35:22Z",
"last_payment_error": {
"decline_code": "unknown",
"message": "string"
}
}
]Get order by ID
Retrieves an order by the ID for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
applied_couponsOrderCouponUsageDto[]RequiredApplied coupons to this order
applied_giftcardsOrderGiftCardUsageDto[]RequiredApplied gift cards to this order
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.
linesOrderLineDto[]RequiredThe line items in this order
gift_to_customerCustomerDtoOptionalRepresents a customer in the PayNow system with their associated profiles and metadata.
unknownjavabedrock
payout_splitsOrderLinePayoutSplitDto[]OptionalThe payout splits for this order line
invaliddayweekmonthyear
createdcompletedcanceledrefundedchargeback
tax_jurisdictionsSalesTaxJurisdictionDto[]RequiredA list of all tax jurisdictions that were involved in the taxation of this order.
taxesSalesTaxJurisdictionTaxDto[]RequiredList of taxes applied within this jurisdiction.
one_timeOrder contains only one-time purchase items
subscription_initialOrder is the initial charge for a subscription
subscription_renewalOrder is a recurring renewal charge for a subscription
subscription_prorationOrder is a proration charge for a subscription
mixedOrder contains both one-time purchase and subscription items
last_payment_errorLastPaymentErrorDtoOptionalThe last payment decline object.
unknownAn unknown error occurred during payment processing.
generic_declineThe payment was declined for an unspecified reason.
call_issuerThe payment provider requires the customer to contact them.
authentication_requiredAdditional authentication is needed to complete the transaction.
currency_not_supportedThe chosen currency is not supported by this payment method.
duplicate_transactionAn identical transaction was recently processed.
expired_cardThe payment method has passed its expiration date.
fraudulentThe payment was flagged as potentially fraudulent.
incorrect_numberThe provided payment number is invalid.
incorrect_cvcThe security code for the payment method is incorrect.
incorrect_pinThe entered PIN is not valid.
incorrect_zipThe provided billing postal code is incorrect.
insufficient_fundsThe payment method lacks sufficient funds for the transaction.
invalid_accountThe payment method or associated account is not valid.
invalid_amountThe transaction amount is not allowed or is invalid.
invalid_expiry_monthThe expiration month for the payment method is invalid.
invalid_expiry_yearThe expiration year for the payment method is invalid.
issuer_not_availableThe payment provider's systems are currently unavailable.
lost_cardThe payment method has been reported as lost.
merchant_blacklistThe transaction was blocked by PayNow's security measures.
new_account_information_availableUpdated information is available for the payment method.
no_action_takenThe payment provider took no action on this transaction.
pickup_cardThe payment method has been flagged and cannot be used.
pin_try_exceededToo many incorrect PIN attempts have been made.
restricted_cardThe payment method has restrictions preventing its use.
stolen_cardThe payment method has been reported as stolen.
testmode_declineA test payment method was used in a live environment.
try_again_laterA temporary issue prevented the transaction from completing.
security_violationA security issue occurred during the transaction.
card_velocity_exceededThe payment method has exceeded its usage limits.
do_not_honorThe payment provider has chosen not to process this transaction.
processing_errorAn error occurred while processing the payment.
card_not_supportedThis payment method doesn't support this type of transaction.
transaction_not_allowedThis specific transaction is not permitted for this payment method.
authorization_revokedThe payment authorization has been revoked.
store_blockedThe payment was blocked by one of your store's configured rules.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/orders/{orderId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.orders.getOrderById("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/orders/{orderId}", headers=headers){
"applied_coupons": [
{
"coupon_id": "411486491630370816",
"coupon_version_id": "411486491630370816",
"usage_amount": 0
}
],
"applied_giftcards": [
{
"giftcard_id": "411486491630370816",
"usage_amount": 0
}
],
"billing_country": "US",
"billing_cycle_sequence": 0,
"billing_email": "john.doe@example.com",
"billing_name": "John Doe",
"currency": "usd",
"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"
},
"customer_id": "411486491630370816",
"customer_ip": "192.168.1.1",
"discount_amount": 500,
"discount_amount_str": "$5.00",
"giftcard_usage_amount": 0,
"giftcard_usage_amount_str": "$0.00",
"id": "411486491630370816",
"is_subscription": true,
"lines": [
{
"discount_amount": 0,
"discount_amount_str": "$0.00",
"gift": false,
"giftcard_usage_amount": 0,
"giftcard_usage_amount_str": "$0.00",
"id": "411486491630370816",
"presentment_discount_amount": 0,
"presentment_discount_amount_str": "€0.00",
"presentment_giftcard_usage_amount": 0,
"presentment_giftcard_usage_amount_str": "€0.00",
"presentment_subtotal_amount": 1999,
"presentment_subtotal_amount_str": "€19.99",
"presentment_tax_amount": 200,
"presentment_tax_amount_str": "€2.00",
"presentment_total_amount": 2199,
"presentment_total_amount_str": "€21.99",
"price": 1999,
"price_str": "$19.99",
"product_id": "411486491630370816",
"product_name": "Premium Game Pass",
"product_version_id": "411486491630370816",
"quantity": 1,
"subtotal_amount": 1999,
"subtotal_amount_str": "$19.99",
"tax_amount": 200,
"tax_amount_str": "$2.00",
"tax_inclusive": false,
"total_amount": 2199,
"total_amount_str": "$21.99",
"checkout_line_id": "411486491630370816",
"product_image_url": "https://cdn.example.com/images/premium-game-pass.jpg",
"description": "string",
"created_giftcard_id": "string",
"subscription_id": "411486491630370816",
"subscription_line_id": "411486491630370816",
"subscription_change_line_id": "411486491630370816",
"trial_id": "411486491630370816",
"subscription_interval_value": 1,
"subscription_interval_scale": "invalid",
"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"
},
"sale_id": "411486491630370816",
"sale_version_id": "411486491630370816",
"selected_gameserver_id": "411486491630370816",
"payout_splits": [
{
"platform_fee": 0,
"user_id": "411486491630370816",
"percentage": 0
}
],
"pricing_region_id": "eu",
"custom_variables": {}
}
],
"presentment_currency": "eur",
"presentment_discount_amount": 500,
"presentment_discount_amount_str": "€5.00",
"presentment_giftcard_usage_amount": 0,
"presentment_giftcard_usage_amount_str": "€0.00",
"presentment_subtotal_amount": 9995,
"presentment_subtotal_amount_str": "€99.95",
"presentment_tax_amount": 999,
"presentment_tax_amount_str": "€9.99",
"presentment_total_amount": 10494,
"presentment_total_amount_str": "€104.94",
"pretty_id": "pn-355eevennsow",
"status": "created",
"store_id": "411486491630370816",
"subtotal_amount": 9995,
"subtotal_amount_str": "$99.95",
"tax_amount": 999,
"tax_amount_str": "$9.99",
"tax_jurisdictions": [
{
"name": "EU OSS",
"taxes": [
{
"tax_amount": "string",
"tax_name": "string",
"tax_rate": "string",
"taxable_amount": "string"
}
],
"not_taxed_reason": "string"
}
],
"total_amount": 10494,
"total_amount_str": "$104.94",
"type": "one_time",
"checkout_id": "411486491630370816",
"checkout_token": "c4qqilpphugeqf2gndnkk5ad8fdq",
"subscription_id": "411486491630370816",
"coupon_id": "411486491630370816",
"giftcard_id": "411486491630370816",
"affiliate_id": "411486491630370816",
"billing_tax_id": "string",
"created_at": "2025-04-01T15:30:45Z",
"completed_at": "2025-04-01T15:35:22Z",
"last_payment_error": {
"decline_code": "unknown",
"message": "string"
}
}Refund order by ID
Creates a refund for an order by the ID for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
createdRefund has been created but not yet processed
approvedRefund has been approved but not yet processed (reserved for customer requested refunds)
processingRefund is currently being processed by the payment system
completedRefund has been successfully completed
canceledRefund has been canceled before completion
failedRefund processing has failed
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/orders/{orderId}/refund" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"order_line_id": "411486491630370816",
"refund_from_connected_user_balance": true
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.orders.refundOrder("411486491630370816", {
order_line_id: "411486491630370816",
refund_from_connected_user_balance: true,
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"order_line_id": "411486491630370816",
"refund_from_connected_user_balance": True,
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/orders/{orderId}/refund", headers=headers, json=payload){
"amount": 0,
"amount_str": "string",
"created_at": "2024-01-01T00:00:00Z",
"currency": "string",
"customer_id": "411486491630370816",
"gateway_fee_amount": 0,
"gateway_fee_amount_str": "string",
"id": "411486491630370816",
"payment_id": "411486491630370816",
"platform_fee_amount": 0,
"platform_fee_amount_str": "string",
"refund_from_connected_user_balance": true,
"status": "created",
"store_id": "411486491630370816",
"store_net_amount": 0,
"store_net_amount_str": "string",
"store_refund_amount": 0,
"store_refund_amount_str": "string",
"tax_amount": 0,
"tax_amount_str": "string",
"order_line_id": "411486491630370816",
"failure_reason": "string",
"presentment_currency": "string",
"presentment_amount": 0,
"fx_rate": "string",
"approved_at": "2024-01-01T00:00:00Z",
"pending_at": "2024-01-01T00:00:00Z",
"completed_at": "2024-01-01T00:00:00Z",
"canceled_at": "2024-01-01T00:00:00Z",
"failed_at": "2024-01-01T00:00:00Z"
}