The /CancelTransaction endpoint is a POST request that allows you to
cancel a transaction currently in progress. This method is referred to
as “Cancel” in the Pre-Authorization flow and “Void” in the
Pre-Selection flow.
请求体
application/json
The request to cancel a transaction.
The request body for canceling a transaction. This is used to cancel a pre-authorized transaction or void a pre-selected one, providing details such as the transaction ID, the reason for cancellation, and the amount.
The amount to be canceled in major currency units (e.g., dollars or euros).
响应
200 - application/json
object | null
Success. The transaction has been successfully canceled.
The response object for a canceled transaction, confirming the outcome of the cancellation and providing key details such as transaction identifiers, timestamps, and payment information.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nayax Developer Portal","colors":{"primary":"#6352E0","light":"#FCC705","dark":"#6352E0"},"logo":{"light":"https://mintcdn.com/nayax-44d6e37b/ag7p0QchXLJNEuNE/images/home/logo_light.svg?fit=max\u0026auto=format\u0026n=ag7p0QchXLJNEuNE\u0026q=85\u0026s=b71aa1a61014633be60cee745d3e978c","dark":"https://mintcdn.com/nayax-44d6e37b/ag7p0QchXLJNEuNE/images/home/logo_dark.svg?fit=max\u0026auto=format\u0026n=ag7p0QchXLJNEuNE\u0026q=85\u0026s=26e496c2ba485bfe41389f473135944e"},"favicon":"https://mintcdn.com/nayax-44d6e37b/th_G6l3xpaCQbV-V/images/favicon.ico?fit=max\u0026auto=format\u0026n=th_G6l3xpaCQbV-V\u0026q=85\u0026s=96a64c93cc563f757e95a29a7ad6637d","api":{"playground":{"display":"none"}},"footer":{"links":[{"header":"Legal \u0026 Policies","items":[{"label":"Privacy Policy","href":"https://www.nayax.com/legal/nayax-general-privacy-policy"},{"label":"Cookie Policy","href":"https://www.nayax.com/cookie-policy"},{"label":"Terms of Use","href":"/docs/get-started/terms-of-service"},{"label":"Code of Ethics","href":"https://www.nayax.com/code-of-ethics"},{"label":"Whistleblowing","href":"https://www.nayax.com/whistleblowing-reporting-form"}]}]},"integrations":{"posthog":{"apiKey":"phc_trwjDEqjYgYGbwbd3aiMU6r4R5qcHqXt7pNzJCoVDtgg","sessionRecording":true}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh","href":"docs/zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nayax-44d6e37b","hasAudioNarration":false,"actualSubdomain":"nayax-44d6e37b","customDomains":["devzone.nayax.com"],"gitSource":{"type":"github","owner":"writechoiceorg","repo":"nayax-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aea16c5eceed668c0276682","collectionId":"171145e5-03e4-4182-9d14-4cc6b965d3b5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aea16c5eceed668c0276682"},"feedback":{"thumbs":true,"agentFeedback":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aea16c5eceed668c0276682","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"en","tag":"Terminal SDKs","count":220},{"language":"zh","tag":"Terminal SDKs","count":220},{"language":"en","tag":"API Reference","count":185},{"language":"zh","tag":"API Reference","count":185},{"language":"en","tag":"Platform Management","count":181},{"language":"zh","tag":"Platform Management","count":181},{"language":"en","tag":"Lynx API","count":173},{"language":"zh","tag":"Lynx API","count":173},{"language":"en","tag":"Endpoints","count":166},{"language":"zh","tag":"Endpoints","count":166},{"language":"en","tag":"Cortina","count":78},{"language":"zh","tag":"Cortina","count":78},{"language":"en","tag":"TweezerComm","count":69},{"language":"en","tag":"TweezerComm Guides","count":69},{"language":"zh","tag":"TweezerComm","count":69},{"language":"zh","tag":"TweezerComm Guides","count":69},{"language":"en","tag":"Marshall","count":44},{"language":"zh","tag":"Marshall","count":44},{"language":"en","tag":"Cortina Guides","count":42},{"language":"zh","tag":"Cortina Guides","count":42},{"language":"default","tag":"Platform Management","count":4},{"language":"default","tag":"Lynx API","count":4},{"language":"default","tag":"Lynx API Guides","count":4},{"language":"default","tag":"Operator","count":1},{"language":"default","tag":"Cards","count":1},{"language":"default","tag":"Machines","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":false,"type":"link"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"vite-origin","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":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".card_content{font-feature-settings:\"clig\" off,\r\n \"liga\" off;font-family:Inter;font-style:normal;line-height:18px}.card_content span{position:absolute;top:10px;right:-5px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff!important;text-align:center;font-size:8px;font-weight:700;text-transform:uppercase;width:40px;height:16px;flex-shrink:0;border-radius:10px;margin:0 15px 0 0}.card_content span.get{background:#0e9b71;text-shadow:1px 1px 0 #0d8d67,\r\n 0 1px 0 #0d8d67,\r\n 1px 0 0 #0d8d67}.card_content span.post{background:#0171c2;text-shadow:1px 1px 0 #0168b3,\r\n 0 1px 0 #0168b3,\r\n 1px 0 0 #0168b3}.card_content span.patch{background:#df7d03;text-shadow:1px 1px 0 #d07503,\r\n 0 1px 0 #d07503,\r\n 1px 0 0 #d07503}.card_content span.put{background:#674ead;text-shadow:1px 1px 0 #604aa2,\r\n 0 1px 0 #604aa2,\r\n 1px 0 0 #604aa2}footer .dark\\:hidden,footer .hidden.dark\\:block{display:none!important}footer .block.dark\\:hidden,footer .hidden.dark\\:block.active{display:block!important}footer .max-w-7xl>.flex{flex-direction:row!important;justify-content:space-between!important;align-items:center!important;flex-wrap:nowrap!important;width:100%!important}footer div:has(>a.md\\:truncate){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:1.5rem!important;margin-left:auto!important}footer a.md\\:truncate{max-width:none!important;white-space:nowrap!important;flex-shrink:0!important}footer h2{display:none!important}.nav-tabs{width:100%}.nav-tabs .nav-tabs-item:nth-last-child(3 of.nav-tabs-item){margin-left:auto}pre.bash{background-color:black;color:white;font-size:medium;font-family:Consolas,\r\n Monaco,\r\n Lucida Console,\r\n Liberation Mono,\r\n DejaVu Sans Mono,\r\n Bitstream Vera Sans Mono,\r\n Courier New,\r\n monospace;width:100%;display:inline-block}table{display:block;overflow-x:auto;white-space:normal}.nav-tabs>a:first-child::after{content:\"|\";position:absolute;right:-0.875rem;top:50%;transform:translateY(-50%);color:#d1d5db;font-weight:300;pointer-events:none;user-select:none}.dark .nav-tabs>a:first-child::after{color:#4b5563}[data-component-part=\"search-ask-ai-button\"]{display:none!important}#pagination{display:grid!important;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch;margin-top:2rem}@media (max-width: 640px){#pagination{grid-template-columns:1fr}}#pagination>a{position:relative;display:flex;flex-direction:column;justify-content:center;gap:2px;width:100%;box-sizing:border-box;margin:0!important;padding:14px 16px;border-width:1px;border-style:solid;border-color:var(--pagination-border);border-radius:12px;background-color:rgb(var(--gray-50));text-decoration:none;transition:border-color 150ms ease;--pagination-accent: rgb(var(--primary-dark));--pagination-border: rgb(var(--gray-300))}.dark #pagination>a{background-color:rgb(var(--gray-900));--pagination-accent: rgb(var(--primary-light));--pagination-border: rgb(var(--default-border-color))}#pagination>a:hover{border-color:var(--pagination-accent)}#pagination>a:focus-visible{outline:2px solid var(--pagination-accent);outline-offset:2px}#pagination>a:not(.ml-auto){align-items:flex-start;text-align:left;padding-left:52px}#pagination>a.ml-auto{align-items:flex-end;text-align:right;padding-right:52px}#pagination>a::before{font-size:12px;font-weight:600;line-height:1.2;color:rgb(var(--gray-500))}.dark #pagination>a::before{color:rgb(var(--gray-400))}#pagination>a:not(.ml-auto)::before{content:\"Previous\"}#pagination>a.ml-auto::before{content:\"Next\"}#pagination>a span{font-size:15px;font-weight:600;line-height:1.3;color:#374151!important;margin:0!important}.dark #pagination>a span{color:#d1d5db!important}#pagination a svg{display:none}#pagination>a:not(.ml-auto){--arrow: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 5l-7 7 7 7'/%3E%3C/svg%3E\")}#pagination>a.ml-auto{--arrow: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E\")}#pagination>a::after{content:\"\";position:absolute;top:50%;display:block;width:20px;height:20px;background:currentColor;-webkit-mask:var(--arrow) center / 20px 20px no-repeat;mask:var(--arrow) center / 20px 20px no-repeat;transform:translateY(-50%);color:#374151;transition:background-color 150ms ease}.dark #pagination>a::after{color:#d1d5db}#pagination>a:not(.ml-auto)::after{left:16px}#pagination>a.ml-auto::after{right:16px}#pagination>a:hover::after{color:var(--pagination-accent)}@media (prefers-reduced-motion: no-preference){#pagination>a::after{transition:background-color 150ms ease, transform 150ms ease}#pagination>a:not(.ml-auto):hover::after{transform:translate(-3px, -50%)}#pagination>a.ml-auto:hover::after{transform:translate(3px, -50%)}}"}],"page":{"pagePath":"reference/zh/spark/transactions/canceltransaction","slug":"/reference/zh/spark/transactions/canceltransaction","pageMetadata":{"title":"CancelTransaction","description":null,"deprecated":null,"version":null,"hideFooterPagination":true,"openapi":"/openapi/zh/spark.yaml post /CancelTransaction","href":"/reference/zh/spark/transactions/canceltransaction","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components};return _jsx(_components.p,{children:`The /CancelTransaction endpoint is a POST request that allows you to\ncancel a transaction currently in progress. This method is referred to\nas “Cancel” in the Pre-Authorization flow and “Void” in the\nPre-Selection flow.`})}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":"CancelTransaction","description":null,"deprecated":null,"version":null,"hideFooterPagination":true,"openapi":"/openapi/zh/spark.yaml post /CancelTransaction","href":"/reference/zh/spark/transactions/canceltransaction","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/nayax-44d6e37b/c0d908800bae3e5a/wcBadge.js"],"openApiReferenceData":{"operation":{"summary":"CancelTransaction","tags":["Transactions"],"x-mint":{"content":"The /CancelTransaction endpoint is a POST request that allows you to\ncancel a transaction currently in progress. This method is referred to\nas \"Cancel\" in the Pre-Authorization flow and \"Void\" in the\nPre-Selection flow.\n","metadata":{"hideFooterPagination":true}},"requestBody":"9d83a9df-b4f7-43e4-ba25-1c0d5148b040","responses":{"200":"05f8dea8-d25f-45af-a329-3af5e74e56f8"},"method":"post","type":"path","servers":["c095f17e-3d4b-47a3-a6df-9cb8a41bd4e1"],"security":[],"path":"/CancelTransaction","baseUrlOptions":["https://nayax-spark-dmz.nayax.com/api"],"title":"CancelTransaction","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"The request to cancel a transaction.","required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The request body for canceling a transaction. This is used to cancel a pre-authorized transaction or void a pre-selected one, providing details such as the transaction ID, the reason for cancellation, and the amount.","properties":{"NayaxTransactionId":{"type":"integer","format":"int64","nullable":false,"description":"The unique transaction ID assigned by Nayax, provided in the `/TransactionCallback`.","uniqueKey":"oneOf.0.NayaxTransactionId","typeLabel":"integer\u003cint64>"},"SparkTransactionId":{"type":"string","nullable":false,"description":"The unique session ID from the initial `/StartAuthentication` request.","uniqueKey":"oneOf.0.SparkTransactionId","typeLabel":"string"},"SiteId":{"type":"integer","format":"int16","nullable":false,"description":"The ID of the site where the transaction occurred.","uniqueKey":"oneOf.0.SiteId","typeLabel":"integer\u003cint16>"},"MachineAuTime":{"type":"string","nullable":false,"description":"The timestamp of the cancellation from the device in its local timezone. The format is `yyyyMMddHHmmssSSS`.","uniqueKey":"oneOf.0.MachineAuTime","typeLabel":"string"},"TerminalId":{"type":"string","nullable":false,"description":"The serial or external ID of the terminal used.","maxLength":255,"uniqueKey":"oneOf.0.TerminalId","typeLabel":"string"},"TerminalIdType":{"type":"integer","format":"int32","nullable":false,"description":"Defines the type of ID used for the `TerminalId` parameter. Use `1` for the HW Serial or `2` for the Nayax Machine ID.","uniqueKey":"oneOf.0.TerminalIdType","typeLabel":"integer\u003cint32>"},"CancellationType":{"type":"integer","format":"int32","nullable":false,"description":"Indicates which cancellation flow is being implemented. Use `1` for a Pre-Authorization Cancel or `2` for a Pre-Selection Void.","uniqueKey":"oneOf.0.CancellationType","typeLabel":"integer\u003cint32>"},"ReasonCode":{"type":"integer","format":"int16","nullable":false,"description":"The internal code explaining the reason for the cancellation. See [Cancel Type Codes](/docs/cortina/cancel-types).","uniqueKey":"oneOf.0.ReasonCode","typeLabel":"integer\u003cint16>"},"ReasonText":{"oneOf":[{"type":"string","description":"A human-readable explanation of the cancellation reason. This parameter is optional.","uniqueKey":"oneOf.0.ReasonText.oneOf.0","typeLabel":"string"},{"type":"null","description":"A human-readable explanation of the cancellation reason. This parameter is optional.","uniqueKey":"oneOf.0.ReasonText.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.ReasonText","typeLabel":"string | null"},"CancelAmount":{"type":"number","format":"double","nullable":false,"description":"The amount to be canceled in major currency units (e.g., dollars or euros).","uniqueKey":"oneOf.0.CancelAmount","typeLabel":"number\u003cdouble>"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"null","description":"The request body for canceling a transaction. This is used to cancel a pre-authorized transaction or void a pre-selected one, providing details such as the transaction ID, the reason for cancellation, and the amount.","properties":{"NayaxTransactionId":{"type":"integer","format":"int64","nullable":false,"description":"The unique transaction ID assigned by Nayax, provided in the `/TransactionCallback`."},"SparkTransactionId":{"type":"string","nullable":false,"description":"The unique session ID from the initial `/StartAuthentication` request."},"SiteId":{"type":"integer","format":"int16","nullable":false,"description":"The ID of the site where the transaction occurred."},"MachineAuTime":{"type":"string","nullable":false,"description":"The timestamp of the cancellation from the device in its local timezone. The format is `yyyyMMddHHmmssSSS`."},"TerminalId":{"type":"string","nullable":false,"description":"The serial or external ID of the terminal used.","maxLength":255},"TerminalIdType":{"type":"integer","format":"int32","nullable":false,"description":"Defines the type of ID used for the `TerminalId` parameter. Use `1` for the HW Serial or `2` for the Nayax Machine ID."},"CancellationType":{"type":"integer","format":"int32","nullable":false,"description":"Indicates which cancellation flow is being implemented. Use `1` for a Pre-Authorization Cancel or `2` for a Pre-Selection Void."},"ReasonCode":{"type":"integer","format":"int16","nullable":false,"description":"The internal code explaining the reason for the cancellation. See [Cancel Type Codes](/docs/cortina/cancel-types)."},"ReasonText":{"oneOf":[{"type":"string","description":"A human-readable explanation of the cancellation reason. This parameter is optional."},{"type":"null","description":"A human-readable explanation of the cancellation reason. This parameter is optional."}]},"CancelAmount":{"type":"number","format":"double","nullable":false,"description":"The amount to be canceled in major currency units (e.g., dollars or euros)."}},"uniqueKey":"oneOf.1","typeLabel":"null"}],"uniqueKey":"","typeLabel":"object | null"},"examples":{"Example":{"title":"Example","value":{"NayaxTransactionId":123,"SparkTransactionId":"\u003cstring>","SiteId":123,"MachineAuTime":"\u003cstring>","TerminalId":"\u003cstring>","TerminalIdType":123,"CancellationType":123,"ReasonCode":123,"ReasonText":"\u003cstring>","CancelAmount":123}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"05f8dea8-d25f-45af-a329-3af5e74e56f8":{"description":"Success. The transaction has been successfully canceled.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The response object for a canceled transaction, confirming the outcome of the cancellation and providing key details such as transaction identifiers, timestamps, and payment information.","properties":{"SparkTransactionId":{"oneOf":[{"type":"string","description":"The ID of the canceled session.","uniqueKey":"oneOf.0.SparkTransactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the canceled session.","uniqueKey":"oneOf.0.SparkTransactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.SparkTransactionId","typeLabel":"string | null"},"Status":{"type":"object","description":"An object containing the final verdict of the cancellation and a descriptive message.","properties":{"Verdict":{"type":"string","description":"The outcome of the cancellation. It will be `\"Approved\"` if successful or `\"Declined\"` if it failed.","uniqueKey":"oneOf.0.Status.Verdict","typeLabel":"string"},"ErrorDescription":{"type":"string","description":"Provides additional information if the verdict is `\"Declined\"`, or `\"No Errors\"` for a successful request.","uniqueKey":"oneOf.0.Status.ErrorDescription","typeLabel":"string"},"ErrorCode":{"type":"number","description":"A numeric code that specifies the type of error that occurred. This field is present only in error responses.","uniqueKey":"oneOf.0.Status.ErrorCode","typeLabel":"number"}},"uniqueKey":"oneOf.0.Status","typeLabel":"object"},"CardBrand":{"oneOf":[{"type":"string","description":"The brand of the card used for the transaction (e.g., `\"Visa\"`, `\"MasterCard\"`).","uniqueKey":"oneOf.0.CardBrand.oneOf.0","typeLabel":"string"},{"type":"null","description":"The brand of the card used for the transaction (e.g., `\"Visa\"`, `\"MasterCard\"`).","uniqueKey":"oneOf.0.CardBrand.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.CardBrand","typeLabel":"string | null"},"CardLast4Digits":{"oneOf":[{"type":"string","description":"The last four digits of the card used.","uniqueKey":"oneOf.0.CardLast4Digits.oneOf.0","typeLabel":"string"},{"type":"null","description":"The last four digits of the card used.","uniqueKey":"oneOf.0.CardLast4Digits.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.CardLast4Digits","typeLabel":"string | null"},"AuthCode":{"oneOf":[{"type":"string","description":"The authorization code for the cancellation.","uniqueKey":"oneOf.0.AuthCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The authorization code for the cancellation.","uniqueKey":"oneOf.0.AuthCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.AuthCode","typeLabel":"string | null"},"MachineAuTime":{"oneOf":[{"type":"string","description":"The timestamp of the cancellation from the device, in the format `yyyyMMddHHmmssSSS`.","uniqueKey":"oneOf.0.MachineAuTime.oneOf.0","typeLabel":"string"},{"type":"null","description":"The timestamp of the cancellation from the device, in the format `yyyyMMddHHmmssSSS`.","uniqueKey":"oneOf.0.MachineAuTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.MachineAuTime","typeLabel":"string | null"},"AuTime":{"oneOf":[{"type":"string","description":"The timestamp from the authorization server.","uniqueKey":"oneOf.0.AuTime.oneOf.0","typeLabel":"string"},{"type":"null","description":"The timestamp from the authorization server.","uniqueKey":"oneOf.0.AuTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.AuTime","typeLabel":"string | null"},"CancelTime":{"oneOf":[{"type":"string","description":"The server timestamp of the cancellation confirmation, in the format `yyyyMMddHHmmssSSS`.","uniqueKey":"oneOf.0.CancelTime.oneOf.0","typeLabel":"string"},{"type":"null","description":"The server timestamp of the cancellation confirmation, in the format `yyyyMMddHHmmssSSS`.","uniqueKey":"oneOf.0.CancelTime.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.CancelTime","typeLabel":"string | null"},"CurrencyCode":{"oneOf":[{"type":"string","description":"The ISO currency code (e.g., `\"EUR\"`).","uniqueKey":"oneOf.0.CurrencyCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ISO currency code (e.g., `\"EUR\"`).","uniqueKey":"oneOf.0.CurrencyCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.CurrencyCode","typeLabel":"string | null"},"CurrencyNumeric":{"oneOf":[{"type":"string","description":"The ISO numeric currency code (e.g., `\"978\"` for EUR).","uniqueKey":"oneOf.0.CurrencyNumeric.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ISO numeric currency code (e.g., `\"978\"` for EUR).","uniqueKey":"oneOf.0.CurrencyNumeric.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.CurrencyNumeric","typeLabel":"string | null"},"FiscalRrn":{"oneOf":[{"type":"string","description":"The fiscal reference number for the receipt or audit trail.","uniqueKey":"oneOf.0.FiscalRrn.oneOf.0","typeLabel":"string"},{"type":"null","description":"The fiscal reference number for the receipt or audit trail.","uniqueKey":"oneOf.0.FiscalRrn.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.FiscalRrn","typeLabel":"string | null"},"NayaxRRN":{"oneOf":[{"type":"string","description":"The Nayax reference number of the transaction.","uniqueKey":"oneOf.0.NayaxRRN.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Nayax reference number of the transaction.","uniqueKey":"oneOf.0.NayaxRRN.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.NayaxRRN","typeLabel":"string | null"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"null","description":"The response object for a canceled transaction, confirming the outcome of the cancellation and providing key details such as transaction identifiers, timestamps, and payment information.","properties":{"SparkTransactionId":{"oneOf":[{"type":"string","description":"The ID of the canceled session."},{"type":"null","description":"The ID of the canceled session."}]},"Status":{"type":"object","description":"An object containing the final verdict of the cancellation and a descriptive message.","properties":{"Verdict":{"type":"string","description":"The outcome of the cancellation. It will be `\"Approved\"` if successful or `\"Declined\"` if it failed."},"ErrorDescription":{"type":"string","description":"Provides additional information if the verdict is `\"Declined\"`, or `\"No Errors\"` for a successful request."},"ErrorCode":{"type":"number","description":"A numeric code that specifies the type of error that occurred. This field is present only in error responses."}}},"CardBrand":{"oneOf":[{"type":"string","description":"The brand of the card used for the transaction (e.g., `\"Visa\"`, `\"MasterCard\"`)."},{"type":"null","description":"The brand of the card used for the transaction (e.g., `\"Visa\"`, `\"MasterCard\"`)."}]},"CardLast4Digits":{"oneOf":[{"type":"string","description":"The last four digits of the card used."},{"type":"null","description":"The last four digits of the card used."}]},"AuthCode":{"oneOf":[{"type":"string","description":"The authorization code for the cancellation."},{"type":"null","description":"The authorization code for the cancellation."}]},"MachineAuTime":{"oneOf":[{"type":"string","description":"The timestamp of the cancellation from the device, in the format `yyyyMMddHHmmssSSS`."},{"type":"null","description":"The timestamp of the cancellation from the device, in the format `yyyyMMddHHmmssSSS`."}]},"AuTime":{"oneOf":[{"type":"string","description":"The timestamp from the authorization server."},{"type":"null","description":"The timestamp from the authorization server."}]},"CancelTime":{"oneOf":[{"type":"string","description":"The server timestamp of the cancellation confirmation, in the format `yyyyMMddHHmmssSSS`."},{"type":"null","description":"The server timestamp of the cancellation confirmation, in the format `yyyyMMddHHmmssSSS`."}]},"CurrencyCode":{"oneOf":[{"type":"string","description":"The ISO currency code (e.g., `\"EUR\"`)."},{"type":"null","description":"The ISO currency code (e.g., `\"EUR\"`)."}]},"CurrencyNumeric":{"oneOf":[{"type":"string","description":"The ISO numeric currency code (e.g., `\"978\"` for EUR)."},{"type":"null","description":"The ISO numeric currency code (e.g., `\"978\"` for EUR)."}]},"FiscalRrn":{"oneOf":[{"type":"string","description":"The fiscal reference number for the receipt or audit trail."},{"type":"null","description":"The fiscal reference number for the receipt or audit trail."}]},"NayaxRRN":{"oneOf":[{"type":"string","description":"The Nayax reference number of the transaction."},{"type":"null","description":"The Nayax reference number of the transaction."}]}},"uniqueKey":"oneOf.1","typeLabel":"null"}],"uniqueKey":"","typeLabel":"object | null"},"examples":{"Example":{"title":"Example","value":{"SparkTransactionId":"\u003cstring>","Status":{"Verdict":"\u003cstring>","ErrorDescription":"\u003cstring>","ErrorCode":123},"CardBrand":"\u003cstring>","CardLast4Digits":"\u003cstring>","AuthCode":"\u003cstring>","MachineAuTime":"\u003cstring>","AuTime":"\u003cstring>","CancelTime":"\u003cstring>","CurrencyCode":"\u003cstring>","CurrencyNumeric":"\u003cstring>","FiscalRrn":"\u003cstring>","NayaxRRN":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"c095f17e-3d4b-47a3-a6df-9cb8a41bd4e1":{"url":"https://nayax-spark-dmz.nayax.com/api","description":"The same host serves the integration and production environments."}}},"originalFileLocation":"openapi/zh/spark.yaml"},"subdomain":"nayax-44d6e37b","siteName":"Nayax Developer Portal","title":"CancelTransaction - Nayax Developer Portal","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/reference/spark/transactions/canceltransaction","matchLevel":1},"zh":{"href":"/reference/zh/spark/transactions/canceltransaction","matchLevel":0}}},"lastModified":"2026-11-03T17:16:36.638Z","originalFileLocation":"reference/zh/spark/transactions/canceltransaction.mdx","locale":"zh"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Nayax Developer Portal\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"CancelTransaction - Nayax Developer Portal\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nayax Developer Portal\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nayax-44d6e37b.mintlify.app/_mintlify/api/og/v2?division=Transactions\u0026amp;title=CancelTransaction\u0026amp;theme=09b4e344a36ca47397141e43\u0026amp;signature=96e94d493e6cb0909c714cac2a06545d6e03c2265a90469842451d382a7be69f\">\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=\"CancelTransaction - Nayax Developer Portal\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nayax-44d6e37b.mintlify.app/_mintlify/api/og/v2?division=Transactions\u0026amp;title=CancelTransaction\u0026amp;theme=09b4e344a36ca47397141e43\u0026amp;signature=96e94d493e6cb0909c714cac2a06545d6e03c2265a90469842451d382a7be69f\">\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/nayax-44d6e37b/IDkKyIWxcB2-beJ3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nayax Developer Portal\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6352E0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/zh/spark/transactions/canceltransaction.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://devzone.nayax.com/reference/spark/transactions/canceltransaction\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://devzone.nayax.com/reference/spark/transactions/canceltransaction\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://devzone.nayax.com/#organization\",\"name\":\"Nayax Developer Portal\",\"url\":\"https://devzone.nayax.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nayax-44d6e37b/ag7p0QchXLJNEuNE/images/home/logo_light.svg?fit=max\u0026auto=format\u0026n=ag7p0QchXLJNEuNE\u0026q=85\u0026s=b71aa1a61014633be60cee745d3e978c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://devzone.nayax.com#website\",\"name\":\"Nayax Developer Portal\",\"url\":\"https://devzone.nayax.com\",\"publisher\":{\"@id\":\"https://devzone.nayax.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction#webpage\",\"url\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction\",\"name\":\"CancelTransaction\",\"dateModified\":\"2026-11-03T17:16:36.638Z\",\"isPartOf\":{\"@id\":\"https://devzone.nayax.com#website\"},\"breadcrumb\":{\"@id\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://devzone.nayax.com/reference/zh/spark/transactions/get-version\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Transactions\",\"item\":\"https://devzone.nayax.com/reference/zh/spark/transactions/get-version\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CancelTransaction\",\"item\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction#apireference\",\"headline\":\"CancelTransaction\",\"name\":\"CancelTransaction\",\"url\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction\",\"mainEntityOfPage\":{\"@id\":\"https://devzone.nayax.com/reference/zh/spark/transactions/canceltransaction#webpage\"},\"dateModified\":\"2026-11-03T17:16:36.638Z\",\"publisher\":{\"@id\":\"https://devzone.nayax.com/#organization\"},\"isPartOf\":{\"@id\":\"https://devzone.nayax.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nayax Developer Portal\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Nayax Developer Portal","nav":{"global":null,"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/reference/spark/transactions/canceltransaction"}]},{"language":"zh","tabs":[{"tab":"Docs Home","icon":"home","pages":[{"title":"Docs Home","href":"/docs/zh"}]},{"tab":"Terminal SDKs","menu":[{"item":"Marshall","pages":[{"title":"Marshall","href":"/docs/zh/integrate-pos-device/marshall/marshall-sdk"}]},{"item":"Marshall Pro (Fuel)","pages":[{"title":"Marshall Pro (Fuel)","href":"/docs/zh/integrate-pos-device/marshall-pro/getting-started"}]},{"item":"TweezerComm","pages":[{"title":"TweezerComm","href":"/docs/zh/integrate-pos-device/tweezercomm/overview-tweezer"}]},{"item":"EMV Core","pages":[{"title":"EMV Core","href":"/docs/zh/integrate-pos-device/emv-core/overview"}]},{"item":"Spark","groups":[{"group":"Spark Guides","pages":[{"title":"概述","href":"/docs/zh/integrate-pos-device/spark/spark"},{"title":"集成过程","href":"/docs/zh/integrate-pos-device/spark/spark-integration-process"},{"title":"网络要求","href":"/docs/zh/integrate-pos-device/spark/spark-network-requirement"},{"group":"Security \u0026 Authentication","root":{"title":"安全与身份验证","href":"/docs/zh/integrate-pos-device/spark/security-authentication/index"},"pages":[{"title":"验证","href":"/docs/zh/integrate-pos-device/spark/security-authentication/spark-authentication"},{"title":"传统身份验证","href":"/docs/zh/integrate-pos-device/spark/security-authentication/spark-legacy-authentication"},{"title":"交互式身份验证工具","href":"/docs/zh/integrate-pos-device/spark/security-authentication/spark-auth-tool"}]},{"group":"Payment Flows","root":{"mode":"wide","title":"付款流程","href":"/docs/zh/integrate-pos-device/spark/payment-flows/transaction-flows-spark"},"pages":[{"title":"设备启动","href":"/docs/zh/integrate-pos-device/spark/payment-flows/spark-device-start"},{"title":"远程启动","href":"/docs/zh/integrate-pos-device/spark/payment-flows/spark-remote-start"},{"title":"设备停止","href":"/docs/zh/integrate-pos-device/spark/payment-flows/spark-device-stop"},{"title":"外部结算","href":"/docs/zh/integrate-pos-device/spark/payment-flows/external-settlement"},{"title":"外部取消","href":"/docs/zh/integrate-pos-device/spark/payment-flows/external-cancel"}]},{"group":"Machine Configuration","root":{"title":"机器配置概述","href":"/docs/zh/integrate-pos-device/spark/machine-configuration/index"},"pages":[{"title":"远程启动配置","href":"/docs/zh/integrate-pos-device/spark/machine-configuration/spark-remote-start-configuration"},{"title":"设备启动配置","href":"/docs/zh/integrate-pos-device/spark/machine-configuration/spark-device-start-configuration"},{"title":"设备停止配置","href":"/docs/zh/integrate-pos-device/spark/machine-configuration/spark-device-stop-configuration"},{"title":"外部结算配置","href":"/docs/zh/integrate-pos-device/spark/machine-configuration/spark-external-settlement-configuration"},{"title":"附加功能","href":"/docs/zh/integrate-pos-device/spark/machine-configuration/additional-features"}]},{"group":"Webhook Callbacks","root":{"title":"Webhook 回调","href":"/docs/zh/integrate-pos-device/spark/webhook-callbacks/index"},"pages":[{"title":"TransactionCallback","href":"/docs/zh/integrate-pos-device/spark/webhook-callbacks/transactioncallback"},{"title":"停止回调","href":"/docs/zh/integrate-pos-device/spark/webhook-callbacks/stopcallback"},{"title":"超时回调","href":"/docs/zh/integrate-pos-device/spark/webhook-callbacks/timeoutcallback"},{"title":"拒绝回调","href":"/docs/zh/integrate-pos-device/spark/webhook-callbacks/declinecallback"}]},{"group":"Additional Resources","root":{"title":"其他资源","href":"/docs/zh/integrate-pos-device/spark/additional-resources/index"},"pages":[{"title":"闭环卡支持","href":"/docs/zh/integrate-pos-device/spark/additional-resources/smc-support"},{"title":"PosDisplay 格式","href":"/docs/zh/integrate-pos-device/spark/additional-resources/spark-posdisplay-format"},{"title":"电子收据数据格式","href":"/docs/zh/integrate-pos-device/spark/additional-resources/spark-ereceiptdata-format"},{"title":"响应代码","href":"/docs/zh/integrate-pos-device/spark/additional-resources/spark-response-codes"}]},{"group":"Sample Codes","pages":[{"title":"身份验证码示例","href":"/docs/zh/integrate-pos-device/spark/sample-codes/spark-authentication-code-sample"}]}]},{"group":"API Reference","pages":[{"group":"Transactions","pages":[{"title":"Get Version","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml get /Version","href":"/reference/zh/spark/transactions/get-version"},{"title":"ExternalCancel","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /ExternalCancel","href":"/reference/zh/spark/transactions/externalcancel"},{"title":"ExternalSettlement","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /ExternalSettlement","href":"/reference/zh/spark/transactions/externalsettlement"},{"title":"StartAuthentication","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /StartAuthentication","href":"/reference/zh/spark/transactions/startauthentication"},{"title":"StartSession","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /StartSession","href":"/reference/zh/spark/transactions/startsession"},{"title":"TriggerTransaction","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /TriggerTransaction","href":"/reference/zh/spark/transactions/triggertransaction"},{"title":"TransactionCallback","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /TransactionCallback","href":"/reference/zh/spark/transactions/transactioncallback"},{"title":"TransactionNotify","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /TransactionNotify","href":"/reference/zh/spark/transactions/transactionnotify"},{"title":"Settlement","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /Settlement","href":"/reference/zh/spark/transactions/settlement"},{"title":"TimeoutCallback","description":null,"deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /TimeoutCallback","href":"/reference/zh/spark/transactions/timeoutcallback"},{"title":"CancelTransaction","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /CancelTransaction","href":"/reference/zh/spark/transactions/canceltransaction"},{"title":"StopNotify","description":null,"deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /StopNotify","href":"/reference/zh/spark/transactions/stopnotify"},{"title":"AvailabilityCheck","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /AvailabilityCheck","href":"/reference/zh/spark/transactions/availabilitycheck"},{"title":"StopCallback","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /StopCallback","href":"/reference/zh/spark/transactions/stopcallback"},{"title":"DeclineCallback","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /DeclineCallback","href":"/reference/zh/spark/transactions/declinecallback"},{"title":"InfoQuery","deprecated":null,"version":null,"openapi":"/openapi/zh/spark.yaml post /InfoQuery","href":"/reference/zh/spark/transactions/infoquery"}]}]}]}]},{"tab":"Platform Management","menu":[{"item":"Transaction Reporting","pages":[{"title":"Transaction Reporting","href":"/docs/zh/manage-data-operations/amazon-sqs/overview"}]},{"item":"Lynx API","pages":[{"title":"Lynx API","href":"/docs/zh/manage-data-operations/lynx-api/lynx-overview"}]}],"pages":[{"title":"Platform Management","href":"/docs/zh/manage-data-operations/amazon-sqs/overview"}]},{"tab":"Core Extension","pages":[{"title":"Core Extension","href":"/docs/zh/core-extension/overview"}]},{"tab":"Cortina","pages":[{"title":"Cortina","href":"/docs/zh/cortina/overview-cortina"}]},{"tab":"Build with AI","pages":[{"title":"Build with AI","href":"/docs/zh/get-started/build-with-ai"}]},{"tab":"Release Notes","href":"https://www.nayax.com/product-updates/integrated-pos/integrated-vpos-touch-onyx/"},{"tab":"Help Center","href":"https://nayax-u.nayax.com/"}]}]},"basePath":"","title":"CancelTransaction - Nayax Developer Portal","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}