Cancel a payment by paymentId or paymentRequestId.
POST /v1/payments/cancelCancels a payment when results are delayed or the merchant decides not to accept the order. Upon success, the full amount is refunded. At least one of paymentId or paymentRequestId must be provided — paymentId takes priority if both are given.
A payment cannot be cancelled after the merchant has initiated a capture, void or refund on it.
All monetary values are expressed in the smallest currency unit (euro cents): 150 EUR is sent as 15000.
Request Parameters
string
Unique ID assigned by the wallet to identify the payment.Max length: 64 characters
string
Unique ID assigned by the merchant to identify the payment request.Max length: 64 characters
Response Parameters
object
required
Standard result object with resultCode, resultStatus, resultMessage
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Rebell Developer Center","colors":{"primary":"#277FA1","light":"#73C4F8","dark":"#254759"},"logo":{"light":"https://mintcdn.com/nicolaolivetto/UuWkOedIcEtVQOQw/logo/light.svg?fit=max\u0026auto=format\u0026n=UuWkOedIcEtVQOQw\u0026q=85\u0026s=6aa72af08f0be4fe69a38450db4b24ca","dark":"https://mintcdn.com/nicolaolivetto/UuWkOedIcEtVQOQw/logo/dark.svg?fit=max\u0026auto=format\u0026n=UuWkOedIcEtVQOQw\u0026q=85\u0026s=9058c64a3c722344540951ab33e76a32"},"favicon":"https://mintcdn.com/nicolaolivetto/CHFlEeHb8DJSQdtL/favicon.png?fit=max\u0026auto=format\u0026n=CHFlEeHb8DJSQdtL\u0026q=85\u0026s=66c5e2af49d36549f2a6a6062597174a","navbar":{"links":[{"href":"mailto:nicola.olivetto@rebellgroup.com","label":"Support"}],"primary":{"type":"button","label":"Home","href":"https://rebellgroup.com/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/rebell-ag"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nicolaolivetto","hasAudioNarration":false,"actualSubdomain":"nicolaolivetto","customDomains":["docs.rebellapp.com"],"gitSource":{"type":"github","owner":"luxifel","repo":"docs","deployBranch":"master","isPrivate":false,"contentDirectory":"","mountPath":"","label":""},"entitlements":{},"buildId":"6aea02e3b0f3e6b97b8a405e","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"JSAPI","count":187},{"language":"default","tag":"Device","count":72},{"language":"default","tag":"OpenAPIs","count":35},{"language":"default","tag":"UI","count":32},{"language":"default","tag":"OpenAPIs for Merchants","count":26},{"language":"default","tag":"Payments","count":24},{"language":"default","tag":"Bluetooth","count":22},{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"Open Capabilities","count":17},{"language":"default","tag":"Network","count":14}]},"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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":"openapis/v1/payments/cancel","slug":"/openapis/v1/payments/cancel","pageMetadata":{"title":"Cancel","description":"Cancel a payment by paymentId or paymentRequestId.","href":"/openapis/v1/payments/cancel"},"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: \"Cancel a payment by paymentId or paymentRequestId.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /v1/payments/cancel`})}),`\n`,_jsxs(_components.p,{children:[`Cancels a payment when results are delayed or the merchant decides not to accept the order. Upon success, the full amount is refunded. At least one of `,_jsx(_components.code,{children:`paymentId`}),` or `,_jsx(_components.code,{children:`paymentRequestId`}),` must be provided — `,_jsx(_components.code,{children:`paymentId`}),` takes priority if both are given.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`A payment cannot be cancelled after the merchant has initiated a capture, void or refund on it.`})}),`\n`,_jsxs(_components.p,{children:[`All monetary values are expressed in the smallest currency unit (euro cents): 150 EUR is sent as `,_jsx(_components.code,{children:`15000`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsxs(ParamField,{body:`paymentId`,type:`string`,id:`param-payment-id`,children:[_jsx(_components.p,{children:`Unique ID assigned by the wallet to identify the payment.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Max length`}),`: 64 characters`]})]}),`\n`,_jsxs(ParamField,{body:`paymentRequestId`,type:`string`,id:`param-payment-request-id`,children:[_jsx(_components.p,{children:`Unique ID assigned by the merchant to identify the payment request.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Max length`}),`: 64 characters`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-parameters`,children:`Response Parameters`}),`\n`,_jsx(ResponseField,{name:`result`,type:`object`,required:true,id:`param-result`,children:_jsxs(_components.p,{children:[`Standard result object with `,_jsx(_components.code,{children:`resultCode`}),`, `,_jsx(_components.code,{children:`resultStatus`}),`, `,_jsx(_components.code,{children:`resultMessage`})]})}),`\n`,_jsxs(ResponseField,{name:`paymentId`,type:`string`,id:`param-payment-id-1`,children:[_jsx(_components.p,{children:`Wallet-assigned payment identifier.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Max length`}),`: 64 characters`]})]}),`\n`,_jsxs(ResponseField,{name:`paymentRequestId`,type:`string`,id:`param-payment-request-id-1`,children:[_jsx(_components.p,{children:`Merchant-assigned request identifier.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Max length`}),`: 64 characters`]})]}),`\n`,_jsx(ResponseField,{name:`cancelTime`,type:`string`,id:`param-cancel-time`,children:_jsx(_components.p,{children:`Actual time when the cancellation completed, in ISO 8601 format.`})}),`\n`,_jsx(Heading,{level:`2`,id:`result-handling`,children:`Result Handling`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`resultStatus`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`S`})}),_jsxs(_components.td,{children:[`Cancellation succeeded (`,_jsx(_components.code,{children:`resultCode`}),` = `,_jsx(_components.code,{children:`SUCCESS`}),`); `,_jsx(_components.code,{children:`cancelTime`}),` is returned`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`U`})}),_jsxs(_components.td,{children:[`Cancellation result unknown (`,_jsx(_components.code,{children:`UNKNOWN_EXCEPTION`}),`). Retry the cancel or check the payment with `,_jsx(_components.a,{href:`/openapis/v1/payments/inquiryPayment`,children:`inquiryPayment`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:`Cancellation failed; see the result code below`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`result-codes`,children:`Result Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`resultStatus`}),_jsx(_components.th,{children:`resultCode`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`S`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SUCCESS`})}),_jsx(_components.td,{children:`Cancellation successful`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PARAM_ILLEGAL`})}),_jsx(_components.td,{children:`Missing or invalid required parameter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PROCESS_FAIL`})}),_jsx(_components.td,{children:`General processing failure`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ORDER_STATUS_INVALID`})}),_jsx(_components.td,{children:`Order status does not allow cancellation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ORDER_HAS_BEEN_CAPTURED`})}),_jsx(_components.td,{children:`Order has already been captured`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ORDER_HAS_BEEN_REFUNDED`})}),_jsx(_components.td,{children:`Order has already been refunded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ORDER_HAS_BEEN_VOIDED`})}),_jsx(_components.td,{children:`Order has already been voided`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CANCEL_NOT_ALLOWED`})}),_jsx(_components.td,{children:`Cancellation not permitted for this order`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CANCEL_WINDOW_EXCEED`})}),_jsx(_components.td,{children:`Cancellation period has expired`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ORDER_NOT_EXIST`})}),_jsx(_components.td,{children:`Order does not exist`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CLIENT_INVALID`})}),_jsx(_components.td,{children:`Invalid client credentials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_SIGNATURE`})}),_jsx(_components.td,{children:`Signature invalid`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`METHOD_NOT_SUPPORTED`})}),_jsx(_components.td,{children:`HTTP method not supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MEDIA_TYPE_NOT_ACCEPTABLE`})}),_jsx(_components.td,{children:`Unsupported media type`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PARTNER_STATUS_ABNORMAL`})}),_jsx(_components.td,{children:`Partner account status is abnormal`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`F`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PARTNER_BALANCE_NOT_ENOUGH`})}),_jsx(_components.td,{children:`Insufficient partner balance`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`U`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UNKNOWN_EXCEPTION`})}),_jsx(_components.td,{children:`Unknown error occurred`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`sample`,children:`Sample`}),`\n`,_jsx(Heading,{level:`3`,id:`request`,children:`Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023120611121280010016600090000xxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentRequestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"202331231313123123\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If both are provided, `,_jsx(_components.code,{children:`paymentId`}),` is used and `,_jsx(_components.code,{children:`paymentRequestId`}),` is ignored.`]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resultCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SUCCESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resultStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"S\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resultMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Success.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023120611121280010016600090000xxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentRequestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"202331231313123123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancelTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-06-08T12:12:12+01:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cancel","description":"Cancel a payment by paymentId or paymentRequestId.","href":"/openapis/v1/payments/cancel"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request Parameters","slug":"request-parameters","depth":2,"children":[]},{"title":"Response Parameters","slug":"response-parameters","depth":2,"children":[]},{"title":"Result Handling","slug":"result-handling","depth":2,"children":[]},{"title":"Result Codes","slug":"result-codes","depth":2,"children":[]},{"title":"Sample","slug":"sample","depth":2,"children":[{"title":"Request","slug":"request","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"nicolaolivetto","siteName":"Rebell Developer Center","title":"Cancel - Rebell Developer Center","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T15:29:54.174Z","originalFileLocation":"openapis/v1/payments/cancel.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=\"Cancel a payment by paymentId or paymentRequestId.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rebell Developer Center\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nicolaolivetto/-J_WxuypNLX6Z-cp/_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/nicolaolivetto/-J_WxuypNLX6Z-cp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nicolaolivetto/-J_WxuypNLX6Z-cp/_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/nicolaolivetto/-J_WxuypNLX6Z-cp/_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/nicolaolivetto/-J_WxuypNLX6Z-cp/_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/nicolaolivetto/-J_WxuypNLX6Z-cp/_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/nicolaolivetto/-J_WxuypNLX6Z-cp/_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/nicolaolivetto/-J_WxuypNLX6Z-cp/_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/nicolaolivetto/-J_WxuypNLX6Z-cp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel - Rebell Developer Center\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cancel a payment by paymentId or paymentRequestId.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rebell Developer Center\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rebellapp.com/openapis/v1/payments/cancel\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nicolaolivetto.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Cancel\u0026amp;description=Cancel+a+payment+by+paymentId+or+paymentRequestId.\u0026amp;theme=852c24d387f1497e15e451d4\u0026amp;signature=7d52dba993ca88eb84d0aeb157b17b66164b6129051505b340671cdb30f82e1a\">\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=\"Cancel - Rebell Developer Center\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cancel a payment by paymentId or paymentRequestId.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nicolaolivetto.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Cancel\u0026amp;description=Cancel+a+payment+by+paymentId+or+paymentRequestId.\u0026amp;theme=852c24d387f1497e15e451d4\u0026amp;signature=7d52dba993ca88eb84d0aeb157b17b66164b6129051505b340671cdb30f82e1a\">\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/nicolaolivetto/-J_WxuypNLX6Z-cp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rebell Developer Center\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#277FA1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rebellapp.com/openapis/v1/payments/cancel\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/openapis/v1/payments/cancel.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.rebellapp.com/#organization\",\"name\":\"Rebell Developer Center\",\"url\":\"https://docs.rebellapp.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nicolaolivetto/UuWkOedIcEtVQOQw/logo/light.svg?fit=max\u0026auto=format\u0026n=UuWkOedIcEtVQOQw\u0026q=85\u0026s=6aa72af08f0be4fe69a38450db4b24ca\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rebellapp.com#website\",\"name\":\"Rebell Developer Center\",\"url\":\"https://docs.rebellapp.com\",\"publisher\":{\"@id\":\"https://docs.rebellapp.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel#webpage\",\"url\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel\",\"name\":\"Cancel\",\"description\":\"Cancel a payment by paymentId or paymentRequestId.\",\"dateModified\":\"2026-11-03T15:29:54.174Z\",\"isPartOf\":{\"@id\":\"https://docs.rebellapp.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OpenAPIs for Merchants\",\"item\":\"https://docs.rebellapp.com/openapis/v1/data-dictionary\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payments\",\"item\":\"https://docs.rebellapp.com/openapis/v1/payments/retailPay\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cancel\",\"item\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel#article\",\"headline\":\"Cancel\",\"name\":\"Cancel\",\"description\":\"Cancel a payment by paymentId or paymentRequestId.\",\"url\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rebellapp.com/openapis/v1/payments/cancel#webpage\"},\"dateModified\":\"2026-11-03T15:29:54.174Z\",\"publisher\":{\"@id\":\"https://docs.rebellapp.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rebellapp.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rebell Developer Center\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Rebell Developer Center\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/openapis/v1/payments/cancel.md","siteName":"Rebell Developer Center","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"JSAPI","pages":[{"title":"JSAPI","href":"/jsapi/overview"}]},{"tab":"OpenAPIs","groups":[{"group":"OpenAPIs","pages":[{"title":"OpenAPI Overview","href":"/openapis/overview"},{"title":"Idempotency","href":"/openapis/idempotency"},{"title":"Message Encoding","href":"/openapis/message-encoding"}]},{"group":"Message Transmission Security","pages":[{"title":"Message Transmission Security","href":"/openapis/message-transmission-security/overview"},{"title":"Call an API via Adding a Signature","href":"/openapis/message-transmission-security/call-api"}]},{"group":"OpenAPIs for Merchants","pages":[{"title":"Data Dictionary (v1)","href":"/openapis/v1/data-dictionary"},{"group":"Authorizations","pages":[{"title":"OAuth Token","href":"/openapis/v1/authorizations/oauthToken"},{"title":"Prepare","href":"/openapis/v1/authorizations/prepare"},{"title":"Apply Token","href":"/openapis/v1/authorizations/applyToken"},{"title":"Cancel Token","href":"/openapis/v1/authorizations/cancelToken"},{"title":"Contract Status Notify","href":"/openapis/v1/authorizations/contractStatusNotify"}]},{"group":"Payments","pages":[{"title":"Retail Pay","href":"/openapis/v1/payments/retailPay"},{"title":"Link Pay Create","href":"/openapis/v1/payments/linkPayCreate"},{"title":"Create QR Order","description":"Create a merchant-presented dynamic QR order for C Scan B payment.","href":"/openapis/v1/payments/createQrOrder"},{"title":"Cancel","href":"/openapis/v1/payments/cancel"},{"title":"Notify Refund","description":"Webhook endpoint to receive refund result notifications from the wallet.","href":"/openapis/v1/payments/notifyRefund"},{"title":"Notify Cashier URL","href":"/openapis/v1/payments/notifyCashierUrl"},{"title":"Inquiry Void","href":"/openapis/v1/payments/inquiryVoid"},{"title":"Void","href":"/openapis/v1/payments/void"},{"title":"Inquiry Capture","href":"/openapis/v1/payments/inquiryCapture"},{"title":"Capture","href":"/openapis/v1/payments/capture"},{"title":"Pay","href":"/openapis/v1/payments/pay"},{"title":"Inquiry Payment","href":"/openapis/v1/payments/inquiryPayment"},{"title":"Notify Payment","href":"/openapis/v1/payments/notifyPayment"},{"title":"Refund Apply","href":"/openapis/v1/payments/refundApply"},{"title":"Inquiry Refund","href":"/openapis/v1/payments/inquiryRefund"}]},{"group":"Users","pages":[{"title":"Inquiry User Info","href":"/openapis/v1/customers/inquiryUserInfo"},{"title":"Inquiry User Info By Access Token","href":"/openapis/v1/customers/inquiryUserInfoByAccessToken"}]},{"group":"Messages","pages":[{"title":"Send Push","href":"/openapis/v1/messages/sendPush"},{"title":"Send Email","href":"/openapis/v1/messages/sendEmail"},{"title":"Send SMS","href":"/openapis/v1/messages/sendSms"}]}]},{"group":"Reference","pages":[{"title":"Error Codes","href":"/openapis/error-codes"}]}]},{"tab":"Playground","pages":[{"title":"Playground","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Cancel - Rebell Developer Center","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}