Only required when performing a partial refund. For a full refund, this object can be omitted.
refundAmount
integer
Amount to refund in the smallest currency unit.
Required range: x >= 1
Example:
12997
Response
OK. status is normally REFUNDED. If the provider hasn't confirmed the refund yet, status is PENDING: this describes the refund, not the payment, which stays CAPTURED. Don't resend the refund. If it succeeds you receive a PAYMENT_REFUNDED webhook; if it fails no webhook is sent and the payment stays CAPTURED. See If the refund outcome is not yet known.
paymentId
string
Unique identifier for the payment generated by the system.
Maximum string length: 32
Example:
"pay_1234567890abcdef"
merchantReference
string
Reference passed in by the merchant for correlation.
Example:
"ORDER-12345"
amount
integer
Amount processed in the smallest currency unit.
Example:
12997
currency
enum<string>
ISO 4217 currency code used in the payment. Currently only USD is supported.
Available options:
USD
Example:
"USD"
status
enum<string>
Current state of the payment.
Available options:
PENDING,
AUTHORIZED,
CAPTURED,
REFUNDED,
VOIDED,
FAILED
Example:
"CAPTURED"
paymentMethod
object
The chosen payment method details (e.g., card). Sensitive fields are masked in responses.
Show child attributes
captureNow
boolean
Determines how the payment is processed. Default: false → Authorization only (funds reserved, must capture later). If true → Sale (authorize and capture in one step).
Example:
true
descriptor
string
Not currently passed to the customer's statement. On Paymend MIDs, the statement shows the domain of the store in source.storeId.
Example:
"MyStore Online"
goodsType
enum<string>
Type of goods being purchased: PHYSICAL = tangible items, DIGITAL = non-physical items, MIXED = combination of both.
Available options:
PHYSICAL,
DIGITAL,
MIXED
Example:
"MIXED"
productItems
object[]
List of product or service items included in this payment.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Paymend API documentation","description":"Paymend is a revenue recovery engine that helps global merchants to unlock revenue from failed transactions.","colors":{"primary":"#BEB9FE","light":"#F5F3F9","dark":"#3D2E5F"},"logo":{"light":"https://mintcdn.com/paymend/cs7-Op59jD939zYw/images/icon_logo_black.png?fit=max\u0026auto=format\u0026n=cs7-Op59jD939zYw\u0026q=85\u0026s=eef12e728cbb57bd521991836b4134f7","dark":"https://mintcdn.com/paymend/cs7-Op59jD939zYw/images/icon_logo_white.png?fit=max\u0026auto=format\u0026n=cs7-Op59jD939zYw\u0026q=85\u0026s=4541a8e088e74212e715e0c472b80a53"},"favicon":{"light":"https://mintcdn.com/paymend/cs7-Op59jD939zYw/images/icon_lila_black.png?fit=max\u0026auto=format\u0026n=cs7-Op59jD939zYw\u0026q=85\u0026s=5c1c996a9cda828659a41dd9ecb64f4e","dark":"https://mintcdn.com/paymend/cs7-Op59jD939zYw/images/icon_black_white.png?fit=max\u0026auto=format\u0026n=cs7-Op59jD939zYw\u0026q=85\u0026s=de10a1aa7351c6f5fbc3abcd2c1f4e45"},"api":{"openapi":"api-reference/openapi.json"},"navbar":{},"footer":{},"seo":{"metatags":{"og:title":"Paymend API documentation","og:description":"Paymend is a revenue recovery engine that helps global merchants to unlock revenue from failed transactions.","og:image":"/images/Meta_Image-API.png"}},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"background":"https://mintcdn.com/paymend/cs7-Op59jD939zYw/images/Meta_Image-API.png?fit=max\u0026auto=format\u0026n=cs7-Op59jD939zYw\u0026q=85\u0026s=3a6944d653e3a745daac3b8d7fa75f69"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"paymend","hasAudioNarration":false,"actualSubdomain":"paymend","customDomains":["docs.paymend.com"],"gitSource":{"type":"github","owner":"paymend","repo":"public-api-doc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b04170393edbf63bed82809","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API reference","count":24},{"language":"default","tag":"API Objects","count":18},{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"Process payments","count":16},{"language":"default","tag":"Reporting","count":8},{"language":"default","tag":"Endpoints","count":5},{"language":"default","tag":"API documentation","count":1},{"language":"default","tag":"Updates","count":1}]},"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"turbopuffer-dual-write","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":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/refund","slug":"/api-reference/endpoint/refund","pageMetadata":{"title":"Refund payment","openapi":"POST /api/v1/payments/{paymentId}/refund","description":null,"href":"/api-reference/endpoint/refund"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Refund payment","openapi":"POST /api/v1/payments/{paymentId}/refund","description":null,"href":"/api-reference/endpoint/refund"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["payment-controller"],"operationId":"refundPayment","parameters":["46d1256f-e984-4f58-afc6-ed11aa6f6442"],"requestBody":"f2d3a3c5-ca17-4647-be53-0c3a5342b160","responses":{"200":"e753dc75-fe72-4892-bbc9-b52c99b8dcc5","400":"36fc7658-3be3-4a01-8b66-ce95c0777d16","401":"4794047f-8c69-472c-bda6-de4559a5becd","402":"05332bf8-d3cb-4f2e-9039-219afb777402","404":"4c69641d-2b90-4409-80d7-4b623aae4eaa","409":"58116484-692a-4a38-bc5e-1cc48f160eab","422":"7b5932a8-44b1-4dc2-9c40-7c367cb4a0ba","429":"1c7a3abf-50f5-4f06-a3ea-11e7e6ea53f6","500":"ab3733ec-d9a8-498a-b4e1-c6c62ce0512e","503":"1b37e300-c9a4-4f09-8517-f771c38d03c3"},"method":"post","type":"path","servers":["9f6ca6a6-d8a2-42e9-ba89-41e2a0395a60","38708d2c-c656-4e9e-a949-3bd132ac9bf8"],"security":["440fb063-faa4-483f-87b8-00a309dbd383"],"path":"/api/v1/payments/{paymentId}/refund","baseUrlOptions":["https://api.sandbox.paymend.com","https://api.prod.paymend.com"],"title":"","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"46d1256f-e984-4f58-afc6-ed11aa6f6442":{"name":"paymentId","in":"path","required":true,"schema":{"type":"string","maxLength":32,"isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Only required when performing a partial refund. For a full refund, this object can be omitted.","properties":{"refundAmount":{"type":"integer","minimum":1,"description":"Amount to refund in the smallest currency unit.","example":12997,"uniqueKey":"refundAmount","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"refundAmount":12997}}},"exampleType":"generated"}},"required":false,"exampleType":"generated"},"responses":{"e753dc75-fe72-4892-bbc9-b52c99b8dcc5":{"description":"OK. `status` is normally `REFUNDED`. If the provider hasn't confirmed the refund yet, `status` is `PENDING`: this describes the refund, not the payment, which stays `CAPTURED`. Don't resend the refund. If it succeeds you receive a `PAYMENT_REFUNDED` webhook; if it fails no webhook is sent and the payment stays `CAPTURED`. See [If the refund outcome is not yet known](/manage-payments#if-the-refund-outcome-is-not-yet-known).","content":{"application/json":{"schema":{"type":"object","properties":{"paymentId":{"type":"string","maxLength":32,"description":"Unique identifier for the payment generated by the system.","example":"pay_1234567890abcdef","uniqueKey":"paymentId","typeLabel":"string"},"merchantReference":{"type":"string","description":"Reference passed in by the merchant for correlation.","example":"ORDER-12345","uniqueKey":"merchantReference","typeLabel":"string"},"amount":{"type":"integer","description":"Amount processed in the smallest currency unit.","example":12997,"uniqueKey":"amount","typeLabel":"integer"},"currency":{"type":"string","enum":["USD"],"description":"ISO 4217 currency code used in the payment. Currently only USD is supported.","example":"USD","uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["PENDING","AUTHORIZED","CAPTURED","REFUNDED","VOIDED","FAILED"],"description":"Current state of the payment.","example":"CAPTURED","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"paymentMethod":{"type":"object","properties":{"type":{"type":"string","enum":["CARD","ENCRYPTED_CARD"],"description":"Payment method type. Supported values: CARD and ENCRYPTED_CARD.","example":"CARD","isRequired":true,"uniqueKey":"paymentMethod.type","typeLabel":"enum\u003cstring>"},"card":{"type":"object","properties":{"bin":{"type":"string","description":"Bank Identification Number (BIN) - first 8 digits for Visa/Mastercard, first 6 digits for Amex.","example":"41111111","isRequired":true,"uniqueKey":"paymentMethod.card.bin","typeLabel":"string"},"holderName":{"type":"string","description":"Name printed on the card.","example":"John Doe","isRequired":true,"uniqueKey":"paymentMethod.card.holderName","typeLabel":"string"},"expiryMonth":{"type":"string","pattern":"^(0[1-9]|1[0-2])$","description":"Expiry month of the card, in MM format (01–12).","example":"12","isRequired":true,"uniqueKey":"paymentMethod.card.expiryMonth","typeLabel":"string"},"expiryYear":{"type":"string","pattern":"^[0-9]{4}$","description":"Expiry year of the card, in YYYY format.","example":"2030","isRequired":true,"uniqueKey":"paymentMethod.card.expiryYear","typeLabel":"string"},"last4":{"type":"string","description":"Last 4 digits of the card number.","example":"1111","uniqueKey":"paymentMethod.card.last4","typeLabel":"string"},"cvvPresentDuringAttempt":{"type":"boolean","description":"Indicates whether CVV was provided during the payment attempt.","example":true,"uniqueKey":"paymentMethod.card.cvvPresentDuringAttempt","typeLabel":"boolean"},"brand":{"type":"string","enum":["MASTERCARD","VISA","AMEX","DISCOVER","JCB","DINERS"],"description":"Card brand. Accepted values: MASTERCARD, VISA, AMEX, DISCOVER, JCB, DINERS.","example":"VISA","uniqueKey":"paymentMethod.card.brand","typeLabel":"enum\u003cstring>"}},"required":["holderName","expiryMonth","expiryYear","bin"],"description":"Card details (required if type=CARD). Sensitive fields are masked in responses.","uniqueKey":"paymentMethod.card","typeLabel":"object"},"encryptedCard":{"type":"object","description":"Encrypted card details (required if type=ENCRYPTED_CARD). Sensitive fields are masked in responses.","properties":{"bin":{"type":"string","description":"Bank Identification Number (BIN) - first 8 digits for Visa/Mastercard, first 6 digits for Amex.","example":"55555555","isRequired":true,"uniqueKey":"paymentMethod.encryptedCard.bin","typeLabel":"string"},"holderName":{"type":"string","description":"Name printed on the card.","example":"Jane Smith","isRequired":true,"uniqueKey":"paymentMethod.encryptedCard.holderName","typeLabel":"string"},"expiryMonth":{"type":"string","pattern":"^(0[1-9]|1[0-2])$","description":"Expiry month of the card, in MM format (01–12).","example":"06","isRequired":true,"uniqueKey":"paymentMethod.encryptedCard.expiryMonth","typeLabel":"string"},"expiryYear":{"type":"string","pattern":"^[0-9]{4}$","description":"Expiry year of the card, in YYYY format.","example":"2030","isRequired":true,"uniqueKey":"paymentMethod.encryptedCard.expiryYear","typeLabel":"string"},"cvvPresentDuringAttempt":{"type":"boolean","description":"Indicates whether CVV was provided during the payment attempt.","example":false,"uniqueKey":"paymentMethod.encryptedCard.cvvPresentDuringAttempt","typeLabel":"boolean"},"brand":{"type":"string","enum":["MASTERCARD","VISA","AMEX","DISCOVER","JCB","DINERS"],"description":"Card brand. Accepted values: MASTERCARD, VISA, AMEX, DISCOVER, JCB, DINERS.","example":"MASTERCARD","uniqueKey":"paymentMethod.encryptedCard.brand","typeLabel":"enum\u003cstring>"}},"required":["holderName","expiryMonth","expiryYear","bin"],"uniqueKey":"paymentMethod.encryptedCard","typeLabel":"object"}},"required":["type"],"description":"The chosen payment method details (e.g., card). Sensitive fields are masked in responses.","uniqueKey":"paymentMethod","typeLabel":"object"},"captureNow":{"type":"boolean","description":"Determines how the payment is processed. Default: false → Authorization only (funds reserved, must capture later). If true → Sale (authorize and capture in one step).","example":true,"uniqueKey":"captureNow","typeLabel":"boolean"},"descriptor":{"type":"string","description":"Not currently passed to the customer's statement. On Paymend MIDs, the statement shows the domain of the store in `source.storeId`.","example":"MyStore Online","uniqueKey":"descriptor","typeLabel":"string"},"goodsType":{"type":"string","enum":["PHYSICAL","DIGITAL","MIXED"],"description":"Type of goods being purchased: PHYSICAL = tangible items, DIGITAL = non-physical items, MIXED = combination of both.","example":"MIXED","uniqueKey":"goodsType","typeLabel":"enum\u003cstring>"},"productItems":{"type":"array","description":"List of product or service items included in this payment.","items":{"type":"object","description":"Represents a single product or service item within a payment.","properties":{"id":{"type":"string","description":"Unique identifier of the product or service in the merchant's catalog.","example":"PROD-001","isRequired":true,"uniqueKey":"productItems.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Name or description of the item.","example":"Wireless Keyboard","isRequired":true,"uniqueKey":"productItems.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"description":"Quantity of this item being purchased.","example":2,"isRequired":true,"uniqueKey":"productItems.items.[INDEX].quantity","typeLabel":"integer"},"unitPrice":{"type":"integer","minimum":1,"description":"Unit price in the smallest currency unit (e.g., cents).","example":1999,"isRequired":true,"uniqueKey":"productItems.items.[INDEX].unitPrice","typeLabel":"integer"},"goodsType":{"type":"string","enum":["PHYSICAL","DIGITAL"],"description":"Type of item — physical or digital goods.","example":"PHYSICAL","isRequired":true,"uniqueKey":"productItems.items.[INDEX].goodsType","typeLabel":"enum\u003cstring>"}},"required":["id","name","quantity","unitPrice","goodsType"],"uniqueKey":"productItems.items.[INDEX]","typeLabel":"object"},"example":[{"id":"PROD-001","name":"Wireless Keyboard","quantity":2,"unitPrice":4999,"goodsType":"PHYSICAL"},{"id":"PROD-002","name":"E-Book Subscription","quantity":1,"unitPrice":2999,"goodsType":"DIGITAL"}],"uniqueKey":"productItems","typeLabel":"object[]"},"consumer":{"type":"object","properties":{"firstName":{"type":"string","description":"Consumer's first name.","example":"John","isRequired":true,"uniqueKey":"consumer.firstName","typeLabel":"string"},"email":{"type":"string","description":"Consumer's email address.","example":"john.doe@example.com","isRequired":true,"uniqueKey":"consumer.email","typeLabel":"string"},"lastName":{"type":"string","description":"Consumer's last name.","example":"Doe","uniqueKey":"consumer.lastName","typeLabel":"string"},"phone":{"type":"string","description":"Consumer's phone number (E.164 format recommended).","example":"+1234567890","uniqueKey":"consumer.phone","typeLabel":"string"},"ip":{"type":"string","description":"Consumer's IP address at the time of purchase.","example":"192.168.1.1","uniqueKey":"consumer.ip","typeLabel":"string"}},"required":["firstName","email"],"description":"Consumer details such as name, email, phone.","uniqueKey":"consumer","typeLabel":"object"},"billing":{"type":"object","properties":{"address":{"type":"object","properties":{"street":{"type":"string","description":"Street address line.","example":"123 Main Street","uniqueKey":"billing.address.street","typeLabel":"string"},"city":{"type":"string","description":"City or locality.","example":"San Francisco","uniqueKey":"billing.address.city","typeLabel":"string"},"country":{"type":"string","description":"Two-letter ISO 3166 country code (e.g., US, DE).","example":"US","uniqueKey":"billing.address.country","typeLabel":"string"},"state":{"type":"string","description":"State, province, or region.","example":"CA","uniqueKey":"billing.address.state","typeLabel":"string"},"zip":{"type":"string","description":"ZIP or postal code.","example":"94105","uniqueKey":"billing.address.zip","typeLabel":"string"}},"description":"Billing address details.","isRequired":true,"uniqueKey":"billing.address","typeLabel":"object"}},"required":["address"],"description":"Billing address information.","uniqueKey":"billing","typeLabel":"object"},"shipping":{"type":"object","properties":{"address":{"type":"object","properties":{"street":{"type":"string","description":"Street address line.","example":"123 Main Street","uniqueKey":"shipping.address.street","typeLabel":"string"},"city":{"type":"string","description":"City or locality.","example":"San Francisco","uniqueKey":"shipping.address.city","typeLabel":"string"},"country":{"type":"string","description":"Two-letter ISO 3166 country code (e.g., US, DE).","example":"US","uniqueKey":"shipping.address.country","typeLabel":"string"},"state":{"type":"string","description":"State, province, or region.","example":"CA","uniqueKey":"shipping.address.state","typeLabel":"string"},"zip":{"type":"string","description":"ZIP or postal code.","example":"94105","uniqueKey":"shipping.address.zip","typeLabel":"string"}},"description":"Shipping address details.","uniqueKey":"shipping.address","typeLabel":"object"},"firstName":{"type":"string","description":"Recipient's first name.","example":"Jane","uniqueKey":"shipping.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Recipient's last name.","example":"Smith","uniqueKey":"shipping.lastName","typeLabel":"string"}},"description":"Shipping address and recipient details.","uniqueKey":"shipping","typeLabel":"object"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the payment was created.","example":"2024-01-15T10:30:00Z","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp when the payment was last updated.","example":"2024-01-15T11:00:00Z","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"transactions":{"type":"array","description":"Array of transaction attempts made for this payment.","items":{"type":"object","description":"Details about a transaction attempt made for a payment.","properties":{"id":{"type":"string","maxLength":32,"description":"Unique identifier for the transaction generated by the system.","example":"AUTH_eUfZ9n3BCPJo","uniqueKey":"transactions.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["SALE","AUTH","VALIDATE","CAPTURE","REFUND","VOID"],"description":"The type of transaction that has been processed.","example":"AUTH","uniqueKey":"transactions.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","description":"Amount processed in the smallest currency unit.","example":10000,"uniqueKey":"transactions.items.[INDEX].amount","typeLabel":"integer"},"result":{"type":"string","enum":["SUCCEEDED","FAILED"],"description":"Result of the transaction attempt.","example":"FAILED","uniqueKey":"transactions.items.[INDEX].result","typeLabel":"enum\u003cstring>"},"failure":{"type":"object","description":"Details about the cause of a failed transaction. Only present if result is FAILED.","properties":{"failureCode":{"type":"string","description":"Paymend-defined code indicating the reason for failure.","example":"INSUFFICIENT_FUNDS","isRequired":true,"uniqueKey":"transactions.items.[INDEX].failure.failureCode","typeLabel":"string"},"providerFailureCode":{"type":"string","description":"Provider-defined code indicating the reason for failure. On declines this is the scheme response code. On failures Paymend itself produced, such as `REFUND_IN_PROGRESS`, it carries an explanatory sentence instead of a code, so treat it as free text rather than something to match on. Omitted when there is nothing to report.","example":"51","uniqueKey":"transactions.items.[INDEX].failure.providerFailureCode","typeLabel":"string"}},"required":["failureCode"],"uniqueKey":"transactions.items.[INDEX].failure","typeLabel":"object"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the transaction was created.","example":"2025-12-15T10:22:10Z","uniqueKey":"transactions.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"transactions.items.[INDEX]","typeLabel":"object"},"example":[{"id":"SALE_eUfZ9n3BCPJo","type":"SALE","amount":100,"result":"FAILED","failure":{"failureCode":"INSUFFICIENT_FUNDS","providerFailureCode":"51"},"createdAt":"2025-12-15T10:22:10Z"},{"id":"SALE_pU2HnmS8AcpI","type":"SALE","amount":100,"result":"SUCCEEDED","createdAt":"2025-12-16T10:00:00Z"},{"id":"REFN_KmOODVdcacz5","type":"REFUND","amount":100,"result":"SUCCEEDED","createdAt":"2025-12-17T14:14:14Z"}],"uniqueKey":"transactions","typeLabel":"object[]"},"source":{"type":"object","description":"Details related to where the payment originated.","properties":{"initiatedBy":{"type":"string","enum":["CONSUMER","MERCHANT"],"description":"Indicates who is initiating the payment, the CONSUMER or MERCHANT. Required on every payment: only MERCHANT payments can return PENDING and be retried later.","example":"MERCHANT","isRequired":true,"uniqueKey":"source.initiatedBy","typeLabel":"enum\u003cstring>"},"storeId":{"type":"string","description":"One identifier per website, created by Paymend during onboarding. Use `store_sandbox` in the sandbox.","example":"store_abc123","isRequired":true,"uniqueKey":"source.storeId","typeLabel":"string"},"externalMerchantId":{"type":"string","description":"Optional. Leave null if you use a separate auth token per merchant. Intended for partners who can't set up per-merchant tokens.","example":"merchant_identifier_123","uniqueKey":"source.externalMerchantId","typeLabel":"string"}},"required":["initiatedBy","storeId"],"uniqueKey":"source","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"refunded_payment":{"title":"refunded_payment","summary":"Successfully refunded payment","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":12997,"currency":"USD","status":"REFUNDED","paymentMethod":{"type":"card","card":{"bin":"41111111","holderName":"John Doe","cvvPresentDuringAttempt":true,"expiryMonth":"12","expiryYear":"2030","brand":"VISA"}},"captureNow":false,"descriptor":"MyStore Online","goodsType":"MIXED","productItems":[{"id":"PROD-001","name":"Wireless Keyboard","quantity":2,"unitPrice":4999,"goodsType":"PHYSICAL"},{"id":"PROD-002","name":"E-Book Subscription","quantity":1,"unitPrice":2999,"goodsType":"DIGITAL"}],"consumer":{"firstName":"John","lastName":"Doe","email":"john.doe@example.com"},"billing":{"firstName":"John","lastName":"Doe","address":{"line1":"123 Main St","city":"New York","state":"NY","postalCode":"10001","country":"US"}},"shipping":{"firstName":"John","lastName":"Doe","address":{"line1":"123 Main St","city":"New York","state":"NY","postalCode":"10001","country":"US"}},"createdAt":"2024-01-15T10:30:00Z","updatedAt":"2024-01-15T11:00:00Z"}},"refund_pending":{"title":"refund_pending","summary":"Refund outcome not yet known","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":12997,"currency":"USD","status":"PENDING","paymentMethod":{"type":"card","card":{"bin":"41111111","holderName":"John Doe","cvvPresentDuringAttempt":true,"expiryMonth":"12","expiryYear":"2030","brand":"VISA"}},"captureNow":false,"descriptor":"MyStore Online","goodsType":"MIXED","productItems":[{"id":"PROD-001","name":"Wireless Keyboard","quantity":2,"unitPrice":4999,"goodsType":"PHYSICAL"},{"id":"PROD-002","name":"E-Book Subscription","quantity":1,"unitPrice":2999,"goodsType":"DIGITAL"}],"consumer":{"firstName":"John","lastName":"Doe","email":"john.doe@example.com"},"billing":{"firstName":"John","lastName":"Doe","address":{"line1":"123 Main St","city":"New York","state":"NY","postalCode":"10001","country":"US"}},"shipping":{"firstName":"John","lastName":"Doe","address":{"line1":"123 Main St","city":"New York","state":"NY","postalCode":"10001","country":"US"}},"createdAt":"2024-01-15T10:30:00Z","updatedAt":"2024-01-15T11:00:00Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"36fc7658-3be3-4a01-8b66-ce95c0777d16":{"description":"Bad Request - Invalid request body or paymentId format. Also returned for a card validation (a payment created with amount `0`), which can't be captured, voided or refunded: the body is the payment with `status: FAILED` and `failure.failureCode` `INVALID_REQUEST`. `status` describes this request; the payment stays `AUTHORIZED`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"INVALID_REQUEST","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The request body is invalid or paymentId format is invalid","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["paymentId must be a valid string","refundAmount must be a positive integer","refundAmount must be a valid number"],"uniqueKey":"details","typeLabel":"string[]"},"timestamp":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"INVALID_REQUEST","message":"The request body is invalid or paymentId format is invalid","details":["paymentId must be a valid string","refundAmount must be a positive integer","refundAmount must be a valid number"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"4794047f-8c69-472c-bda6-de4559a5becd":{"description":"Unauthorized - Invalid or missing authorization","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"UNAUTHORIZED","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Invalid or missing authorization token","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["Authorization header is required","Token has expired","Invalid token format"],"uniqueKey":"details","typeLabel":"string[]"},"timestamp":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"UNAUTHORIZED","message":"Invalid or missing authorization token","details":["Authorization header is required","Token has expired","Invalid token format"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"05332bf8-d3cb-4f2e-9039-219afb777402":{"description":"Payment Required - Refund declined. See `failure.failureCode`. `status: FAILED` describes this refund attempt, not the payment: no refund was issued and the payment keeps its previous status (for example `CAPTURED`). Use `GET /v1/payments/{paymentId}` to read the payment's current status.","content":{"application/json":{"schema":{"type":"object","properties":{"paymentId":{"type":"string","maxLength":32,"description":"Unique identifier for the payment generated by the system.","example":"pay_1234567890abcdef","uniqueKey":"paymentId","typeLabel":"string"},"merchantReference":{"type":"string","description":"Reference passed in by the merchant for correlation.","example":"ORDER-12345","uniqueKey":"merchantReference","typeLabel":"string"},"amount":{"type":"integer","description":"Amount of the operation this request attempted, in the smallest currency unit. For a partial refund this is the refund amount requested, not the payment amount. Omitted when the request carried no amount, which is the case for a full refund.","example":12997,"uniqueKey":"amount","typeLabel":"integer"},"currency":{"type":"string","enum":["USD"],"description":"ISO 4217 currency code used in the payment. Currently only USD is supported.","example":"USD","uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["FAILED"],"description":"Result of the operation this request attempted (payment creation, capture, refund or void). Always `FAILED` in a `402` response. This is the status of the attempt, not always the status of the payment: for payment creation they are the same, but after a failed capture, refund or void the payment keeps its previous status. Use `GET /v1/payments/{paymentId}` to read the payment's current status.","example":"FAILED","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"failure":{"type":"object","description":"Details about why the attempted operation failed.","properties":{"failureCode":{"type":"string","description":"Paymend-defined code indicating the reason for failure.","example":"INSUFFICIENT_FUNDS","isRequired":true,"uniqueKey":"failure.failureCode","typeLabel":"string"},"providerFailureCode":{"type":"string","description":"Provider-defined code indicating the reason for failure. On declines this is the scheme response code. On failures Paymend itself produced, such as `REFUND_IN_PROGRESS`, it carries an explanatory sentence instead of a code, so treat it as free text rather than something to match on. Omitted when there is nothing to report.","example":"51","uniqueKey":"failure.providerFailureCode","typeLabel":"string"}},"required":["failureCode"],"uniqueKey":"failure","typeLabel":"object"},"timestamp":{"type":"string","description":"When the failure was produced, as an ISO 8601 date and time **without a zone offset**, in UTC. Don't parse it as local time.","example":"2026-11-09T18:12:19.302018273","uniqueKey":"timestamp","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"partial_refund_unavailable":{"title":"partial_refund_unavailable","summary":"Partial refund not available yet","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":2500,"currency":"USD","status":"FAILED","failure":{"failureCode":"PARTIAL_REFUND_UNAVAILABLE"}}},"refund_temporarily_unavailable":{"title":"refund_temporarily_unavailable","summary":"Refund temporarily unavailable","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":5000,"currency":"USD","status":"FAILED","failure":{"failureCode":"REFUND_TEMPORARILY_UNAVAILABLE"}}}},"exampleType":"examples"}},"exampleType":"examples"},"4c69641d-2b90-4409-80d7-4b623aae4eaa":{"description":"Not Found - Payment not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"PAYMENT_NOT_FOUND","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Payment not found","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["No payment found with the specified paymentId"],"uniqueKey":"details","typeLabel":"string[]"},"timestamp":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"PAYMENT_NOT_FOUND","message":"Payment not found","details":["No payment found with the specified paymentId"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"58116484-692a-4a38-bc5e-1cc48f160eab":{"description":"Conflict - A previous refund on this payment is still pending (`REFUND_IN_PROGRESS`). `status: FAILED` describes this request only: the first refund is still in progress. A new refund is accepted once the pending one is resolved: success sends a `PAYMENT_REFUNDED` webhook, usually within an hour; a failure takes at least 24 hours and sends no webhook. If refunds are still blocked after 24 hours, contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"paymentId":{"type":"string","maxLength":32,"description":"Unique identifier for the payment generated by the system.","example":"pay_1234567890abcdef","uniqueKey":"paymentId","typeLabel":"string"},"merchantReference":{"type":"string","description":"Reference passed in by the merchant for correlation.","example":"ORDER-12345","uniqueKey":"merchantReference","typeLabel":"string"},"amount":{"type":"integer","description":"Amount of the operation this request attempted, in the smallest currency unit. For a partial refund this is the refund amount requested, not the payment amount. Omitted when the request carried no amount, which is the case for a full refund.","example":12997,"uniqueKey":"amount","typeLabel":"integer"},"currency":{"type":"string","enum":["USD"],"description":"ISO 4217 currency code used in the payment. Currently only USD is supported.","example":"USD","uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["FAILED"],"description":"Result of the operation this request attempted (payment creation, capture, refund or void). Always `FAILED` in a `402` response. This is the status of the attempt, not always the status of the payment: for payment creation they are the same, but after a failed capture, refund or void the payment keeps its previous status. Use `GET /v1/payments/{paymentId}` to read the payment's current status.","example":"FAILED","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"failure":{"type":"object","description":"Details about why the attempted operation failed.","properties":{"failureCode":{"type":"string","description":"Paymend-defined code indicating the reason for failure.","example":"INSUFFICIENT_FUNDS","isRequired":true,"uniqueKey":"failure.failureCode","typeLabel":"string"},"providerFailureCode":{"type":"string","description":"Provider-defined code indicating the reason for failure. On declines this is the scheme response code. On failures Paymend itself produced, such as `REFUND_IN_PROGRESS`, it carries an explanatory sentence instead of a code, so treat it as free text rather than something to match on. Omitted when there is nothing to report.","example":"51","uniqueKey":"failure.providerFailureCode","typeLabel":"string"}},"required":["failureCode"],"uniqueKey":"failure","typeLabel":"object"},"timestamp":{"type":"string","description":"When the failure was produced, as an ISO 8601 date and time **without a zone offset**, in UTC. Don't parse it as local time.","example":"2026-11-09T18:12:19.302018273","uniqueKey":"timestamp","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"refund_in_progress":{"title":"refund_in_progress","summary":"Previous refund still pending","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":5000,"currency":"USD","status":"FAILED","failure":{"failureCode":"REFUND_IN_PROGRESS"}}}},"exampleType":"examples"}},"exampleType":"examples"},"7b5932a8-44b1-4dc2-9c40-7c367cb4a0ba":{"description":"Unprocessable Entity - Refund amount exceeds captured amount or payment not captured","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"REFUND_NOT_ALLOWED","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Refund cannot be processed","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["Payment has not been captured","Refund amount exceeds captured amount","Payment has already been fully refunded"],"uniqueKey":"details","typeLabel":"string[]"},"timestamp":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"REFUND_NOT_ALLOWED","message":"Refund cannot be processed","details":["Payment has not been captured","Refund amount exceeds captured amount","Payment has already been fully refunded"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"1c7a3abf-50f5-4f06-a3ea-11e7e6ea53f6":{"description":"Too Many Requests - Rate limit of 1,500 requests per minute per source IP exceeded. Retry after a short wait.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"TOO_MANY_REQUESTS","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Rate limit exceeded","uniqueKey":"message","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"TOO_MANY_REQUESTS","message":"Rate limit exceeded","timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"ab3733ec-d9a8-498a-b4e1-c6c62ce0512e":{"description":"Internal Server Error - Unexpected server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"INTERNAL_ERROR","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"An unexpected server error occurred","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["Please try again later","Contact support if the issue persists"],"uniqueKey":"details","typeLabel":"string[]"},"timestamp":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"INTERNAL_ERROR","message":"An unexpected server error occurred","details":["Please try again later","Contact support if the issue persists"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"1b37e300-c9a4-4f09-8517-f771c38d03c3":{"description":"Service Unavailable - Temporarily unavailable. Nothing was processed; retry with backoff.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"PROVIDER_UNAVAILABLE","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Payment refunding is temporarily unavailable","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["Payment provider is experiencing issues","Please retry in a few minutes"],"uniqueKey":"details","typeLabel":"string[]"},"timestamp":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"PROVIDER_UNAVAILABLE","message":"Payment refunding is temporarily unavailable","details":["Payment provider is experiencing issues","Please retry in a few minutes"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"440fb063-faa4-483f-87b8-00a309dbd383":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter your API token","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"9f6ca6a6-d8a2-42e9-ba89-41e2a0395a60":{"url":"https://api.sandbox.paymend.com","description":"Sandbox"},"38708d2c-c656-4e9e-a949-3bd132ac9bf8":{"url":"https://api.prod.paymend.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter your API token","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Enter your API token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"paymend","siteName":"Paymend API documentation","title":"Paymend API documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-10T08:26:04.379Z","originalFileLocation":"api-reference/endpoint/refund.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=\"application-name\" content=\"Paymend API documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/paymend/xHtwedxY4FLFiuup/_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/paymend/xHtwedxY4FLFiuup/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paymend/xHtwedxY4FLFiuup/_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/paymend/xHtwedxY4FLFiuup/_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/paymend/xHtwedxY4FLFiuup/_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/paymend/xHtwedxY4FLFiuup/_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/paymend/xHtwedxY4FLFiuup/_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/paymend/xHtwedxY4FLFiuup/_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/paymend/xHtwedxY4FLFiuup/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Paymend API documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Paymend is a revenue recovery engine that helps global merchants to unlock revenue from failed transactions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Paymend API documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.paymend.com/api-reference/endpoint/refund\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://paymend.mintlify.site/images/Meta_Image-API.png\">\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=\"Paymend API documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Paymend is a revenue recovery engine that helps global merchants to unlock revenue from failed transactions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://paymend.mintlify.site/images/Meta_Image-API.png\">\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/paymend/xHtwedxY4FLFiuup/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Paymend API documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#BEB9FE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.paymend.com/api-reference/endpoint/refund\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/refund.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.paymend.com/#organization\",\"name\":\"Paymend API documentation\",\"url\":\"https://docs.paymend.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/paymend/cs7-Op59jD939zYw/images/icon_logo_black.png?fit=max\u0026auto=format\u0026n=cs7-Op59jD939zYw\u0026q=85\u0026s=eef12e728cbb57bd521991836b4134f7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.paymend.com#website\",\"name\":\"Paymend API documentation\",\"url\":\"https://docs.paymend.com\",\"publisher\":{\"@id\":\"https://docs.paymend.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.paymend.com/api-reference/endpoint/refund#webpage\",\"url\":\"https://docs.paymend.com/api-reference/endpoint/refund\",\"name\":\"Refund payment\",\"dateModified\":\"2026-11-10T08:26:04.379Z\",\"isPartOf\":{\"@id\":\"https://docs.paymend.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.paymend.com/api-reference/endpoint/refund#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.paymend.com/api-reference/endpoint/refund#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.paymend.com/api-reference/endpoint/payment\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Refund payment\",\"item\":\"https://docs.paymend.com/api-reference/endpoint/refund\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.paymend.com/api-reference/endpoint/refund#apireference\",\"headline\":\"Refund payment\",\"name\":\"Refund payment\",\"url\":\"https://docs.paymend.com/api-reference/endpoint/refund\",\"mainEntityOfPage\":{\"@id\":\"https://docs.paymend.com/api-reference/endpoint/refund#webpage\"},\"image\":\"https://docs.paymend.com/images/Meta_Image-API.png\",\"dateModified\":\"2026-11-10T08:26:04.379Z\",\"publisher\":{\"@id\":\"https://docs.paymend.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.paymend.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Paymend API documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Paymend API documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/refund.md","siteName":"Paymend API documentation","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/welcome-to-the-paymend-api"}]},{"tab":"API reference","groups":[{"group":"API documentation","pages":[{"title":"Failure Codes","href":"/api-reference/failure-codes"}]},{"group":"Endpoints","pages":[{"title":"Create payment","openapi":"POST /api/v1/payments","href":"/api-reference/endpoint/payment"},{"title":"Get payment","openapi":"GET /api/v1/payments/{paymentId}","href":"/api-reference/endpoint/payment-details"},{"title":"Capture payment","openapi":"POST /api/v1/payments/{paymentId}/capture","description":null,"href":"/api-reference/endpoint/capture"},{"title":"Refund payment","openapi":"POST /api/v1/payments/{paymentId}/refund","href":"/api-reference/endpoint/refund"},{"title":"Void payment","openapi":"POST /api/v1/payments/{paymentId}/void","description":null,"href":"/api-reference/endpoint/void"}]},{"group":"API Objects","pages":[{"title":"Payment","href":"/api-reference/objects/payment"},{"title":"PaymentResponse","href":"/api-reference/objects/payment-response"},{"title":"RefundRequest","href":"/api-reference/objects/refund-request"},{"title":"CaptureRequest","href":"/api-reference/objects/capture-request"},{"title":"Address","href":"/api-reference/objects/address"},{"title":"Billing","href":"/api-reference/objects/billing"},{"title":"Card","href":"/api-reference/objects/card"},{"title":"Card response","href":"/api-reference/objects/card-response"},{"title":"Consumer","href":"/api-reference/objects/consumer"},{"title":"Encrypted card","href":"/api-reference/objects/encrypted-card"},{"title":"Encrypted card response","href":"/api-reference/objects/encrypted-card-response"},{"title":"Failure","href":"/api-reference/objects/failure"},{"title":"PaymentMethod","href":"/api-reference/objects/payment-method"},{"title":"ProductItem","href":"/api-reference/objects/product-item"},{"title":"PreviousFailure","href":"/api-reference/objects/previous-failure"},{"title":"Source","href":"/api-reference/objects/source"},{"title":"Shipping","href":"/api-reference/objects/shipping"},{"title":"Transaction","href":"/api-reference/objects/transaction"}]}]}]},"basePath":"","title":"Paymend API documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}