{
"error": "INVALID_REQUEST",
"message": "The request body is invalid or missing required fields",
"details": [
"amount is required",
"currency must be a valid ISO 4217 code",
"paymentMethod.card.number is required"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"error": "UNAUTHORIZED",
"message": "Invalid or missing authorization token",
"details": [
"Authorization header is required",
"Token has expired"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"error": "BUSINESS_RULE_VIOLATION",
"message": "Payment request violates business rules",
"details": [
"Amount exceeds maximum allowed limit",
"Currency not supported for this merchant",
"Card type not accepted"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"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"
}
{
"error": "INVALID_REQUEST",
"message": "The request body is invalid or missing required fields",
"details": [
"amount is required",
"currency must be a valid ISO 4217 code",
"paymentMethod.card.number is required"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"error": "UNAUTHORIZED",
"message": "Invalid or missing authorization token",
"details": [
"Authorization header is required",
"Token has expired"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"error": "BUSINESS_RULE_VIOLATION",
"message": "Payment request violates business rules",
"details": [
"Amount exceeds maximum allowed limit",
"Currency not supported for this merchant",
"Card type not accepted"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"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"
}
{
"error": "ORCH_TIMEOUT",
"message": "Payment processing timed out",
"details": [
"Retry after a short wait"
],
"timestamp": "2024-01-15T10:30:00Z"
}
Authorizations
Authorization
string
header
required
Enter your API token
Headers
User-Agent
string
Body
application/json
amount
integer
required
Payment amount in the smallest currency unit (e.g., cents). Send a whole number: 0.00 and other values with decimals are rejected with 400. Use 0 with captureNow: false to validate a card without charging it; a successful validation leaves the payment AUTHORIZED, and it can't be captured, voided or refunded.
Required range: x >= 0
Example:
12997
currency
enum<string>
required
Three-letter ISO 4217 currency code. Currently only USD is supported.
Available options:
USD
Example:
"USD"
paymentMethod
object
required
The chosen payment method details (e.g., card).
Show child attributes
merchantReference
string
required
Your reference for this payment, returned in responses and webhooks. Uniqueness is not enforced and it is not an idempotency key: sending the same value twice creates two payments. Payments can't be looked up by this value.
Example:
"PAYMENT-12345"
goodsType
enum<string>
required
Type of goods being purchased: PHYSICAL = tangible items, DIGITAL = non-physical items, MIXED = combination of both.
Available options:
PHYSICAL,
DIGITAL,
MIXED
Example:
"MIXED"
source
object
required
Details related to where the payment originated.
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). null is rejected with 400. Must be false when amount is 0.
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"
productItems
object[]
List of product or service items included in this payment.
OK. status is AUTHORIZED, CAPTURED, or PENDING when Paymend couldn't complete the payment immediately and an attempt is in flight or scheduled. PENDING doesn't necessarily mean an attempt has failed: the final result arrives by webhook.
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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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/payment","slug":"/api-reference/endpoint/payment","pageMetadata":{"title":"Create payment","openapi":"POST /api/v1/payments","description":null,"href":"/api-reference/endpoint/payment"},"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":"Create payment","openapi":"POST /api/v1/payments","description":null,"href":"/api-reference/endpoint/payment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["payment-controller"],"operationId":"processPayment","parameters":["dccc3291-b91c-48a8-a212-b6ef4e3bc7fc"],"requestBody":"7e820010-f892-4fc8-8d5a-72db30451126","responses":{"200":"507f493f-eee5-4172-8d5c-cff114322dd3","400":"7c0f57b1-19c4-400e-a52e-a44f4588a453","401":"3b02ba3b-023e-485a-94e1-15761674ecbf","402":"e674be3e-d8f2-46ed-8bf1-bd3156f315f9","422":"b3dca2b6-7ca1-4e8f-ac72-c55100485505","429":"d80e7892-2a07-4688-b593-a4201b2c4867","500":"b3254ac4-6ad3-488c-8d6e-f2b0025fca5a","503":"afa92377-a52b-4011-a2f5-79ec8e19ef9b","504":"0eddac25-9c0a-438c-9f9c-a8b86f7d535f"},"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","baseUrlOptions":["https://api.sandbox.paymend.com","https://api.prod.paymend.com"],"title":"","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"dccc3291-b91c-48a8-a212-b6ef4e3bc7fc":{"name":"User-Agent","in":"header","required":false,"schema":{"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"description":"Payment amount in the smallest currency unit (e.g., cents). Send a whole number: `0.00` and other values with decimals are rejected with `400`. Use `0` with `captureNow: false` to validate a card without charging it; a successful validation leaves the payment `AUTHORIZED`, and it can't be captured, voided or refunded.","example":12997,"isRequired":true,"uniqueKey":"amount","typeLabel":"integer"},"currency":{"type":"string","enum":["USD"],"description":"Three-letter ISO 4217 currency code. Currently only USD is supported.","example":"USD","isRequired":true,"uniqueKey":"currency","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":{"number":{"type":"string","description":"Card number (PAN), digits only.","example":"4111111111111111","isRequired":true,"uniqueKey":"paymentMethod.card.number","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"},"cvv":{"type":"string","description":"Card verification value (CVV/CVC). Required for most transactions. Note: This field is masked in API responses for security.","example":"123","uniqueKey":"paymentMethod.card.cvv","typeLabel":"string"},"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","number"],"description":"Card details (required if type=CARD).","uniqueKey":"paymentMethod.card","typeLabel":"object"},"encryptedCard":{"type":"object","description":"Encrypted card details (required if type=ENCRYPTED_CARD).","properties":{"number":{"type":"string","description":"Encrypted card number (PAN).","example":"ev-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-","isRequired":true,"uniqueKey":"paymentMethod.encryptedCard.number","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"},"cvv":{"type":"string","description":"Encrypted card verification value (CVV/CVC).","example":"ev-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-","uniqueKey":"paymentMethod.encryptedCard.cvv","typeLabel":"string"},"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","number"],"uniqueKey":"paymentMethod.encryptedCard","typeLabel":"object"}},"required":["type"],"description":"The chosen payment method details (e.g., card).","isRequired":true,"uniqueKey":"paymentMethod","typeLabel":"object"},"merchantReference":{"type":"string","description":"Your reference for this payment, returned in responses and webhooks. Uniqueness is not enforced and it is not an idempotency key: sending the same value twice creates two payments. Payments can't be looked up by this value.","example":"PAYMENT-12345","isRequired":true,"uniqueKey":"merchantReference","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","isRequired":true,"uniqueKey":"goodsType","typeLabel":"enum\u003cstring>"},"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"],"isRequired":true,"uniqueKey":"source","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). `null` is rejected with `400`. Must be `false` when `amount` is `0`.","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"},"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"},"previousFailures":{"type":"array","description":"Array of previous failed payment attempts with other providers.","items":{"type":"object","description":"Information about a previous failed payment attempt with another provider.","properties":{"provider":{"type":"string","description":"One of Paymend's normalised provider names (for example `NMI`). The list is available on request.","example":"NMI","uniqueKey":"previousFailures.items.[INDEX].provider","typeLabel":"string"},"attemptNumber":{"type":"integer","description":"Sequential number of this attempt.","example":1,"uniqueKey":"previousFailures.items.[INDEX].attemptNumber","typeLabel":"integer"},"providerFailureCode":{"type":"string","description":"The decline code exactly as the provider returned it, not mapped to your own codes.","example":"201","uniqueKey":"previousFailures.items.[INDEX].providerFailureCode","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"When the failure occurred.","example":"2025-11-05T14:22:10Z","uniqueKey":"previousFailures.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"previousFailures.items.[INDEX]","typeLabel":"object"},"example":[{"provider":"NMI","attemptNumber":1,"providerFailureCode":"201","createdAt":"2025-11-05T14:22:10Z"},{"provider":"NMI","attemptNumber":2,"providerFailureCode":"202","createdAt":"2025-11-05T14:24:32Z"}],"uniqueKey":"previousFailures","typeLabel":"object[]"}},"required":["amount","currency","goodsType","merchantReference","paymentMethod","source"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":12997,"currency":"USD","paymentMethod":{"type":"CARD"},"merchantReference":"PAYMENT-12345","goodsType":"MIXED","source":{"initiatedBy":"MERCHANT","storeId":"store_abc123","externalMerchantId":"merchant_identifier_123"},"captureNow":true,"descriptor":"MyStore Online","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"}],"shipping":{"address":{"street":"123 Main Street","city":"San Francisco","country":"US","state":"CA","zip":"94105"},"firstName":"Jane","lastName":"Smith"},"previousFailures":[{"provider":"NMI","attemptNumber":1,"providerFailureCode":"201","createdAt":"2025-11-05T14:22:10Z"},{"provider":"NMI","attemptNumber":2,"providerFailureCode":"202","createdAt":"2025-11-05T14:24:32Z"}]}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"507f493f-eee5-4172-8d5c-cff114322dd3":{"description":"OK. `status` is `AUTHORIZED`, `CAPTURED`, or `PENDING` when Paymend couldn't complete the payment immediately and an attempt is in flight or scheduled. `PENDING` doesn't necessarily mean an attempt has failed: the final result arrives by webhook.","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":{"Example":{"title":"Example","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":12997,"currency":"USD","status":"CAPTURED","paymentMethod":{"type":"CARD","card":{"bin":"41111111","holderName":"John Doe","expiryMonth":"12","expiryYear":"2030","last4":"1111","cvvPresentDuringAttempt":true,"brand":"VISA"},"encryptedCard":{"bin":"55555555","holderName":"Jane Smith","expiryMonth":"06","expiryYear":"2030","cvvPresentDuringAttempt":false,"brand":"MASTERCARD"}},"captureNow":true,"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","email":"john.doe@example.com","lastName":"Doe","phone":"+1234567890","ip":"192.168.1.1"},"billing":{"address":{"street":"123 Main Street","city":"San Francisco","country":"US","state":"CA","zip":"94105"}},"shipping":{"address":{"street":"123 Main Street","city":"San Francisco","country":"US","state":"CA","zip":"94105"},"firstName":"Jane","lastName":"Smith"},"createdAt":"2024-01-15T10:30:00Z","updatedAt":"2024-01-15T11:00:00Z","transactions":[{"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"}],"source":{"initiatedBy":"MERCHANT","storeId":"store_abc123","externalMerchantId":"merchant_identifier_123"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7c0f57b1-19c4-400e-a52e-a44f4588a453":{"description":"Bad Request - Invalid request body or missing required fields. No payment was created.","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 missing required fields","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["amount is required","currency must be a valid ISO 4217 code","paymentMethod.card.number is required"],"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 missing required fields","details":["amount is required","currency must be a valid ISO 4217 code","paymentMethod.card.number is required"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"3b02ba3b-023e-485a-94e1-15761674ecbf":{"description":"Unauthorized - Invalid or missing authorization. No payment was created.","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"],"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"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"e674be3e-d8f2-46ed-8bf1-bd3156f315f9":{"description":"Payment Required - Payment failed. See `failure.failureCode`. For payment creation the attempt and the payment are the same, so `status: FAILED` is also the payment's status and the payment is final. The response includes the `paymentId`, and the `PAYMENT_CREATED` and `PAYMENT_FAILED` webhooks are sent. Exception: while the API is under maintenance we return `402` with `failureCode: BLOCKED_BY_PAYMEND` and `providerFailureCode: UNDER_MAINTENANCE` without creating a payment; the response has no `paymentId`, no webhooks are sent, and you can retry later.","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":{"Example":{"title":"Example","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":12997,"currency":"USD","status":"FAILED","failure":{"failureCode":"INSUFFICIENT_FUNDS","providerFailureCode":"51"},"timestamp":"2026-11-09T18:12:19.302018273"}}},"exampleType":"generated"}},"exampleType":"generated"},"b3dca2b6-7ca1-4e8f-ac72-c55100485505":{"description":"Unprocessable Entity - Business rule validation failed. A `FAILED` payment was created: the response includes the `paymentId`, and the `PAYMENT_CREATED` and `PAYMENT_FAILED` webhooks are sent. Fix the request before sending a new one.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"BUSINESS_RULE_VIOLATION","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Payment request violates business rules","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["Amount exceeds maximum allowed limit","Currency not supported for this merchant","Card type not accepted"],"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":"BUSINESS_RULE_VIOLATION","message":"Payment request violates business rules","details":["Amount exceeds maximum allowed limit","Currency not supported for this merchant","Card type not accepted"],"timestamp":"2024-01-15T10:30:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"d80e7892-2a07-4688-b593-a4201b2c4867":{"description":"Too Many Requests - Rate limit of 1,500 requests per minute per source IP exceeded. Retry after a short wait. No payment was created.","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"},"b3254ac4-6ad3-488c-8d6e-f2b0025fca5a":{"description":"Internal Server Error - Unexpected server error (`INTERNAL_ERROR`). No `paymentId` is returned, but a `FAILED` payment may have been created, and you may receive `PAYMENT_CREATED` and `PAYMENT_FAILED` webhooks for it. No transaction was attempted, so you can safely retry after a short wait.","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"},"afa92377-a52b-4011-a2f5-79ec8e19ef9b":{"description":"Service Unavailable - Either nothing was processed (no `paymentId`; retry with backoff), or a pre-processing check on Paymend's side could not be completed or our processing service was briefly unavailable. In that case the response includes the `paymentId`, `status: FAILED` and `failureCode` `PROVIDER_UNAVAILABLE` or `PROVIDER_PROCESSING_ERROR`, the `PAYMENT_CREATED` and `PAYMENT_FAILED` webhooks are sent, and you can safely retry after a short wait.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"paymentId":{"type":"string","maxLength":32,"description":"Unique identifier for the payment generated by the system.","example":"pay_1234567890abcdef","uniqueKey":"oneOf.0.paymentId","typeLabel":"string"},"merchantReference":{"type":"string","description":"Reference passed in by the merchant for correlation.","example":"ORDER-12345","uniqueKey":"oneOf.0.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":"oneOf.0.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":"oneOf.0.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":"oneOf.0.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":"oneOf.0.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":"oneOf.0.failure.providerFailureCode","typeLabel":"string"}},"required":["failureCode"],"uniqueKey":"oneOf.0.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":"oneOf.0.timestamp","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","properties":{"error":{"type":"string","description":"Error code or identifier","example":"INVALID_REQUEST","uniqueKey":"oneOf.1.error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","example":"The request body is invalid or missing required fields","uniqueKey":"oneOf.1.message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.details.items.[INDEX]","typeLabel":"string"},"description":"Additional error details or validation errors","example":["amount is required","currency must be a valid ISO 4217 code"],"uniqueKey":"oneOf.1.details","typeLabel":"string[]"},"timestamp":{"type":"string","description":"When the error occurred, 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":"oneOf.1.timestamp","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"paymentId":"pay_1234567890abcdef","merchantReference":"ORDER-12345","amount":12997,"currency":"USD","status":"FAILED","failure":{"failureCode":"INSUFFICIENT_FUNDS","providerFailureCode":"51"},"timestamp":"2026-11-09T18:12:19.302018273"}}},"exampleType":"generated"}},"exampleType":"generated"},"0eddac25-9c0a-438c-9f9c-a8b86f7d535f":{"description":"Gateway Timeout - Processing timed out (`ORCH_TIMEOUT`). A `FAILED` payment was created: the response includes the `paymentId`, the `PAYMENT_CREATED` and `PAYMENT_FAILED` webhooks are sent, and the payment stays `FAILED`. You can safely retry after a short wait.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"ORCH_TIMEOUT","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Payment processing timed out","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"type":"string","uniqueKey":"details.items.[INDEX]","typeLabel":"string"},"example":["Retry after a short wait"],"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":"ORCH_TIMEOUT","message":"Payment processing timed out","details":["Retry after a short wait"],"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.378Z","originalFileLocation":"api-reference/endpoint/payment.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/payment\">\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/payment\">\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/payment.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/payment#webpage\",\"url\":\"https://docs.paymend.com/api-reference/endpoint/payment\",\"name\":\"Create payment\",\"dateModified\":\"2026-11-10T08:26:04.378Z\",\"isPartOf\":{\"@id\":\"https://docs.paymend.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.paymend.com/api-reference/endpoint/payment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.paymend.com/api-reference/endpoint/payment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Paymend API documentation\",\"item\":\"https://docs.paymend.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create payment\",\"item\":\"https://docs.paymend.com/api-reference/endpoint/payment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.paymend.com/api-reference/endpoint/payment#apireference\",\"headline\":\"Create payment\",\"name\":\"Create payment\",\"url\":\"https://docs.paymend.com/api-reference/endpoint/payment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.paymend.com/api-reference/endpoint/payment#webpage\"},\"image\":\"https://docs.paymend.com/images/Meta_Image-API.png\",\"dateModified\":\"2026-11-10T08:26:04.378Z\",\"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/payment.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","description":"Complete list of Paymend failure codes and their descriptions","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}","description":null,"href":"/api-reference/endpoint/payment-details"},{"title":"Capture payment","openapi":"POST /api/v1/payments/{paymentId}/capture","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","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"]}