Drive a SANDBOX invoice into a terminal (or partial) status.
Sandbox only — there is nothing to simulate on a live invoice, whose status
is determined by the chain.
status
enum<string>
required
Status to move the invoice into.
Available options:
success,
partially_paid,
paid_over,
expired,
cancelled,
failed,
refunded
paid_amount
numberstring
Amount paid in the invoice's fiat_currency. Defaults to a sensible value for the chosen status: the full amount for success, half for partially_paid, 125% for paid_over.
Required range: x > 0
send_webhook
boolean
default:true
Whether to deliver the webhook for this transition.
notify_url
string | null
Override the webhook destination for this call only.
Response
OK
ok
boolean
required
result
SimulatedInvoice · object
required
Result of driving a sandbox invoice into a new status.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PawPayments API","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#6366F1"},"logo":{"light":"https://mintcdn.com/pawpaymentsinc/GvUEHrxVBBZGqu1B/logo/light.png?fit=max\u0026auto=format\u0026n=GvUEHrxVBBZGqu1B\u0026q=85\u0026s=e63c9c4d933201f4ef804ee6b424f0df","dark":"https://mintcdn.com/pawpaymentsinc/GvUEHrxVBBZGqu1B/logo/dark.png?fit=max\u0026auto=format\u0026n=GvUEHrxVBBZGqu1B\u0026q=85\u0026s=329208374dd84350bd253aac43332e16","href":"https://pawpayments.com"},"favicon":"https://mintcdn.com/pawpaymentsinc/GvUEHrxVBBZGqu1B/favicon.png?fit=max\u0026auto=format\u0026n=GvUEHrxVBBZGqu1B\u0026q=85\u0026s=f1058fcf9d51a71711e5de8f50095260","navbar":{"links":[{"href":"/plugins/overview","label":"Plugins \u0026 SDKs"},{"href":"https://pawpayments.com","label":"Dashboard"}],"primary":{"type":"button","label":"Get an API key","href":"https://pawpayments.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pawpaymentsinc","hasAudioNarration":false,"actualSubdomain":"pawpaymentsinc","customDomains":["docs.pawpayments.com"],"gitSource":{"type":"github","owner":"pawpayments","repo":"docs","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af4bfb1775e4ad0c10ecd70","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Documentation","count":20},{"language":"default","tag":"API Reference","count":20},{"language":"default","tag":"Plugins \u0026 SDKs","count":8},{"language":"default","tag":"Introduction","count":7},{"language":"default","tag":"Migrate from another provider","count":5},{"language":"default","tag":"Invoices","count":5},{"language":"default","tag":"Payouts","count":4},{"language":"default","tag":"Permanent addresses","count":4},{"language":"default","tag":"Catalog","count":2},{"language":"default","tag":"Merchant","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice","slug":"/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice","pageMetadata":{"title":"Simulate a payment on a sandbox invoice","description":"","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/invoices/{invoice_id}/simulate","href":"/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Simulate a payment on a sandbox invoice","description":"","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/invoices/{invoice_id}/simulate","href":"/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Simulate a payment on a sandbox invoice","operationId":"post__api_v2_invoices_{invoice_id}_simulate","description":"","tags":["Sandbox"],"parameters":["ac0c5391-a173-418e-b423-5d434062aa31"],"responses":{"200":"743d4201-d42a-4a26-876c-211dcfbbd0b5","400":"7ed5d26d-32fc-43a8-9994-9d860976328f","401":"7548d20b-2c2f-470c-9abd-de4e8529c068","404":"e08870c5-6f01-49fc-93f1-8d00bb025155","422":"a3346fd2-758e-4cbd-bf1e-41e851f4edeb"},"requestBody":"53e150dc-fb8f-40b4-97f4-20ace023b853","method":"post","type":"path","servers":["67ba0a1a-6bda-4cd2-867f-8a352a5d97f3"],"security":["7fe6fa50-6efa-4362-986f-7c08b1521f52"],"path":"/api/v2/invoices/{invoice_id}/simulate","baseUrlOptions":["https://api.pawpayments.com"],"title":"Simulate a payment on a sandbox invoice","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ac0c5391-a173-418e-b423-5d434062aa31":{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Unique 24-character hex invoice id.","uniqueKey":"","typeLabel":"string"},"description":"Unique 24-character hex invoice id."}},"requestBody":{"content":{"application/json":{"schema":{"description":"Drive a SANDBOX invoice into a terminal (or partial) status.\n\nSandbox only — there is nothing to simulate on a live invoice, whose status\nis determined by the chain.","properties":{"status":{"description":"Status to move the invoice into.","enum":["success","partially_paid","paid_over","expired","cancelled","failed","refunded"],"title":"Status","type":"string","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"paid_amount":{"oneOf":[{"type":"number","title":"Paid Amount","description":"Amount paid in the invoice's `fiat_currency`. Defaults to a sensible value for the chosen status: the full amount for `success`, half for `partially_paid`, 125% for `paid_over`.","minimum":0,"exclusiveMinimum":true,"uniqueKey":"paid_amount.oneOf.0","typeLabel":"number"},{"type":"string","title":"Paid Amount","description":"Amount paid in the invoice's `fiat_currency`. Defaults to a sensible value for the chosen status: the full amount for `success`, half for `partially_paid`, 125% for `paid_over`.","uniqueKey":"paid_amount.oneOf.1","typeLabel":"string"},{"type":"null","title":"Paid Amount","description":"Amount paid in the invoice's `fiat_currency`. Defaults to a sensible value for the chosen status: the full amount for `success`, half for `partially_paid`, 125% for `paid_over`.","uniqueKey":"paid_amount.oneOf.2","typeLabel":"null"}],"uniqueKey":"paid_amount","typeLabel":"number | string | null"},"send_webhook":{"default":true,"description":"Whether to deliver the webhook for this transition.","title":"Send Webhook","type":"boolean","uniqueKey":"send_webhook","typeLabel":"boolean"},"notify_url":{"oneOf":[{"type":"string","title":"Notify Url","description":"Override the webhook destination for this call only.","uniqueKey":"notify_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Notify Url","description":"Override the webhook destination for this call only.","uniqueKey":"notify_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"notify_url","typeLabel":"string | null"}},"required":["status"],"title":"SimulateInvoiceV2","type":"object","uniqueKey":"","typeLabel":"SimulateInvoiceV2 · object"},"examples":{"Example":{"title":"Example","value":{"paid_amount":1,"send_webhook":true,"notify_url":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"743d4201-d42a-4a26-876c-211dcfbbd0b5":{"description":"OK","content":{"application/json":{"schema":{"properties":{"ok":{"const":true,"title":"Ok","type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"result":{"description":"Result of driving a sandbox invoice into a new status.","example":{"invoice":{"accepted_coins":["usdt_tron","usdc_eth"],"address_from":null,"address_to":"TXk2Y5...redacted","amount":49.5,"asset":"usdt_tron","billing_type":"fiat","created_at":1763398800,"description":"1 month subscription","excluded_coins":null,"expires_at":1763400600,"extra":"order-12345","fee_bearer":"merchant","fiat_amount":50,"fiat_currency":"USD","initial_amount":49.5,"initial_asset":"usdt_tron","initial_fiat_amount":50,"metadata":{"customer_id":"u_42"},"notify_url":"https://shop.example.com/webhook/paw","on_cancel_url":"https://shop.example.com/cancel","on_paid_url":"https://shop.example.com/thanks","order_id":"65f1c3a4e8b1c2d3a4b5c6d7","original_amount":50,"payer_info":null,"payment_url":"https://pawpayments.com/checkout/f2c8a3d1-4b7e-4f8a-9c1d-2e3b4a5c6d7e","permanent_address_id":null,"price_modifier":-1,"processed_at":null,"received_amount":0,"status":"created","title":"Premium plan","txid":null,"type":"token","underpay_tolerance":2.5,"user_id":null},"webhook":{"delivered":true,"error":null,"status_code":200,"url":"https://shop.example.com/webhook/paw"}},"properties":{"invoice":{"example":{"accepted_coins":["usdt_tron","usdc_eth"],"address_from":null,"address_to":"TXk2Y5...redacted","amount":49.5,"asset":"usdt_tron","billing_type":"fiat","created_at":1763398800,"description":"1 month subscription","excluded_coins":null,"expires_at":1763400600,"extra":"order-12345","fee_bearer":"merchant","fiat_amount":50,"fiat_currency":"USD","initial_amount":49.5,"initial_asset":"usdt_tron","initial_fiat_amount":50,"metadata":{"customer_id":"u_42"},"notify_url":"https://shop.example.com/webhook/paw","on_cancel_url":"https://shop.example.com/cancel","on_paid_url":"https://shop.example.com/thanks","order_id":"65f1c3a4e8b1c2d3a4b5c6d7","original_amount":50,"payer_info":null,"payment_url":"https://pawpayments.com/checkout/f2c8a3d1-4b7e-4f8a-9c1d-2e3b4a5c6d7e","permanent_address_id":null,"price_modifier":-1,"processed_at":null,"received_amount":0,"status":"created","title":"Premium plan","txid":null,"type":"token","underpay_tolerance":2.5,"user_id":null},"properties":{"order_id":{"description":"Unique 24-character hex invoice id.","title":"Order Id","type":"string","isRequired":true,"uniqueKey":"result.invoice.order_id","typeLabel":"string"},"external_id":{"oneOf":[{"type":"string","title":"External Id","description":"Public checkout id (UUID). Sent in webhooks only — it doubles as the payer's self-refund credential, so the invoice read endpoints withhold it. Store the `payment_url` returned when the invoice is created if you need the hosted-checkout link later.","uniqueKey":"result.invoice.external_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"External Id","description":"Public checkout id (UUID). Sent in webhooks only — it doubles as the payer's self-refund credential, so the invoice read endpoints withhold it. Store the `payment_url` returned when the invoice is created if you need the hosted-checkout link later.","uniqueKey":"result.invoice.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.external_id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","title":"Status","description":"One of: created, confirming, partially_paid, paid_over, success, failed, high_risk, expired, cancelled, refunding, refunded, refund_failed_needs_review (the last three: a high_risk payment being returned to the payer). Terminal-expiry split: `cancelled` is reachable only from `partially_paid` + `billing_type=STATIC` (merchant was already credited the partial amount at AML time; the credit is kept on expiry — `cancelled` reports the final under-paid state without reversal). Everything else still in `created` at TTL (including the sub-$2 tiny-payment deferral path that stored `received_amount` without enqueueing AML) → `expired`. `partially_paid` + `billing_type=VARY` is terminal at AML time and never transitions on TTL.","uniqueKey":"result.invoice.status.oneOf.0","typeLabel":"string"},{"type":"null","title":"Status","description":"One of: created, confirming, partially_paid, paid_over, success, failed, high_risk, expired, cancelled, refunding, refunded, refund_failed_needs_review (the last three: a high_risk payment being returned to the payer). Terminal-expiry split: `cancelled` is reachable only from `partially_paid` + `billing_type=STATIC` (merchant was already credited the partial amount at AML time; the credit is kept on expiry — `cancelled` reports the final under-paid state without reversal). Everything else still in `created` at TTL (including the sub-$2 tiny-payment deferral path that stored `received_amount` without enqueueing AML) → `expired`. `partially_paid` + `billing_type=VARY` is terminal at AML time and never transitions on TTL.","uniqueKey":"result.invoice.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.status","typeLabel":"string | null"},"asset":{"oneOf":[{"type":"string","title":"Asset","uniqueKey":"result.invoice.asset.oneOf.0","typeLabel":"string"},{"type":"null","title":"Asset","uniqueKey":"result.invoice.asset.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.asset","typeLabel":"string | null"},"initial_asset":{"oneOf":[{"type":"string","title":"Initial Asset","description":"Asset originally requested at invoice creation. Immutable after first assignment — if the customer changes the payment currency on the hosted checkout, `asset` reflects the new choice while `initial_asset` keeps the original one.","uniqueKey":"result.invoice.initial_asset.oneOf.0","typeLabel":"string"},{"type":"null","title":"Initial Asset","description":"Asset originally requested at invoice creation. Immutable after first assignment — if the customer changes the payment currency on the hosted checkout, `asset` reflects the new choice while `initial_asset` keeps the original one.","uniqueKey":"result.invoice.initial_asset.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.initial_asset","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","title":"Type","description":"Asset type: `native` or `token`.","uniqueKey":"result.invoice.type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Type","description":"Asset type: `native` or `token`.","uniqueKey":"result.invoice.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.type","typeLabel":"string | null"},"amount":{"oneOf":[{"type":"number","title":"Amount","description":"Originally requested amount in `asset`.","uniqueKey":"result.invoice.amount.oneOf.0","typeLabel":"number"},{"type":"null","title":"Amount","description":"Originally requested amount in `asset`.","uniqueKey":"result.invoice.amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.amount","typeLabel":"number | null"},"initial_amount":{"oneOf":[{"type":"number","title":"Initial Amount","description":"Snapshot of the originally requested crypto amount (immutable; equals `amount`).","uniqueKey":"result.invoice.initial_amount.oneOf.0","typeLabel":"number"},{"type":"null","title":"Initial Amount","description":"Snapshot of the originally requested crypto amount (immutable; equals `amount`).","uniqueKey":"result.invoice.initial_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.initial_amount","typeLabel":"number | null"},"fiat_amount":{"oneOf":[{"type":"number","title":"Fiat Amount","description":"Cumulative amount paid in `fiat_currency`. Updated on each on-chain payment.","uniqueKey":"result.invoice.fiat_amount.oneOf.0","typeLabel":"number"},{"type":"null","title":"Fiat Amount","description":"Cumulative amount paid in `fiat_currency`. Updated on each on-chain payment.","uniqueKey":"result.invoice.fiat_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.fiat_amount","typeLabel":"number | null"},"initial_fiat_amount":{"oneOf":[{"type":"number","title":"Initial Fiat Amount","description":"Originally requested amount in `fiat_currency` (immutable; useful when `fiat_amount` becomes a partial sum).","uniqueKey":"result.invoice.initial_fiat_amount.oneOf.0","typeLabel":"number"},{"type":"null","title":"Initial Fiat Amount","description":"Originally requested amount in `fiat_currency` (immutable; useful when `fiat_amount` becomes a partial sum).","uniqueKey":"result.invoice.initial_fiat_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.initial_fiat_amount","typeLabel":"number | null"},"fiat_currency":{"oneOf":[{"type":"string","title":"Fiat Currency","uniqueKey":"result.invoice.fiat_currency.oneOf.0","typeLabel":"string"},{"type":"null","title":"Fiat Currency","uniqueKey":"result.invoice.fiat_currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.fiat_currency","typeLabel":"string | null"},"billing_type":{"oneOf":[{"type":"string","title":"Billing Type","description":"Settlement mode: `STATIC` (fixed-price service — `partially_paid` keeps the invoice open for top-ups until `success`/`paid_over`/`expires_at`) or `VARY` (any incoming payment finalises the invoice — used for balance top-ups and for invoices bound to permanent addresses).","uniqueKey":"result.invoice.billing_type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Billing Type","description":"Settlement mode: `STATIC` (fixed-price service — `partially_paid` keeps the invoice open for top-ups until `success`/`paid_over`/`expires_at`) or `VARY` (any incoming payment finalises the invoice — used for balance top-ups and for invoices bound to permanent addresses).","uniqueKey":"result.invoice.billing_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.billing_type","typeLabel":"string | null"},"address_to":{"oneOf":[{"type":"string","title":"Address To","uniqueKey":"result.invoice.address_to.oneOf.0","typeLabel":"string"},{"type":"null","title":"Address To","uniqueKey":"result.invoice.address_to.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.address_to","typeLabel":"string | null"},"deposit_tag":{"oneOf":[{"type":"integer","title":"Deposit Tag","description":"XRP only. All XRP invoices are paid to one shared gateway address, so the payment MUST carry this destination tag — it is what identifies the invoice. A payment without it is rejected by the ledger. Absent on every other network, where `address_to` is unique per invoice.","uniqueKey":"result.invoice.deposit_tag.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Deposit Tag","description":"XRP only. All XRP invoices are paid to one shared gateway address, so the payment MUST carry this destination tag — it is what identifies the invoice. A payment without it is rejected by the ledger. Absent on every other network, where `address_to` is unique per invoice.","uniqueKey":"result.invoice.deposit_tag.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.deposit_tag","typeLabel":"integer | null"},"address_from":{"oneOf":[{"type":"string","title":"Address From","description":"Sender address of the (last) on-chain payment, when known.","uniqueKey":"result.invoice.address_from.oneOf.0","typeLabel":"string"},{"type":"null","title":"Address From","description":"Sender address of the (last) on-chain payment, when known.","uniqueKey":"result.invoice.address_from.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.address_from","typeLabel":"string | null"},"extra":{"oneOf":[{"type":"string","title":"Extra","uniqueKey":"result.invoice.extra.oneOf.0","typeLabel":"string"},{"type":"null","title":"Extra","uniqueKey":"result.invoice.extra.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.extra","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","uniqueKey":"result.invoice.title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","uniqueKey":"result.invoice.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.title","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","title":"Description","uniqueKey":"result.invoice.description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Description","uniqueKey":"result.invoice.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.description","typeLabel":"string | null"},"expires_at":{"oneOf":[{"type":"integer","title":"Expires At","description":"Unix timestamp when the invoice stops accepting new deposits.","uniqueKey":"result.invoice.expires_at.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Expires At","description":"Unix timestamp when the invoice stops accepting new deposits.","uniqueKey":"result.invoice.expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.expires_at","typeLabel":"integer | null"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","uniqueKey":"result.invoice.metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","uniqueKey":"result.invoice.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.metadata","typeLabel":"Metadata · object | null"},"fee_bearer":{"oneOf":[{"type":"string","title":"Fee Bearer","uniqueKey":"result.invoice.fee_bearer.oneOf.0","typeLabel":"string"},{"type":"null","title":"Fee Bearer","uniqueKey":"result.invoice.fee_bearer.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.fee_bearer","typeLabel":"string | null"},"underpay_tolerance":{"oneOf":[{"type":"number","title":"Underpay Tolerance","uniqueKey":"result.invoice.underpay_tolerance.oneOf.0","typeLabel":"number"},{"type":"null","title":"Underpay Tolerance","uniqueKey":"result.invoice.underpay_tolerance.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.underpay_tolerance","typeLabel":"number | null"},"accepted_coins":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"result.invoice.accepted_coins.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Accepted Coins","uniqueKey":"result.invoice.accepted_coins.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Accepted Coins","uniqueKey":"result.invoice.accepted_coins.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.accepted_coins","typeLabel":"string[] | null"},"excluded_coins":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"result.invoice.excluded_coins.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Excluded Coins","uniqueKey":"result.invoice.excluded_coins.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Excluded Coins","uniqueKey":"result.invoice.excluded_coins.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.excluded_coins","typeLabel":"string[] | null"},"on_paid_url":{"oneOf":[{"type":"string","title":"On Paid Url","uniqueKey":"result.invoice.on_paid_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"On Paid Url","uniqueKey":"result.invoice.on_paid_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.on_paid_url","typeLabel":"string | null"},"on_cancel_url":{"oneOf":[{"type":"string","title":"On Cancel Url","uniqueKey":"result.invoice.on_cancel_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"On Cancel Url","uniqueKey":"result.invoice.on_cancel_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.on_cancel_url","typeLabel":"string | null"},"notify_url":{"oneOf":[{"type":"string","title":"Notify Url","uniqueKey":"result.invoice.notify_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Notify Url","uniqueKey":"result.invoice.notify_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.notify_url","typeLabel":"string | null"},"price_modifier":{"oneOf":[{"type":"number","title":"Price Modifier","uniqueKey":"result.invoice.price_modifier.oneOf.0","typeLabel":"number"},{"type":"null","title":"Price Modifier","uniqueKey":"result.invoice.price_modifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.price_modifier","typeLabel":"number | null"},"original_amount":{"oneOf":[{"type":"number","title":"Original Amount","description":"Set only when price_modifier was applied.","uniqueKey":"result.invoice.original_amount.oneOf.0","typeLabel":"number"},{"type":"null","title":"Original Amount","description":"Set only when price_modifier was applied.","uniqueKey":"result.invoice.original_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.original_amount","typeLabel":"number | null"},"payer_info":{"oneOf":[{"type":"object","title":"Payer Info","uniqueKey":"result.invoice.payer_info.oneOf.0","typeLabel":"Payer Info · object"},{"type":"null","title":"Payer Info","uniqueKey":"result.invoice.payer_info.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.payer_info","typeLabel":"Payer Info · object | null"},"permanent_address_id":{"oneOf":[{"type":"string","title":"Permanent Address Id","description":"Set only on deposit invoices auto-created from a permanent address.","uniqueKey":"result.invoice.permanent_address_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Permanent Address Id","description":"Set only on deposit invoices auto-created from a permanent address.","uniqueKey":"result.invoice.permanent_address_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.permanent_address_id","typeLabel":"string | null"},"user_id":{"oneOf":[{"type":"string","title":"User Id","description":"Set only on deposit invoices auto-created from a permanent address (copied from the address).","uniqueKey":"result.invoice.user_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"User Id","description":"Set only on deposit invoices auto-created from a permanent address (copied from the address).","uniqueKey":"result.invoice.user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.user_id","typeLabel":"string | null"},"received_amount":{"oneOf":[{"type":"number","title":"Received Amount","description":"Cumulative crypto amount actually received on-chain.","uniqueKey":"result.invoice.received_amount.oneOf.0","typeLabel":"number"},{"type":"null","title":"Received Amount","description":"Cumulative crypto amount actually received on-chain.","uniqueKey":"result.invoice.received_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.received_amount","typeLabel":"number | null"},"txid":{"oneOf":[{"type":"string","title":"Txid","description":"Hash of the (last) transaction that contributed to this invoice. Set after a successful on-chain payment.","uniqueKey":"result.invoice.txid.oneOf.0","typeLabel":"string"},{"type":"null","title":"Txid","description":"Hash of the (last) transaction that contributed to this invoice. Set after a successful on-chain payment.","uniqueKey":"result.invoice.txid.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.txid","typeLabel":"string | null"},"payment_url":{"oneOf":[{"type":"string","title":"Payment Url","uniqueKey":"result.invoice.payment_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Payment Url","uniqueKey":"result.invoice.payment_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.payment_url","typeLabel":"string | null"},"webhook_format":{"oneOf":[{"type":"string","title":"Webhook Format","uniqueKey":"result.invoice.webhook_format.oneOf.0","typeLabel":"string"},{"type":"null","title":"Webhook Format","uniqueKey":"result.invoice.webhook_format.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.webhook_format","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"integer","title":"Created At","description":"Unix timestamp (seconds).","uniqueKey":"result.invoice.created_at.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Created At","description":"Unix timestamp (seconds).","uniqueKey":"result.invoice.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.created_at","typeLabel":"integer | null"},"processed_at":{"oneOf":[{"type":"integer","title":"Processed At","description":"Unix timestamp when the invoice transitioned to a paid status (success / partially_paid / paid_over).","uniqueKey":"result.invoice.processed_at.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Processed At","description":"Unix timestamp when the invoice transitioned to a paid status (success / partially_paid / paid_over).","uniqueKey":"result.invoice.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.invoice.processed_at","typeLabel":"integer | null"}},"required":["order_id"],"title":"Invoice","type":"object","isRequired":true,"uniqueKey":"result.invoice","typeLabel":"Invoice · object"},"webhook":{"oneOf":[{"type":"object","title":"WebhookProbe","description":"Delivery result of the webhook fired for this transition, if one was requested.","required":["url"],"example":{"delivered":true,"error":null,"status_code":200,"url":"https://shop.example.com/webhook/paw"},"properties":{"url":{"title":"Url","type":"string","isRequired":true,"uniqueKey":"result.webhook.oneOf.0.url","typeLabel":"string"},"status_code":{"oneOf":[{"type":"integer","title":"Status Code","uniqueKey":"result.webhook.oneOf.0.status_code.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Status Code","uniqueKey":"result.webhook.oneOf.0.status_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.webhook.oneOf.0.status_code","typeLabel":"integer | null"},"delivered":{"default":false,"title":"Delivered","type":"boolean","uniqueKey":"result.webhook.oneOf.0.delivered","typeLabel":"boolean"},"error":{"oneOf":[{"type":"string","title":"Error","description":"`delivery failed` if the request could not be completed (connection, timeout, proxy); the cause is not disclosed.","uniqueKey":"result.webhook.oneOf.0.error.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error","description":"`delivery failed` if the request could not be completed (connection, timeout, proxy); the cause is not disclosed.","uniqueKey":"result.webhook.oneOf.0.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.webhook.oneOf.0.error","typeLabel":"string | null"}},"uniqueKey":"result.webhook.oneOf.0","typeLabel":"WebhookProbe · object"},{"type":"null","description":"Delivery result of the webhook fired for this transition, if one was requested.","uniqueKey":"result.webhook.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.webhook","typeLabel":"WebhookProbe · object | null"}},"required":["invoice"],"title":"SimulatedInvoice","type":"object","isRequired":true,"uniqueKey":"result","typeLabel":"SimulatedInvoice · object"}},"required":["ok","result"],"title":"SimulatedInvoiceEnvelope","type":"object","uniqueKey":"","typeLabel":"SimulatedInvoiceEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"ok":true,"result":{"invoice":{"accepted_coins":["usdt_tron","usdc_eth"],"address_from":null,"address_to":"TXk2Y5...redacted","amount":49.5,"asset":"usdt_tron","billing_type":"fiat","created_at":1763398800,"description":"1 month subscription","excluded_coins":null,"expires_at":1763400600,"extra":"order-12345","fee_bearer":"merchant","fiat_amount":50,"fiat_currency":"USD","initial_amount":49.5,"initial_asset":"usdt_tron","initial_fiat_amount":50,"metadata":{"customer_id":"u_42"},"notify_url":"https://shop.example.com/webhook/paw","on_cancel_url":"https://shop.example.com/cancel","on_paid_url":"https://shop.example.com/thanks","order_id":"65f1c3a4e8b1c2d3a4b5c6d7","original_amount":50,"payer_info":null,"payment_url":"https://pawpayments.com/checkout/f2c8a3d1-4b7e-4f8a-9c1d-2e3b4a5c6d7e","permanent_address_id":null,"price_modifier":-1,"processed_at":null,"received_amount":0,"status":"created","title":"Premium plan","txid":null,"type":"token","underpay_tolerance":2.5,"user_id":null},"webhook":{"delivered":true,"error":null,"status_code":200,"url":"https://shop.example.com/webhook/paw"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7ed5d26d-32fc-43a8-9994-9d860976328f":{"description":"Bad Request","content":{"application/json":{"schema":{"example":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false},"properties":{"ok":{"const":false,"title":"Ok","type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. NOT_FOUND, VALIDATION_ERROR).","title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"type":"null","title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"title":"ErrorBody","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"required":["ok","error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false}}},"exampleType":"generated"}},"exampleType":"generated"},"7548d20b-2c2f-470c-9abd-de4e8529c068":{"description":"Unauthorized","content":{"application/json":{"schema":{"example":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false},"properties":{"ok":{"const":false,"title":"Ok","type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. NOT_FOUND, VALIDATION_ERROR).","title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"type":"null","title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"title":"ErrorBody","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"required":["ok","error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false}}},"exampleType":"generated"}},"exampleType":"generated"},"e08870c5-6f01-49fc-93f1-8d00bb025155":{"description":"Not Found","content":{"application/json":{"schema":{"example":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false},"properties":{"ok":{"const":false,"title":"Ok","type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. NOT_FOUND, VALIDATION_ERROR).","title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"type":"null","title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"title":"ErrorBody","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"required":["ok","error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false}}},"exampleType":"generated"}},"exampleType":"generated"},"a3346fd2-758e-4cbd-bf1e-41e851f4edeb":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"example":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false},"properties":{"ok":{"const":false,"title":"Ok","type":"boolean","isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. NOT_FOUND, VALIDATION_ERROR).","title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.0","typeLabel":"any"},{"type":"null","title":"Details","description":"Optional context. For VALIDATION_ERROR contains a list of {field, message}.","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"any | null"}},"required":["code","message"],"title":"ErrorBody","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"required":["ok","error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","details":[{"field":"amount","message":"Field required"}],"message":"Validation failed"},"ok":false}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7fe6fa50-6efa-4362-986f-7c08b1521f52":{"ApiKeyAuth":{"type":"apiKey","name":"x-api-key","in":"header","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"67ba0a1a-6bda-4cd2-867f-8a352a5d97f3":{"url":"https://api.pawpayments.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"x-api-key","in":"header","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"pawpaymentsinc","siteName":"PawPayments API","title":"Simulate a payment on a sandbox invoice - PawPayments API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T20:49:08.981Z","originalFileLocation":"api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"PawPayments API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Simulate a payment on a sandbox invoice - PawPayments API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PawPayments API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pawpaymentsinc.mintlify.site/_mintlify/api/og/v2?division=Sandbox\u0026amp;title=Simulate+a+payment+on+a+sandbox+invoice\u0026amp;theme=e8ae6fe84fd0496427904623\u0026amp;signature=58b52e976e6d831b37240dfeb1c062894040b9327e1df1acbcddf7ab7ee4bf10\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Simulate a payment on a sandbox invoice - PawPayments API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pawpaymentsinc.mintlify.site/_mintlify/api/og/v2?division=Sandbox\u0026amp;title=Simulate+a+payment+on+a+sandbox+invoice\u0026amp;theme=e8ae6fe84fd0496427904623\u0026amp;signature=58b52e976e6d831b37240dfeb1c062894040b9327e1df1acbcddf7ab7ee4bf10\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pawpaymentsinc/MC7gd2QKlNekXMRK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PawPayments API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pawpayments.com/#organization\",\"name\":\"PawPayments API\",\"url\":\"https://docs.pawpayments.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pawpaymentsinc/GvUEHrxVBBZGqu1B/logo/light.png?fit=max\u0026auto=format\u0026n=GvUEHrxVBBZGqu1B\u0026q=85\u0026s=e63c9c4d933201f4ef804ee6b424f0df\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pawpayments.com#website\",\"name\":\"PawPayments API\",\"url\":\"https://docs.pawpayments.com\",\"publisher\":{\"@id\":\"https://docs.pawpayments.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice#webpage\",\"url\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice\",\"name\":\"Simulate a payment on a sandbox invoice\",\"dateModified\":\"2026-11-05T20:49:08.981Z\",\"isPartOf\":{\"@id\":\"https://docs.pawpayments.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PawPayments API\",\"item\":\"https://docs.pawpayments.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simulate a payment on a sandbox invoice\",\"item\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice#apireference\",\"headline\":\"Simulate a payment on a sandbox invoice\",\"name\":\"Simulate a payment on a sandbox invoice\",\"url\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pawpayments.com/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice#webpage\"},\"dateModified\":\"2026-11-05T20:49:08.981Z\",\"publisher\":{\"@id\":\"https://docs.pawpayments.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pawpayments.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PawPayments API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PawPayments API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice.md","siteName":"PawPayments API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/overview"}]},{"tab":"API Reference","groups":[{"group":"Catalog","pages":[{"title":"List supported assets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/assets","href":"/api-reference/catalog/list-supported-assets"},{"title":"Get current exchange rates from cache","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/rates","href":"/api-reference/catalog/get-current-exchange-rates-from-cache"}]},{"group":"Merchant","pages":[{"title":"Get the merchant's balance summary in USD","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/balance","href":"/api-reference/merchant/get-the-merchants-balance-summary-in-usd"},{"title":"Unified income/payout/refund feed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/ledger","href":"/api-reference/merchant/unified-incomepayoutrefund-feed"}]},{"group":"Invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Create an invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/invoices","href":"/api-reference/invoices/create-an-invoice"},{"title":"Get an invoice by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/invoices/{invoice_id}","href":"/api-reference/invoices/get-an-invoice-by-id"},{"title":"Refund a flagged payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/invoices/{invoice_id}/refund","href":"/api-reference/invoices/refund-a-flagged-payment"},{"title":"Resend the merchant webhook for this invoice","description":"","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/invoices/{invoice_id}/notify","href":"/api-reference/invoices/resend-the-merchant-webhook-for-this-invoice"}]},{"group":"Sandbox","pages":[{"title":"Simulate a payment on a sandbox invoice","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/invoices/{invoice_id}/simulate","href":"/api-reference/sandbox/simulate-a-payment-on-a-sandbox-invoice"}]},{"group":"Payouts","pages":[{"title":"List payouts","description":"","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/payouts","href":"/api-reference/payouts/list-payouts"},{"title":"Create a payout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/payouts","href":"/api-reference/payouts/create-a-payout"},{"title":"Create a batch of up to 200 payouts. Per-item failures are reported individually","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/payouts/batch","href":"/api-reference/payouts/create-a-batch-of-up-to-200-payouts-per-item-failures-are-reported-individually"},{"title":"Get a payout by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/payouts/{payout_id}","href":"/api-reference/payouts/get-a-payout-by-id"}]},{"group":"Notifications","pages":[{"title":"List webhook delivery attempts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/notifications","href":"/api-reference/notifications/list-webhook-delivery-attempts"},{"title":"Send a test webhook to either `url` from the body or the merchant's callback URL","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/notifications/test","href":"/api-reference/notifications/send-a-test-webhook-to-either-`url`-from-the-body-or-the-merchants-callback-url"}]},{"group":"Permanent addresses","pages":[{"title":"List permanent deposit addresses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/permanent","href":"/api-reference/permanent-addresses/list-permanent-deposit-addresses"},{"title":"Get-or-create a permanent deposit address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/v2/permanent","href":"/api-reference/permanent-addresses/get-or-create-a-permanent-deposit-address"},{"title":"Get a permanent address by id","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/v2/permanent/{address_id}","href":"/api-reference/permanent-addresses/get-a-permanent-address-by-id"},{"title":"Deactivate a permanent address","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/v2/permanent/{address_id}","href":"/api-reference/permanent-addresses/deactivate-a-permanent-address"}]}]}]},"basePath":"","title":"Simulate a payment on a sandbox invoice - PawPayments API","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}