Use the API key created under your merchant account from the Vaultera Switch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
The refund amount, which should be less than or equal to the total payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc
You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object
Error message received from the issuer in case of failed refunds
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Vaultera Switch","colors":{"primary":"#6366f1","light":"#8b5cf6","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/vaultera/x20IvR9u7_NHQlSC/logo/light.svg?fit=max\u0026auto=format\u0026n=x20IvR9u7_NHQlSC\u0026q=85\u0026s=af6567a50681ce778aa2ac6aa0f9b400","dark":"https://mintcdn.com/vaultera/x20IvR9u7_NHQlSC/logo/dark.svg?fit=max\u0026auto=format\u0026n=x20IvR9u7_NHQlSC\u0026q=85\u0026s=98047fc8a944a43c19a4c45d6c5e3750","href":"https://vaultera.co"},"favicon":"/favicon.png","api":{"openapi":["openapi_spec.json"],"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.test.switch.vaultera.co"}},"background":{"color":{"light":"#ffffff","dark":"#0f172a"}},"navbar":{"links":[{"href":"mailto:switch@vaultera.co","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.test.switch.vaultera.co"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/vaultera"}},"search":{"prompt":"Search VaulteraSwitch documentation..."},"icons":{"library":"lucide"},"styling":{"codeblocks":"system","latex":false},"integrations":{"mixpanel":{"projectToken":"ff278b6dfe03b3da255c0778f9a38b6c"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vaultera","hasAudioNarration":false,"actualSubdomain":"vaultera","customDomains":["docs.switch.vaultera.co"],"gitSource":{"type":"github","owner":"vaultera-co","repo":"switch","deployBranch":"main","contentDirectory":"api-reference","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9288ff5d453616651e0a7:success","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Explore","count":44},{"language":"default","tag":"Explore Vaultera","count":36},{"language":"default","tag":"API Reference","count":25},{"language":"default","tag":"Core APIs","count":24},{"language":"default","tag":"Payment Orchestration","count":17},{"language":"default","tag":"Accept Payments","count":12},{"language":"default","tag":"Payment Operations","count":11},{"language":"default","tag":"Payments","count":8},{"language":"default","tag":"Integrating checkout","count":8},{"language":"default","tag":"Customers","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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"public/css/custom.css","content":""}],"page":{"pagePath":"api-reference/refunds/refunds--update","slug":"/api-reference/refunds/refunds--update","pageMetadata":{"openapi":"openapi_spec post /refunds/{refund_id}","title":"Refunds - Update","description":"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields","href":"/api-reference/refunds/refunds--update","hidden":false},"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: \"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields\"\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":{"codeStyling":"system","config":{},"pageMetadata":{"openapi":"openapi_spec post /refunds/{refund_id}","title":"Refunds - Update","description":"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields","href":"/api-reference/refunds/refunds--update","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/vaultera/6ce913ae5d413d1a/public/js/custom.js"],"openApiReferenceData":{"operation":{"tags":["Refunds"],"summary":"Refunds - Update","description":"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields","operationId":"Update a Refund","parameters":["de33f84b-777d-40c3-8597-197a76d03f32"],"requestBody":"bb46ed07-275a-4f42-948a-4bd38f48b499","responses":{"200":"054f9529-f0f0-4f79-97f0-4924d0265c46","400":"e26c12af-f9be-4e90-a51a-27fed2f6d585"},"security":["0a3ac056-24c8-4773-bbed-b400c82559fa"],"method":"post","type":"path","servers":["69f132bc-3288-4c4d-92ba-af3bde544d3f","fd146f12-f272-409a-99b5-23aa5f7a2d09"],"path":"/refunds/{refund_id}","baseUrlOptions":["https://api.test.switch.vaultera.co","https://api.switch.vaultera.co"],"title":"Refunds - Update","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"de33f84b-777d-40c3-8597-197a76d03f32":{"name":"refund_id","in":"path","description":"The identifier for refund","required":true,"schema":{"type":"string","isRequired":true,"description":"The identifier for refund","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"oneOf":[{"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive","example":"Customer returned the product","maxLength":255,"uniqueKey":"reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive","example":"Customer returned the product","maxLength":255,"uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Update refund reason":{"title":"Update refund reason","value":{"reason":"Paid by mistake"}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"054f9529-f0f0-4f79-97f0-4924d0265c46":{"description":"Refund updated","content":{"application/json":{"schema":{"type":"object","required":["refund_id","payment_id","amount","currency","status","connector"],"properties":{"refund_id":{"type":"string","description":"Unique Identifier for the refund","isRequired":true,"uniqueKey":"refund_id","typeLabel":"string"},"payment_id":{"type":"string","description":"The payment id against which refund is initiated","isRequired":true,"uniqueKey":"payment_id","typeLabel":"string"},"amount":{"type":"integer","format":"int64","description":"The refund amount, which should be less than or equal to the total payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc","example":6540,"minimum":100,"isRequired":true,"uniqueKey":"amount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"The three-letter ISO currency code","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"status":{"type":"string","description":"The status for refunds","enum":["succeeded","failed","pending","review"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"connector":{"type":"string","description":"The connector used for the refund and the corresponding payment","example":"stripe","isRequired":true,"uniqueKey":"connector","typeLabel":"string"},"reason":{"oneOf":[{"type":"string","description":"An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive","uniqueKey":"reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive","uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"error_message":{"oneOf":[{"type":"string","description":"The error message","uniqueKey":"error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"The error message","uniqueKey":"error_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"error_message","typeLabel":"string | null"},"error_code":{"oneOf":[{"type":"string","description":"The code for the error","uniqueKey":"error_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The code for the error","uniqueKey":"error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error_code","typeLabel":"string | null"},"unified_code":{"oneOf":[{"type":"string","description":"Error code unified across the connectors is received here if there was an error while calling connector","uniqueKey":"unified_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Error code unified across the connectors is received here if there was an error while calling connector","uniqueKey":"unified_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"unified_code","typeLabel":"string | null"},"unified_message":{"oneOf":[{"type":"string","description":"Error message unified across the connectors is received here if there was an error while calling connector","uniqueKey":"unified_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Error message unified across the connectors is received here if there was an error while calling connector","uniqueKey":"unified_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"unified_message","typeLabel":"string | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","description":"The timestamp at which refund is created","uniqueKey":"created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The timestamp at which refund is created","uniqueKey":"created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","description":"The timestamp at which refund is updated","uniqueKey":"updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The timestamp at which refund is updated","uniqueKey":"updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time> | null"},"profile_id":{"oneOf":[{"type":"string","description":"The id of business profile for this refund","uniqueKey":"profile_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of business profile for this refund","uniqueKey":"profile_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"profile_id","typeLabel":"string | null"},"merchant_connector_id":{"oneOf":[{"type":"string","description":"The merchant_connector_id of the processor through which this payment went through","uniqueKey":"merchant_connector_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The merchant_connector_id of the processor through which this payment went through","uniqueKey":"merchant_connector_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_connector_id","typeLabel":"string | null"},"split_refunds":{"oneOf":[{"type":"object","description":"Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.","required":["stripe_split_refund"],"properties":{"stripe_split_refund":{"type":"object","description":"Charge specific fields for controlling the revert of funds from either platform or connected account for Stripe. Check sub-fields for more details.","properties":{"revert_platform_fee":{"oneOf":[{"type":"boolean","description":"Toggle for reverting the application fee that was collected for the payment.\nIf set to false, the funds are pulled from the destination account.","uniqueKey":"split_refunds.oneOf.0.stripe_split_refund.revert_platform_fee.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Toggle for reverting the application fee that was collected for the payment.\nIf set to false, the funds are pulled from the destination account.","uniqueKey":"split_refunds.oneOf.0.stripe_split_refund.revert_platform_fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_refunds.oneOf.0.stripe_split_refund.revert_platform_fee","typeLabel":"boolean | null"},"revert_transfer":{"oneOf":[{"type":"boolean","description":"Toggle for reverting the transfer that was made during the charge.\nIf set to false, the funds are pulled from the main platform's account.","uniqueKey":"split_refunds.oneOf.0.stripe_split_refund.revert_transfer.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Toggle for reverting the transfer that was made during the charge.\nIf set to false, the funds are pulled from the main platform's account.","uniqueKey":"split_refunds.oneOf.0.stripe_split_refund.revert_transfer.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_refunds.oneOf.0.stripe_split_refund.revert_transfer","typeLabel":"boolean | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"split_refunds.oneOf.0.stripe_split_refund","typeLabel":"object"}},"uniqueKey":"split_refunds.oneOf.0","typeLabel":"object"},{"type":"object","description":"Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.","required":["adyen_split_refund"],"properties":{"adyen_split_refund":{"type":"object","description":"Fee information for Split Payments to be charged on the payment being collected for Adyen","required":["split_items"],"properties":{"split_items":{"type":"array","items":{"type":"object","description":"Data for the split items","required":["amount","split_type","reference"],"properties":{"amount":{"type":"integer","format":"int64","description":"The amount of the split item","example":6540,"isRequired":true,"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"split_type":{"type":"string","enum":["BalanceAccount","AcquiringFees","PaymentFee","AdyenFees","AdyenCommission","AdyenMarkup","Interchange","SchemeFee","Commission","TopUp","Vat"],"isRequired":true,"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].split_type","typeLabel":"enum\u003cstring>"},"reference":{"type":"string","description":"Unique Identifier for the split item","isRequired":true,"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].reference","typeLabel":"string"},"account":{"oneOf":[{"type":"string","description":"The unique identifier of the account to which the split amount is allocated.","uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].account.oneOf.0","typeLabel":"string"},{"type":"null","description":"The unique identifier of the account to which the split amount is allocated.","uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].account.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].account","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Description for the part of the payment that will be allocated to the specified account.","uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description for the part of the payment that will be allocated to the specified account.","uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX].description","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items.items.[INDEX]","typeLabel":"object"},"description":"Data for the split items","isRequired":true,"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.split_items","typeLabel":"object[]"},"store":{"oneOf":[{"type":"string","description":"The store identifier","uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.store.oneOf.0","typeLabel":"string"},{"type":"null","description":"The store identifier","uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.store.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund.store","typeLabel":"string | null"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"split_refunds.oneOf.1.adyen_split_refund","typeLabel":"object"}},"uniqueKey":"split_refunds.oneOf.1","typeLabel":"object"},{"type":"object","description":"Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.","required":["xendit_split_refund"],"properties":{"xendit_split_refund":{"type":"object","description":"Fee information to be charged on the payment being collected for sub-merchant via xendit","required":["for_user_id"],"properties":{"for_user_id":{"type":"string","description":"The sub-account user-id that you want to make this transaction for.","isRequired":true,"uniqueKey":"split_refunds.oneOf.2.xendit_split_refund.for_user_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"split_refunds.oneOf.2.xendit_split_refund","typeLabel":"object"}},"uniqueKey":"split_refunds.oneOf.2","typeLabel":"object"},{"type":"null","uniqueKey":"split_refunds.oneOf.3","typeLabel":"null"}],"uniqueKey":"split_refunds","typeLabel":"object · object · object · null"},"issuer_error_code":{"oneOf":[{"type":"string","description":"Error code received from the issuer in case of failed refunds","uniqueKey":"issuer_error_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Error code received from the issuer in case of failed refunds","uniqueKey":"issuer_error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"issuer_error_code","typeLabel":"string | null"},"issuer_error_message":{"oneOf":[{"type":"string","description":"Error message received from the issuer in case of failed refunds","uniqueKey":"issuer_error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Error message received from the issuer in case of failed refunds","uniqueKey":"issuer_error_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"issuer_error_message","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"refund_id":"\u003cstring>","payment_id":"\u003cstring>","amount":6540,"currency":"\u003cstring>","status":"succeeded","connector":"stripe","reason":"\u003cstring>","metadata":{},"error_message":"\u003cstring>","error_code":"\u003cstring>","unified_code":"\u003cstring>","unified_message":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","profile_id":"\u003cstring>","merchant_connector_id":"\u003cstring>","split_refunds":{"stripe_split_refund":{"revert_platform_fee":true,"revert_transfer":true}},"issuer_error_code":"\u003cstring>","issuer_error_message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e26c12af-f9be-4e90-a51a-27fed2f6d585":{"description":"Missing Mandatory fields","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"0a3ac056-24c8-4773-bbed-b400c82559fa":{"api_key":{"type":"apiKey","in":"header","name":"api-key","description":"Use the API key created under your merchant account from the Vaultera Switch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.","scopes":[]}}},"servers":{"69f132bc-3288-4c4d-92ba-af3bde544d3f":{"url":"https://api.test.switch.vaultera.co","description":"Sandbox Environment"},"fd146f12-f272-409a-99b5-23aa5f7a2d09":{"url":"https://api.switch.vaultera.co","description":"Sandbox Environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"api-key","description":"Use the API key created under your merchant account from the Vaultera Switch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.","scopes":[]},"schema":{"title":"api-key","type":"string","description":"Use the API key created under your merchant account from the Vaultera Switch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"api_key","name":"api-key"}],"title":"api_key"}]},"originalFileLocation":"openapi_spec.json"},"subdomain":"vaultera","siteName":"Vaultera Switch","title":"Refunds - Update - Vaultera Switch","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-19T16:36:25.647Z","originalFileLocation":"api-reference/refunds/refunds--update.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=\"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vaultera Switch\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vaultera/SRYQpWbsc5VOCVDE/_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/vaultera/SRYQpWbsc5VOCVDE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vaultera/SRYQpWbsc5VOCVDE/_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/vaultera/SRYQpWbsc5VOCVDE/_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/vaultera/SRYQpWbsc5VOCVDE/_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/vaultera/SRYQpWbsc5VOCVDE/_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/vaultera/SRYQpWbsc5VOCVDE/_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/vaultera/SRYQpWbsc5VOCVDE/_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/vaultera/SRYQpWbsc5VOCVDE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Refunds - Update - Vaultera Switch\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vaultera Switch\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vaultera.mintlify.site/_mintlify/api/og/v2?division=Refunds\u0026amp;title=Refunds+-+Update\u0026amp;description=Updates+the+properties+of+a+Refund+object.+This+API+can+be+used+to+attach+a+reason+for+the+refund+or+metadata+fields\u0026amp;theme=2af10246053aec8105db19fe\u0026amp;signature=b1c6cc890afd4ebe05b733c8cbc9663b03b748c9a842487f5530a3aaab825938\">\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=\"Refunds - Update - Vaultera Switch\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vaultera.mintlify.site/_mintlify/api/og/v2?division=Refunds\u0026amp;title=Refunds+-+Update\u0026amp;description=Updates+the+properties+of+a+Refund+object.+This+API+can+be+used+to+attach+a+reason+for+the+refund+or+metadata+fields\u0026amp;theme=2af10246053aec8105db19fe\u0026amp;signature=b1c6cc890afd4ebe05b733c8cbc9663b03b748c9a842487f5530a3aaab825938\">\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/vaultera/SRYQpWbsc5VOCVDE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vaultera Switch\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/refunds/refunds--update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.switch.vaultera.co/#organization\",\"name\":\"Vaultera Switch\",\"url\":\"https://docs.switch.vaultera.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vaultera/x20IvR9u7_NHQlSC/logo/light.svg?fit=max\u0026auto=format\u0026n=x20IvR9u7_NHQlSC\u0026q=85\u0026s=af6567a50681ce778aa2ac6aa0f9b400\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.switch.vaultera.co#website\",\"name\":\"Vaultera Switch\",\"url\":\"https://docs.switch.vaultera.co\",\"publisher\":{\"@id\":\"https://docs.switch.vaultera.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update#webpage\",\"url\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update\",\"name\":\"Refunds - Update\",\"description\":\"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields\",\"dateModified\":\"2025-09-19T16:36:25.647Z\",\"isPartOf\":{\"@id\":\"https://docs.switch.vaultera.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core APIs\",\"item\":\"https://docs.switch.vaultera.co/api-reference/payments/Introduction--to--payments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Refunds\",\"item\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--create\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Refunds - Update\",\"item\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update#apireference\",\"headline\":\"Refunds - Update\",\"name\":\"Refunds - Update\",\"description\":\"Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields\",\"url\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.switch.vaultera.co/api-reference/refunds/refunds--update#webpage\"},\"dateModified\":\"2025-09-19T16:36:25.647Z\",\"publisher\":{\"@id\":\"https://docs.switch.vaultera.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.switch.vaultera.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vaultera Switch\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Vaultera Switch","nav":{"global":null,"tabs":[{"tab":"Welcome","icon":"home","pages":[{"title":"Welcome","href":"/introduction"}]},{"tab":"Explore","icon":"book","pages":[{"title":"Explore","href":"/start/exploration-guide"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Overview","pages":[{"title":"API Reference Overview","href":"/overview","hidden":false}]},{"group":"Core APIs","pages":[{"group":"Payments","icon":"credit-card","pages":[{"sidebarTitle":"Getting Started with Payments","icon":"circle-play","iconType":"solid","title":null,"href":"/api-reference/payments/Introduction--to--payments","hidden":false},{"openapi":"openapi_spec post /payments","title":"Payments - Create","href":"/api-reference/payments/payments--create","hidden":false},{"openapi":"openapi_spec post /payments/{payment_id}","title":"Payments - Update","href":"/api-reference/payments/payments--update","hidden":false},{"openapi":"openapi_spec post /payments/{payment_id}/confirm","title":"Payments - Confirm","href":"/api-reference/payments/payments--confirm","hidden":false},{"openapi":"openapi_spec get /payments/{payment_id}","title":"Payments - Retrieve","href":"/api-reference/payments/payments--retrieve","hidden":false},{"openapi":"openapi_spec post /payments/{payment_id}/cancel","title":"Payments - Cancel","href":"/api-reference/payments/payments--cancel","hidden":false},{"openapi":"openapi_spec post /payments/{payment_id}/capture","title":"Payments - Capture","href":"/api-reference/payments/payments--capture","hidden":false},{"openapi":"post /payments/{payment_id}/incremental_authorization","title":"Payments - Incremental Authorization","href":"/api-reference/payments/payments--incremental-authorization","hidden":false}]},{"group":"Payment Methods","icon":"wallet","pages":[{"openapi":"openapi_spec post /payment_methods","title":"PaymentMethods - Create","href":"/api-reference/payment-methods/paymentmethods--create","hidden":false},{"openapi":"openapi_spec get /payment_methods/{method_id}","title":"Payment Method - Retrieve","href":"/api-reference/payment-methods/payment-method--retrieve","hidden":false},{"openapi":"openapi_spec post /payment_methods/{method_id}/update","title":"Payment Method - Update","href":"/api-reference/payment-methods/payment-method--update","hidden":false},{"openapi":"openapi_spec delete /payment_methods/{method_id}","title":"Payment Method - Delete","href":"/api-reference/payment-methods/payment-method--delete","hidden":false},{"openapi":"get /{customer_id}/payment_methods/{payment_method_id}/default","title":"Payment Method - Set Default Payment Method for Customer","href":"/api-reference/payment-methods/payment-method--set-default-payment-method-for-customer","hidden":false}]},{"group":"Customers","icon":"users","pages":[{"openapi":"openapi_spec post /customers","title":"Customers - Create","href":"/api-reference/customers/customers--create","hidden":false},{"openapi":"openapi_spec get /customers/{customer_id}","title":"Customers - Retrieve","href":"/api-reference/customers/customers--retrieve","hidden":false},{"openapi":"openapi_spec post /customers/{customer_id}","title":"Customers - Update","href":"/api-reference/customers/customers--update","hidden":false},{"openapi":"openapi_spec delete /customers/{customer_id}","title":"Customers - Delete","href":"/api-reference/customers/customers--delete","hidden":false},{"openapi":"openapi_spec get /customers/list","title":"Customers - List","href":"/api-reference/customers/customers--list","hidden":false}]},{"group":"Refunds","icon":"undo","pages":[{"openapi":"openapi_spec post /refunds","title":"Refunds - Create","description":"Creates a refund against an already processed payment. In case of some processors, you can even opt to refund only a partial amount multiple times until the original charge amount has been refunded","href":"/api-reference/refunds/refunds--create","hidden":false},{"openapi":"openapi_spec post /refunds/{refund_id}","title":"Refunds - Update","href":"/api-reference/refunds/refunds--update","hidden":false},{"openapi":"openapi_spec get /refunds/{refund_id}","title":"Refunds - Retrieve","description":"Retrieves a Refund. This may be used to get the status of a previously initiated refund","href":"/api-reference/refunds/refunds--retrieve","hidden":false},{"openapi":"openapi_spec post /refunds/list","title":"Refunds - List","href":"/api-reference/refunds/refunds--list","hidden":false}]},{"group":"Disputes","icon":"triangle-alert","pages":[{"openapi":"openapi_spec get /disputes/{dispute_id}","title":"Disputes - Retrieve Dispute","href":"/api-reference/disputes/disputes--retrieve","hidden":false},{"openapi":"openapi_spec get /disputes/list","title":"Disputes - List Disputes","href":"/api-reference/disputes/disputes--list","hidden":false}]}]}]},{"tab":"Support Matrix","icon":"table-2","pages":[{"title":"Support Matrix","href":"/support-matrix"}]}]},"basePath":"","title":"Refunds - Update - Vaultera Switch","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}