Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted
Event Name:swap_failed
When this event fires, the hold on the origin funds has already been released. The payload includes a failure object with the rejection reason, and amounts.creditedAmount is omitted since no funds were credited.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"RalioPay Docs","colors":{"primary":"#7157DF","light":"#b9abf7","dark":"#2563EB"},"logo":{"light":"https://mintcdn.com/ralio/Wi1FNuD14HgeSgZ9/logo/light.svg?fit=max\u0026auto=format\u0026n=Wi1FNuD14HgeSgZ9\u0026q=85\u0026s=c46bffb62c56dbd17cc48340a866005c","dark":"https://mintcdn.com/ralio/Wi1FNuD14HgeSgZ9/logo/dark-alt.svg?fit=max\u0026auto=format\u0026n=Wi1FNuD14HgeSgZ9\u0026q=85\u0026s=44e25ca08dd313169efe836977abe965"},"favicon":"https://mintcdn.com/ralio/Wi1FNuD14HgeSgZ9/favicon.svg?fit=max\u0026auto=format\u0026n=Wi1FNuD14HgeSgZ9\u0026q=85\u0026s=a0d716043ab516babd527f7ddedd0f5f","navbar":{"links":[{"icon":"flask","href":"https://portal.sandbox.raliopay.com/","label":"Portal Sandbox"},{"icon":"rocket","href":"https://portal.raliopay.com/","label":"Portal Production"}]},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ralio","hasAudioNarration":false,"actualSubdomain":"ralio","customDomains":["doc.raliopay.com"],"gitSource":{"type":"github","owner":"tropipay","repo":"ralio-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ac7a74006a02fa0d022e82c","collectionId":"f8daa58b-b34d-4cca-98c1-220f0b7db403","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ac7a74006a02fa0d022e82c"},"entitlements":{},"buildId":"6ac7a74006a02fa0d022e82c","clientVersion":"0.0.3894","searchFilterCounts":[{"language":"default","tag":"API reference","count":86},{"language":"default","tag":"Webhooks events","count":39},{"language":"default","tag":"Accounts","count":20},{"language":"default","tag":"User verification","count":16},{"language":"default","tag":"Payouts","count":14},{"language":"default","tag":"Payins","count":13},{"language":"default","tag":"Users","count":11},{"language":"default","tag":"Virtual IBANs","count":10},{"language":"default","tag":"Unmatched Bank Payins","count":9},{"language":"default","tag":"KYB sessions","count":9}]},"assistantConfig":{},"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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-branches-v2-autocommit","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2","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":"editor-private-page-search","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":"teamspace","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","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":"byok-sep-25","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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"client-snapshot-docs-config","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"webhooks-events/fx/swap-failed","slug":"/webhooks-events/fx/swap-failed","pageMetadata":{"icon":"circle-xmark","title":"Swap Failed","description":"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted","href":"/webhooks-events/fx/swap-failed"},"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: \"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Info}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Event Name:`}),` `,_jsx(_components.code,{children:`swap_failed`})]})}),`\n`,_jsxs(_components.p,{children:[`When this event fires, the hold on the origin funds has already been released. The payload includes a `,_jsx(_components.code,{children:`failure`}),` object with the rejection reason, and `,_jsx(_components.code,{children:`amounts.creditedAmount`}),` is omitted since no funds were credited.`]}),`\n`,_jsx(Heading,{level:`2`,id:`event-payload`,children:`Event Payload`}),`\n`,_jsx(_components.p,{children:`The webhook payload contains the following structure:`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`Example Payload`,numberOfLines:`47`,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:`47`,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:` \"eventId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"d93f5a21-6c48-4e0b-a179-3b82c5d6e014\"`}),_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:` \"eventType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"swap_failed\"`}),_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:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-22T11:00:07.5241190Z\"`}),_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:` \"data\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FAILED\"`}),_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:` \"swapType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fxSwap\"`}),_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:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b\"`}),_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:` \"ownReference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FX-SWAP-2026-001\"`}),_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:` \"source\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"account\"`}),_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:` \"debitedAccountId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8befb505-7f8c-4a72-85a5-e7cbc9719ba8\"`}),_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:` \"debitedUserId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"15c5277a-8c8c-41d2-9f42-66f82f6f113d\"`})]}),`\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:` \"destination\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"account\"`}),_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:` \"creditedAccountId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e582cef6-a320-4d0d-afda-446ba16725ac\"`}),_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:` \"creditedUserId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"15c5277a-8c8c-41d2-9f42-66f82f6f113d\"`})]}),`\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:` \"amounts\"`}),_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:` \"debitedAmount\"`}),_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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100000`}),_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:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`})]}),`\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:` \"fees\"`}),_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:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`}),_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:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1500`}),_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:` \"breakdown\"`}),_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:` \"systemFee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_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:` \"merchantFee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\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:` \"amountAfterFees\"`}),_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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`98500`}),_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:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`})]}),`\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:` \"fx\"`}),_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:` \"pair\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR/USD\"`}),_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:` \"rate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.0823\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\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:` \"failure\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FAILED\"`}),_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:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"provider rejected\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\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":{"icon":"circle-xmark","title":"Swap Failed","description":"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted","href":"/webhooks-events/fx/swap-failed"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Event Payload","slug":"event-payload","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ralio","siteName":"RalioPay Docs","title":"Swap Failed - RalioPay Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-21T15:04:12.322Z","originalFileLocation":"webhooks-events/fx/swap-failed.mdx"},"headHtml":"\u003cmeta data-mint-head name=\"description\" content=\"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted\">\u003cmeta data-mint-head name=\"application-name\" content=\"RalioPay Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ralio/FTAAy8u_ohYaQTO9/_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/ralio/FTAAy8u_ohYaQTO9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ralio/FTAAy8u_ohYaQTO9/_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/ralio/FTAAy8u_ohYaQTO9/_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/ralio/FTAAy8u_ohYaQTO9/_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/ralio/FTAAy8u_ohYaQTO9/_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/ralio/FTAAy8u_ohYaQTO9/_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/ralio/FTAAy8u_ohYaQTO9/_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/ralio/FTAAy8u_ohYaQTO9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Swap Failed - RalioPay Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"RalioPay Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://doc.raliopay.com/webhooks-events/fx/swap-failed\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Swap Failed - RalioPay Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ralio/FTAAy8u_ohYaQTO9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"RalioPay Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7157DF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://doc.raliopay.com/webhooks-events/fx/swap-failed\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/webhooks-events/fx/swap-failed.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://doc.raliopay.com/#organization\",\"name\":\"RalioPay Docs\",\"url\":\"https://doc.raliopay.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ralio/Wi1FNuD14HgeSgZ9/logo/light.svg?fit=max\u0026auto=format\u0026n=Wi1FNuD14HgeSgZ9\u0026q=85\u0026s=c46bffb62c56dbd17cc48340a866005c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://doc.raliopay.com#website\",\"name\":\"RalioPay Docs\",\"url\":\"https://doc.raliopay.com\",\"publisher\":{\"@id\":\"https://doc.raliopay.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed#webpage\",\"url\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed\",\"name\":\"Swap Failed\",\"description\":\"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted\",\"dateModified\":\"2026-07-21T15:04:12.322Z\",\"isPartOf\":{\"@id\":\"https://doc.raliopay.com#website\"},\"breadcrumb\":{\"@id\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"FX\",\"item\":\"https://doc.raliopay.com/webhooks-events/fx/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Swap Failed\",\"item\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed#article\",\"headline\":\"Swap Failed\",\"name\":\"Swap Failed\",\"description\":\"Webhook event fired when an FX swap is rejected by the provider and the origin hold is reverted\",\"url\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed\",\"mainEntityOfPage\":{\"@id\":\"https://doc.raliopay.com/webhooks-events/fx/swap-failed#webpage\"},\"dateModified\":\"2026-07-21T15:04:12.322Z\",\"publisher\":{\"@id\":\"https://doc.raliopay.com/#organization\"},\"isPartOf\":{\"@id\":\"https://doc.raliopay.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"RalioPay Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"RalioPay Docs","nav":{"global":null,"tabs":[{"tab":"API reference","icon":"rocket","pages":[{"title":"API reference","href":""}]},{"tab":"Webhooks events","icon":"bolt","pages":[{"group":"Getting started","icon":"play","pages":[{"title":"Introduction","href":"/webhooks-events/introduction"}]},{"group":"Accounts","icon":"wallet","pages":[{"title":"Overview","icon":"circle-info","href":"/webhooks-events/accounts/overview"},{"title":"Account Activated","icon":"circle-check","href":"/webhooks-events/accounts/account-activated"}]},{"group":"Virtual IBANs","icon":"building-columns","pages":[{"title":"Virtual IBAN Webhooks Overview","icon":"circle-info","sidebarTitle":"Overview","href":"/webhooks-events/viban/overview"},{"title":"vIBAN Activated","icon":"circle-check","href":"/webhooks-events/viban/viban-activated"},{"title":"vIBAN Failed","icon":"circle-xmark","href":"/webhooks-events/viban/viban-failed"},{"title":"vIBAN Deactivated","icon":"circle-stop","href":"/webhooks-events/viban/viban-deactivated"}]},{"group":"Payins","icon":"arrow-down-left","pages":[{"title":"Payin Webhooks Overview","icon":"circle-info","sidebarTitle":"Overview","href":"/webhooks-events/payin/overview"},{"icon":"spinner","title":"Payin Processing","href":"/webhooks-events/payin/payin-processing"},{"icon":"circle-check","title":"Payin Completed","href":"/webhooks-events/payin/payin-completed"},{"icon":"circle-xmark","title":"Payin Failed","href":"/webhooks-events/payin/payin-failed"},{"icon":"ban","title":"Payin Canceled","hidden":true,"href":"/webhooks-events/payin/payin-canceled"}]},{"group":"Unmatched Bank Payins","icon":"link-slash","pages":[{"title":"Unmatched Bank Payins Webhooks Overview","icon":"circle-info","sidebarTitle":"Overview","href":"/webhooks-events/unmatched-bank-payin/overview"},{"icon":"eye","title":"Unmatched Bank Payin Detected","href":"/webhooks-events/unmatched-bank-payin/unmatched-bank-payin-detected"},{"icon":"link","title":"Unmatched Bank Payin Assigned","href":"/webhooks-events/unmatched-bank-payin/unmatched-bank-payin-assigned"},{"icon":"circle-xmark","title":"Unmatched Bank Payin Rejected","href":"/webhooks-events/unmatched-bank-payin/unmatched-bank-payin-rejected"}]},{"group":"Payouts","icon":"arrow-up-right","pages":[{"title":"Payouts Webhooks Overview","icon":"circle-info","sidebarTitle":"Overview","hidden":true,"href":"/webhooks-events/payout/overview"},{"icon":"spinner","title":"Payout Processing","href":"/webhooks-events/payout/payout-processing"},{"icon":"circle-check","title":"Payout Completed","href":"/webhooks-events/payout/payout-completed"},{"icon":"circle-xmark","title":"Payout Failed","hidden":true,"href":"/webhooks-events/payout/payout-failed"},{"icon":"ban","title":"Payout Canceled","hidden":true,"href":"/webhooks-events/payout/payout-canceled"}]},{"group":"Transfers","icon":"arrow-right-arrow-left","pages":[{"title":"Transfers Webhooks Overview","icon":"circle-info","sidebarTitle":"Overview","hidden":true,"href":"/webhooks-events/transfers/overview"},{"icon":"spinner","title":"Transfer Processing","href":"/webhooks-events/transfers/transfer-processing"},{"icon":"circle-check","title":"Transfer Completed","href":"/webhooks-events/transfers/transfer-completed"},{"icon":"circle-xmark","title":"Transfer Failed","hidden":true,"href":"/webhooks-events/transfers/transfer-failed"},{"icon":"ban","title":"Transfer Canceled","hidden":true,"href":"/webhooks-events/transfers/transfer-canceled"}]},{"group":"FX","icon":"money-bill-transfer","pages":[{"title":"FX Swaps Webhooks Overview","icon":"circle-info","sidebarTitle":"Overview","hidden":true,"href":"/webhooks-events/fx/overview"},{"icon":"spinner","title":"Swap Processing","href":"/webhooks-events/fx/swap-processing"},{"icon":"circle-check","title":"Swap Completed","description":"Webhook event fired when an FX swap settles and the destination wallet is credited","href":"/webhooks-events/fx/swap-completed"},{"icon":"circle-xmark","title":"Swap Failed","href":"/webhooks-events/fx/swap-failed"}]},{"group":"Order Requirements","icon":"file-shield","pages":[{"title":"Order Requirements Webhooks Overview","description":"Order requirement-related webhook events overview","icon":"circle-info","sidebarTitle":"Overview","href":"/webhooks-events/order-requirement/overview"},{"icon":"circle-plus","title":"Requirement Created","href":"/webhooks-events/order-requirement/requirement-created"},{"icon":"magnifying-glass","title":"Requirement In Review","href":"/webhooks-events/order-requirement/requirement-in-review"},{"icon":"circle-question","title":"Requirement More Info","href":"/webhooks-events/order-requirement/requirement-more-info"},{"icon":"circle-check","title":"Requirement Approved","href":"/webhooks-events/order-requirement/requirement-approved"},{"icon":"circle-xmark","title":"Requirement Rejected","href":"/webhooks-events/order-requirement/requirement-rejected"},{"icon":"clock","title":"Requirement Expired","href":"/webhooks-events/order-requirement/requirement-expired"}]},{"group":"KYC","icon":"shield-check","pages":[{"title":"Overview","icon":"circle-info","href":"/webhooks-events/kyc/overview"},{"title":"KYC State Updated","icon":"arrows-rotate","href":"/webhooks-events/kyc/kyc-state-updated"},{"title":"KYC Expiration Warning","icon":"triangle-exclamation","href":"/webhooks-events/kyc/kyc-expiration-warning"},{"title":"KYC Session Verified","icon":"circle-check","href":"/webhooks-events/kyc/kyc-session-verified"},{"title":"KYC Session Manual Review","icon":"magnifying-glass","href":"/webhooks-events/kyc/kyc-session-manual-review"},{"title":"KYC Session Failed","icon":"circle-xmark","href":"/webhooks-events/kyc/kyc-session-failed"},{"title":"KYC Session Expired","icon":"clock","href":"/webhooks-events/kyc/kyc-session-expired"},{"title":"Related Party KYC Session Created","icon":"circle-plus","href":"/webhooks-events/kyc/related-party-kyc-session-created"}]},{"group":"KYB","icon":"building-shield","pages":[{"title":"Overview","icon":"circle-info","href":"/webhooks-events/kyb/overview"},{"title":"KYB State Updated","icon":"arrows-rotate","href":"/webhooks-events/kyb/kyb-state-updated"}]}]},{"tab":"Guides","icon":"notebook","pages":[{"title":"Guides","href":"/welcome"}]}]},"title":"Swap Failed - RalioPay Docs","buildId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","deploymentId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","dynamics":[],"chunks":[]}