An API endpoint for issuing refunds on transactions.
Once a transaction has been completed, this API can be used to issue a refund, thereby clawing back funds from the payee
and transferring them back to the payor. An optional amount can be specified to either issue a partial refund or add
additional fees to the original amount. If the amount is not specified, the total transaction amount is refunded.The refund requests are only accepted when the transaction has been processed or completed. If the transaction is in the
CAPTURE_PENDING or CAPTURE_ACH_FAILED status, the refund will not be accepted.A refund will be processed only after an individual or batch payout has been initiated. For transactions within a batch
payout, we will collect all refund requests from the day and create a credit ACH from the processor’s bank account
for the total amount of refunds processed that day.
Endpoint
POST /3p/api/v1/transactions/{transaction_uuid}/refund
The initial status, indicating that the refund request has not yet been processed.
REFUND_CAPTURE_ACH_PENDING
The refund has been processed and a debit ACH transaction has been initiated from the payee or processor (reverse of payout).
REFUND_ACH_PENDING
The debit ACH transaction is complete and a credit ACH transaction has been initiated to the payer (reverse of the transaction).
REFUND_COMPLETE
The refund process is complete and the payer has received the money.
REFUND_FAILED
The refund has failed due to some reason.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Netevia","colors":{"primary":"#187BCC","light":"#187BCC","dark":"#187BCC"},"logo":{"light":"https://mintcdn.com/grail-2/5S7_5_gYoLGIoRJP/logo/netevia-logo.png?fit=max\u0026auto=format\u0026n=5S7_5_gYoLGIoRJP\u0026q=85\u0026s=79f775093097c4b88a3cfa6ba24a4d74","dark":"https://mintcdn.com/grail-2/5S7_5_gYoLGIoRJP/logo/netevia-logo.png?fit=max\u0026auto=format\u0026n=5S7_5_gYoLGIoRJP\u0026q=85\u0026s=79f775093097c4b88a3cfa6ba24a4d74","href":"https://netevia.com/"},"favicon":"/netevia-favicon.png","appearance":{"default":"dark"},"navbar":{"primary":{"type":"button","label":"Contact","href":"https://netevia.com/newsroom/"}},"fonts":{"heading":{"family":"Nunito Sans"},"body":{"family":"Nunito Sans"}},"styling":{"codeblocks":"system"},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://grailpay.com/in-the-news/"},{"anchor":"FAQ","icon":"circle-question","href":"https://grailpay.com/faq/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"grail-2","hasAudioNarration":false,"actualSubdomain":"grail-2","customDomains":["docs.ach.netevia.com"],"gitSource":{"type":"github","owner":"grailpay","repo":"api-documentation","deployBranch":"netevia","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae926abf855326d3155cf39:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":69},{"language":"default","tag":"Technical Guides","count":38},{"language":"default","tag":"Users","count":27},{"language":"default","tag":"Bank Accounts","count":21},{"language":"default","tag":"Payouts","count":15},{"language":"default","tag":"Transactions","count":14},{"language":"default","tag":"Refunds","count":11},{"language":"default","tag":"Getting Started","count":10},{"language":"default","tag":"Webhooks","count":10},{"language":"default","tag":"Business Guides","count":5}]},"assistantConfig":{},"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":true},"customCss":[]}
{"page":{"pagePath":"docs/technical/refunds/refund-a-transaction","slug":"/docs/technical/refunds/refund-a-transaction","pageMetadata":{"title":"Refund a Transaction","description":"An API endpoint for issuing refunds on transactions.","href":"/docs/technical/refunds/refund-a-transaction"},"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: \"An API endpoint for issuing refunds on transactions.\"\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={blockquote:`blockquote`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Once a transaction has been completed, this API can be used to issue a refund, thereby clawing back funds from the payee\nand transferring them back to the payor. An optional amount can be specified to either issue a partial refund or add\nadditional fees to the original amount. If the amount is not specified, the total transaction amount is refunded.`}),`\n`,_jsx(_components.p,{children:`The refund requests are only accepted when the transaction has been processed or completed. If the transaction is in the\nCAPTURE_PENDING or CAPTURE_ACH_FAILED status, the refund will not be accepted.`}),`\n`,_jsx(_components.p,{children:`A refund will be processed only after an individual or batch payout has been initiated. For transactions within a batch\npayout, we will collect all refund requests from the day and create a credit ACH from the processor’s bank account\nfor the total amount of refunds processed that day.`}),`\n`,_jsx(Heading,{level:`3`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsxs(_components.p,{children:[`POST\\xA0\\xA0 `,_jsx(_components.strong,{children:`/3p/api/v1/transactions/{transaction_uuid}/refund`})]}),`\n`,_jsx(Heading,{level:`3`,id:`body-payload`,children:`Body Payload`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`Example`,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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12000`}),_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:` \"client_reference_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund_capture_25478\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Fields`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Is Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`amount`})}),_jsx(_components.td,{children:`int`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Refund amount.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`client_reference_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-object`,children:`Response Object`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Note: Amounts and fees are expressed in cents.`})}),`\n`]}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`Success (201)`,numberOfLines:`13`,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:`13`,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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"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:` \"uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9be03fa2-bf19-415c-9fb6-eb903f7a0618\"`}),_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:` \"transaction_uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9bdeaf2e-3b14-4e39-bbb0-ade2077e9439\"`}),_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:`12000`}),_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:`\"REFUND_PENDING\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-23 12:13:46\"`})]}),`\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:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`errors-and-warnings`,children:`Errors and Warnings`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Message`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`refund-statuses`,children:`Refund Statuses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`REFUND_PENDING`})}),_jsx(_components.td,{children:`The initial status, indicating that the refund request has not yet been processed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`REFUND_CAPTURE_ACH_PENDING`})}),_jsx(_components.td,{children:`The refund has been processed and a debit ACH transaction has been initiated from the payee or processor (reverse of payout).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`REFUND_ACH_PENDING`})}),_jsx(_components.td,{children:`The debit ACH transaction is complete and a credit ACH transaction has been initiated to the payer (reverse of the transaction).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`REFUND_COMPLETE`})}),_jsx(_components.td,{children:`The refund process is complete and the payer has received the money.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`REFUND_FAILED`})}),_jsx(_components.td,{children:`The refund has failed due to some reason.`})]})]})]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Refund a Transaction","description":"An API endpoint for issuing refunds on transactions.","href":"/docs/technical/refunds/refund-a-transaction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint","slug":"endpoint","depth":3,"children":[]},{"title":"Body Payload","slug":"body-payload","depth":3,"children":[]},{"title":"Response Object","slug":"response-object","depth":3,"children":[]},{"title":"Errors and Warnings","slug":"errors-and-warnings","depth":3,"children":[]},{"title":"Refund Statuses","slug":"refund-statuses","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"grail-2","siteName":"Netevia","title":"Refund a Transaction - Netevia","navMaps":{"firstHrefInVersion":{"stable":{"href":"/docs/technical/refunds/refund-a-transaction","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T07:44:32.933Z","originalFileLocation":"docs/technical/refunds/refund-a-transaction.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=\"dark\"}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=\"An API endpoint for issuing refunds on transactions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Netevia\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/grail-2/QXcIdysZuMChcsVm/_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/grail-2/QXcIdysZuMChcsVm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/grail-2/QXcIdysZuMChcsVm/_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/grail-2/QXcIdysZuMChcsVm/_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/grail-2/QXcIdysZuMChcsVm/_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/grail-2/QXcIdysZuMChcsVm/_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/grail-2/QXcIdysZuMChcsVm/_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/grail-2/QXcIdysZuMChcsVm/_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/grail-2/QXcIdysZuMChcsVm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Refund a Transaction - Netevia\">\u003cmeta data-mint-head property=\"og:description\" content=\"An API endpoint for issuing refunds on transactions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Netevia\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://grail-2.mintlify.site/_mintlify/api/og/v2?division=Refunds\u0026amp;title=Refund+a+Transaction\u0026amp;description=An+API+endpoint+for+issuing+refunds+on+transactions.\u0026amp;theme=a230d87da6b0fbf37e3d72e5\u0026amp;signature=123bd015a2cd90106a2d3cf899b0b66bdf052b4e026d1f83e7d3f6dafcf5c5d8\">\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=\"Refund a Transaction - Netevia\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"An API endpoint for issuing refunds on transactions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://grail-2.mintlify.site/_mintlify/api/og/v2?division=Refunds\u0026amp;title=Refund+a+Transaction\u0026amp;description=An+API+endpoint+for+issuing+refunds+on+transactions.\u0026amp;theme=a230d87da6b0fbf37e3d72e5\u0026amp;signature=123bd015a2cd90106a2d3cf899b0b66bdf052b4e026d1f83e7d3f6dafcf5c5d8\">\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/grail-2/QXcIdysZuMChcsVm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Netevia\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#187BCC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/technical/refunds/refund-a-transaction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ach.netevia.com/#organization\",\"name\":\"Netevia\",\"url\":\"https://docs.ach.netevia.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/grail-2/5S7_5_gYoLGIoRJP/logo/netevia-logo.png?fit=max\u0026auto=format\u0026n=5S7_5_gYoLGIoRJP\u0026q=85\u0026s=79f775093097c4b88a3cfa6ba24a4d74\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ach.netevia.com#website\",\"name\":\"Netevia\",\"url\":\"https://docs.ach.netevia.com\",\"publisher\":{\"@id\":\"https://docs.ach.netevia.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction#webpage\",\"url\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction\",\"name\":\"Refund a Transaction\",\"description\":\"An API endpoint for issuing refunds on transactions.\",\"dateModified\":\"2026-01-07T07:44:32.933Z\",\"isPartOf\":{\"@id\":\"https://docs.ach.netevia.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Netevia\",\"item\":\"https://docs.ach.netevia.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Refund a Transaction\",\"item\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction#article\",\"headline\":\"Refund a Transaction\",\"name\":\"Refund a Transaction\",\"description\":\"An API endpoint for issuing refunds on transactions.\",\"url\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ach.netevia.com/docs/technical/refunds/refund-a-transaction#webpage\"},\"dateModified\":\"2026-01-07T07:44:32.933Z\",\"publisher\":{\"@id\":\"https://docs.ach.netevia.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ach.netevia.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Netevia\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Netevia\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/technical/refunds/refund-a-transaction.md","siteName":"Netevia","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://grailpay.com/in-the-news/"},{"anchor":"FAQ","icon":"circle-question","href":"https://grailpay.com/faq/"}]},"versions":[{"version":"stable","tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home/welcome"}]},{"tab":"Business Guides","pages":[{"title":"Business Guides","href":"/docs/business/overview"}]},{"tab":"Technical Guides","groups":[{"group":"Getting Started","pages":[{"title":null,"href":"/docs/technical/overview"},{"title":"Authentication","mode":"wide","href":"/docs/technical/authentication"},{"title":"Idempotency","mode":"wide","href":"/docs/technical/idempotency"},{"title":"Sandbox","href":"/docs/technical/sandbox-environment"},{"title":"Transactions Overview","href":"/docs/technical/transactions-overview"},{"title":"Transaction Scenarios - Direct Payouts","href":"/docs/technical/example-transaction-direct-payout-scenarios"},{"title":"Transaction Scenarios - Batch Payout","href":"/docs/technical/example-transaction-batch-payout-scenarios"}]},{"group":"Users","pages":[{"title":"Onboard a Person","href":"/docs/technical/users/onboard-a-person"},{"title":"Onboarding a Business","href":"/docs/technical/users/onboard-a-business"},{"title":"Deleting a User","href":"/docs/technical/users/delete-user"},{"title":"Get All Users","href":"/docs/technical/users/get-all-users"},{"title":"Get User","href":"/docs/technical/users/get-user"},{"title":"Update KYB","href":"/docs/technical/users/update-kyb-for-business"}]},{"group":"Transactions","pages":[{"title":"Cancel a Transaction","href":"/docs/technical/transactions/cancel-a-transaction"},{"title":"Create a Transaction","href":"/docs/technical/transactions/create-a-transaction"},{"title":"Fetch a Transaction","href":"/docs/technical/transactions/fetch-a-transaction"},{"title":"Get All Transactions","href":"/docs/technical/transactions/fetch-transaction-list"}]},{"group":"Payouts","pages":[{"title":"Batch Payout","href":"/docs/technical/payouts/get-batch-payout"},{"title":"Get All Batch Payouts","href":"/docs/technical/payouts/get-all-batch-payouts"},{"title":"Batch Merchant Payout","description":"An API endpoint that fetches a batch payout for a merchant","href":"/docs/technical/payouts/get-batch-merchant-payout"}]},{"group":"Refunds","pages":[{"title":"Refund a Transaction","href":"/docs/technical/refunds/refund-a-transaction"},{"title":"Get Batch Refund","description":"Suggest Edits","href":"/docs/technical/refunds/get-batch-refund"},{"title":"Get All Batch Refunds","href":"/docs/technical/refunds/get-all-batch-refunds"},{"title":"Get Refund Details","href":"/docs/technical/refunds/get-refund-details"},{"title":"Get Transaction Refunds","href":"/docs/technical/refunds/get-transaction-refunds"}]},{"group":"Bank Accounts","pages":[{"title":"Add Bank Account","href":"/docs/technical/bank-accounts/add-bank-account"},{"title":"Delete Bank Account","href":"/docs/technical/bank-accounts/delete-bank-account"},{"title":"Fetch Bank Account","href":"/docs/technical/bank-accounts/fetch-bank-account"},{"title":"Get Account Balance","href":"/docs/technical/bank-accounts/get-account-balance"},{"title":"Get All Bank Accounts","href":"/docs/technical/bank-accounts/get-all-bank-accounts"},{"title":"Get User by Bank Account","href":"/docs/technical/bank-accounts/get-user-by-bank-account"},{"title":"Set Default Account","href":"/docs/technical/bank-accounts/set-default-account"},{"title":"Validate Account \u0026 Routing Number","href":"/docs/technical/bank-accounts/validate-account-and-routing-number"}]},{"group":"Webhooks","pages":[{"title":"Webhook Events","href":"/docs/technical/webhooks/events"},{"title":"Register a Webhook","href":"/docs/technical/webhooks/register-a-webhook"},{"title":"De-register Webhook","href":"/docs/technical/webhooks/de-register-webhook"},{"title":"Get All Webhook Events","href":"/docs/technical/webhooks/get-all-webhook-events"}]},{"group":"Billing","pages":[{"title":"Get Merchant Billing Summary","href":"/docs/technical/billing/get-billing-items-by-business"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/bank-accounts/validate-bank-account-and-routing-number-stable-"}]},{"tab":"Releases","pages":[{"title":"Releases","href":"/changelog/changelog"}]}]}]},"basePath":"","title":"Refund a Transaction - Netevia","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}