Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.
Surcharge component of amount in minor units, or null when none. On split-tender orders this grows as each partial's surcharge lands and shrinks on refund.
Cumulative sum of captured amounts across this order's Payments (in minor units). Historical ledger — on re-activable orders that get partially refunded and re-paid, this can exceed amount. Use amountPending for live balance.
Outstanding amount left to cover net of refunds (in minor units). Computed as max(0, amount - (amountPaid - amountRefunded)). Reaches 0 when the order is fully paid net of any refunds — the only live-balance field on the snapshot.
CFDI invoice type derived from the flow. PUE for legacy 1:1 orders (single CFDI). PPD for split-tender orders (parent + REP per capture + credit note per refund). Null when the order is not fiscal.
PPD-only: emitted REP complements (Recibos Electrónicos de Pago). One row per successfully-stamped Payment. Always present as an array (empty [] for PUE / non-fiscal orders).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cheqpay","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/cheqpay/WjCfb-k6AR5eUe0H/logo/logo.svg?fit=max\u0026auto=format\u0026n=WjCfb-k6AR5eUe0H\u0026q=85\u0026s=6e22e4768984a8158b3094e120aaf1ff","dark":"https://mintcdn.com/cheqpay/WjCfb-k6AR5eUe0H/logo/logo.svg?fit=max\u0026auto=format\u0026n=WjCfb-k6AR5eUe0H\u0026q=85\u0026s=6e22e4768984a8158b3094e120aaf1ff","href":"https://www.cheqpay.mx/"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif","navbar":{},"footer":{"socials":{"x":"https://x.com/cheqpay","github":"https://github.com/cheqpay","linkedin":"https://linkedin.com/company/cheqpay"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cheqpay","hasAudioNarration":false,"actualSubdomain":"cheqpay","customDomains":["docs.cheqpay.mx"],"gitSource":{"type":"github","owner":"cheqpay","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aac66185343956ba6628a63","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Payment Orchestrator API","count":37},{"language":"default","tag":"Features","count":14},{"language":"default","tag":"Link Product API","count":13},{"language":"default","tag":"Payment Order","count":9},{"language":"default","tag":"Products","count":6},{"language":"default","tag":"Subscription","count":6},{"language":"default","tag":"Customer V2","count":5},{"language":"default","tag":"Payment Method","count":5},{"language":"default","tag":"Subscription Plan","count":5},{"language":"default","tag":"Guides","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"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":"llms-txt-v2","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":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/payment-order/soft-delete-a-payment-order","slug":"/api-reference/payment-order/soft-delete-a-payment-order","pageMetadata":{"title":"Soft delete a payment order","description":"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v2/payment-orders/{id}","href":"/api-reference/payment-order/soft-delete-a-payment-order","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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":"Soft delete a payment order","description":"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v2/payment-orders/{id}","href":"/api-reference/payment-order/soft-delete-a-payment-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cheqpay/bdac4afbee45d6cc/scripts/sync-openapi.js"],"openApiReferenceData":{"operation":{"tags":["Payment Order"],"summary":"Soft delete a payment order","description":"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.","parameters":["71284ef3-3e3d-44a2-947c-7b5a5416785b"],"requestBody":"c35a3aa1-7643-4d67-a3d6-8dd48f9adf99","responses":{"200":"5436fc85-17c3-4073-a75d-97dbe1d7b62a","400":"9863e4e7-975c-41c7-9f81-57b6711578c8","401":"be432da4-a8ba-4850-80a2-ce5d935da303","404":"6db3cf1c-47db-4efa-8ffa-b67184b3c992","422":"516ae77e-bc68-4021-b08d-bc4b8962b73c","500":"3f5bafb3-4a44-41f1-abe5-68dbec8905c4"},"method":"delete","type":"path","servers":["6182b33a-254e-4891-b1a5-d7816dd9a3d5","a5b2f960-aba9-4c0c-92f6-0448d75e6592"],"security":["c1b7f425-f23b-463f-b717-1ede7de2843d"],"path":"/v2/payment-orders/{id}","baseUrlOptions":["https://api.sandbox.cheqpay.mx/pos","https://prod.cheqpay.mx/pos"],"title":"Soft delete a payment order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"71284ef3-3e3d-44a2-947c-7b5a5416785b":{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"isRequired":true,"description":"Payment order unique identifier or external ID","uniqueKey":"","typeLabel":"string"},"description":"Payment order unique identifier or external ID"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":255,"description":"Optional reason for deleting the payment order. Trimmed before validation; must not exceed 255 characters.","uniqueKey":"reason","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"reason":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5436fc85-17c3-4073-a75d-97dbe1d7b62a":{"description":"Payment order soft deleted successfully (or was already deleted)","content":{"application/json":{"schema":{"type":"object","required":["id","externalId","amount","currency","status","refundedAmount","payments"],"properties":{"id":{"type":"string","description":"Unique payment order ID","example":"856b4a29-a7e5-4726-87d4-77e55d5ecfbf","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"externalId":{"type":"string","description":"External payment order ID from merchant system","example":"ORDER-123","isRequired":true,"uniqueKey":"externalId","typeLabel":"string"},"refundedAmount":{"type":"number","description":"Total refunded amount across all payments (in cents)","example":0,"isRequired":true,"uniqueKey":"refundedAmount","typeLabel":"number"},"amount":{"type":"number","description":"Payment amount","example":100.5,"isRequired":true,"uniqueKey":"amount","typeLabel":"number"},"currency":{"type":"string","description":"Three-letter currency code (ISO 4217)","example":"USD","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"status":{"type":"string","enum":["PENDING","PROCESSING","REFERENCE_GENERATED","AUTHORIZED","PARTIALLY_AUTHORIZED","ACTION_REQUIRED","COMPLETED","PARTIALLY_PAID","CANCELLATION_REQUESTED","CANCELLED","FAILED","REFUND_PROCESSING","PARTIALLY_REFUNDED","REFUNDED"],"description":"Payment order status","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"payments":{"type":"array","items":{"type":"object","required":["id","status","paymentMethodType"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the payment","example":"856b4a29-a7e5-4726-87d4-77e55d5ecfbf","isRequired":true,"uniqueKey":"payments.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["CREATED","PENDING_AUTHORIZATION","AUTHORIZED","PARTIALLY_AUTHORIZED","REQUIRES_ACTION","PENDING_CAPTURE","CAPTURING","CAPTURED","PARTIALLY_CAPTURED","PENDING_SETTLEMENT","SETTLED","PENDING_CANCELLATION","FAILED","CANCELLED","PENDING_REFUND","PARTIALLY_REFUNDED","REFUNDED","DISPUTED","EXPIRED"],"description":"Status of the payment","example":"PENDING_CAPTURE","isRequired":true,"uniqueKey":"payments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"paymentMethodType":{"type":"string","enum":["CARD","SPEI","CIE_CASH_NET"],"description":"Type of payment method used","example":"SPEI","isRequired":true,"uniqueKey":"payments.items.[INDEX].paymentMethodType","typeLabel":"enum\u003cstring>"},"amount":{"type":"string","description":"Payment amount in string format","example":"200.99","uniqueKey":"payments.items.[INDEX].amount","typeLabel":"string"},"refundedAmount":{"type":"string","description":"Refunded amount in string format","example":"0.00","uniqueKey":"payments.items.[INDEX].refundedAmount","typeLabel":"string"},"currency":{"type":"string","description":"Three-letter currency code (ISO 4217)","example":"USD","uniqueKey":"payments.items.[INDEX].currency","typeLabel":"string"},"paymentMethodId":{"type":"string","description":"CLABE or Card number","uniqueKey":"payments.items.[INDEX].paymentMethodId","typeLabel":"string"},"lastFailedEventReason":{"oneOf":[{"type":"string","description":"Reason for the last failed payment event","example":"Insufficient funds","uniqueKey":"payments.items.[INDEX].lastFailedEventReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reason for the last failed payment event","example":"Insufficient funds","uniqueKey":"payments.items.[INDEX].lastFailedEventReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].lastFailedEventReason","typeLabel":"string | null"},"lastFailedEventAt":{"oneOf":[{"type":"string","format":"date-time","description":"Timestamp of the last failed payment event","example":"2025-05-19T18:14:32.424Z","uniqueKey":"payments.items.[INDEX].lastFailedEventAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Timestamp of the last failed payment event","example":"2025-05-19T18:14:32.424Z","uniqueKey":"payments.items.[INDEX].lastFailedEventAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].lastFailedEventAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the payment was created","example":"2025-05-19T18:14:32.424Z","uniqueKey":"payments.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp when the payment was last updated","example":"2025-05-19T18:14:32.523Z","uniqueKey":"payments.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"},"billingFirstName":{"oneOf":[{"type":"string","description":"Billing first name captured on the payment (included on payment order detail when billing details are returned)","uniqueKey":"payments.items.[INDEX].billingFirstName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing first name captured on the payment (included on payment order detail when billing details are returned)","uniqueKey":"payments.items.[INDEX].billingFirstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingFirstName","typeLabel":"string | null"},"billingLastName":{"oneOf":[{"type":"string","description":"Billing last name captured on the payment (included on payment order detail when billing details are returned)","uniqueKey":"payments.items.[INDEX].billingLastName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing last name captured on the payment (included on payment order detail when billing details are returned)","uniqueKey":"payments.items.[INDEX].billingLastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingLastName","typeLabel":"string | null"},"billingPhoneNumber":{"oneOf":[{"type":"string","description":"Billing phone number","uniqueKey":"payments.items.[INDEX].billingPhoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing phone number","uniqueKey":"payments.items.[INDEX].billingPhoneNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingPhoneNumber","typeLabel":"string | null"},"billingEmail":{"oneOf":[{"type":"string","format":"email","description":"Billing email address","uniqueKey":"payments.items.[INDEX].billingEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Billing email address","uniqueKey":"payments.items.[INDEX].billingEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingEmail","typeLabel":"string\u003cemail> | null"},"billingAddressLine1":{"oneOf":[{"type":"string","description":"Billing address line 1","uniqueKey":"payments.items.[INDEX].billingAddressLine1.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing address line 1","uniqueKey":"payments.items.[INDEX].billingAddressLine1.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingAddressLine1","typeLabel":"string | null"},"billingAddressLine2":{"oneOf":[{"type":"string","description":"Billing address line 2","uniqueKey":"payments.items.[INDEX].billingAddressLine2.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing address line 2","uniqueKey":"payments.items.[INDEX].billingAddressLine2.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingAddressLine2","typeLabel":"string | null"},"billingCity":{"oneOf":[{"type":"string","description":"Billing city","uniqueKey":"payments.items.[INDEX].billingCity.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing city","uniqueKey":"payments.items.[INDEX].billingCity.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingCity","typeLabel":"string | null"},"billingState":{"oneOf":[{"type":"string","description":"Billing state or province","uniqueKey":"payments.items.[INDEX].billingState.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing state or province","uniqueKey":"payments.items.[INDEX].billingState.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingState","typeLabel":"string | null"},"billingPostalCode":{"oneOf":[{"type":"string","description":"Billing postal code","uniqueKey":"payments.items.[INDEX].billingPostalCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing postal code","uniqueKey":"payments.items.[INDEX].billingPostalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingPostalCode","typeLabel":"string | null"},"billingCountry":{"oneOf":[{"type":"string","description":"Billing country code","uniqueKey":"payments.items.[INDEX].billingCountry.oneOf.0","typeLabel":"string"},{"type":"null","description":"Billing country code","uniqueKey":"payments.items.[INDEX].billingCountry.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].billingCountry","typeLabel":"string | null"},"paymentEvents":{"type":"array","description":"List of payment events","items":{"type":"object","required":["id","action","status","createdAt"],"properties":{"id":{"type":"string","description":"Unique identifier for the payment event","example":"evt-123","isRequired":true,"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].id","typeLabel":"string"},"action":{"type":"string","description":"Action type of the payment event","example":"AUTHORIZATION","isRequired":true,"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].action","typeLabel":"string"},"status":{"type":"string","description":"Status of the payment event","example":"SUCCESS","isRequired":true,"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].status","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the event was created","example":"2025-05-19T18:14:32.424Z","isRequired":true,"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"amount":{"oneOf":[{"type":"string","description":"Amount associated with the event","example":"100.50","uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].amount.oneOf.0","typeLabel":"string"},{"type":"null","description":"Amount associated with the event","example":"100.50","uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].amount","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","description":"Currency code for the event amount","example":"USD","uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Currency code for the event amount","example":"USD","uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].currency","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","description":"Reason for the event (e.g., failure reason)","example":null,"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reason for the event (e.g., failure reason)","example":null,"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX].reason","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].paymentEvents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"payments.items.[INDEX].paymentEvents","typeLabel":"object[]"}},"uniqueKey":"payments.items.[INDEX]","typeLabel":"object"},"description":"List of payments for a payment order, Note: this information is only available on the order details endpoint","isRequired":true,"uniqueKey":"payments","typeLabel":"object[]"},"subtotalAmount":{"oneOf":[{"type":"number","description":"Pre-surcharge subtotal in minor units. Equals `amount` when no surcharge applies. Null on legacy orders predating subtotal tracking.","example":100000,"uniqueKey":"subtotalAmount.oneOf.0","typeLabel":"number"},{"type":"null","description":"Pre-surcharge subtotal in minor units. Equals `amount` when no surcharge applies. Null on legacy orders predating subtotal tracking.","example":100000,"uniqueKey":"subtotalAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"subtotalAmount","typeLabel":"number | null"},"surchargeAmount":{"oneOf":[{"type":"number","description":"Surcharge component of `amount` in minor units, or null when none. On split-tender orders this grows as each partial's surcharge lands and shrinks on refund.","example":5000,"uniqueKey":"surchargeAmount.oneOf.0","typeLabel":"number"},{"type":"null","description":"Surcharge component of `amount` in minor units, or null when none. On split-tender orders this grows as each partial's surcharge lands and shrinks on refund.","example":5000,"uniqueKey":"surchargeAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"surchargeAmount","typeLabel":"number | null"},"surchargeRate":{"oneOf":[{"type":"number","description":"Snapshot of the merchant's surcharge rate (percent) captured at order creation, or null when no surcharge applies.","example":5,"uniqueKey":"surchargeRate.oneOf.0","typeLabel":"number"},{"type":"null","description":"Snapshot of the merchant's surcharge rate (percent) captured at order creation, or null when no surcharge applies.","example":5,"uniqueKey":"surchargeRate.oneOf.1","typeLabel":"null"}],"uniqueKey":"surchargeRate","typeLabel":"number | null"},"amountPaid":{"type":"number","description":"Cumulative sum of captured amounts across this order's Payments (in minor units). Historical ledger — on re-activable orders that get partially refunded and re-paid, this can exceed `amount`. Use `amountPending` for live balance.","example":50000,"uniqueKey":"amountPaid","typeLabel":"number"},"amountPending":{"type":"number","description":"Outstanding amount left to cover net of refunds (in minor units). Computed as `max(0, amount - (amountPaid - amountRefunded))`. Reaches 0 when the order is fully paid net of any refunds — the only live-balance field on the snapshot.","example":55000,"uniqueKey":"amountPending","typeLabel":"number"},"allowPartials":{"type":"boolean","description":"True when the order accepts multiple Payments via `POST /v2/payment-orders/{id}/payments`. Set at creation time.","example":false,"uniqueKey":"allowPartials","typeLabel":"boolean"},"invoiceType":{"oneOf":[{"type":"string","enum":["PUE","PPD"],"description":"CFDI invoice type derived from the flow. `PUE` for legacy 1:1 orders (single CFDI). `PPD` for split-tender orders (parent + REP per capture + credit note per refund). Null when the order is not fiscal.","example":"PUE","uniqueKey":"invoiceType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["PUE","PPD"],"description":"CFDI invoice type derived from the flow. `PUE` for legacy 1:1 orders (single CFDI). `PPD` for split-tender orders (parent + REP per capture + credit note per refund). Null when the order is not fiscal.","example":"PUE","uniqueKey":"invoiceType.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceType","typeLabel":"enum\u003cstring> | null"},"invoiceStatus":{"oneOf":[{"type":"string","enum":["PENDING","INVOICED","FAILED"],"description":"Overall CFDI status. For PPD this reflects the parent CFDI; use `invoiceSummary` for per-REP / per-credit-note granularity.","example":"INVOICED","uniqueKey":"invoiceStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["PENDING","INVOICED","FAILED"],"description":"Overall CFDI status. For PPD this reflects the parent CFDI; use `invoiceSummary` for per-REP / per-credit-note granularity.","example":"INVOICED","uniqueKey":"invoiceStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceStatus","typeLabel":"enum\u003cstring> | null"},"fiscalUuid":{"oneOf":[{"type":"string","description":"SAT UUID (folio fiscal) of the parent CFDI. Present once `invoiceStatus = INVOICED`.","example":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","uniqueKey":"fiscalUuid.oneOf.0","typeLabel":"string"},{"type":"null","description":"SAT UUID (folio fiscal) of the parent CFDI. Present once `invoiceStatus = INVOICED`.","example":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","uniqueKey":"fiscalUuid.oneOf.1","typeLabel":"null"}],"uniqueKey":"fiscalUuid","typeLabel":"string | null"},"complements":{"type":"array","description":"PPD-only: emitted REP complements (Recibos Electrónicos de Pago). One row per successfully-stamped Payment. Always present as an array (empty `[]` for PUE / non-fiscal orders).","items":{"type":"object","description":"One PPD complement (REP or CREDIT_NOTE). Surfaced in `complements` / `creditNotes` on GET /:id and in `/cfdi-url` responses.","required":["id","paymentId","amount","status"],"properties":{"id":{"type":"string","format":"uuid","description":"PaymentInvoiceComplement row id (internal). Use as a stable key in the UI.","example":"9c8b7a6d-5e4f-3c2b-1a0f-9e8d7c6b5a4d","isRequired":true,"uniqueKey":"complements.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"paymentId":{"type":"string","format":"uuid","description":"Payment this complement is attached to.","example":"a0b0c9d4-6ce9-40e4-873a-e234c1d93639","isRequired":true,"uniqueKey":"complements.items.[INDEX].paymentId","typeLabel":"string\u003cuuid>"},"amount":{"type":"number","description":"Amount of the complement in minor units. For REPs = the Payment's captured amount; for credit notes = the refund amount (subtotal portion).","example":25000,"isRequired":true,"uniqueKey":"complements.items.[INDEX].amount","typeLabel":"number"},"status":{"type":"string","enum":["PENDING","EMITTED","FAILED"],"description":"Lifecycle of the complement. Only EMITTED rows have `fiscalUuid` and `pdfKey`.","example":"EMITTED","isRequired":true,"uniqueKey":"complements.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"paymentEventId":{"oneOf":[{"type":"string","format":"uuid","description":"Set only for credit notes — links the note to the specific refund event. Null for REPs.","example":"20912eee-6047-40c7-97b4-48501bb36ef4","uniqueKey":"complements.items.[INDEX].paymentEventId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Set only for credit notes — links the note to the specific refund event. Null for REPs.","example":"20912eee-6047-40c7-97b4-48501bb36ef4","uniqueKey":"complements.items.[INDEX].paymentEventId.oneOf.1","typeLabel":"null"}],"uniqueKey":"complements.items.[INDEX].paymentEventId","typeLabel":"string\u003cuuid> | null"},"fiscalUuid":{"oneOf":[{"type":"string","description":"SAT UUID (folio fiscal) of this complement. Present when `status = EMITTED`.","example":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","uniqueKey":"complements.items.[INDEX].fiscalUuid.oneOf.0","typeLabel":"string"},{"type":"null","description":"SAT UUID (folio fiscal) of this complement. Present when `status = EMITTED`.","example":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","uniqueKey":"complements.items.[INDEX].fiscalUuid.oneOf.1","typeLabel":"null"}],"uniqueKey":"complements.items.[INDEX].fiscalUuid","typeLabel":"string | null"},"fiscalInvoiceId":{"oneOf":[{"type":"string","description":"Facturapi invoice id for this complement.","example":"6a710705bd1842a3122c70ff","uniqueKey":"complements.items.[INDEX].fiscalInvoiceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Facturapi invoice id for this complement.","example":"6a710705bd1842a3122c70ff","uniqueKey":"complements.items.[INDEX].fiscalInvoiceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"complements.items.[INDEX].fiscalInvoiceId","typeLabel":"string | null"},"pdfKey":{"oneOf":[{"type":"string","description":"S3 key where the CFDI PDF is stored. Do NOT build presigned URLs from this on the client — call `/cfdi-url` instead.","example":"invoices/mch_test_001/order-uuid/rep-payment-uuid.pdf","uniqueKey":"complements.items.[INDEX].pdfKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"S3 key where the CFDI PDF is stored. Do NOT build presigned URLs from this on the client — call `/cfdi-url` instead.","example":"invoices/mch_test_001/order-uuid/rep-payment-uuid.pdf","uniqueKey":"complements.items.[INDEX].pdfKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"complements.items.[INDEX].pdfKey","typeLabel":"string | null"},"emittedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Timestamp when Facturapi returned success. Null when status != EMITTED.","example":"2026-08-06T05:37:35.760Z","uniqueKey":"complements.items.[INDEX].emittedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Timestamp when Facturapi returned success. Null when status != EMITTED.","example":"2026-08-06T05:37:35.760Z","uniqueKey":"complements.items.[INDEX].emittedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"complements.items.[INDEX].emittedAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Row creation timestamp.","example":"2026-08-06T05:37:30.100Z","uniqueKey":"complements.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"complements.items.[INDEX]","typeLabel":"object"},"uniqueKey":"complements","typeLabel":"object[]"},"creditNotes":{"type":"array","description":"PPD-only: emitted Notas de Crédito. One row per successfully-stamped refund event. Always present as an array (empty `[]` for PUE / non-fiscal orders).","items":{"type":"object","description":"One PPD complement (REP or CREDIT_NOTE). Surfaced in `complements` / `creditNotes` on GET /:id and in `/cfdi-url` responses.","required":["id","paymentId","amount","status"],"properties":{"id":{"type":"string","format":"uuid","description":"PaymentInvoiceComplement row id (internal). Use as a stable key in the UI.","example":"9c8b7a6d-5e4f-3c2b-1a0f-9e8d7c6b5a4d","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"paymentId":{"type":"string","format":"uuid","description":"Payment this complement is attached to.","example":"a0b0c9d4-6ce9-40e4-873a-e234c1d93639","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].paymentId","typeLabel":"string\u003cuuid>"},"amount":{"type":"number","description":"Amount of the complement in minor units. For REPs = the Payment's captured amount; for credit notes = the refund amount (subtotal portion).","example":25000,"isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].amount","typeLabel":"number"},"status":{"type":"string","enum":["PENDING","EMITTED","FAILED"],"description":"Lifecycle of the complement. Only EMITTED rows have `fiscalUuid` and `pdfKey`.","example":"EMITTED","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"paymentEventId":{"oneOf":[{"type":"string","format":"uuid","description":"Set only for credit notes — links the note to the specific refund event. Null for REPs.","example":"20912eee-6047-40c7-97b4-48501bb36ef4","uniqueKey":"creditNotes.items.[INDEX].paymentEventId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Set only for credit notes — links the note to the specific refund event. Null for REPs.","example":"20912eee-6047-40c7-97b4-48501bb36ef4","uniqueKey":"creditNotes.items.[INDEX].paymentEventId.oneOf.1","typeLabel":"null"}],"uniqueKey":"creditNotes.items.[INDEX].paymentEventId","typeLabel":"string\u003cuuid> | null"},"fiscalUuid":{"oneOf":[{"type":"string","description":"SAT UUID (folio fiscal) of this complement. Present when `status = EMITTED`.","example":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","uniqueKey":"creditNotes.items.[INDEX].fiscalUuid.oneOf.0","typeLabel":"string"},{"type":"null","description":"SAT UUID (folio fiscal) of this complement. Present when `status = EMITTED`.","example":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","uniqueKey":"creditNotes.items.[INDEX].fiscalUuid.oneOf.1","typeLabel":"null"}],"uniqueKey":"creditNotes.items.[INDEX].fiscalUuid","typeLabel":"string | null"},"fiscalInvoiceId":{"oneOf":[{"type":"string","description":"Facturapi invoice id for this complement.","example":"6a710705bd1842a3122c70ff","uniqueKey":"creditNotes.items.[INDEX].fiscalInvoiceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Facturapi invoice id for this complement.","example":"6a710705bd1842a3122c70ff","uniqueKey":"creditNotes.items.[INDEX].fiscalInvoiceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"creditNotes.items.[INDEX].fiscalInvoiceId","typeLabel":"string | null"},"pdfKey":{"oneOf":[{"type":"string","description":"S3 key where the CFDI PDF is stored. Do NOT build presigned URLs from this on the client — call `/cfdi-url` instead.","example":"invoices/mch_test_001/order-uuid/rep-payment-uuid.pdf","uniqueKey":"creditNotes.items.[INDEX].pdfKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"S3 key where the CFDI PDF is stored. Do NOT build presigned URLs from this on the client — call `/cfdi-url` instead.","example":"invoices/mch_test_001/order-uuid/rep-payment-uuid.pdf","uniqueKey":"creditNotes.items.[INDEX].pdfKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"creditNotes.items.[INDEX].pdfKey","typeLabel":"string | null"},"emittedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Timestamp when Facturapi returned success. Null when status != EMITTED.","example":"2026-08-06T05:37:35.760Z","uniqueKey":"creditNotes.items.[INDEX].emittedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Timestamp when Facturapi returned success. Null when status != EMITTED.","example":"2026-08-06T05:37:35.760Z","uniqueKey":"creditNotes.items.[INDEX].emittedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"creditNotes.items.[INDEX].emittedAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Row creation timestamp.","example":"2026-08-06T05:37:30.100Z","uniqueKey":"creditNotes.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"creditNotes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"creditNotes","typeLabel":"object[]"},"invoiceSummary":{"type":"object","description":"PPD-only: aggregated stamping progress. Undefined for PUE and non-fiscal orders — the UI should treat its absence as 'not a PPD order'.","required":["capturedCount","emittedRepCount","pendingRepCount","failedRepCount","refundEventCount","emittedCreditNoteCount","pendingCreditNoteCount","failedCreditNoteCount","isFullyStamped"],"properties":{"capturedCount":{"type":"integer","description":"Payments whose status makes them REP-eligible (CAPTURED / PARTIALLY_CAPTURED / SETTLED / PARTIALLY_REFUNDED / REFUNDED).","example":4,"isRequired":true,"uniqueKey":"invoiceSummary.capturedCount","typeLabel":"integer"},"emittedRepCount":{"type":"integer","description":"Captured Payments that already have an EMITTED REP row.","example":3,"isRequired":true,"uniqueKey":"invoiceSummary.emittedRepCount","typeLabel":"integer"},"pendingRepCount":{"type":"integer","description":"Captured Payments with no complement row at all — never attempted.","example":0,"isRequired":true,"uniqueKey":"invoiceSummary.pendingRepCount","typeLabel":"integer"},"failedRepCount":{"type":"integer","description":"Captured Payments whose REP attempt is currently in FAILED state — retry via POST /stamp.","example":1,"isRequired":true,"uniqueKey":"invoiceSummary.failedRepCount","typeLabel":"integer"},"refundEventCount":{"type":"integer","description":"Successful refund events across all Payments (expected credit-note count).","example":1,"isRequired":true,"uniqueKey":"invoiceSummary.refundEventCount","typeLabel":"integer"},"emittedCreditNoteCount":{"type":"integer","description":"Refund events with an EMITTED credit-note row.","example":1,"isRequired":true,"uniqueKey":"invoiceSummary.emittedCreditNoteCount","typeLabel":"integer"},"pendingCreditNoteCount":{"type":"integer","description":"Refund events with no credit-note row at all — never attempted.","example":0,"isRequired":true,"uniqueKey":"invoiceSummary.pendingCreditNoteCount","typeLabel":"integer"},"failedCreditNoteCount":{"type":"integer","description":"Refund events whose credit-note attempt is currently in FAILED state — retry via POST /stamp.","example":0,"isRequired":true,"uniqueKey":"invoiceSummary.failedCreditNoteCount","typeLabel":"integer"},"isFullyStamped":{"type":"boolean","description":"True only when REPs and credit notes are both fully caught up (no pending, no failed). Use as the primary signal for the green 'fully stamped' UI chip.","example":false,"isRequired":true,"uniqueKey":"invoiceSummary.isFullyStamped","typeLabel":"boolean"}},"uniqueKey":"invoiceSummary","typeLabel":"object"},"orderNumber":{"type":"string","description":"Unique order number generated by the system","example":"C25123101","uniqueKey":"orderNumber","typeLabel":"string"},"invoiceNumber":{"oneOf":[{"type":"string","maxLength":64,"description":"Merchant-provided invoice number; shown to customers instead of orderNumber when present","example":"INV-2026-001","uniqueKey":"invoiceNumber.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":64,"description":"Merchant-provided invoice number; shown to customers instead of orderNumber when present","example":"INV-2026-001","uniqueKey":"invoiceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceNumber","typeLabel":"string | null"},"description":{"type":"string","description":"Payment description","example":"Payment for order #123","uniqueKey":"description","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary JSON metadata stored with the payment order","additionalProperties":true,"example":{"orderId":"ORD-123","source":"web"},"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary JSON metadata stored with the payment order","additionalProperties":true,"example":{"orderId":"ORD-123","source":"web"},"uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"billingAddressLine":{"type":"string","description":"Billing address line","example":"123 Main St","uniqueKey":"billingAddressLine","typeLabel":"string"},"billingCity":{"type":"string","description":"Billing city","example":"New York","uniqueKey":"billingCity","typeLabel":"string"},"billingState":{"type":"string","description":"Billing state","example":"NY","uniqueKey":"billingState","typeLabel":"string"},"billingPostalCode":{"type":"string","description":"Billing postal code","example":"10001","uniqueKey":"billingPostalCode","typeLabel":"string"},"billingCountry":{"type":"string","description":"Billing country code","example":"US","uniqueKey":"billingCountry","typeLabel":"string"},"customer":{"type":"object","properties":{"externalId":{"type":"string","description":"External customer ID from merchant system","example":"CUST-123","uniqueKey":"customer.externalId","typeLabel":"string"},"firstName":{"type":"string","description":"Customer's first name","example":"John","uniqueKey":"customer.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Customer's last name","example":"Doe","uniqueKey":"customer.lastName","typeLabel":"string"},"email":{"type":"string","format":"email","description":"Customer's email address","example":"john.doe@example.com","uniqueKey":"customer.email","typeLabel":"string\u003cemail>"},"phoneNumber":{"type":"string","description":"Customer's phone number","example":"+1234567890","uniqueKey":"customer.phoneNumber","typeLabel":"string"},"active":{"type":"boolean","description":"Whether the customer is active","example":true,"uniqueKey":"customer.active","typeLabel":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Customer creation timestamp","example":"2024-03-20T10:00:00Z","uniqueKey":"customer.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Customer last update timestamp","example":"2024-03-20T10:00:00Z","uniqueKey":"customer.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"customer","typeLabel":"object"},"dueDate":{"oneOf":[{"type":"string","format":"date-time","description":"Due date for the payment order. Used for payment reminder notifications.","example":"2026-04-15T00:00:00.000Z","uniqueKey":"dueDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Due date for the payment order. Used for payment reminder notifications.","example":"2026-04-15T00:00:00.000Z","uniqueKey":"dueDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"dueDate","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Payment order creation timestamp","example":"2024-03-20T10:00:00Z","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Payment order last update timestamp","example":"2024-03-20T10:00:00Z","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"paymentMethod":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","format":"uuid","description":"Payment method unique identifier","example":"856b4a29-a7e5-4726-87d4-77e55d5ecfbf","isRequired":true,"uniqueKey":"paymentMethod.id","typeLabel":"string\u003cuuid>"},"type":{"type":"string","enum":["CARD","SPEI","CIE_CASH_NET"],"description":"Payment method type","isRequired":true,"uniqueKey":"paymentMethod.type","typeLabel":"enum\u003cstring>"},"cardDetails":{"oneOf":[{"type":"object","description":"Card details (present when payment method type is 'card')","properties":{"id":{"type":"string","description":"Card ID","uniqueKey":"paymentMethod.cardDetails.oneOf.0.id","typeLabel":"string"},"type":{"type":"string","description":"Card type","example":"CREDIT","uniqueKey":"paymentMethod.cardDetails.oneOf.0.type","typeLabel":"string"},"bin":{"type":"string","description":"Bank identification number (first 6 digits)","example":"411111","uniqueKey":"paymentMethod.cardDetails.oneOf.0.bin","typeLabel":"string"},"last4":{"type":"string","description":"Last 4 digits of card","example":"1111","uniqueKey":"paymentMethod.cardDetails.oneOf.0.last4","typeLabel":"string"},"brand":{"type":"string","description":"Card brand","example":"VISA","uniqueKey":"paymentMethod.cardDetails.oneOf.0.brand","typeLabel":"string"},"country":{"type":"string","description":"Card issuing country","example":"US","uniqueKey":"paymentMethod.cardDetails.oneOf.0.country","typeLabel":"string"},"issuerBank":{"type":"string","description":"Card issuing bank","example":"CHASE","uniqueKey":"paymentMethod.cardDetails.oneOf.0.issuerBank","typeLabel":"string"},"expMonth":{"type":"integer","description":"Card expiry month","example":12,"uniqueKey":"paymentMethod.cardDetails.oneOf.0.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","description":"Card expiry year","example":2025,"uniqueKey":"paymentMethod.cardDetails.oneOf.0.expYear","typeLabel":"integer"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp","uniqueKey":"paymentMethod.cardDetails.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp","uniqueKey":"paymentMethod.cardDetails.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"paymentMethod.cardDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"Card details (present when payment method type is 'card')","properties":{"id":{"type":"string","description":"Card ID"},"type":{"type":"string","description":"Card type","example":"CREDIT"},"bin":{"type":"string","description":"Bank identification number (first 6 digits)","example":"411111"},"last4":{"type":"string","description":"Last 4 digits of card","example":"1111"},"brand":{"type":"string","description":"Card brand","example":"VISA"},"country":{"type":"string","description":"Card issuing country","example":"US"},"issuerBank":{"type":"string","description":"Card issuing bank","example":"CHASE"},"expMonth":{"type":"integer","description":"Card expiry month","example":12},"expYear":{"type":"integer","description":"Card expiry year","example":2025},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"uniqueKey":"paymentMethod.cardDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.cardDetails","typeLabel":"object | null"},"speiDetails":{"oneOf":[{"type":"object","description":"SPEI details (present when payment method type is 'spei')","properties":{"id":{"type":"string","format":"uuid","description":"SPEI payment method detail ID","uniqueKey":"paymentMethod.speiDetails.oneOf.0.id","typeLabel":"string\u003cuuid>"},"clabe":{"type":"string","description":"CLABE account number for SPEI transfer (18 digits)","example":"123456789012345678","uniqueKey":"paymentMethod.speiDetails.oneOf.0.clabe","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp","uniqueKey":"paymentMethod.speiDetails.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp","uniqueKey":"paymentMethod.speiDetails.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"paymentMethod.speiDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"SPEI details (present when payment method type is 'spei')","properties":{"id":{"type":"string","format":"uuid","description":"SPEI payment method detail ID"},"clabe":{"type":"string","description":"CLABE account number for SPEI transfer (18 digits)","example":"123456789012345678"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"uniqueKey":"paymentMethod.speiDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.speiDetails","typeLabel":"object | null"},"cieDetails":{"oneOf":[{"type":"object","description":"CIE Cash Net details (present when payment method type is 'cie_cash_net')","properties":{"id":{"type":"string","format":"uuid","description":"CIE payment method detail ID","uniqueKey":"paymentMethod.cieDetails.oneOf.0.id","typeLabel":"string\u003cuuid>"},"reference":{"type":"string","description":"CIE reference number for cash payment at convenience stores","example":"CIE0000000001","uniqueKey":"paymentMethod.cieDetails.oneOf.0.reference","typeLabel":"string"},"convenio":{"type":"string","description":"BBVA account number for same-bank payments","example":"0123456789","uniqueKey":"paymentMethod.cieDetails.oneOf.0.convenio","typeLabel":"string"},"clabe":{"type":"string","description":"Interbank account number (CLABE) for transfers from other banks","example":"012345678901234567","uniqueKey":"paymentMethod.cieDetails.oneOf.0.clabe","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp","uniqueKey":"paymentMethod.cieDetails.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp","uniqueKey":"paymentMethod.cieDetails.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"paymentMethod.cieDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"CIE Cash Net details (present when payment method type is 'cie_cash_net')","properties":{"id":{"type":"string","format":"uuid","description":"CIE payment method detail ID"},"reference":{"type":"string","description":"CIE reference number for cash payment at convenience stores","example":"CIE0000000001"},"convenio":{"type":"string","description":"BBVA account number for same-bank payments","example":"0123456789"},"clabe":{"type":"string","description":"Interbank account number (CLABE) for transfers from other banks","example":"012345678901234567"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"uniqueKey":"paymentMethod.cieDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.cieDetails","typeLabel":"object | null"}},"uniqueKey":"paymentMethod","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"856b4a29-a7e5-4726-87d4-77e55d5ecfbf","externalId":"ORDER-123","refundedAmount":0,"amount":100.5,"currency":"USD","status":"PENDING","payments":[{"id":"856b4a29-a7e5-4726-87d4-77e55d5ecfbf","status":"PENDING_CAPTURE","paymentMethodType":"SPEI","amount":"200.99","refundedAmount":"0.00","currency":"USD","paymentMethodId":"\u003cstring>","lastFailedEventReason":"Insufficient funds","lastFailedEventAt":"2025-05-19T18:14:32.424Z","createdAt":"2025-05-19T18:14:32.424Z","updatedAt":"2025-05-19T18:14:32.523Z","billingFirstName":"\u003cstring>","billingLastName":"\u003cstring>","billingPhoneNumber":"\u003cstring>","billingEmail":"jsmith@example.com","billingAddressLine1":"\u003cstring>","billingAddressLine2":"\u003cstring>","billingCity":"\u003cstring>","billingState":"\u003cstring>","billingPostalCode":"\u003cstring>","billingCountry":"\u003cstring>","paymentEvents":[{"id":"evt-123","action":"AUTHORIZATION","status":"SUCCESS","createdAt":"2025-05-19T18:14:32.424Z","amount":"100.50","currency":"USD","reason":null}]}],"subtotalAmount":100000,"surchargeAmount":5000,"surchargeRate":5,"amountPaid":50000,"amountPending":55000,"allowPartials":false,"invoiceType":"PUE","invoiceStatus":"INVOICED","fiscalUuid":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","complements":[{"id":"9c8b7a6d-5e4f-3c2b-1a0f-9e8d7c6b5a4d","paymentId":"a0b0c9d4-6ce9-40e4-873a-e234c1d93639","amount":25000,"status":"EMITTED","paymentEventId":"20912eee-6047-40c7-97b4-48501bb36ef4","fiscalUuid":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","fiscalInvoiceId":"6a710705bd1842a3122c70ff","pdfKey":"invoices/mch_test_001/order-uuid/rep-payment-uuid.pdf","emittedAt":"2026-08-06T05:37:35.760Z","createdAt":"2026-08-06T05:37:30.100Z"}],"creditNotes":[{"id":"9c8b7a6d-5e4f-3c2b-1a0f-9e8d7c6b5a4d","paymentId":"a0b0c9d4-6ce9-40e4-873a-e234c1d93639","amount":25000,"status":"EMITTED","paymentEventId":"20912eee-6047-40c7-97b4-48501bb36ef4","fiscalUuid":"b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6","fiscalInvoiceId":"6a710705bd1842a3122c70ff","pdfKey":"invoices/mch_test_001/order-uuid/rep-payment-uuid.pdf","emittedAt":"2026-08-06T05:37:35.760Z","createdAt":"2026-08-06T05:37:30.100Z"}],"invoiceSummary":{"capturedCount":4,"emittedRepCount":3,"pendingRepCount":0,"failedRepCount":1,"refundEventCount":1,"emittedCreditNoteCount":1,"pendingCreditNoteCount":0,"failedCreditNoteCount":0,"isFullyStamped":false},"orderNumber":"C25123101","invoiceNumber":"INV-2026-001","description":"Payment for order #123","metadata":{"orderId":"ORD-123","source":"web"},"billingAddressLine":"123 Main St","billingCity":"New York","billingState":"NY","billingPostalCode":"10001","billingCountry":"US","customer":{"externalId":"CUST-123","firstName":"John","lastName":"Doe","email":"john.doe@example.com","phoneNumber":"+1234567890","active":true,"createdAt":"2024-03-20T10:00:00Z","updatedAt":"2024-03-20T10:00:00Z"},"dueDate":"2026-04-15T00:00:00.000Z","createdAt":"2024-03-20T10:00:00Z","updatedAt":"2024-03-20T10:00:00Z","paymentMethod":{"id":"856b4a29-a7e5-4726-87d4-77e55d5ecfbf","type":"CARD","cardDetails":{"id":"\u003cstring>","type":"CREDIT","bin":"411111","last4":"1111","brand":"VISA","country":"US","issuerBank":"CHASE","expMonth":12,"expYear":2025,"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"},"speiDetails":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","clabe":"123456789012345678","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"},"cieDetails":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","reference":"CIE0000000001","convenio":"0123456789","clabe":"012345678901234567","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"9863e4e7-975c-41c7-9f81-57b6711578c8":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","description":"Validation error response","required":["message","errors"],"properties":{"message":{"type":"string","description":"Error message","example":"Validation failed","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"errors":{"type":"array","description":"List of validation errors","items":{"type":"object","properties":{"field":{"type":"string","description":"Field that failed validation","example":"name","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Validation error message","example":"Required","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"example":{"message":"Validation failed","errors":[{"field":"name","message":"Required"}]},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Validation failed","errors":[{"field":"name","message":"Required"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"be432da4-a8ba-4850-80a2-ce5d935da303":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","description":"Unauthorized error response","properties":{"message":{"type":"string","description":"Error message","example":"Invalid api key","uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Invalid api key"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid api key"}}},"exampleType":"generated"}},"exampleType":"generated"},"6db3cf1c-47db-4efa-8ffa-b67184b3c992":{"description":"Payment order not found","content":{"application/json":{"schema":{"type":"object","description":"Not found error response","properties":{"message":{"type":"string","description":"Error message","example":"Merchant not found","uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Merchant not found"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Merchant not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"516ae77e-bc68-4021-b08d-bc4b8962b73c":{"description":"Payment order cannot be deleted in its current status. Only PENDING, FAILED, EXPIRED, and CANCELLED orders are deletable.","content":{"application/json":{"schema":{"type":"object","description":"Error response","properties":{"message":{"type":"string","description":"Error message","example":"Error message","uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Error message"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Error message"}}},"exampleType":"generated"}},"exampleType":"generated"},"3f5bafb3-4a44-41f1-abe5-68dbec8905c4":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","description":"Error response","properties":{"message":{"type":"string","description":"Error message","example":"Error message","uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Error message"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Error message"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c1b7f425-f23b-463f-b717-1ede7de2843d":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication (required)","scopes":[]},"MerchantIdAuth":{"type":"apiKey","in":"header","name":"x-merchant-id","description":"Merchant ID for identifying the merchant (required)","scopes":[]}}},"servers":{"6182b33a-254e-4891-b1a5-d7816dd9a3d5":{"url":"https://api.sandbox.cheqpay.mx/pos","description":"Sandbox environment"},"a5b2f960-aba9-4c0c-92f6-0448d75e6592":{"url":"https://prod.cheqpay.mx/pos","description":"Production environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication (required)","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"API key for authentication (required)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"},{"scheme":{"type":"apiKey","in":"header","name":"x-merchant-id","description":"Merchant ID for identifying the merchant (required)","scopes":[]},"schema":{"title":"x-merchant-id","type":"string","description":"Merchant ID for identifying the merchant (required)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"MerchantIdAuth","name":"x-merchant-id"}],"title":"ApiKeyAuth \u0026 MerchantIdAuth"}]},"originalFileLocation":"api-reference/orchestrator-openapi.json"},"subdomain":"cheqpay","siteName":"Cheqpay","title":"Soft delete a payment order - Cheqpay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-17T22:15:37.136Z","originalFileLocation":"api-reference/payment-order/soft-delete-a-payment-order.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=\"description\" content=\"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cheqpay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003cmeta data-mint-head property=\"og:title\" content=\"Soft delete a payment order - Cheqpay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cheqpay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cheqpay.mintlify.site/_mintlify/api/og/v2?division=Payment+Order\u0026amp;title=Soft+delete+a+payment+order\u0026amp;description=Soft+deletes+a+payment+order%2C+identified+by+its+unique+ID+or+external+ID.+Only+orders+in+PENDING%2C+FAILED%2C+EXPIRED%2C+or+CANCELLED+status+can+be+deleted%3B+otherwise\u0026amp;theme=6e0753f2de9f986dbda32f79\u0026amp;signature=c9e96acf049f4a9aeae0a8325fd26a81c335e22c565004966d65f6442310fac3\">\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=\"Soft delete a payment order - Cheqpay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cheqpay.mintlify.site/_mintlify/api/og/v2?division=Payment+Order\u0026amp;title=Soft+delete+a+payment+order\u0026amp;description=Soft+deletes+a+payment+order%2C+identified+by+its+unique+ID+or+external+ID.+Only+orders+in+PENDING%2C+FAILED%2C+EXPIRED%2C+or+CANCELLED+status+can+be+deleted%3B+otherwise\u0026amp;theme=6e0753f2de9f986dbda32f79\u0026amp;signature=c9e96acf049f4a9aeae0a8325fd26a81c335e22c565004966d65f6442310fac3\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cheqpay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/payment-order/soft-delete-a-payment-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cheqpay.mx/#organization\",\"name\":\"Cheqpay\",\"url\":\"https://docs.cheqpay.mx\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cheqpay/WjCfb-k6AR5eUe0H/logo/logo.svg?fit=max\u0026auto=format\u0026n=WjCfb-k6AR5eUe0H\u0026q=85\u0026s=6e22e4768984a8158b3094e120aaf1ff\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cheqpay.mx#website\",\"name\":\"Cheqpay\",\"url\":\"https://docs.cheqpay.mx\",\"publisher\":{\"@id\":\"https://docs.cheqpay.mx/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order#webpage\",\"url\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order\",\"name\":\"Soft delete a payment order\",\"description\":\"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.\",\"dateModified\":\"2026-09-17T22:15:37.136Z\",\"isPartOf\":{\"@id\":\"https://docs.cheqpay.mx#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payment Orchestrator API\",\"item\":\"https://docs.cheqpay.mx/api-reference/customer/get-customer-by-external-id\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payment Order\",\"item\":\"https://docs.cheqpay.mx/api-reference/payment-order/list-all-payment-orders\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Soft delete a payment order\",\"item\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order#apireference\",\"headline\":\"Soft delete a payment order\",\"name\":\"Soft delete a payment order\",\"description\":\"Soft deletes a payment order, identified by its unique ID or external ID. Only orders in PENDING, FAILED, EXPIRED, or CANCELLED status can be deleted; otherwise a 422 is returned. Deletion is terminal and cannot be undone. The operation is idempotent: deleting an already-deleted order returns the order unchanged. An optional reason can be provided in the request body.\",\"url\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-order/soft-delete-a-payment-order#webpage\"},\"dateModified\":\"2026-09-17T22:15:37.136Z\",\"publisher\":{\"@id\":\"https://docs.cheqpay.mx/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cheqpay.mx#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cheqpay\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cheqpay","nav":{"global":{"anchors":[]},"groups":[{"group":"Getting Started","pages":[{"title":"Welcome to Cheqpay","href":"/index"}]},{"group":"Essentials","pages":[{"title":"Authentication","href":"/essentials/authentication"},{"title":"Environments","href":"/essentials/environments"},{"title":"Quickstart","href":"/essentials/quickstart"}]},{"group":"Features","pages":[{"title":"Customers","href":"/features/customers"},{"title":"Payment Methods","href":"/features/payment-methods"},{"title":"Payment Orders","href":"/features/payment-orders"},{"title":"Pending Orders","href":"/features/pending-orders"},{"title":"Card Payments","href":"/features/card-payments"},{"title":"SPEI Transfers","href":"/features/spei-transfers"},{"title":"PayCash Payments","href":"/features/paycash-payments"},{"title":"CIE Cash Net Payments","href":"/features/cie-cash-net-payments"},{"title":"Hosted Payment Page","href":"/features/hosted-payment-page"},{"title":"Integrate via SDK","href":"/features/integrate-via-sdk"},{"title":"3D Secure","href":"/features/3d-secure"},{"title":"Refunds","href":"/features/refunds"},{"title":"Subscriptions","href":"/features/subscriptions"},{"title":"Webhooks","href":"/features/webhooks"}]},{"group":"Testing","pages":[{"title":"Webhook Simulators","href":"/testing/webhook-simulators"}]},{"group":"Guides","pages":[{"title":"Testing Guide","href":"/guides/testing"},{"title":"Error Handling","href":"/guides/error-handling"},{"title":"Best Practices","href":"/guides/best-practices"},{"title":"Going Live","href":"/guides/going-live"}]},{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"API Endpoints","href":"/api-reference/endpoints"},{"title":"Error Codes","href":"/api-reference/errors"}]},{"group":"Payment Orchestrator API","pages":[{"group":"Customer","pages":[{"title":"Get customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /customers/{id}","href":"/api-reference/customer/get-customer-by-external-id"}]},{"group":"Customer V2","pages":[{"title":"List customers with pagination and filtering (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/customers","href":"/api-reference/customer-v2/list-customers-with-pagination-and-filtering-v2"},{"title":"Create a new customer (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/customers","href":"/api-reference/customer-v2/create-a-new-customer-v2"},{"title":"Get customer by ID (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/customers/{id}","href":"/api-reference/customer-v2/get-customer-by-id-v2"},{"title":"Update customer (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json put /v2/customers/{id}","href":"/api-reference/customer-v2/update-customer-v2"},{"title":"Delete customer (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v2/customers/{id}","href":"/api-reference/customer-v2/delete-customer-v2"}]},{"group":"Checkout","pages":[{"title":"Pay with card, spei, or cie cash net","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /checkout/pay","href":"/api-reference/checkout/pay-with-card-spei-or-cie-cash-net"},{"title":"Pay with transfer batch","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /checkout/pay-batch","href":"/api-reference/checkout/pay-with-transfer-batch"}]},{"group":"Payment Order","pages":[{"title":"List all payment orders","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/payment-orders","href":"/api-reference/payment-order/list-all-payment-orders"},{"title":"Create a payment order (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders","href":"/api-reference/payment-order/create-a-payment-order-v2"},{"title":"Get payment order by ID or external ID","description":"Retrieves a specific payment order by its unique ID or external ID. Returns the payment order with associated payments and payment events.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/payment-orders/{id}","href":"/api-reference/payment-order/get-payment-order-by-id-or-external-id"},{"title":"Soft delete a payment order","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v2/payment-orders/{id}","href":"/api-reference/payment-order/soft-delete-a-payment-order"},{"title":"Update a pending payment order","description":"Updates an existing payment order, identified by its unique ID or external ID. Only allowed while the order is in PENDING status; otherwise a 422 is returned. All body fields are optional, but at least one must be provided. Provided fields overwrite the stored values; omitted fields are left unchanged.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v2/payment-orders/{id}","href":"/api-reference/payment-order/update-a-pending-payment-order"},{"title":"Charge a pending payment order","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/charge","href":"/api-reference/payment-order/charge-a-pending-payment-order"},{"title":"Refund a Payment of a payment order (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/refund","href":"/api-reference/payment-order/refund-a-payment-of-a-payment-order-v2"},{"title":"Initiate 3DS payer authentication","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/payer-authentication","href":"/api-reference/payment-order/initiate-3ds-payer-authentication"},{"title":"Validate 3DS payer authentication","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/payer-authentication/validate","href":"/api-reference/payment-order/validate-3ds-payer-authentication"}]},{"group":"Payment Method","pages":[{"title":"Create a payment method","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /payment-methods","href":"/api-reference/payment-method/create-a-payment-method"},{"title":"Get a payment method by ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /payment-methods/{id}","href":"/api-reference/payment-method/get-a-payment-method-by-id"},{"title":"Update a payment method","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json put /payment-methods/{id}","href":"/api-reference/payment-method/update-a-payment-method"},{"title":"Delete a payment method","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /payment-methods/{id}","href":"/api-reference/payment-method/delete-a-payment-method"},{"title":"List payment methods for a customer","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/customers/{customerId}/payment-methods","href":"/api-reference/payment-method/list-payment-methods-for-a-customer"}]},{"group":"Subscription Plan","pages":[{"title":"List subscription plans","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/plans","href":"/api-reference/subscription-plan/list-subscription-plans"},{"title":"Create a subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/plans","href":"/api-reference/subscription-plan/create-a-subscription-plan"},{"title":"Get a subscription plan by ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/plans/{id}","href":"/api-reference/subscription-plan/get-a-subscription-plan-by-id"},{"title":"Archive a subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v1/plans/{id}","href":"/api-reference/subscription-plan/archive-a-subscription-plan"},{"title":"Update a subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v1/plans/{id}","href":"/api-reference/subscription-plan/update-a-subscription-plan"}]},{"group":"Subscription","pages":[{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscriptions","href":"/api-reference/subscription/list-subscriptions"},{"title":"Create a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscriptions","href":"/api-reference/subscription/create-a-subscription"},{"title":"Get a subscription by ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscriptions/{id}","href":"/api-reference/subscription/get-a-subscription-by-id"},{"title":"Update a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v1/subscriptions/{id}","href":"/api-reference/subscription/update-a-subscription"},{"title":"Change subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v1/subscriptions/{id}/plan","href":"/api-reference/subscription/change-subscription-plan"},{"title":"Cancel a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscriptions/{id}/cancel","href":"/api-reference/subscription/cancel-a-subscription"}]},{"group":"Subscription Invoice","pages":[{"title":"List invoices for a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscriptions/{id}/invoices","href":"/api-reference/subscription-invoice/list-invoices-for-a-subscription"},{"title":"Get an invoice by ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscription-invoices/{id}","href":"/api-reference/subscription-invoice/get-an-invoice-by-id"},{"title":"Process payment for an invoice","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscription-invoices/{id}/pay","href":"/api-reference/subscription-invoice/process-payment-for-an-invoice"},{"title":"Void an invoice","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscription-invoices/{id}/void","href":"/api-reference/subscription-invoice/void-an-invoice"}]}]},{"group":"Link Product API","pages":[{"group":"Payment Links","pages":[{"title":"Create payment link","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /payment-links","href":"/api-reference/payment-links/create-payment-link"},{"title":"List payment links","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /payment-links/list","href":"/api-reference/payment-links/list-payment-links"},{"title":"Get payment link","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /payment-links/{id}","href":"/api-reference/payment-links/get-payment-link"},{"title":"Update payment link","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json put /payment-links/{id}","href":"/api-reference/payment-links/update-payment-link"}]},{"group":"Products","pages":[{"title":"Create product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /products","href":"/api-reference/products/create-product"},{"title":"Get product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /products/{id}","href":"/api-reference/products/get-product"},{"title":"Update product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json put /products/{id}","href":"/api-reference/products/update-product"},{"title":"Delete product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json delete /products/{id}","href":"/api-reference/products/delete-product"},{"title":"List products","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /products/list","href":"/api-reference/products/list-products"},{"title":"Bulk import products","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /products/bulk-import","href":"/api-reference/products/bulk-import-products"}]},{"group":"Invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Get invoice","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /invoices/{id}","href":"/api-reference/invoices/get-invoice"},{"title":"Refund invoice","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /invoices/{id}/refund","href":"/api-reference/invoices/refund-invoice"}]}]}]},"basePath":"","title":"Soft delete a payment order - Cheqpay","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}