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
Use the API key created under your merchant account from the Foldd 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.
Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refunds initiated against the same payment. If this is not passed by the merchant, this field shall be auto generated and provided in the API response. It is recommended to generate uuid(v4) as the refund_id.
Total amount for which the refund is to be initiated. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc., If not provided, this will default to the full payment amount
Reason for the refund. Often useful for displaying to users and your customer support executive. In case the payment went through Stripe, this field needs to be passed with one of these enums: duplicate, fraudulent, or requested_by_customer
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":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Foldd","colors":{"primary":"#006DF9","light":"#006DF9","dark":"#006DF9"},"favicon":"/favicon.ico","logo":{"light":"https://mintcdn.com/foldd/4pjPQXvMDEJJFTI-/logo/light.svg?fit=max\u0026auto=format\u0026n=4pjPQXvMDEJJFTI-\u0026q=85\u0026s=f6c0da8ec03d7be15c770bb03396d9b6","dark":"https://mintcdn.com/foldd/4pjPQXvMDEJJFTI-/logo/dark.svg?fit=max\u0026auto=format\u0026n=4pjPQXvMDEJJFTI-\u0026q=85\u0026s=daea85eec30447b4c35dd713735d889d"},"api":{"openapi":["openapi_spec.json"]},"background":{"decoration":null,"color":{"light":null,"dark":"#242F48"}},"footer":{"socials":{}},"integrations":{"gtm":{"tagId":"GTM-PLBNKQFQ"},"mixpanel":{"projectToken":"b00355f29d9548d1333608df71d5d53d"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"foldd","hasAudioNarration":false,"actualSubdomain":"foldd","customDomains":["docs.foldd.com"],"gitSource":{"type":"github","owner":"foldd-payments","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae929f32aa543bea3370193:success","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":64},{"language":"default","tag":"Payments","count":14},{"language":"default","tag":"Routing","count":10},{"language":"default","tag":"Payment Methods","count":9},{"language":"default","tag":"Payouts","count":9},{"language":"default","tag":"Customers","count":5},{"language":"default","tag":"Blocklist","count":4},{"language":"default","tag":"Refunds","count":4},{"language":"default","tag":"Mandates","count":3},{"language":"default","tag":"Essentials","count":3}]},"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":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/refunds/refunds--create","slug":"/api-reference/refunds/refunds--create","pageMetadata":{"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"},"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: \"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\"\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":{"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"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Refunds"],"summary":"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","operationId":"Create a Refund","requestBody":"1bc708a8-ff29-4eca-8d6f-10b90a7fd52a","responses":{"200":"4c2794e2-7538-46d6-8625-9588b9a623af","400":"5926b21e-4ac5-482e-a316-0e51dd7bcd88"},"security":["fde4cba7-8bcc-4888-aa78-0806da6a4543"],"method":"post","type":"path","servers":["073a37b3-70aa-4a3f-b06f-960e0969cfd4"],"path":"/refunds","baseUrlOptions":["https://sandbox.foldd.com"],"title":"Refunds - Create","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["payment_id"],"properties":{"payment_id":{"type":"string","description":"The payment id against which refund is to be initiated","example":"pay_mbabizu24mvu3mela5njyhpit4","maxLength":30,"minLength":30,"isRequired":true,"uniqueKey":"payment_id","typeLabel":"string"},"refund_id":{"oneOf":[{"type":"string","description":"Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refunds initiated against the same payment. If this is not passed by the merchant, this field shall be auto generated and provided in the API response. It is recommended to generate uuid(v4) as the refund_id.","example":"ref_mbabizu24mvu3mela5njyhpit4","maxLength":30,"minLength":30,"uniqueKey":"refund_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refunds initiated against the same payment. If this is not passed by the merchant, this field shall be auto generated and provided in the API response. It is recommended to generate uuid(v4) as the refund_id.","example":"ref_mbabizu24mvu3mela5njyhpit4","maxLength":30,"minLength":30,"uniqueKey":"refund_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refund_id","typeLabel":"string | null"},"merchant_id":{"oneOf":[{"type":"string","description":"The identifier for the Merchant Account","example":"y3oqhf46pyzuxjbcn2giaqnb44","maxLength":255,"uniqueKey":"merchant_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The identifier for the Merchant Account","example":"y3oqhf46pyzuxjbcn2giaqnb44","maxLength":255,"uniqueKey":"merchant_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_id","typeLabel":"string | null"},"amount":{"oneOf":[{"type":"integer","format":"int64","description":"Total amount for which the refund is to be initiated. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc., If not provided, this will default to the full payment amount","example":6540,"minimum":100,"uniqueKey":"amount.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Total amount for which the refund is to be initiated. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc., If not provided, this will default to the full payment amount","example":6540,"minimum":100,"uniqueKey":"amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"amount","typeLabel":"integer\u003cint64> | null"},"reason":{"oneOf":[{"type":"string","description":"Reason for the refund. Often useful for displaying to users and your customer support executive. In case the payment went through Stripe, this field needs to be passed with one of these enums: `duplicate`, `fraudulent`, or `requested_by_customer`","example":"Customer returned the product","maxLength":255,"uniqueKey":"reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reason for the refund. Often useful for displaying to users and your customer support executive. In case the payment went through Stripe, this field needs to be passed with one of these enums: `duplicate`, `fraudulent`, or `requested_by_customer`","example":"Customer returned the product","maxLength":255,"uniqueKey":"reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason","typeLabel":"string | null"},"refund_type":{"oneOf":[{"type":"string","description":"To indicate whether to refund needs to be instant or scheduled","default":"Instant","enum":["scheduled","instant"],"uniqueKey":"refund_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"refund_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"refund_type","typeLabel":"enum\u003cstring> | 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"},"merchant_connector_details":{"oneOf":[{"type":"object","description":"Merchant connector details used to make payments.","required":["creds_identifier"],"properties":{"creds_identifier":{"type":"string","description":"Creds Identifier is to uniquely identify the credentials. Do not send any sensitive info, like encoded_data in this field. And do not send the string \"null\".","isRequired":true,"uniqueKey":"merchant_connector_details.oneOf.0.creds_identifier","typeLabel":"string"},"encoded_data":{"oneOf":[{"type":"object","properties":{"connector_account_details":{"oneOf":[{"type":"object","description":"Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Useful for storing additional, structured information on an object.","uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.0.connector_account_details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Useful for storing additional, structured information on an object.","uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.0.connector_account_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.0.connector_account_details","typeLabel":"object | null"},"metadata":{"oneOf":[{"type":"object","description":"Metadata is useful for storing additional, unstructured information on an object.","uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Metadata is useful for storing additional, unstructured information on an object.","uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.0.metadata","typeLabel":"object | null"}},"uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"merchant_connector_details.oneOf.0.encoded_data.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_connector_details.oneOf.0.encoded_data","typeLabel":"object | null"}},"uniqueKey":"merchant_connector_details.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"merchant_connector_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_connector_details","typeLabel":"object | 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"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Create an instant refund to refund partial amount":{"title":"Create an instant refund to refund partial amount","value":{"amount":654,"payment_id":"{{payment_id}}","refund_type":"instant"}},"Create an instant refund to refund the whole amount":{"title":"Create an instant refund to refund the whole amount","value":{"payment_id":"{{payment_id}}","refund_type":"instant"}},"Create an instant refund with reason":{"title":"Create an instant refund with reason","value":{"amount":6540,"payment_id":"{{payment_id}}","reason":"Customer returned product","refund_type":"instant"}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"4c2794e2-7538-46d6-8625-9588b9a623af":{"description":"Refund created","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"},"5926b21e-4ac5-482e-a316-0e51dd7bcd88":{"description":"Missing Mandatory fields","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"fde4cba7-8bcc-4888-aa78-0806da6a4543":{"api_key":{"type":"apiKey","in":"header","name":"api-key","description":"Use the API key created under your merchant account from the Foldd 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":{"073a37b3-70aa-4a3f-b06f-960e0969cfd4":{"url":"https://sandbox.foldd.com","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 Foldd 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 Foldd 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":"foldd","siteName":"Foldd","title":"Refunds - Create - Foldd","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T09:07:03.998Z","originalFileLocation":"api-reference/refunds/refunds--create.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=\"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\">\u003cmeta data-mint-head name=\"application-name\" content=\"Foldd\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/foldd/wIvqjKXYzmZnriy4/_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/foldd/wIvqjKXYzmZnriy4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/foldd/wIvqjKXYzmZnriy4/_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/foldd/wIvqjKXYzmZnriy4/_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/foldd/wIvqjKXYzmZnriy4/_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/foldd/wIvqjKXYzmZnriy4/_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/foldd/wIvqjKXYzmZnriy4/_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/foldd/wIvqjKXYzmZnriy4/_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/foldd/wIvqjKXYzmZnriy4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Refunds - Create - Foldd\">\u003cmeta data-mint-head property=\"og:description\" content=\"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\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Foldd\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.foldd.com/api-reference/refunds/refunds--create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://foldd.mintlify.site/_mintlify/api/og/v2?division=Refunds\u0026amp;title=Refunds+-+Create\u0026amp;description=Creates+a+refund+against+an+already+processed+payment.+In+case+of+some+processors%2C+you+can+even+opt+to+refund+only+a+partial+amount+multiple+times+until+the+ori\u0026amp;theme=4186edb71ca2795c28d3447f\u0026amp;signature=4fd4383e148618aff1fda871facb6956886577b0a047ec0b7f3a810459e3eab9\">\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 - Create - Foldd\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://foldd.mintlify.site/_mintlify/api/og/v2?division=Refunds\u0026amp;title=Refunds+-+Create\u0026amp;description=Creates+a+refund+against+an+already+processed+payment.+In+case+of+some+processors%2C+you+can+even+opt+to+refund+only+a+partial+amount+multiple+times+until+the+ori\u0026amp;theme=4186edb71ca2795c28d3447f\u0026amp;signature=4fd4383e148618aff1fda871facb6956886577b0a047ec0b7f3a810459e3eab9\">\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/foldd/wIvqjKXYzmZnriy4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Foldd\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006DF9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.foldd.com/api-reference/refunds/refunds--create\">\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--create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.foldd.com/#organization\",\"name\":\"Foldd\",\"url\":\"https://docs.foldd.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/foldd/4pjPQXvMDEJJFTI-/logo/light.svg?fit=max\u0026auto=format\u0026n=4pjPQXvMDEJJFTI-\u0026q=85\u0026s=f6c0da8ec03d7be15c770bb03396d9b6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.foldd.com#website\",\"name\":\"Foldd\",\"url\":\"https://docs.foldd.com\",\"publisher\":{\"@id\":\"https://docs.foldd.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.foldd.com/api-reference/refunds/refunds--create#webpage\",\"url\":\"https://docs.foldd.com/api-reference/refunds/refunds--create\",\"name\":\"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\",\"dateModified\":\"2026-01-07T09:07:03.998Z\",\"isPartOf\":{\"@id\":\"https://docs.foldd.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.foldd.com/api-reference/refunds/refunds--create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.foldd.com/api-reference/refunds/refunds--create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.foldd.com/api-reference/payments/Introduction--to--payments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Refunds - Create\",\"item\":\"https://docs.foldd.com/api-reference/refunds/refunds--create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.foldd.com/api-reference/refunds/refunds--create#apireference\",\"headline\":\"Refunds - Create\",\"name\":\"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\",\"url\":\"https://docs.foldd.com/api-reference/refunds/refunds--create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.foldd.com/api-reference/refunds/refunds--create#webpage\"},\"dateModified\":\"2026-01-07T09:07:03.998Z\",\"publisher\":{\"@id\":\"https://docs.foldd.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.foldd.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Foldd\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Foldd","nav":{"global":null,"groups":[{"group":"Get Started","pages":[{"title":"👋 Welcome to Foldd API Reference","sidebarTitle":"Introduction","icon":"rectangle-code","iconType":"solid","href":"/introduction"}]},{"group":"Essentials","pages":[{"title":"Error Codes","href":"/essentials/error_codes"},{"title":"Rate Limits","href":"/essentials/rate_limit"},{"title":"Go-live Checklist","href":"/essentials/go-live"}]},{"group":"API Reference","pages":[{"group":"Payments","pages":[{"sidebarTitle":"Getting Started with Payments","icon":"circle-play","iconType":"solid","title":null,"href":"/api-reference/payments/Introduction--to--payments"},{"openapi":"openapi_spec post /payments","title":"Payments - Create","href":"/api-reference/payments/payments--create"},{"openapi":"openapi_spec post /payments/{payment_id}","title":"Payments - Update","href":"/api-reference/payments/payments--update"},{"openapi":"openapi_spec post /payments/{payment_id}/confirm","title":"Payments - Confirm","href":"/api-reference/payments/payments--confirm"},{"openapi":"openapi_spec get /payments/{payment_id}","title":"Payments - Retrieve","href":"/api-reference/payments/payments--retrieve"},{"openapi":"openapi_spec post /payments/{payment_id}/cancel","title":"Payments - Cancel","href":"/api-reference/payments/payments--cancel"},{"openapi":"openapi_spec post /payments/{payment_id}/capture","title":"Payments - Capture","href":"/api-reference/payments/payments--capture"},{"openapi":"post /payments/{payment_id}/incremental_authorization","title":"Payments - Incremental Authorization","href":"/api-reference/payments/payments--incremental-authorization"},{"openapi":"openapi_spec post /payments/session_tokens","title":"Payments - Session token","href":"/api-reference/payments/payments--session-token"},{"openapi":"openapi_spec get /payment_link/{payment_link_id}","title":"Payments Link - Retrieve","href":"/api-reference/payments/payments-link--retrieve"},{"openapi":"openapi_spec get /payments/list","title":"Payments - List","href":"/api-reference/payments/payments--list"},{"openapi":"post /payments/{payment_id}/3ds/authentication","title":"Payments - External 3DS Authentication","href":"/api-reference/payments/payments--external-3ds-authentication"},{"openapi":"post /{payment_id}/complete_authorize","title":"Payments - Complete Authorize","href":"/api-reference/payments/payments--complete-authorize"},{"openapi":"post /payments/{payment_id}/update_metadata","title":"Payments - Update Metadata","href":"/api-reference/payments/payments--update-metadata"}]},{"group":"Payment Methods","pages":[{"openapi":"openapi_spec post /payment_methods","title":"PaymentMethods - Create","href":"/api-reference/payment-methods/paymentmethods--create"},{"openapi":"openapi_spec get /payment_methods/{method_id}","title":"Payment Method - Retrieve","href":"/api-reference/payment-methods/payment-method--retrieve"},{"openapi":"openapi_spec post /payment_methods/{method_id}/update","title":"Payment Method - Update","href":"/api-reference/payment-methods/payment-method--update"},{"openapi":"openapi_spec delete /payment_methods/{method_id}","title":"Payment Method - Delete","href":"/api-reference/payment-methods/payment-method--delete"},{"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"},{"openapi":"openapi_spec get /account/payment_methods","title":"List payment methods for a Merchant","href":"/api-reference/payment-methods/list-payment-methods-for-a-merchant"},{"openapi":"get /customers/payment_methods","title":"List customer saved payment methods for a Payment","href":"/api-reference/payment-methods/list-customer-saved-payment-methods-for-a-payment"},{"openapi":"openapi_spec get /customers/{customer_id}/payment_methods","title":"List payment methods for a Customer","href":"/api-reference/payment-methods/list-payment-methods-for-a-customer"},{"openapi":"get /{customer_id}/payment_methods/{payment_method_id}/default","title":"Payment Method - Set Default Payment Method for Customer","href":"/api-reference/customer-set-default-payment-method/customers--set-default-payment-method"}]},{"group":"Customers","pages":[{"openapi":"openapi_spec post /customers","title":"Customers - Create","href":"/api-reference/customers/customers--create"},{"openapi":"openapi_spec get /customers/{customer_id}","title":"Customers - Retrieve","href":"/api-reference/customers/customers--retrieve"},{"openapi":"openapi_spec post /customers/{customer_id}","title":"Customers - Update","href":"/api-reference/customers/customers--update"},{"openapi":"openapi_spec delete /customers/{customer_id}","title":"Customers - Delete","href":"/api-reference/customers/customers--delete"},{"openapi":"openapi_spec get /customers/list","title":"Customers - List","href":"/api-reference/customers/customers--list"}]},{"group":"Mandates","pages":[{"openapi":"openapi_spec post /mandates/revoke/{mandate_id}","title":"Mandates - Revoke Mandate","href":"/api-reference/mandates/mandates--revoke-mandate"},{"openapi":"openapi_spec get /mandates/{mandate_id}","title":"Mandates - Retrieve Mandate","href":"/api-reference/mandates/mandates--retrieve-mandate"},{"openapi":"post /customers/{customer_id}/mandates","title":"Mandates - Customer Mandates List","description":"Lists all the mandates for a particular customer id.","href":"/api-reference/mandates/mandates--customer-mandates-list"}]},{"group":"Refunds","pages":[{"openapi":"openapi_spec post /refunds","title":"Refunds - Create","href":"/api-reference/refunds/refunds--create"},{"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"},{"openapi":"openapi_spec get /refunds/{refund_id}","title":"Refunds - Retrieve","href":"/api-reference/refunds/refunds--retrieve"},{"openapi":"openapi_spec post /refunds/list","title":"Refunds - List","href":"/api-reference/refunds/refunds--list"}]},{"group":"Disputes","pages":[{"openapi":"openapi_spec get /disputes/{dispute_id}","title":"Disputes - Retrieve Dispute","href":"/api-reference/disputes/disputes--retrieve"},{"openapi":"openapi_spec get /disputes/list","title":"Disputes - List Disputes","href":"/api-reference/disputes/disputes--list"}]},{"group":"Payouts","pages":[{"openapi":"openapi_spec post /payouts/create","title":"Payouts - Create","href":"/api-reference/payouts/payouts--create"},{"openapi":"openapi_spec post /payouts/{payout_id}","title":"Payouts - Update","href":"/api-reference/payouts/payouts--update"},{"openapi":"openapi_spec post /payouts/{payout_id}/cancel","title":"Payouts - Cancel","href":"/api-reference/payouts/payouts--cancel"},{"openapi":"openapi_spec post /payouts/{payout_id}/fulfill","title":"Payouts - Fulfill","href":"/api-reference/payouts/payouts--fulfill"},{"openapi":"openapi_spec post /payouts/{payout_id}/confirm","title":"Payouts - Confirm","href":"/api-reference/payouts/payouts--confirm"},{"openapi":"openapi_spec get /payouts/{payout_id}","title":"Payouts - Retrieve","href":"/api-reference/payouts/payouts--retrieve"},{"openapi":"get /payouts/list","title":"Payouts - List","href":"/api-reference/payouts/payouts--list"},{"openapi":"post /payouts/filter","title":"Payouts - List available filters","href":"/api-reference/payouts/payouts--list-filters"},{"openapi":"post /payouts/list","title":"Payouts - List using filters","href":"/api-reference/payouts/payouts--filter"}]},{"group":"Event","pages":[{"title":"Events list","href":"/api-reference/event/events--list"},{"title":"Events delivery attempt list","href":"/api-reference/event/events--delivery-attempt-list"},{"title":"Events manual retry","href":"/api-reference/event/events--manual-retry"}]},{"group":"Poll","pages":[{"openapi":"get /poll/status/{poll_id}","title":"Poll - Retrieve Poll Status","href":"/api-reference/poll/poll--retrieve-poll-status"}]},{"group":"Blocklist","pages":[{"openapi":"get /blocklist","title":null,"href":"/api-reference/blocklist/get-blocklist"},{"openapi":"post /blocklist","title":null,"href":"/api-reference/blocklist/post-blocklist"},{"openapi":"delete /blocklist","title":null,"href":"/api-reference/blocklist/delete-blocklist"},{"openapi":"post /blocklist/toggle","title":null,"href":"/api-reference/blocklist/post-blocklisttoggle"}]},{"group":"Routing","pages":[{"openapi":"get /routing","title":"Routing - List","href":"/api-reference/routing/routing--list"},{"openapi":"post /routing","title":"Routing - Create","href":"/api-reference/routing/routing--create"},{"openapi":"get /routing/active","title":"Routing - Retrieve Config","href":"/api-reference/routing/routing--retrieve-config"},{"openapi":"post /routing/deactivate","title":"Routing - Deactivate","href":"/api-reference/routing/routing--deactivate"},{"openapi":"get /routing/default","title":"Routing - Retrieve Default Config","href":"/api-reference/routing/routing--retrieve-default-config"},{"openapi":"post /routing/default","title":"Routing - Update Default Config","href":"/api-reference/routing/routing--update-default-config"},{"openapi":"get /routing/default/profile","title":"Routing - Retrieve Default For Profile","href":"/api-reference/routing/routing--retrieve-default-for-profile"},{"openapi":"post /routing/default/profile/{profile_id}","title":"Routing - Update Default For Profile","href":"/api-reference/routing/routing--update-default-for-profile"},{"openapi":"get /routing/{routing_algorithm_id}","title":"Routing - Retrieve","href":"/api-reference/routing/routing--retrieve"},{"openapi":"post /routing/{routing_algorithm_id}/activate","title":"Routing - Activate config","href":"/api-reference/routing/routing--activate-config"}]},{"group":"Relay","pages":[{"openapi":"openapi_spec post /relay","title":"Relay - Create","href":"/api-reference/relay/relay"},{"openapi":"openapi_spec get /relay/{relay_id}","title":"Relay - Retrieve","href":"/api-reference/relay/relay--retrieve"}]},{"group":"Schemas","pages":[{"title":null,"href":"/api-reference/schemas/outgoing--webhook"}]}]}]},"basePath":"","title":"Refunds - Create - Foldd","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}