{
"errorCode": "bad_request",
"errorDescription": "Failed to read request"
}
Payments
Create Intent
This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.
A Connect merchant ID owned by the authenticated Platform. Required when a Platform merchant creates a payment intent on behalf of a Connect merchant. See Platform Connect.
A collection of key-value pairs that can be attached to an object for storing additional structured information. This is useful for capturing custom data or context-specific attributes.
Constraints:
Maximum of 50 key-value pairs allowed.
Each key must be no longer than 40 characters.
Each value must be a string and cannot exceed 500 characters.
Show child attributes
Example:
{
"orderId": "12345",
"customerNote": "Deliver after 5 PM"
}
The unique identifier for the customer, generated via the create-customer API. This can be used to associate the payment with a specific customer in your system.
šµ Beta Feature - The unique identifier for your storefront. This ID is used to associate the payment with a specific storefront in your account. When provided, it will replace the default DBA and logo with the corresponding storefront's branding. This feature is currently in beta testing and may be subject to changes.
This boolean tokenises and stores the card to showcase the same card in future. If sending this value, corresponding customerId is also required. You will receive payment_method_token.created webhook every time a new payment method token is created.
Optional. Restricts which Card Installment (EMI) tenures (in months) are offered at checkout. If omitted, all tenures enabled on your account are offered.
Optional additional fee in basis points (1 bps = 0.01%). Only available to Platform merchants when creating a payment intent on behalf of a Connect merchant (requires the x-connect-merchant-id header). See Platform Connect.
A collection of key-value pairs that were provided when the object was created. These metadata values are echoed back in the response, allowing you to store and retrieve custom information such as context-specific attributes, references, or tags. This can be useful for correlating records in your system or attaching meaningful context to transactions.
Show child attributes
Example:
{
"orderId": "12345",
"customerNote": "Deliver after 5 PM"
}
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"xPay","colors":{"primary":"#3bc2ff","light":"#3bc2ff","dark":"#0331ff"},"logo":{"light":"https://mintcdn.com/xpay/g26TzFabqZU05z4C/logo/light.svg?fit=max\u0026auto=format\u0026n=g26TzFabqZU05z4C\u0026q=85\u0026s=007fbae209bf88bae6f124ed06a79e04","dark":"https://mintcdn.com/xpay/g26TzFabqZU05z4C/logo/dark.svg?fit=max\u0026auto=format\u0026n=g26TzFabqZU05z4C\u0026q=85\u0026s=d445abb6483342208e929b08ec3a86b1","href":"https://xpaycheckout.com"},"favicon":"https://mintcdn.com/xpay/REkE_HjmjRViMmXV/favicon.png?fit=max\u0026auto=format\u0026n=REkE_HjmjRViMmXV\u0026q=85\u0026s=e98a1531e8c761f704c90cd01c2df5ff","api":{"mdx":{"auth":{"method":"basic","name":"[usernameName]:[passwordName]"},"server":"https://api.xpaycheckout.com"}},"background":{"decoration":"windows"},"navbar":{"links":[{"href":"mailto:hello@xpaycheckout.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.xpaycheckout.com"}},"footer":{"socials":{"website":"https://www.xpaycheckout.com/","linkedin":"https://www.linkedin.com/company/xpay-checkout"}},"integrations":{"posthog":{"apiKey":"phc_7aJLSdii3o5FaFeGUyQGl2x4Hf8K133tfU4zkmuE3sY"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"xpay","hasAudioNarration":false,"actualSubdomain":"xpay","customDomains":["docs.xpaycheckout.com"],"gitSource":{"type":"github","owner":"xpay-technologies","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf0312808b7de58450a89b","collectionId":"167099e3-c643-4d27-8889-6b517b5adbf7","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf0312808b7de58450a89b"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6adf0312808b7de58450a89b","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"Developer Resources","count":80},{"language":"default","tag":"API References","count":36},{"language":"default","tag":"Webhooks","count":34},{"language":"default","tag":"Webhook Events","count":31},{"language":"default","tag":"Products","count":15},{"language":"default","tag":"Dashboard \u0026 Operations","count":12},{"language":"default","tag":"Intent Events","count":11},{"language":"default","tag":"Subscription Events","count":11},{"language":"default","tag":"Dispute Management","count":10},{"language":"default","tag":"Payments","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"developer-resources/endpoints/payments/create-intent","slug":"/developer-resources/endpoints/payments/create-intent","pageMetadata":{"title":"Create Intent","openapi":"POST /payments/create-intent","description":"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.","href":"/developer-resources/endpoints/payments/create-intent"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Intent","openapi":"POST /payments/create-intent","description":"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.","href":"/developer-resources/endpoints/payments/create-intent"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.","parameters":["ed44fce0-9021-43a4-a7ff-344d271bd02e","7193185b-e237-4861-9d22-b186698ac21c"],"requestBody":"f2820e63-8798-476a-9419-2b070a8e34ee","responses":{"200":"ffa28cb8-fbed-4573-b7f9-107b80a2358a","400":"707ad7fc-daa9-48f3-90d8-b08f36911ead"},"method":"post","type":"path","servers":["3326f4fb-4f32-40c7-8421-4cb311bc2da0"],"security":["ea68e7b4-b63a-4c0b-aef2-904d73dbf5f7"],"path":"/payments/create-intent","baseUrlOptions":["https://api.xpaycheckout.com"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ed44fce0-9021-43a4-a7ff-344d271bd02e":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255,"pattern":"^[a-zA-Z0-9\\-_:\\.]+$","isRequired":false,"description":"A unique key for making the request idempotent. Must match pattern: `^[a-zA-Z0-9\\-_:\\.]+$`. See [Idempotent Requests](/developer-resources/idempotency) for more details.","uniqueKey":"","typeLabel":"string"},"description":"A unique key for making the request idempotent. Must match pattern: `^[a-zA-Z0-9\\-_:\\.]+$`. See [Idempotent Requests](/developer-resources/idempotency) for more details.","example":"KG5LxwFBepaKHyUD"},"7193185b-e237-4861-9d22-b186698ac21c":{"name":"x-connect-merchant-id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"A Connect merchant ID owned by the authenticated Platform. Required when a Platform merchant creates a payment intent on behalf of a Connect merchant. See [Platform Connect](/products/platform-connect/overview).","uniqueKey":"","typeLabel":"string"},"description":"A Connect merchant ID owned by the authenticated Platform. Required when a Platform merchant creates a payment intent on behalf of a Connect merchant. See [Platform Connect](/products/platform-connect/overview).","example":"me_abc123xyz"}},"requestBody":{"description":"Create Intent","content":{"application/json":{"schema":{"required":["amount","currency","callbackUrl","customerDetails"],"type":"object","properties":{"amount":{"description":"The amount in lowest count unit. e.g.: For USD 1, amount is 100 representing 100 cents (The minimum amount should be greater than 1 USD)","type":"integer","format":"int64","example":100,"isRequired":true,"uniqueKey":"amount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Three letter abbreviation of the currency. Refer [supported currencies](/get-started/currencies-supported)","example":"USD","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"customerDetails":{"type":"object","description":"Billing details for the customer.","required":["name","email","contactNumber"],"properties":{"name":{"type":"string","description":"Customer's name","example":"John Doe","isRequired":true,"uniqueKey":"customerDetails.name","typeLabel":"string"},"email":{"type":"string","description":"Customer's email address","example":"john.doe@example.com","isRequired":true,"uniqueKey":"customerDetails.email","typeLabel":"string"},"contactNumber":{"type":"string","description":"Customer's contact number ([E.164 format](https://en.wikipedia.org/wiki/E.164)), including the country code (e.g., +1 for US, +44 for UK, +91 for India).","example":"+919123456789","isRequired":true,"uniqueKey":"customerDetails.contactNumber","typeLabel":"string"},"customerAddress":{"type":"object","properties":{"addressLine1":{"type":"string","description":"Line 1 of the customer's address","example":"123 Main St","uniqueKey":"customerDetails.customerAddress.addressLine1","typeLabel":"string"},"addressLine2":{"type":"string","description":"Line 2 of the customer's address","example":"Apt 1","uniqueKey":"customerDetails.customerAddress.addressLine2","typeLabel":"string"},"city":{"type":"string","description":"City of the customer's address","example":"New York","uniqueKey":"customerDetails.customerAddress.city","typeLabel":"string"},"state":{"type":"string","description":"State of the customer's address","example":"NY","uniqueKey":"customerDetails.customerAddress.state","typeLabel":"string"},"country":{"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).","example":"US","uniqueKey":"customerDetails.customerAddress.country","typeLabel":"string"},"postalCode":{"type":"string","description":"Postal code","example":"2424","uniqueKey":"customerDetails.customerAddress.postalCode","typeLabel":"string"}},"uniqueKey":"customerDetails.customerAddress","typeLabel":"object"}},"isRequired":true,"uniqueKey":"customerDetails","typeLabel":"object"},"callbackUrl":{"description":"The URL we will callback to with the xIntentId once it finishes.","type":"string","example":"https://example.com/callback","isRequired":true,"uniqueKey":"callbackUrl","typeLabel":"string"},"receiptId":{"type":"string","description":"Your identifier of the order","example":"order123","uniqueKey":"receiptId","typeLabel":"string"},"customerReferenceId":{"type":"string","description":"Your unique identifier for the customer. This can be used to associate the payment with a specific customer in your system.","example":"eTfd3Jq1tZxPjYVhRQW2r3","uniqueKey":"customerReferenceId","typeLabel":"string"},"description":{"description":"The description of the order, if any","type":"string","example":"Order for 2 items","uniqueKey":"description","typeLabel":"string"},"cancelUrl":{"description":"The URL to redirect the customer to when they cancel the payment. If not provided, the callbackUrl will be used as fallback.","type":"string","example":"https://example.com/cancel","uniqueKey":"cancelUrl","typeLabel":"string"},"paymentMethods":{"type":"array","items":{"type":"string","uniqueKey":"paymentMethods.items.[INDEX]","typeLabel":"string"},"description":"List of payment methods to be enabled for the link. [supported payment methods](/get-started/payment-methods-supported#payment-method-enums)\n\nš” If a selected payment method is unavailable, the system will automatically fallback to card payments to ensure a smooth checkout experience.","example":["CARD","GOOGLE_PAY","APPLE_PAY"],"uniqueKey":"paymentMethods","typeLabel":"string[]"},"metadata":{"type":"object","description":"A collection of key-value pairs that can be attached to an object for storing additional structured information. This is useful for capturing custom data or context-specific attributes.\n\nConstraints:\n- Maximum of 50 key-value pairs allowed.\n- Each key must be no longer than 40 characters.\n- Each value must be a string and cannot exceed 500 characters.","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"example":{"orderId":"12345","customerNote":"Deliver after 5 PM"},"uniqueKey":"metadata","typeLabel":"object"},"phoneNumberRequired":{"type":"boolean","description":"Flag to indicate whether phone number is required from the customer during checkout. By default, this is false.","example":false,"uniqueKey":"phoneNumberRequired","typeLabel":"boolean"},"customerId":{"type":"string","description":"The unique identifier for the customer, generated via the [create-customer API](/api-reference/customers/create-customer). This can be used to associate the payment with a specific customer in your system.","example":"cus_Tfd3Jq1tZxPjYVhRQW2r3","uniqueKey":"customerId","typeLabel":"string"},"storeFrontId":{"type":"string","description":"šµ **Beta Feature** - The unique identifier for your storefront. This ID is used to associate the payment with a specific storefront in your account. When provided, it will replace the default DBA and logo with the corresponding storefront's branding. This feature is currently in beta testing and may be subject to changes.\n\nTo enable this feature, please contact [hello@xpaycheckout.com](mailto:hello@xpaycheckout.com)","example":"sf_sK8d3Jq1tZxPjYVhRQW2rf","uniqueKey":"storeFrontId","typeLabel":"string"},"tokenise":{"type":"boolean","description":"This boolean tokenises and stores the card to showcase the same card in future. If sending this value, corresponding `customerId` is also required. You will receive [`payment_method_token.created`](/developer-resources/webhooks/events/setupMethodEvents/payment_method_token_created) webhook every time a new payment method token is created.","example":false,"uniqueKey":"tokenise","typeLabel":"boolean"},"manualCapture":{"type":"boolean","description":"When set to true, the payment is authorized but not captured immediately, allowing you to complete the capture separately. By default, this is false.","example":false,"uniqueKey":"manualCapture","typeLabel":"boolean"},"productPage":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Product name. Must be between 2 and 100 characters long.","minLength":2,"maxLength":100,"example":"Premium Subscription","isRequired":true,"uniqueKey":"productPage.name","typeLabel":"string"},"description":{"type":"string","description":"Product description. Must be less than 500 characters long.","maxLength":500,"example":"Access to premium features and content","uniqueKey":"productPage.description","typeLabel":"string"}},"description":"Product Page - showcases more about the product on the checkout page","uniqueKey":"productPage","typeLabel":"object"},"allowedCardInstallmentTenures":{"type":"array","description":"Optional. Restricts which Card Installment (EMI) tenures (in months) are offered at checkout. If omitted, all tenures enabled on your account are offered.","items":{"type":"string","enum":["three","six","nine","twelve"],"uniqueKey":"allowedCardInstallmentTenures.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["three","six"],"uniqueKey":"allowedCardInstallmentTenures","typeLabel":"enum\u003cstring>[]"},"platformFeeInBps":{"type":"integer","description":"Optional additional fee in basis points (1 bps = 0.01%). Only available to Platform merchants when creating a payment intent on behalf of a Connect merchant (requires the `x-connect-merchant-id` header). See [Platform Connect](/products/platform-connect/overview).","example":100,"uniqueKey":"platformFeeInBps","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":100,"currency":"USD","customerDetails":{"name":"John Doe","email":"john.doe@example.com","contactNumber":"+919123456789","customerAddress":{"addressLine1":"123 Main St","addressLine2":"Apt 1","city":"New York","state":"NY","country":"US","postalCode":"2424"}},"callbackUrl":"https://example.com/callback","receiptId":"order123","customerReferenceId":"eTfd3Jq1tZxPjYVhRQW2r3","description":"Order for 2 items","cancelUrl":"https://example.com/cancel","paymentMethods":["CARD","GOOGLE_PAY","APPLE_PAY"],"metadata":{"orderId":"12345","customerNote":"Deliver after 5 PM"},"phoneNumberRequired":false,"customerId":"cus_Tfd3Jq1tZxPjYVhRQW2r3","storeFrontId":"sf_sK8d3Jq1tZxPjYVhRQW2rf","tokenise":false,"manualCapture":false,"allowedCardInstallmentTenures":["three","six"],"platformFeeInBps":100}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"ffa28cb8-fbed-4573-b7f9-107b80a2358a":{"description":"Create Intent response","content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"The amount in lowest count unit (e.g., cents for USD)","example":100,"uniqueKey":"amount","typeLabel":"integer"},"currency":{"type":"string","description":"Three-letter currency code","example":"USD","uniqueKey":"currency","typeLabel":"string"},"presentmentCurrency":{"type":"string","description":"The currency that the customer paid in","example":"USD","uniqueKey":"presentmentCurrency","typeLabel":"string"},"receiptId":{"description":"Your identifier for the order","type":"string","example":"order123","uniqueKey":"receiptId","typeLabel":"string"},"customerDetails":{"type":"object","description":"Billing details for the customer.","required":["name","email","contactNumber"],"properties":{"name":{"type":"string","description":"Customer's name","example":"John Doe","isRequired":true,"uniqueKey":"customerDetails.name","typeLabel":"string"},"email":{"type":"string","description":"Customer's email address","example":"john.doe@example.com","isRequired":true,"uniqueKey":"customerDetails.email","typeLabel":"string"},"contactNumber":{"type":"string","description":"Customer's contact number ([E.164 format](https://en.wikipedia.org/wiki/E.164)), including the country code (e.g., +1 for US, +44 for UK, +91 for India).","example":"+919123456789","isRequired":true,"uniqueKey":"customerDetails.contactNumber","typeLabel":"string"},"customerAddress":{"type":"object","properties":{"addressLine1":{"type":"string","description":"Line 1 of the customer's address","example":"123 Main St","uniqueKey":"customerDetails.customerAddress.addressLine1","typeLabel":"string"},"addressLine2":{"type":"string","description":"Line 2 of the customer's address","example":"Apt 1","uniqueKey":"customerDetails.customerAddress.addressLine2","typeLabel":"string"},"city":{"type":"string","description":"City of the customer's address","example":"New York","uniqueKey":"customerDetails.customerAddress.city","typeLabel":"string"},"state":{"type":"string","description":"State of the customer's address","example":"NY","uniqueKey":"customerDetails.customerAddress.state","typeLabel":"string"},"country":{"type":"string","description":"Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).","example":"US","uniqueKey":"customerDetails.customerAddress.country","typeLabel":"string"},"postalCode":{"type":"string","description":"Postal code","example":"2424","uniqueKey":"customerDetails.customerAddress.postalCode","typeLabel":"string"}},"uniqueKey":"customerDetails.customerAddress","typeLabel":"object"}},"uniqueKey":"customerDetails","typeLabel":"object"},"description":{"type":"string","description":"Description of the order, if any","example":"Order for 2 items","uniqueKey":"description","typeLabel":"string"},"callbackUrl":{"type":"string","description":"Callback URL to notify order status","example":"https://example.com/callback","uniqueKey":"callbackUrl","typeLabel":"string"},"cancelUrl":{"type":"string","description":"The URL to redirect the customer to when they cancel the payment.","example":"https://example.com/cancel","uniqueKey":"cancelUrl","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp of when the intent was created","example":"2024-09-26T10:41:50.472+00:00","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"Current status of the intent. Refer [payment statuses](/products/one-time-payments/payment-statuses)","example":"CREATED","uniqueKey":"status","typeLabel":"string"},"xIntentId":{"description":"Unique identifier of the intent","type":"string","example":"in_fooBOwYsaK50AEfK","uniqueKey":"xIntentId","typeLabel":"string"},"fwdUrl":{"type":"string","description":"The URL to redirect the customer to the xPay payment gateway for payment.","example":"https://pay.xpaycheckout.com/?xpay_intent_id=67f53a6e2097773e4f0112c8","uniqueKey":"fwdUrl","typeLabel":"string"},"metadata":{"type":"object","description":"A collection of key-value pairs that were provided when the object was created. These metadata values are echoed back in the response, allowing you to store and retrieve custom information such as context-specific attributes, references, or tags. This can be useful for correlating records in your system or attaching meaningful context to transactions.","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"example":{"orderId":"12345","customerNote":"Deliver after 5 PM"},"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":100,"currency":"USD","presentmentCurrency":"USD","receiptId":"order123","customerDetails":{"name":"John Doe","email":"john.doe@example.com","contactNumber":"+919123456789","customerAddress":{"addressLine1":"123 Main St","addressLine2":"Apt 1","city":"New York","state":"NY","country":"US","postalCode":"2424"}},"description":"Order for 2 items","callbackUrl":"https://example.com/callback","cancelUrl":"https://example.com/cancel","createdAt":"2024-09-26T10:41:50.472+00:00","status":"CREATED","xIntentId":"in_fooBOwYsaK50AEfK","fwdUrl":"https://pay.xpaycheckout.com/?xpay_intent_id=67f53a6e2097773e4f0112c8","metadata":{"orderId":"12345","customerNote":"Deliver after 5 PM"}}}},"exampleType":"generated"}},"exampleType":"generated"},"707ad7fc-daa9-48f3-90d8-b08f36911ead":{"description":"unexpected error","content":{"application/json":{"schema":{"required":["errorCode","errorDescription"],"type":"object","properties":{"errorCode":{"type":"string","example":"bad_request","isRequired":true,"uniqueKey":"errorCode","typeLabel":"string"},"errorDescription":{"type":"string","example":"Failed to read request","isRequired":true,"uniqueKey":"errorDescription","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errorCode":"bad_request","errorDescription":"Failed to read request"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ea68e7b4-b63a-4c0b-aef2-904d73dbf5f7":{"basicAuth":{"type":"http","scheme":"basic","scopes":[]}}},"servers":{"3326f4fb-4f32-40c7-8421-4cb311bc2da0":{"url":"https://api.xpaycheckout.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","scopes":[]},"schema":{"title":"Basic Auth","type":"object","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`.","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"basicAuth","name":"Authorization"}],"title":"basicAuth"}]},"originalFileLocation":"developer-resources/endpoints/openapi.json"},"subdomain":"xpay","siteName":"xPay","title":"Create Intent - xPay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-28T06:51:57.642Z","originalFileLocation":"developer-resources/endpoints/payments/create-intent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.\">\u003cmeta data-mint-head name=\"application-name\" content=\"xPay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/xpay/8HHwAkTUTKElZo4d/_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/xpay/8HHwAkTUTKElZo4d/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/xpay/8HHwAkTUTKElZo4d/_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/xpay/8HHwAkTUTKElZo4d/_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/xpay/8HHwAkTUTKElZo4d/_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/xpay/8HHwAkTUTKElZo4d/_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/xpay/8HHwAkTUTKElZo4d/_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/xpay/8HHwAkTUTKElZo4d/_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/xpay/8HHwAkTUTKElZo4d/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Intent - xPay\">\u003cmeta data-mint-head property=\"og:description\" content=\"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"xPay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://xpay.mintlify.app/_mintlify/api/og/v2?division=Payments\u0026amp;title=Create+Intent\u0026amp;description=This+API+is+the+first+API+to+be+called+when+the+payment+flow+begins.+Through+this+API%2C+you+inform+xPay+of+the+intent+of+the+user+to+pay+with+all+the+requisite+i\u0026amp;theme=ec85a6ae573973953713558e\u0026amp;signature=48b325618a93e0cfd5673056676386fce1858c5d9165d922f800284c705bcbeb\">\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=\"Create Intent - xPay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://xpay.mintlify.app/_mintlify/api/og/v2?division=Payments\u0026amp;title=Create+Intent\u0026amp;description=This+API+is+the+first+API+to+be+called+when+the+payment+flow+begins.+Through+this+API%2C+you+inform+xPay+of+the+intent+of+the+user+to+pay+with+all+the+requisite+i\u0026amp;theme=ec85a6ae573973953713558e\u0026amp;signature=48b325618a93e0cfd5673056676386fce1858c5d9165d922f800284c705bcbeb\">\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/xpay/8HHwAkTUTKElZo4d/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"xPay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3bc2ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developer-resources/endpoints/payments/create-intent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.xpaycheckout.com/#organization\",\"name\":\"xPay\",\"url\":\"https://docs.xpaycheckout.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/xpay/g26TzFabqZU05z4C/logo/light.svg?fit=max\u0026auto=format\u0026n=g26TzFabqZU05z4C\u0026q=85\u0026s=007fbae209bf88bae6f124ed06a79e04\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.xpaycheckout.com#website\",\"name\":\"xPay\",\"url\":\"https://docs.xpaycheckout.com\",\"publisher\":{\"@id\":\"https://docs.xpaycheckout.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent#webpage\",\"url\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent\",\"name\":\"Create Intent\",\"description\":\"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.\",\"dateModified\":\"2026-01-28T06:51:57.642Z\",\"isPartOf\":{\"@id\":\"https://docs.xpaycheckout.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Developer Resources\",\"item\":\"https://docs.xpaycheckout.com/developer-resources/getyourkeys\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Intent\",\"item\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent#apireference\",\"headline\":\"Create Intent\",\"name\":\"Create Intent\",\"description\":\"This API is the first API to be called when the payment flow begins. Through this API, you inform xPay of the intent of the user to pay with all the requisite info about the user.\",\"url\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.xpaycheckout.com/developer-resources/endpoints/payments/create-intent#webpage\"},\"dateModified\":\"2026-01-28T06:51:57.642Z\",\"publisher\":{\"@id\":\"https://docs.xpaycheckout.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.xpaycheckout.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"xPay\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"xPay","nav":{"global":null,"groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/get-started/introduction"},{"title":"Onboarding","href":"/get-started/onboarding"},{"title":"Currencies Supported","href":"/get-started/currencies-supported"},{"title":"Payment Methods","href":"/get-started/payment-methods-supported"}]},{"group":"Products","pages":[{"group":"One Time Payments","pages":[{"title":"Overview","href":"/products/one-time-payments/overview"},{"title":"Integration Process","href":"/products/one-time-payments/integrationProcess"},{"title":"Payment Statuses","href":"/products/one-time-payments/payment-statuses"},{"title":"Error Codes","href":"/products/one-time-payments/error-codes"},{"title":"Saved Cards","href":"/products/one-time-payments/saved-cards"}]},{"group":"Subscription","pages":[{"title":"Overview","href":"/products/subscription/overview"},{"title":"Integration Process","href":"/products/subscription/integrationProcess"},{"title":"Subscription Statuses","href":"/products/subscription/subscription-statuses"},{"title":"Retry Mechanism","href":"/products/subscription/subscription-retry-mechanism"}]},{"title":"Payment Links","href":"/products/payment-links/payment-links"},{"group":"Setup Method","pages":[{"title":"Overview","href":"/products/setup-method/overview"},{"title":"Integration Process","href":"/products/setup-method/integrationProcess"}]},{"title":"Argus","href":"/products/argus/overview"},{"title":"Virtual Bank Accounts","href":"/products/virtual-bank-accounts/virtual-bank-accounts"},{"title":"Platform Connect","href":"/products/platform-connect/overview"}]},{"group":"Dashboard \u0026 Operations","pages":[{"title":"Team Roles \u0026 Permissions","href":"/dashboard-operations/team-roles-permissions"},{"title":"Payouts","href":"/dashboard-operations/payouts/payouts"},{"group":"Dispute Management","pages":[{"title":"Overview","href":"/dashboard-operations/dispute-management/dispute-management"},{"title":"How disputes work","href":"/dashboard-operations/dispute-management/how-disputes-work"},{"title":"Reason codes","href":"/dashboard-operations/dispute-management/reason-codes"},{"title":"Network code reference","href":"/dashboard-operations/dispute-management/network-code-reference"},{"title":"Responding by reason","href":"/dashboard-operations/dispute-management/responding-by-reason"},{"title":"Secondary evidence","href":"/dashboard-operations/dispute-management/secondary-evidence"},{"title":"Evidence guidelines","href":"/dashboard-operations/dispute-management/evidence-guidelines"},{"title":"Deadlines","href":"/dashboard-operations/dispute-management/deadlines"},{"title":"Reducing disputes","href":"/dashboard-operations/dispute-management/reducing-disputes"},{"title":"Dispute FAQ","href":"/dashboard-operations/dispute-management/faq"}]}]},{"group":"Developer Resources","pages":[{"title":"Get Started","href":"/developer-resources/getyourkeys"},{"title":"Authentication","href":"/developer-resources/authentication"},{"title":"Rate Limits","href":"/developer-resources/rate-limits"},{"title":"Idempotent Requests","href":"/developer-resources/idempotency"},{"title":"Errors","description":"Overview of xPay's HTTP response codes and error meanings.","href":"/developer-resources/errors"},{"group":"API References","pages":[{"group":"Payments","pages":[{"title":"Create Intent","openapi":"POST /payments/create-intent","href":"/developer-resources/endpoints/payments/create-intent"},{"title":"Capture Payment","openapi":"POST /payments/capture-payment","description":"Captures a payment that was previously authorized by creating an intent with `manualCapture` set to `true`.","href":"/developer-resources/endpoints/payments/capture-payment"},{"title":"Get Intent","openapi":"GET /payments/v2/get-intent/{xIntentId}","href":"/developer-resources/endpoints/payments/get-intent"},{"title":"Refund","openapi":"POST /payments/merchant/refund","href":"/developer-resources/endpoints/payments/refund"},{"title":"Cancel Payment","openapi":"POST /payments/cancel/{xIntentId}","href":"/developer-resources/endpoints/payments/cancel-payment"},{"title":"List Intents","openapi":"GET /payments/intents","href":"/developer-resources/endpoints/payments/list-intents"},{"title":"Charge Raw Card","openapi":"POST /payments/s2s/charge-raw-card","href":"/developer-resources/endpoints/payments/charge-raw-card"},{"title":"Get Refunds of an Intent","openapi":"GET /payments/refunds/{intentId}","href":"/developer-resources/endpoints/payments/get-refunds-for-intent"},{"title":"Get Refund","openapi":"GET /payments/refund/{refundId}","href":"/developer-resources/endpoints/payments/get-refund"}]},{"group":"Subscriptions","pages":[{"title":"Create Subscription","openapi":"POST /subscription/create","href":"/developer-resources/endpoints/subscriptions/create-subscription"},{"title":"Get Subscription","openapi":"GET /subscription/get-subscription/{subscriptionId}","href":"/developer-resources/endpoints/subscriptions/get-subscription"},{"title":"Edit Subscription","openapi":"POST /subscription/edit","href":"/developer-resources/endpoints/subscriptions/edit-subscription"},{"title":"One Time Charge","openapi":"POST /subscription/merchant/one-time-charge","href":"/developer-resources/endpoints/subscriptions/one-time-charge"},{"title":"Manual Retry","openapi":"POST /subscription/manual-retry","href":"/developer-resources/endpoints/subscriptions/manual-retry"},{"title":"Pause Subscription","openapi":"POST /subscription/merchant/pause","href":"/developer-resources/endpoints/subscriptions/pause"},{"title":"Unpause Subscription","openapi":"POST /subscription/merchant/unpause","href":"/developer-resources/endpoints/subscriptions/unpause"},{"title":"Cancel Subscription","openapi":"POST /subscription/merchant/cancel","href":"/developer-resources/endpoints/subscriptions/cancel"}]},{"group":"Payment Links","pages":[{"title":"Payments Links","openapi":"POST /link/merchant/generate-link","href":"/developer-resources/endpoints/payment-links/generate-link"},{"title":"Subscription Link","openapi":"POST /subscription/link/merchant/generate-link","href":"/developer-resources/endpoints/payment-links/subscription-link"}]},{"group":"Customer","pages":[{"title":"Create Customer","openapi":"POST /customer/create","href":"/developer-resources/endpoints/customer/create-customer"},{"title":"Get Customer","openapi":"GET /customer/{customerId}","href":"/developer-resources/endpoints/customer/get-customer"},{"title":"List Payment Method Tokens","openapi":"GET /customer/{customerId}/payment-method-tokens","href":"/developer-resources/endpoints/customer/get-pm-tokens-for-customer"}]},{"group":"Setup Method","pages":[{"title":"Create Setup Method","openapi":"POST /setup-method/create","href":"/developer-resources/endpoints/setup-method/create-setup-method"},{"title":"Create S2S Setup Method","openapi":"POST /setup-method/s2s/create","href":"/developer-resources/endpoints/setup-method/create-s2s-setup-method"},{"title":"Get Setup Method","openapi":"GET /setup-method/{setupMethodId}","href":"/developer-resources/endpoints/setup-method/get-setup-method"},{"title":"Charge Tokenised PM","openapi":"POST /payments/charge-tokenised-pm","href":"/developer-resources/endpoints/setup-method/charge-tokenised-pm"},{"title":"Get Payment Method Token","openapi":"GET /payment-method-token/{paymentMethodTokenId}","href":"/developer-resources/endpoints/setup-method/get-payment-method-token"},{"title":"Delete Tokenised Payment Method","openapi":"POST /payment-method-token/delete","href":"/developer-resources/endpoints/setup-method/delete-tokenised-pm"}]},{"group":"Payouts","pages":[{"title":"Get Payout","openapi":"GET /balance/payouts/{payoutId}","href":"/developer-resources/endpoints/payouts/get-payout"},{"title":"List Payouts","openapi":"GET /balance/payouts","href":"/developer-resources/endpoints/payouts/list-payouts"}]},{"group":"Webhook Configuration","pages":[{"title":"Create a Webhook Configuration","openapi":"POST /webhook","href":"/developer-resources/endpoints/webhooks/create-webhook"},{"title":"List Webhook Configurations","openapi":"GET /webhook","href":"/developer-resources/endpoints/webhooks/get-webhooks"},{"title":"Get Webhook Configuration","openapi":"GET /webhook/{webhookConfigId}","href":"/developer-resources/endpoints/webhooks/get-webhook-by-id"},{"title":"Edit Webhook Configuration","openapi":"PUT /webhook/{webhookConfigId}","href":"/developer-resources/endpoints/webhooks/edit-webhook"},{"title":"Delete Webhook Configuration","openapi":"DELETE /webhook/{webhookConfigId}","href":"/developer-resources/endpoints/webhooks/delete-webhook"}]},{"group":"Argus","pages":[{"title":"Block Fingerprint by Intent","openapi":"POST /argus/block-fingerprint-by-intent","href":"/developer-resources/endpoints/argus/block-fingerprint-by-intent"}]}]},{"group":"Webhooks","pages":[{"title":"Webhooks Introduction","href":"/developer-resources/webhooks/introduction"},{"title":"Webhook Verification","href":"/developer-resources/webhooks/verification"},{"title":"Webhook Events Directory","href":"/developer-resources/webhooks/events-list"},{"group":"Webhook Events","pages":[{"group":"Intent Events","pages":[{"title":"Created","href":"/developer-resources/webhooks/events/intentEvents/created"},{"title":"Checkout Opened","href":"/developer-resources/webhooks/events/intentEvents/checkout_opened"},{"title":"Authorized","href":"/developer-resources/webhooks/events/intentEvents/authorized"},{"title":"Success","href":"/developer-resources/webhooks/events/intentEvents/success"},{"title":"Failed","href":"/developer-resources/webhooks/events/intentEvents/failed"},{"title":"Refunded","href":"/developer-resources/webhooks/events/intentEvents/refunded"},{"title":"Disputed","href":"/developer-resources/webhooks/events/intentEvents/disputed"},{"title":"Dispute Under Review","href":"/developer-resources/webhooks/events/intentEvents/dispute_under_review"},{"title":"Dispute Won","href":"/developer-resources/webhooks/events/intentEvents/disputedWon"},{"title":"Dispute Lost","href":"/developer-resources/webhooks/events/intentEvents/dispute_lost"},{"title":"Early Fraud Warning","href":"/developer-resources/webhooks/events/intentEvents/early_fraud_warning"}]},{"group":"Subscription Events","pages":[{"title":"Created","href":"/developer-resources/webhooks/events/subsEvents/created"},{"title":"Checkout Opened","href":"/developer-resources/webhooks/events/subsEvents/checkout_opened"},{"title":"Trialing","href":"/developer-resources/webhooks/events/subsEvents/trialing"},{"title":"Active","href":"/developer-resources/webhooks/events/subsEvents/active"},{"title":"Paused","href":"/developer-resources/webhooks/events/subsEvents/paused"},{"title":"Unpaused","href":"/developer-resources/webhooks/events/subsEvents/unpaused"},{"title":"Cycle Charged","href":"/developer-resources/webhooks/events/subsEvents/cycle_charged"},{"title":"Unpaid","href":"/developer-resources/webhooks/events/subsEvents/unpaid"},{"title":"Payment Method Updated","href":"/developer-resources/webhooks/events/subsEvents/payment_method_updated"},{"title":"Ended","href":"/developer-resources/webhooks/events/subsEvents/ended"},{"title":"Cancelled","href":"/developer-resources/webhooks/events/subsEvents/cancelled"}]},{"group":"Setup Method Events","pages":[{"title":"Setup Method Created","href":"/developer-resources/webhooks/events/setupMethodEvents/created"},{"title":"Setup Method Checkout Opened","href":"/developer-resources/webhooks/events/setupMethodEvents/checkout_opened"},{"title":"Setup Method Success","href":"/developer-resources/webhooks/events/setupMethodEvents/success"},{"title":"Setup Method Failed","href":"/developer-resources/webhooks/events/setupMethodEvents/failed"},{"title":"Payment Method Token Created","href":"/developer-resources/webhooks/events/setupMethodEvents/payment_method_token_created"},{"title":"Payment Method Token Deleted","href":"/developer-resources/webhooks/events/setupMethodEvents/payment_method_token_deleted"}]},{"group":"Payout Events","pages":[{"title":"Payout Initiated","href":"/developer-resources/webhooks/events/payoutEvents/initiated"},{"title":"Payout Success","href":"/developer-resources/webhooks/events/payoutEvents/success"}]},{"group":"Virtual Bank Account Events","pages":[{"title":"Virtual Bank Account Transaction","href":"/developer-resources/webhooks/events/vbaEvents/transaction"}]}]}]},{"title":null,"href":"/developer-resources/pagination"},{"group":"Sandbox","pages":[{"title":"Sandbox Environment","href":"/developer-resources/sandbox/sandbox"},{"title":"Payment Test Simulation","href":"/developer-resources/sandbox/payment-test-simulation"}]},{"title":"Mobile App Integration","href":"/developer-resources/mobileIntegration"},{"title":"Iframe Guidelines","href":"/developer-resources/iframeGuidelines"}]},{"group":"FAQs","pages":[{"title":"Frequently Asked Questions","href":"/faqs/overall-faq"},{"title":"xPay Card Installments","href":"/faqs/x-pay-card-installments"},{"title":"Klarna FAQs for Merchants","href":"/faqs/klarna-overview"},{"title":"Prohibited Activities / Businesses","href":"/faqs/prohibited-businesses"}]}]},"basePath":"","title":"Create Intent - xPay","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}