Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Paysight Documentation","colors":{"primary":"#835df7","light":"#835df7","dark":"#835df7"},"logo":{"light":"https://mintcdn.com/paysight/iGy8IXiF55l0XLYB/images/paysight_light_purple.svg?fit=max\u0026auto=format\u0026n=iGy8IXiF55l0XLYB\u0026q=85\u0026s=8a5a98a9b4a10797c2f93131b72166cb","dark":"https://mintcdn.com/paysight/iGy8IXiF55l0XLYB/images/paysight_light_purple.svg?fit=max\u0026auto=format\u0026n=iGy8IXiF55l0XLYB\u0026q=85\u0026s=8a5a98a9b4a10797c2f93131b72166cb","href":"https://docs.paysight.io/"},"favicon":"https://mintcdn.com/paysight/N-VR3otE-jwc0efn/favicon.svg?fit=max\u0026auto=format\u0026n=N-VR3otE-jwc0efn\u0026q=85\u0026s=7dbd7fb359d2a2e527055aa4c04f3604","background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://help.paysight.io/en/","label":"Support"}],"primary":{"type":"button","label":"Sign in","href":"https://app.paysight.io/auth/login"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/paysight-io","instagram":"https://www.instagram.com/paysight.io"}},"icons":{"library":"lucide"},"interaction":{"drilldown":true},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"paysight","hasAudioNarration":false,"actualSubdomain":"paysight","customDomains":["docs.paysight.io"],"gitSource":{"type":"github","owner":"paysight-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad36825c61f9b46518099d8","collectionId":"ff6a9fb7-9742-4de3-bf2c-2bb6fd6fe017","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad36825c61f9b46518099d8"},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6ad36825c61f9b46518099d8","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Guides","count":43},{"language":"default","tag":"SDK Reference","count":30},{"language":"default","tag":"Paysight API Reference","count":29},{"language":"default","tag":"Shopify Checkout","count":24},{"language":"default","tag":"Checkout Editor","count":23},{"language":"default","tag":"Integration Guides","count":18},{"language":"default","tag":"Knowledgebase","count":14},{"language":"default","tag":"Examples","count":10},{"language":"default","tag":"Admin API","count":9},{"language":"default","tag":"Paysight Guides","count":8}]},"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":"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":"editor-version-history-v2","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":"billing-page-v2","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":"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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel","slug":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel","pageMetadata":{"title":"Refund (and Cancel)","description":"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.","deprecated":null,"version":null,"openapi":"/api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/refund","href":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Refund (and Cancel)","description":"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.","deprecated":null,"version":null,"openapi":"/api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/refund","href":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Refund (and Cancel)","tags":["API for Chargeback Mitigation Providers"],"description":"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.","parameters":["f2c0d852-02a0-44bb-b320-bcd04903b531","eed339ea-26e5-478b-8b05-91dda044dc6c"],"requestBody":"58367b6a-3596-44b4-8eb9-d0cca590513e","responses":{"200":"4567dfe6-c390-49a0-97fd-2f2b7608a194","400":"52ad9971-8f57-48c0-a6e2-e30211ed7bc7","500":"de57c4b2-1ab6-42d2-8b2a-562a9e50d3e1"},"method":"post","type":"path","servers":["09532b41-0296-45d9-be10-b47ca25bdb3f"],"security":["c287260c-fb6d-4e85-b8af-ea71141958b3"],"path":"/api/mitigation/refund","baseUrlOptions":["https://test.paysight.io"],"title":"Refund (and Cancel)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f2c0d852-02a0-44bb-b320-bcd04903b531":{"name":"ClientId","in":"header","required":true,"description":"Your Paysight Tenant/Client Id. This is the id of the parent company listed in https://app.paysight.io/management/companies. Alternatively, this will be provided by Paysight","schema":{"type":"string","isRequired":true,"description":"Your Paysight Tenant/Client Id. This is the id of the parent company listed in https://app.paysight.io/management/companies. Alternatively, this will be provided by Paysight","uniqueKey":"","typeLabel":"string"}},"eed339ea-26e5-478b-8b05-91dda044dc6c":{"name":"UserEmail","in":"header","required":true,"description":"The email address of the party or group making the request","schema":{"type":"string","isRequired":true,"description":"The email address of the party or group making the request","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["transactionId"],"description":"Request payload for issuing a refund","properties":{"transactionId":{"type":"string","description":"Unique ID of the transaction to refund","example":"c0ffeec0-ffee-c0ff-eec0-ffeec0ffhec0","isRequired":true,"uniqueKey":"transactionId","typeLabel":"string"},"amount":{"type":"number","description":"Amount to refund","example":20,"uniqueKey":"amount","typeLabel":"number"},"refundItems":{"type":"array","description":"List of items included in the refund - this is only required for partial refunds on ecom transactions. Otherwise omit.","items":{"type":"object","properties":{"itemId":{"type":"string","description":"Unique identifier of the item","example":"item123","uniqueKey":"refundItems.items.[INDEX].itemId","typeLabel":"string"},"quantity":{"type":"integer","description":"Quantity to refund","example":1,"uniqueKey":"refundItems.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"refundItems.items.[INDEX]","typeLabel":"object"},"uniqueKey":"refundItems","typeLabel":"object[]"},"sendUserCommunication":{"type":"boolean","description":"Whether to send an email notification to the customer","example":true,"uniqueKey":"sendUserCommunication","typeLabel":"boolean"},"alertSource":{"type":"string","description":"Source of the alert triggering the refund","enum":["Chargebacks911","AltoGlobal","ChargebacksHero","GoatMaverick","DisputeDotCom","Kount","ChargebackHelp","Disputifier","RCVR"],"example":"ChargebackHelp","uniqueKey":"alertSource","typeLabel":"enum\u003cstring>"},"alertType":{"type":"string","description":"Type of alert","enum":["Ethoca","CDRN","RDR"],"example":"RDR","uniqueKey":"alertType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"transactionId":"c0ffeec0-ffee-c0ff-eec0-ffeec0ffhec0","amount":20,"refundItems":[{"itemId":"item123","quantity":1}],"sendUserCommunication":true,"alertSource":"ChargebackHelp","alertType":"RDR"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"4567dfe6-c390-49a0-97fd-2f2b7608a194":{"description":"Refund result","content":{"application/json":{"schema":{"type":"object","description":"Response payload returned after processing a refund. Note in the case of RDR, the refund will only be recorded as it is already completed.","properties":{"success":{"type":"boolean","description":"Indicates if the refund was successful","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Message describing the result of the refund","uniqueKey":"message","typeLabel":"string"},"refundId":{"type":"string","description":"Unique identifier for the processed refund","uniqueKey":"refundId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"\u003cstring>","refundId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"52ad9971-8f57-48c0-a6e2-e30211ed7bc7":{"description":"Invalid input","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"de57c4b2-1ab6-42d2-8b2a-562a9e50d3e1":{"description":"Internal server error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"c287260c-fb6d-4e85-b8af-ea71141958b3":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Your Paysight API key","scopes":[]}}},"servers":{"09532b41-0296-45d9-be10-b47ca25bdb3f":{"url":"https://test.paysight.io","description":"Test Server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"Your Paysight API key","scopes":[]},"schema":{"title":"Authorization","type":"string","description":"Your Paysight API key","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/mitigation-api/paysight_mitigation_api.yaml"},"subdomain":"paysight","siteName":"Paysight Documentation","title":"Refund (and Cancel) - Paysight Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-07T16:22:34.535Z","originalFileLocation":"api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Paysight Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_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/paysight/TiRYAiq2LpWD_cfN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Refund (and Cancel) - Paysight Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Paysight Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://paysight.mintlify.app/_mintlify/api/og/v2?division=API+for+Chargeback+Mitigation+Providers\u0026amp;title=Refund+%28and+Cancel%29\u0026amp;description=Issues+a+refund+for+a+specific+transaction+triggered+by+a+chargeback+alert.+In+the+case+of+RDR%2C+the+refund+has+already+occured+so+it+will+only+be+recorded+in+Pa\u0026amp;theme=f392b05b090d467f13cdd995\u0026amp;signature=ac4aeeaeb352ae96ac0542f47a4bb770a138b21217e77f1739049ef7b98fcc27\">\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 (and Cancel) - Paysight Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://paysight.mintlify.app/_mintlify/api/og/v2?division=API+for+Chargeback+Mitigation+Providers\u0026amp;title=Refund+%28and+Cancel%29\u0026amp;description=Issues+a+refund+for+a+specific+transaction+triggered+by+a+chargeback+alert.+In+the+case+of+RDR%2C+the+refund+has+already+occured+so+it+will+only+be+recorded+in+Pa\u0026amp;theme=f392b05b090d467f13cdd995\u0026amp;signature=ac4aeeaeb352ae96ac0542f47a4bb770a138b21217e77f1739049ef7b98fcc27\">\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/paysight/TiRYAiq2LpWD_cfN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Paysight Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#835df7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.paysight.io/#organization\",\"name\":\"Paysight Documentation\",\"url\":\"https://docs.paysight.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/paysight/iGy8IXiF55l0XLYB/images/paysight_light_purple.svg?fit=max\u0026auto=format\u0026n=iGy8IXiF55l0XLYB\u0026q=85\u0026s=8a5a98a9b4a10797c2f93131b72166cb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.paysight.io#website\",\"name\":\"Paysight Documentation\",\"url\":\"https://docs.paysight.io\",\"publisher\":{\"@id\":\"https://docs.paysight.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel#webpage\",\"url\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel\",\"name\":\"Refund (and Cancel)\",\"description\":\"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.\",\"dateModified\":\"2025-08-07T16:22:34.535Z\",\"isPartOf\":{\"@id\":\"https://docs.paysight.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mitigation API\",\"item\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/search\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API for Chargeback Mitigation Providers\",\"item\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/search\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Refund (and Cancel)\",\"item\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel#apireference\",\"headline\":\"Refund (and Cancel)\",\"name\":\"Refund (and Cancel)\",\"description\":\"Issues a refund for a specific transaction triggered by a chargeback alert. In the case of RDR, the refund has already occured so it will only be recorded in Paysight. This function also cancels the user subscription, even if the refund is unsuccessful or has been refunded previously.\",\"url\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel\",\"mainEntityOfPage\":{\"@id\":\"https://docs.paysight.io/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel#webpage\"},\"dateModified\":\"2025-08-07T16:22:34.535Z\",\"publisher\":{\"@id\":\"https://docs.paysight.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.paysight.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Paysight Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Paysight Documentation","nav":{"global":null,"tabs":[{"tab":"Knowledgebase","pages":[{"title":"Knowledgebase","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/introduction"}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/widget-sdk/introduction"}]},{"tab":"Paysight API Reference","groups":[{"group":"Paysight API","pages":[{"title":"API Introduction","href":"/api-reference/introduction"}]},{"group":"Card Submit API","pages":[{"title":"Card Submission API Quickstart","href":"/api-reference/card-submit/index"}]},{"group":"Card Submit API","pages":[{"group":"Card","pages":[{"title":"Submit card and customer info for a product","deprecated":null,"version":null,"openapi":"/api-reference/card-submit/paysight_card_submit_api.yaml post /api/{productId}","href":"/api-reference/card-submit/card/submit-card-and-customer-info-for-a-product"},{"title":"Complete a 3D Secure authentication flow","deprecated":null,"version":null,"openapi":"/api-reference/card-submit/paysight_card_submit_api.yaml post /api/{productId}/3ds","href":"/api-reference/card-submit/card/complete-a-3d-secure-authentication-flow"}]},{"group":"Session","pages":[{"title":"Submit customer contact/billing info before card submit","deprecated":null,"version":null,"openapi":"/api-reference/card-submit/paysight_card_submit_api.yaml post /api/{productId}/info","href":"/api-reference/card-submit/session/submit-customer-contactbilling-info-before-card-submit"}]}]},{"group":"Customer Leads API","pages":[{"title":"Customer Leads API","href":"/api-reference/customer-leads/index"}]},{"group":"Customer Leads API","pages":[{"group":"Customer Leads","pages":[{"title":"Query customer leads","deprecated":null,"version":null,"openapi":"/api-reference/customer-leads/paysight_customer_leads_api.yaml get /api/public/customer-leads","href":"/api-reference/customer-leads/customer-leads/query-customer-leads"},{"title":"Create or update a customer lead","deprecated":null,"version":null,"openapi":"/api-reference/customer-leads/paysight_customer_leads_api.yaml post /api/public/customer-leads","href":"/api-reference/customer-leads/customer-leads/create-or-update-a-customer-lead"}]}]},{"group":"Email Services","pages":[{"title":"Email Services","href":"/api-reference/emails/index"},{"title":"Tenant Email API","href":"/api-reference/emails/tenant-email-api"}]},{"group":"Customer Service API","pages":[{"group":"API Reference","pages":[{"title":"Search","deprecated":null,"version":null,"openapi":"/api-reference/customer-service-api/paysight_customer_service_api.yaml post /search","href":"/api-reference/search"},{"title":"Detail","deprecated":null,"version":null,"openapi":"/api-reference/customer-service-api/paysight_customer_service_api.yaml post /detail","href":"/api-reference/detail"},{"title":"Unsubscribe","deprecated":null,"version":null,"openapi":"/api-reference/customer-service-api/paysight_customer_service_api.yaml post /unsubscribe","href":"/api-reference/unsubscribe"},{"title":"Refund","deprecated":null,"version":null,"openapi":"/api-reference/customer-service-api/paysight_customer_service_api.yaml post /refund","href":"/api-reference/refund"}]}]},{"group":"Admin API","pages":[{"group":"MerchantAccounts","pages":[{"title":"GetMerchantAccount","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml get /api/admin/merchantaccounts/{id}","href":"/api-reference/admin-api/merchantaccounts/getmerchantaccount"},{"title":"UpdateMerchantAccount","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml put /api/admin/merchantaccounts/{id}","href":"/api-reference/admin-api/merchantaccounts/updatemerchantaccount"},{"title":"PatchMerchantAccount","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml patch /api/admin/merchantaccounts/{id}","href":"/api-reference/admin-api/merchantaccounts/patchmerchantaccount"},{"title":"GetMerchantAccounts","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml get /api/admin/merchantaccounts","href":"/api-reference/admin-api/merchantaccounts/getmerchantaccounts"},{"title":"CreateMerchantAccount","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml post /api/admin/merchantaccounts","href":"/api-reference/admin-api/merchantaccounts/createmerchantaccount"},{"title":"AddMerchantAccountToGroup","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml post /api/admin/merchantaccounts/{id}/group","href":"/api-reference/admin-api/merchantaccounts/addmerchantaccounttogroup"}]},{"group":"TransactionStatuses","pages":[{"title":"GetTransactionStatusCodes","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml get /api/admin/statuses","href":"/api-reference/admin-api/transactionstatuses/gettransactionstatuscodes"},{"title":"GetTransactionStatusCode","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml get /api/admin/statuses/{id}","href":"/api-reference/admin-api/transactionstatuses/gettransactionstatuscode"}]},{"group":"Transactions","pages":[{"title":"Advanced transaction search","deprecated":null,"version":null,"openapi":"/api-reference/admin-api/paysight_admin_api.yaml post /api/transactions/search","href":"/api-reference/admin-api/transactions/advanced-transaction-search"}]}]},{"group":"Mitigation API","pages":[{"group":"API for Chargeback Mitigation Providers","pages":[{"title":"Search","description":"Searches for transactions related to customer service mitigation using multiple optional filters.","deprecated":null,"version":null,"openapi":"/api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/search","href":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/search"},{"title":"Refund (and Cancel)","deprecated":null,"version":null,"openapi":"/api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/refund","href":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/refund-and-cancel"},{"title":"User Subscription Search with Pagination","description":"Retrieves subscriptions (active and inactive) for filtered date period. New subscribers and updated (unsubscribed) subscribers are returned based on date range. For broad range searches (for pulling large dataset) where only the date range is provided, a maximum of 1 day is allowed, i.e dateFrom must equal dateTo. Please also note that transactions are not updated when refunded / voided. Instead, they have a corresponding refund transaction which can be linked to the original transaction via the originalTransactionId field.","deprecated":null,"version":null,"openapi":"/api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/subscriptions","href":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/user-subscription-search-with-pagination"},{"title":"Unsubscribe a user","deprecated":null,"version":null,"openapi":"/api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/unsubscribe","href":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/unsubscribe-a-user"},{"title":"Advanced Transaction Search with Pagination","deprecated":null,"version":null,"openapi":"/api-reference/mitigation-api/paysight_mitigation_api.yaml post /api/mitigation/transactions","href":"/api-reference/mitigation-api/api-for-chargeback-mitigation-providers/advanced-transaction-search-with-pagination"}]}]},{"group":"Examples","pages":[{"title":"Payment API Integration","href":"/api-reference/examples/example-payment-api"}]}]}]},"title":"Refund (and Cancel) - Paysight Documentation","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}