Make sure that the URL that you provide in the url_store field uses the secure HTTPS protocol, uses domain names (not IP addresses) and is considered clean by VirusTotal and similar scanners.
The amount you want to receive from the customer, in currency, as a decimal string (for example, "100.50") or a number. It must be within the minimum and maximum payment request amounts. The number of decimal places allowed depends on the currency (2 for fiat currencies and stablecoins, 6 for other cryptocurrencies).
Payment request lifespan, in seconds (a whole number). Include either this parameter or life_time_date_time. At least one of these fields is required. The lifespan must be within the minimum and maximum lifespan for payment requests.
The time the payment request expires, as a Unix timestamp in seconds (a whole number). Include either this parameter or life_time_duration. At least one of these fields is required. The same minimum and maximum lifespan apply as for life_time_duration.
Currency network name. Optional — omit to accept this cryptocurrency on any of its supported networks. For the list of all available networks, see Currency codes.
This parameter controls the rate lock behavior. The value is case-sensitive.
standard - the customer will be able to choose the payment currency. The exchange rate will be locked after the customer confirms the selection on the first screen.
fixed - the exchange rate is locked immediately after the payment request is created. The first screen is skipped, and the customer is taken directly to the screen with the payment instructions. In this mode, you must specify both the currency and network in payment_currency, as well as provide sender_type, sender_data and end_user_email for the customer identification.
The customer's email address. It's filled in for the customer on the payment page. The customer gets an email when the payment is complete, and when a payment doesn't match the request (an underpayment that isn't accepted, an overpayment or a late payment): either a link to claim a refund, or a notice that the amount is too small to be refunded. Required if rate_mode is fixed.
Type of the customer who sends the funds. Use natural if the sender is an individual person and legal if the sender is a legal entity. The selected type determines which fields must be included in sender_data.
sender_type and sender_data go together: if you provide one, you must also provide the other. Both are required if rate_mode is fixed. Otherwise, you can omit both, see Requesting data from the customer.
Details of the customer who sends the funds. Which fields are required depends on sender_type.
sender_type and sender_data go together: if you provide one, you must also provide the other. Both are required if rate_mode is fixed. Otherwise, you can omit both, see Requesting data from the customer.
Unique ID of the payment request in your system, case-insensitive. Must not contain personal data, such as the customer's name or email address. If omitted, the response doesn't include foreign_id, and callbacks send it as an empty string.
URL of the store page. The customer can click a button on the payment form to return to this URL (for example, if they change their mind or want to pick a different payment method). We recommend setting this to the URL of the checkout page.
standard - the customer will be able to choose the payment currency. The exchange rate will be locked after the customer confirms the selection on the first screen.
fixed - the exchange rate is locked immediately after the payment request is created. The first screen is skipped, and the customer is taken directly to the screen with the payment instructions.
Unix timestamp for when the payment request will expire, in seconds. Once the customer starts paying in a different currency, the payment request can end earlier, when the rate lock ends.
If rate_mode is fixed, this is the same as valid_until. A fixed-rate payment request lasts 1 hour at most, so a longer lifespan in the request is shortened to 1 hour.
The processing fee the customer pays, in the payment request currency. Included only if user_fee_percent is 100 (the customer pays the fee). It's included in expected_amount.
Network of the fee currency. Present only if the payment request currency is a cryptocurrency.
Last modified on October 29, 2026
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"CryptoProcessing","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/cr-can/JNU-a1yf24zsoHlI/logo/secondary%20logo%20black.svg?fit=max\u0026auto=format\u0026n=JNU-a1yf24zsoHlI\u0026q=85\u0026s=aaf2df80dcbc41f74d023d60472028af","dark":"https://mintcdn.com/cr-can/JNU-a1yf24zsoHlI/logo/secondary%20logo%20white.svg?fit=max\u0026auto=format\u0026n=JNU-a1yf24zsoHlI\u0026q=85\u0026s=2f077577f55cb906b8bc5e7cf8ca9010"},"favicon":"https://mintcdn.com/cr-can/9usOsZeCL5WSJbpa/favicon.png?fit=max\u0026auto=format\u0026n=9usOsZeCL5WSJbpa\u0026q=85\u0026s=c981a5eb98d14c844fbcbe41072bef83","api":{"params":{"expanded":"all"},"playground":{"display":"simple"}},"navbar":{"links":[{"href":"/contact-support","label":"Support"}],"primary":{"type":"button","label":"Portal","href":"https://app.ca.cryptoprocessing.com/"}},"footer":{"socials":{"x":"https://x.com/processing_com","linkedin":"https://www.linkedin.com/company/cryptoprocessing","instagram":"https://www.instagram.com/cryptoprocessing","youtube":"https://www.youtube.com/@CryptoProcessing_by_CoinsPaid"}},"seo":{"metatags":{"google-site-verification":"yu4O7y66I-adhApJGRh2Cf0rw23afXp43M-V_C7o9WE"}},"fonts":{"family":"Funnel Sans"},"errors":{"404":{"redirect":false,"title":"This page has a new home","description":"The page you’re looking for may have moved. Try one of the suggested pages below."}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"variables":{"PRODUCT":"CryptoProcessing","PRODUCT_FULL":"CryptoProcessing by Coinspaid","SUPPORT":"support.ca@cryptoprocessing.com","SALES":"sales.ca@cryptoprocessing.com","ACCOUNT_MANAGER":"accounts.ca@cryptoprocessing.com","HOST":"app.ca.cryptoprocessing.com","HOST_PAYMENTS":"payments.ca.cryptoprocessing.com","KYC":"true","FIAT":"CAD","FIAT_OR":"CAD, USD or EUR","API_FIAT":"USD","CURRENCIES_THAT_SUPPORT_INSTANT_CONFIRMATIONS":"BTC and BCH","CURRENCIES_THAT_SUPPORT_INSTANT_WITHDRAWALS":"Bitcoin, Bitcoin Cash, and Litecoin","REGULATIONS":"local regulations","COUNTRY_OF_REGISTRATION":"CAN"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cr-can","hasAudioNarration":false,"actualSubdomain":"cr-can","customDomains":["docs.ca.cryptoprocessing.com"],"gitSource":{"type":"github","owner":"c-docs","repo":"docs","deployBranch":"main","contentDirectory":"C22","isPrivate":true,"mountPath":"","label":"","_id":"6adb634dc631569183d6ac6c"},"chroma":{"liveDeploymentHistoryId":"6aeb2a1fc8520f7b8ee2569c","collectionId":"434aa791-b4c3-42b1-ac85-aa5cf0308803","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb2a1fc8520f7b8ee2569c"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aeda0c4644e5d1cbd4c3705","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Docs","count":67},{"language":"default","tag":"API reference","count":23},{"language":"default","tag":"Payment requests","count":16},{"language":"default","tag":"Withdrawals","count":14},{"language":"default","tag":"Deposits","count":13},{"language":"default","tag":"Merchant account setup","count":13},{"language":"default","tag":"Integration","count":12},{"language":"default","tag":"Exchanges","count":7},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Fees, statuses, and other details","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support.ca@cryptoprocessing.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"css/asterisks.css","content":"#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li::before{--icon-size: 0.9ex;position:absolute;top:0.5ex;text-align:right;vertical-align:bottom;width:calc(var(--asterisks) * var(--icon-size));left:calc(2ex - var(--asterisks) * var(--icon-size));font-size:1.3em;background:url('/images/icons/asterisk.svg') 1ex repeat;border-radius:0;padding:0;margin:0;height:var(--icon-size)}#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li:nth-child(1)::before{--asterisks: 1}#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li:nth-child(2)::before{--asterisks: 2}#content[data-page-href*=\"/confirmations-and-limits\"]>div:has(table)+ul>li:nth-child(3)::before{--asterisks: 3}"},{"filePath":"css/ai-disclaimer.css","content":".chat-assistant-disclaimer-text{visibility:hidden;position:relative}.chat-assistant-disclaimer-text::after{content:\"This is an AI assistant, not a live support agent. Answers are generated from our documentation and may contain mistakes — if you have further questions, contact support.\";visibility:visible;position:absolute;top:0;left:0;width:100%}"},{"filePath":"css/navigation.css","content":".sidebar-group-header .sidebar-title{text-transform:uppercase}"},{"filePath":"css/tabs.css","content":"ul[role=\"tablist\"]{flex-wrap:wrap}"},{"filePath":"css/cards.css","content":"div.card div:has(>svg:only-child):not([data-component-part=\"card-icon\"]){display:none}"},{"filePath":"css/main-page.css","content":"#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"]{border:none;column-gap:.5em;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li{margin:0;padding:0;flex:none;scroll-snap-align:start}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div{height:2.6em;border-radius:1.3em;padding:0 1em;background:#8888881a;border:1px solid #88888840}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div svg{background:rgb(var(--primary))}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div:hover{background:#88888833}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div[data-active=\"true\"]{background-color:rgb(var(--primary));color:white}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs ul[role=\"tablist\"] li div[data-active=\"true\"] svg{background-color:white}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden){display:flex;flex-direction:row;column-gap:2em}@media (max-width: 50em){#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden){flex-direction:column;row-gap:3em}}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(1){flex:2}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(1) .steps{margin:0}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(1) .steps .step p{margin-bottom:0}#content:is([data-page-href=\"/index\"],[data-page-href=\"/src/_props/index\"]) .tabs div[role=\"tabpanel\"]:not(.hidden)>div:nth-child(2){flex:3}"},{"filePath":"css/currency-icons.css","content":"#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table thead{border-bottom:1px solid color-mix(in srgb, currentColor 14%, transparent)}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table tbody tr{border-bottom:1px solid color-mix(in srgb, currentColor 8%, transparent)}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table :is(th,td){padding:0.5rem 0.5rem 0.5rem 0;vertical-align:baseline}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table th{padding-top:0;text-align:left}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td{min-width:0;line-height:1.5em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table img{display:inline-block;width:1.3em;height:1.3em;margin:0 0.3em 0 0;border-radius:50%;pointer-events:none;background:color-mix(in srgb, currentColor 10%, transparent)}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:first-child{font-weight:bold}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:first-child img{width:1.7em;height:1.7em;margin-right:0.7em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:first-child strong{margin-left:0.5em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:not(:first-child)>span,#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table td:not(:first-child)>div>span{display:inline-block;white-space:nowrap;margin-right:1em}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table :is(b,strong){padding:.1em .4em;margin:.2em .2em .2em 0;font-weight:normal;border-radius:.3em;white-space:nowrap;display:inline-block;background:#F5F5F4;color:#57534E}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table span+:is(b,strong){margin-left:-0.5em}.dark #content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table :is(b,strong){background:#44403C;color:#A8A29E}#content:is([data-page-href$=\"/supported-currencies\"],[data-page-href$=\"/confirmations-and-limits\"],[data-page-href$=\"/supported-trading-pairs\"]) table strong{margin-block:0.15em;margin-right:-0.05em}#content[data-page-href$=\"/supported-currencies\"] table th:not(:last-child){width:10rem}#content[data-page-href$=\"/confirmations-and-limits\"] table th:first-child{width:16rem}#content[data-page-href$=\"/supported-trading-pairs\"] table th:not(:first-child){width:50%}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(1) b{display:block;width:fit-content;margin-left:2.3em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2){line-height:2em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2) b{line-height:1.5em;margin-block:0}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2) div{padding-inline-start:1.6em;text-indent:-1.6em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2) div :is(span,b){text-indent:initial}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(3){display:grid;grid-template-columns:repeat(auto-fill, minmax(5em, 1fr));row-gap:0.4em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(3) span{margin-inline-end:0}@media (max-width: 640px){#content[data-page-href$=\"/supported-trading-pairs\"] table thead{display:none}#content[data-page-href$=\"/supported-trading-pairs\"] table :is(tbody,tr,td){display:block}#content[data-page-href$=\"/supported-trading-pairs\"] table tr{padding-block:0.5rem}#content[data-page-href$=\"/supported-trading-pairs\"] table td{padding-inline:0}#content[data-page-href$=\"/supported-trading-pairs\"] table td:first-child{font-size:1rem;padding-top:1.25rem}#content[data-page-href$=\"/supported-trading-pairs\"] table td:first-child b{display:inline-block;margin-left:0.5em}#content[data-page-href$=\"/supported-trading-pairs\"] table td:not(:first-child)::before{display:block;grid-column:1 / -1;margin-block:0.25rem;font-size:0.75rem;color:color-mix(in srgb, currentColor 55%, transparent);text-transform:uppercase}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(2)::before{content:'Convert to crypto'}#content[data-page-href$=\"/supported-trading-pairs\"] table td:nth-child(3)::before{content:'Convert to fiat'}}"},{"filePath":"css/migrating.css","content":"#content[data-page-href$=\"/payment-requests/migration-guide\"] table{display:table;table-layout:fixed;width:100%}#content[data-page-href$=\"/payment-requests/migration-guide\"] table :is(th,td):nth-child(2){width:2rem;text-align:center}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns{gap:.5rem}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block{display:grid;grid-template-rows:auto 1fr;margin:0;--code-padding-right: 0}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block [data-component-part=\"scroll-area-viewport\"]{padding-right:0}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block code{white-space:pre-wrap;width:auto}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block:first-child{opacity:.7}#content[data-page-href$=\"/payment-requests/migration-guide\"] .columns .code-block:first-child [data-component-part=\"code-block-header\"] button{visibility:hidden}"},{"filePath":"css/method-pills.css","content":"a[href*=\"/api-reference/callbacks/\"] .method-nav-pill>span{background-color:rgb(250 204 21 / 0.2);color:#a16207}.dark a[href*=\"/api-reference/callbacks/\"] .method-nav-pill>span{background-color:rgb(250 204 21 / 0.2);color:#facc15}a[href*=\"/api-reference/callbacks/\"][aria-current=\"page\"] .method-nav-pill>span,.dark a[href*=\"/api-reference/callbacks/\"][aria-current=\"page\"] .method-nav-pill>span{background-color:#c28c30;color:#ffffff}"}],"page":{"pagePath":"api-reference/endpoints/payments","slug":"/api-reference/endpoints/payments","pageMetadata":{"title":"Create a payment request","openapi":"POST /payments/v1/requests","description":"Create a payment request for the customer for a specified amount and a configurable expiration time.","href":"/api-reference/endpoints/payments"},"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: \"Create a payment request for the customer for a specified amount and a configurable expiration time.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`Make sure that the URL that you provide in the `,_jsx(_components.code,{children:`url_store`}),` field uses the secure HTTPS protocol, uses domain names (not IP addresses) and is considered clean by VirusTotal and similar scanners.`]})}),`\n`,_jsxs(_components.p,{children:[`For every error this endpoint returns and what it means, see `,_jsx(_components.a,{href:`/api-reference/errors#create-a-payment-request`,children:`API errors: Create a payment request`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a payment request","openapi":"POST /payments/v1/requests","description":"Create a payment request for the customer for a specified amount and a configurable expiration time.","href":"/api-reference/endpoints/payments"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cr-can/2fc5915a2ee56d94/js/currency-pair-lookup.js"],"openApiReferenceData":{"operation":{"parameters":["6e796df0-8b83-45f2-bd07-1db4b740cff7"],"summary":"Create a payment request","description":"Create a payment request for the customer for a specified amount and a configurable expiration time.","tags":["Payment requests"],"requestBody":"db324e88-e5bb-4446-9d65-79937f074194","responses":{"200":"cd584f4d-5d47-4683-b594-2a38c997a65a","400":"7be5e76b-d74b-4a11-bd3d-abce79e70c1c","403":"1133c252-e7ee-4db3-9ddf-7c3e1e31eee1","404":"4e3330a6-ccd2-4310-addc-6f316dbea5a0","422":"000b3438-4533-4b46-869e-476cc75aa46e"},"method":"post","type":"path","servers":["cc4ac018-6f79-4de6-b0fa-423a789a0590"],"security":["a0e34d2c-0523-49d1-9754-4e206205cdb2"],"path":"/payments/v1/requests","baseUrlOptions":["https://app.ca.cryptoprocessing.com/api"],"title":"Create a payment request","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"6e796df0-8b83-45f2-bd07-1db4b740cff7":{"name":"X-Processing-Signature","in":"header","required":true,"description":"Hex-encoded HMAC-SHA512 signature of the request body, [generated using your secret key](/api-reference/authentication).","schema":{"type":"string","isRequired":true,"description":"Hex-encoded HMAC-SHA512 signature of the request body, [generated using your secret key](/api-reference/authentication).","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"oneOf":[{"type":"string","description":"The amount you want to receive from the customer, in `currency`, as a decimal string (for example, `\"100.50\"`) or a number. It must be within the [minimum and maximum payment request amounts](/confirmations-and-limits). The number of decimal places allowed depends on the currency (2 for fiat currencies and stablecoins, 6 for other cryptocurrencies).","example":"100.50","isRequired":true,"uniqueKey":"amount.oneOf.0","typeLabel":"string"},{"type":"number","description":"The amount you want to receive from the customer, in `currency`, as a decimal string (for example, `\"100.50\"`) or a number. It must be within the [minimum and maximum payment request amounts](/confirmations-and-limits). The number of decimal places allowed depends on the currency (2 for fiat currencies and stablecoins, 6 for other cryptocurrencies).","example":"100.50","isRequired":true,"uniqueKey":"amount.oneOf.1","typeLabel":"number"}],"isRequired":true,"uniqueKey":"amount","typeLabel":"string | number"},"currency":{"type":"object","description":"The currency you want to receive.","required":["iso"],"properties":{"iso":{"type":"string","description":"Currency ISO code. For the list of all available currencies, see [Currency codes](/api-reference/currency-codes#currency-codes-for-payment-requests).","example":"USD","isRequired":true,"uniqueKey":"currency.iso","typeLabel":"string"},"network_name":{"oneOf":[{"type":"string","description":"Currency network name. Required for cryptocurrencies. Do not include for fiat currencies. For the list of all available networks, see [Currency codes](/api-reference/currency-codes#currency-codes-for-payment-requests).","uniqueKey":"currency.network_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Currency network name. Required for cryptocurrencies. Do not include for fiat currencies. For the list of all available networks, see [Currency codes](/api-reference/currency-codes#currency-codes-for-payment-requests).","uniqueKey":"currency.network_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"currency.network_name","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"currency","typeLabel":"object"},"life_time_duration":{"oneOf":[{"type":"integer","minimum":300,"maximum":5184000,"description":"Payment request lifespan, in seconds (a whole number). Include **either** this parameter or life_time_date_time. **At least one** of these fields is required. The lifespan must be within the minimum and maximum lifespan for payment requests.","example":3600,"isRequired":true,"uniqueKey":"life_time_duration.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":300,"maximum":5184000,"description":"Payment request lifespan, in seconds (a whole number). Include **either** this parameter or life_time_date_time. **At least one** of these fields is required. The lifespan must be within the minimum and maximum lifespan for payment requests.","example":3600,"isRequired":true,"uniqueKey":"life_time_duration.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"life_time_duration","typeLabel":"integer | null"},"life_time_date_time":{"oneOf":[{"type":"integer","description":"The time the payment request expires, as a Unix timestamp in seconds (a whole number). Include **either** this parameter or life_time_duration. **At least one** of these fields is required. The same minimum and maximum lifespan apply as for `life_time_duration`.","example":1773768946,"isRequired":true,"uniqueKey":"life_time_date_time.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The time the payment request expires, as a Unix timestamp in seconds (a whole number). Include **either** this parameter or life_time_duration. **At least one** of these fields is required. The same minimum and maximum lifespan apply as for `life_time_duration`.","example":1773768946,"isRequired":true,"uniqueKey":"life_time_date_time.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"life_time_date_time","typeLabel":"integer | null"},"user_fee_percent":{"type":"integer","enum":[0,100],"default":0,"description":"Percentage of processing fees [paid by the customer](/payment-requests/fees#passing-the-processing-fee-to-your-customer).\n\nCurrently, only two values are supported:\n- `0` (the default) — the processing fee is paid by the merchant.\n- `100` — the processing fee is paid by the customer.\n","uniqueKey":"user_fee_percent","typeLabel":"enum\u003cinteger>"},"payment_currency":{"type":"object","required":["iso"],"description":"The cryptocurrency your customer will pay in. Unlike `currency`, this must be a cryptocurrency — fiat currencies are not supported.\n\nYou can set both the currency and network or just the currency. If [rate_mode](#body-rate-mode) is `fixed`, you must set both the currency and network.\n","properties":{"iso":{"type":"string","description":"Cryptocurrency ISO code. For the list of all available currencies, see [Currency codes](/api-reference/currency-codes#currency-codes-for-payment-requests).","isRequired":true,"uniqueKey":"payment_currency.iso","typeLabel":"string"},"network_name":{"oneOf":[{"type":"string","description":"Currency network name. Optional — omit to accept this cryptocurrency on any of its supported networks. For the list of all available networks, see [Currency codes](/api-reference/currency-codes#currency-codes-for-payment-requests).","uniqueKey":"payment_currency.network_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Currency network name. Optional — omit to accept this cryptocurrency on any of its supported networks. For the list of all available networks, see [Currency codes](/api-reference/currency-codes#currency-codes-for-payment-requests).","uniqueKey":"payment_currency.network_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment_currency.network_name","typeLabel":"string | null"}},"uniqueKey":"payment_currency","typeLabel":"object"},"rate_mode":{"type":"string","enum":["standard","fixed"],"default":"standard","description":"This parameter controls the [rate lock](/payment-requests#currency-selection) behavior. The value is case-sensitive.\n\n- `standard` - the customer will be able to choose the payment currency. The exchange rate will be locked after the customer confirms the selection on the first screen.\n- `fixed` - the exchange rate is locked immediately after the payment request is created. The first screen is skipped, and the customer is taken directly to the screen with the payment instructions. In this mode, you must specify both the currency and network in [payment_currency](#body-payment-currency), as well as provide [sender_type](#body-sender-type), [sender_data](#body-sender-data) and [end_user_email](#body-end-user-email) for the customer identification.\n","uniqueKey":"rate_mode","typeLabel":"enum\u003cstring>"},"end_user_email":{"type":"string","format":"email","description":"The customer's email address. It's filled in for the customer on the payment page. The customer gets an email when the payment is complete, and when a payment doesn't match the request (an underpayment that isn't accepted, an overpayment or a late payment): either a link to claim a [refund](/payment-requests/refunds), or a notice that the amount is too small to be refunded. Required if [rate_mode](#body-rate-mode) is `fixed`.","example":"chris.customer@example.com","uniqueKey":"end_user_email","typeLabel":"string\u003cemail>"},"end_user_reference":{"type":"string","description":"The unique ID of the customer this payment request is for. You can use it to group payment requests by customer.","uniqueKey":"end_user_reference","typeLabel":"string"},"sender_type":{"type":"string","description":"Type of the customer who sends the funds. Use `natural` if the sender is an individual person and `legal` if the sender is a legal entity. The selected type determines which fields must be included in [sender_data](#body-sender-data).\n\n`sender_type` and `sender_data` go together: if you provide one, you must also provide the other. Both are required if [rate_mode](#body-rate-mode) is `fixed`. Otherwise, you can omit both, see [Requesting data from the customer](/user-data-collection#requesting-data-from-the-customer).\n","enum":["natural","legal"],"uniqueKey":"sender_type","typeLabel":"enum\u003cstring>"},"sender_data":{"oneOf":[{"type":"object","title":"Natural person","description":"Details of the customer who sends the funds. Which fields are required depends on [sender_type](#body-sender-type).\n\n`sender_type` and `sender_data` go together: if you provide one, you must also provide the other. Both are required if [rate_mode](#body-rate-mode) is `fixed`. Otherwise, you can omit both, see [Requesting data from the customer](/user-data-collection#requesting-data-from-the-customer).\n","required":["first_name","last_name"],"properties":{"first_name":{"type":"string","maxLength":255,"description":"The sender's first name.","isRequired":true,"uniqueKey":"sender_data.oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","maxLength":255,"description":"The sender's last name.","isRequired":true,"uniqueKey":"sender_data.oneOf.0.last_name","typeLabel":"string"},"date_of_birth":{"type":"string","description":"The sender's date of birth, YYYY-MM-DD. Optional for a natural person.","uniqueKey":"sender_data.oneOf.0.date_of_birth","typeLabel":"string"}},"uniqueKey":"sender_data.oneOf.0","typeLabel":"Natural person · object"},{"type":"object","title":"Legal entity","description":"Details of the customer who sends the funds. Which fields are required depends on [sender_type](#body-sender-type).\n\n`sender_type` and `sender_data` go together: if you provide one, you must also provide the other. Both are required if [rate_mode](#body-rate-mode) is `fixed`. Otherwise, you can omit both, see [Requesting data from the customer](/user-data-collection#requesting-data-from-the-customer).\n","required":["legal_name","country_of_registration"],"properties":{"legal_name":{"type":"string","maxLength":255,"description":"The company's name.","isRequired":true,"uniqueKey":"sender_data.oneOf.1.legal_name","typeLabel":"string"},"country_of_registration":{"type":"string","description":"The company's country of registration (ISO alpha-3 format, three characters).","isRequired":true,"uniqueKey":"sender_data.oneOf.1.country_of_registration","typeLabel":"string"}},"uniqueKey":"sender_data.oneOf.1","typeLabel":"Legal entity · object"}],"uniqueKey":"sender_data","typeLabel":"Natural person · object | Legal entity · object"},"description":{"type":"string","description":"Payment request description that the customer will see.","example":"Order #123","uniqueKey":"description","typeLabel":"string"},"foreign_id":{"type":"string","maxLength":255,"description":"Unique ID of the payment request in your system, case-insensitive. Must not contain personal data, such as the customer's name or email address. If omitted, the response doesn't include `foreign_id`, and callbacks send it as an empty string.","example":"order_123","uniqueKey":"foreign_id","typeLabel":"string"},"url_store":{"type":"string","format":"uri","description":"URL of the store page. The customer can click a button on the payment form to return to this URL (for example, if they change their mind or want to pick a different payment method). We recommend setting this to the URL of the checkout page.","example":"https://example.com/store","uniqueKey":"url_store","typeLabel":"string\u003curi>"},"url_success":{"type":"string","format":"uri","description":"URL of the success page. The customer will be able to return to this address once the payment is completed.","example":"https://example.com/success","uniqueKey":"url_success","typeLabel":"string\u003curi>"},"url_failed":{"type":"string","format":"uri","description":"URL of the failed payment page. The customer will be able to return to this address if the payment fails.","example":"https://example.com/fail","uniqueKey":"url_failed","typeLabel":"string\u003curi>"}},"required":["amount","currency","life_time_duration","life_time_date_time"],"uniqueKey":"","typeLabel":"object"},"examples":{"Request 100 USD, paid in a cryptocurrency the customer chooses":{"title":"Request 100 USD, paid in a cryptocurrency the customer chooses","value":{"amount":"100","currency":{"iso":"USD"},"life_time_duration":3600,"end_user_email":"chris.customer@example.com","description":"Order 0511","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","sender_type":"legal","sender_data":{"legal_name":"Example Customer","country_of_registration":"CAN"}}},"Request 50 USDC on Ethereum":{"title":"Request 50 USDC on Ethereum","value":{"amount":"50","currency":{"iso":"USDC","network_name":"ethereum"},"life_time_duration":3600,"end_user_email":"chris.customer@example.com","description":"Order 0511","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","sender_type":"legal","sender_data":{"legal_name":"Example Customer","country_of_registration":"CAN"}}},"Request 100 USD until a set date and time":{"title":"Request 100 USD until a set date and time","value":{"amount":"100","currency":{"iso":"USD"},"life_time_date_time":1775625123,"foreign_id":"payment_request_123"}},"Request 100 USD paid in USDC at a rate locked for 1 hour":{"title":"Request 100 USD paid in USDC at a rate locked for 1 hour","value":{"amount":"100","currency":{"iso":"USD"},"rate_mode":"fixed","life_time_duration":3600,"payment_currency":{"iso":"USDC","network_name":"ethereum"},"end_user_email":"chris.customer@example.com","description":"Order 0511","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","sender_type":"legal","sender_data":{"legal_name":"Example Customer","country_of_registration":"CAN"}}},"Request 100 USD paid in USDC, with the customer paying the fee":{"title":"Request 100 USD paid in USDC, with the customer paying the fee","value":{"amount":"100","currency":{"iso":"USD"},"rate_mode":"fixed","user_fee_percent":100,"life_time_duration":3600,"payment_currency":{"iso":"USDC","network_name":"ethereum"},"end_user_email":"chris.customer@example.com","description":"Order 0511","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","sender_type":"legal","sender_data":{"legal_name":"Example Customer","country_of_registration":"CAN"}}},"Request 100 USD paid in XRP, with a destination tag":{"title":"Request 100 USD paid in XRP, with a destination tag","value":{"amount":"100","currency":{"iso":"USD"},"rate_mode":"fixed","life_time_duration":3600,"payment_currency":{"iso":"XRP","network_name":"ripple"},"end_user_email":"chris.customer@example.com","description":"Order 0511","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","sender_type":"legal","sender_data":{"legal_name":"Example Customer","country_of_registration":"CAN"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"cd584f4d-5d47-4683-b594-2a38c997a65a":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","amount","currency","user_fee_percent","status","rate_mode","life_time","payment_link"],"properties":{"id":{"type":"string","description":"Payment request ID.","example":"0196f6a1-cab2-76fb-84c7-7e9ee9ddf6b4","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"amount":{"type":"string","description":"Payment request amount.","example":"100.50","isRequired":true,"uniqueKey":"data.amount","typeLabel":"string"},"currency":{"properties":{"iso":{"type":"string","description":"Payment request currency.","example":"USD","isRequired":true,"uniqueKey":"data.currency.iso","typeLabel":"string"},"network_name":{"oneOf":[{"type":"string","description":"Network of the selected cryptocurrency. Not included for fiat currencies.","uniqueKey":"data.currency.network_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Network of the selected cryptocurrency. Not included for fiat currencies.","uniqueKey":"data.currency.network_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.currency.network_name","typeLabel":"string | null"}},"required":["iso"],"type":"object","isRequired":true,"uniqueKey":"data.currency","typeLabel":"object"},"user_fee_percent":{"type":"integer","enum":[0,100],"description":"Percentage of processing fees [paid by the customer](/payment-requests/fees#passing-the-processing-fee-to-your-customer).","isRequired":true,"uniqueKey":"data.user_fee_percent","typeLabel":"enum\u003cinteger>"},"status":{"type":"string","description":"The status of the newly created payment request. Depends on [rate_mode](#body-rate-mode).\n\n- If the rate mode is `standard`, the status will be `created`.\n- If the rate mode is `fixed`, the status will be `processing`.\n","example":"created","isRequired":true,"uniqueKey":"data.status","typeLabel":"string"},"rate_mode":{"type":"string","enum":["standard","fixed"],"default":"standard","description":"The [rate lock](/payment-requests#currency-selection) behavior.\n\n- `standard` - the customer will be able to choose the payment currency. The exchange rate will be locked after the customer confirms the selection on the first screen.\n- `fixed` - the exchange rate is locked immediately after the payment request is created. The first screen is skipped, and the customer is taken directly to the screen with the payment instructions.\n","isRequired":true,"uniqueKey":"data.rate_mode","typeLabel":"enum\u003cstring>"},"life_time":{"type":"integer","description":"Unix timestamp for when the payment request will expire, in seconds. Once the customer starts paying in a different currency, the payment request can end earlier, when the [rate lock](/payment-requests#lifespan-and-rate-lock) ends.\n\nIf [rate_mode](#body-rate-mode) is `fixed`, this is the same as [valid_until](#body-valid-until). A fixed-rate payment request lasts 1 hour at most, so a longer lifespan in the request is shortened to 1 hour.\n","example":1731427200,"isRequired":true,"uniqueKey":"data.life_time","typeLabel":"integer"},"payment_link":{"type":"string","format":"uri","description":"Payment request URL.","isRequired":true,"uniqueKey":"data.payment_link","typeLabel":"string\u003curi>"},"valid_until":{"type":"integer","description":"Unix timestamp until which the exchange rate remains locked.\n\nIncluded only if [rate_mode](#body-rate-mode) is `fixed`.\n","example":1731427200,"uniqueKey":"data.valid_until","typeLabel":"integer"},"payment_currency":{"type":"object","required":["iso"],"description":"The cryptocurrency your customer will pay in. This is always a cryptocurrency, regardless of what `currency` is set to.","properties":{"iso":{"type":"string","description":"Cryptocurrency ISO code. For the list of all available currencies, see [API currency codes](/api-reference/currency-codes#currency-codes-for-payment-requests).","isRequired":true,"uniqueKey":"data.payment_currency.iso","typeLabel":"string"},"network_name":{"type":"string","description":"Currency network name.","uniqueKey":"data.payment_currency.network_name","typeLabel":"string"}},"uniqueKey":"data.payment_currency","typeLabel":"object"},"end_user_email":{"type":"string","format":"email","description":"Customer email provided in the request.","example":"chris.customer@example.com","uniqueKey":"data.end_user_email","typeLabel":"string\u003cemail>"},"description":{"type":"string","description":"Payment request description.","example":"Order #123 payment","uniqueKey":"data.description","typeLabel":"string"},"foreign_id":{"type":"string","description":"The `foreign_id` from the request. Omitted if the request didn't include one.","example":"payment_request_123","uniqueKey":"data.foreign_id","typeLabel":"string"},"url_store":{"type":"string","format":"uri","description":"URL of the store page.","uniqueKey":"data.url_store","typeLabel":"string\u003curi>"},"url_success":{"type":"string","format":"uri","description":"URL of the success page.","uniqueKey":"data.url_success","typeLabel":"string\u003curi>"},"url_failed":{"type":"string","format":"uri","description":"URL of the failed payment page.","uniqueKey":"data.url_failed","typeLabel":"string\u003curi>"},"end_user_reference":{"type":"string","description":"The `end_user_reference` from the request. Omitted if the request didn't include one.","uniqueKey":"data.end_user_reference","typeLabel":"string"},"payment_details":{"type":"object","description":"Additional information about the expected payment. Included only if [rate_mode](#body-rate-mode) is `fixed`.","additionalProperties":false,"required":["address","expected_amount","expected_currency"],"properties":{"address":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","description":"The crypto address to which the customer will need to send the funds.","isRequired":true,"uniqueKey":"data.payment_details.address.value","typeLabel":"string"},"tag":{"type":"string","description":"Destination tag/memo for currencies that require it.","uniqueKey":"data.payment_details.address.tag","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.payment_details.address","typeLabel":"object"},"expected_amount":{"type":"string","description":"The amount of cryptocurrency that the customer is expected to send.","isRequired":true,"uniqueKey":"data.payment_details.expected_amount","typeLabel":"string"},"expected_currency":{"type":"object","description":"The cryptocurrency that the customer is expected to send.","additionalProperties":false,"required":["iso","network_name"],"properties":{"iso":{"type":"string","description":"The currency the customer will send.","example":"USDC","isRequired":true,"uniqueKey":"data.payment_details.expected_currency.iso","typeLabel":"string"},"network_name":{"oneOf":[{"type":"string","description":"Network of the selected cryptocurrency.","isRequired":true,"uniqueKey":"data.payment_details.expected_currency.network_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Network of the selected cryptocurrency.","isRequired":true,"uniqueKey":"data.payment_details.expected_currency.network_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.payment_details.expected_currency.network_name","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.payment_details.expected_currency","typeLabel":"object"},"exchange_rate":{"type":"object","additionalProperties":false,"description":"The information about the exchange that will be performed after receiving funds from the customer.\n\nThis object is included only if [payment_currency](/api-reference/endpoints/payments#body-payment-currency) differs from [currency](/api-reference/endpoints/payments#body-currency).\n","properties":{"from":{"additionalProperties":false,"required":["iso","network_name"],"properties":{"iso":{"type":"string","description":"The currency the customer will send.","example":"USDC","isRequired":true,"uniqueKey":"data.payment_details.exchange_rate.from.iso","typeLabel":"string"},"network_name":{"type":"string","description":"Network of the selected cryptocurrency.","example":"ethereum","isRequired":true,"uniqueKey":"data.payment_details.exchange_rate.from.network_name","typeLabel":"string"}},"type":"object","uniqueKey":"data.payment_details.exchange_rate.from","typeLabel":"object"},"to":{"additionalProperties":false,"required":["iso"],"properties":{"iso":{"type":"string","description":"The currency you will receive on your balance.","example":"USD","isRequired":true,"uniqueKey":"data.payment_details.exchange_rate.to.iso","typeLabel":"string"},"network_name":{"type":"string","description":"Network of the selected cryptocurrency. Not included for fiat currencies.","uniqueKey":"data.payment_details.exchange_rate.to.network_name","typeLabel":"string"}},"type":"object","uniqueKey":"data.payment_details.exchange_rate.to","typeLabel":"object"},"rate":{"type":"string","description":"The exchange rate, in units of the `to` currency for 1 unit of the `from` currency.","example":"0.87","uniqueKey":"data.payment_details.exchange_rate.rate","typeLabel":"string"}},"uniqueKey":"data.payment_details.exchange_rate","typeLabel":"object"},"fee":{"type":"object","description":"The processing fee the customer pays, in the payment request currency. Included only if [user_fee_percent](#body-user-fee-percent) is `100` (the customer pays the fee). It's included in `expected_amount`.\n","properties":{"amount":{"type":"string","description":"Fee amount.","example":"0.15","isRequired":true,"uniqueKey":"data.payment_details.fee.amount","typeLabel":"string"},"currency":{"type":"object","required":["iso"],"properties":{"iso":{"type":"string","description":"Code of the fee currency, the same as the payment request currency. See [API currency codes](/api-reference/currency-codes).","example":"USD","isRequired":true,"uniqueKey":"data.payment_details.fee.currency.iso","typeLabel":"string"},"network_name":{"type":"string","description":"Network of the fee currency. Present only if the payment request currency is a cryptocurrency.","uniqueKey":"data.payment_details.fee.currency.network_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.payment_details.fee.currency","typeLabel":"object"}},"required":["amount","currency"],"uniqueKey":"data.payment_details.fee","typeLabel":"object"}},"uniqueKey":"data.payment_details","typeLabel":"object"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Request 100 USD, paid in a cryptocurrency the customer chooses":{"title":"Request 100 USD, paid in a cryptocurrency the customer chooses","value":{"data":{"id":"019d511c-9fd2-7e71-b534-74e8abd855f1","amount":"100","currency":{"iso":"USD"},"user_fee_percent":0,"status":"created","rate_mode":"standard","life_time":1775542323,"end_user_email":"chris.customer@example.com","description":"Order 0511","payment_link":"https://payments.ca.cryptoprocessing.com/payment/lLXLZ6Q8lCwFFRbyW0C1ET","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345"}}},"Request 50 USDC on Ethereum":{"title":"Request 50 USDC on Ethereum","value":{"data":{"id":"019d511c-1546-7c34-a916-a2610a198448","amount":"50","currency":{"iso":"USDC","network_name":"ethereum"},"user_fee_percent":0,"status":"created","rate_mode":"standard","life_time":1775542288,"end_user_email":"chris.customer@example.com","description":"Order 0511","payment_link":"https://payments.ca.cryptoprocessing.com/payment/8N8_cWBnfAbT12mR5JmPVf","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345"}}},"Request 100 USD until a set date and time":{"title":"Request 100 USD until a set date and time","value":{"data":{"id":"019d511d-03a8-7b1e-9c42-5f0e8a6d2b71","amount":"100","currency":{"iso":"USD"},"user_fee_percent":0,"status":"created","rate_mode":"standard","life_time":1775625123,"payment_link":"https://payments.ca.cryptoprocessing.com/payment/Vq3T9sWb2KxL7nRf0aYcPe","foreign_id":"payment_request_123"}}},"Request 100 USD paid in USDC at a rate locked for 1 hour":{"title":"Request 100 USD paid in USDC at a rate locked for 1 hour","value":{"data":{"id":"019d511d-4c1f-7a63-8e27-91b5d0c3f6a8","amount":"100","currency":{"iso":"USD"},"user_fee_percent":0,"status":"processing","rate_mode":"fixed","life_time":1775542323,"valid_until":1775542323,"payment_currency":{"iso":"USDC","network_name":"ethereum"},"end_user_email":"chris.customer@example.com","description":"Order 0511","payment_link":"https://payments.ca.cryptoprocessing.com/payment/Hk4Pz8Lw1Nq6Ys3Rt7Uv0B","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","payment_details":{"address":{"value":"0x3b6c3c0b5d8f8c2B4e0A9D4F5b1f21C9C8A1B2C3"},"expected_amount":"100.29","expected_currency":{"iso":"USDC","network_name":"ethereum"},"exchange_rate":{"from":{"iso":"USDC","network_name":"ethereum"},"to":{"iso":"USD"},"rate":"1.00"}}}}},"Request 100 USD paid in USDC, with the customer paying the fee":{"title":"Request 100 USD paid in USDC, with the customer paying the fee","value":{"data":{"id":"019d511d-7e90-74c5-b1d8-3a6f2c9e0d14","amount":"100","currency":{"iso":"USD"},"user_fee_percent":100,"status":"processing","rate_mode":"fixed","life_time":1775542323,"valid_until":1775542323,"payment_currency":{"iso":"USDC","network_name":"ethereum"},"end_user_email":"chris.customer@example.com","description":"Order 0511","payment_link":"https://payments.ca.cryptoprocessing.com/payment/Zm2Xc5Bv8Nl1Kj4Hg7Fd3S","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","payment_details":{"address":{"value":"0x7D2e9a4C1B6f3e8d5C0A2f7B9E4D1a6c3b8F5e2d"},"expected_amount":"101.79","expected_currency":{"iso":"USDC","network_name":"ethereum"},"exchange_rate":{"from":{"iso":"USDC","network_name":"ethereum"},"to":{"iso":"USD"},"rate":"1.00"},"fee":{"amount":"1.5","currency":{"iso":"USD"}}}}}},"Request 100 USD paid in XRP, with a destination tag":{"title":"Request 100 USD paid in XRP, with a destination tag","value":{"data":{"id":"019d511d-9a3e-7d52-a6c1-4e8f0b2d7c95","amount":"100","currency":{"iso":"USD"},"user_fee_percent":0,"status":"processing","rate_mode":"fixed","life_time":1775542323,"valid_until":1775542323,"payment_currency":{"iso":"XRP","network_name":"ripple"},"end_user_email":"chris.customer@example.com","description":"Order 0511","payment_link":"https://payments.ca.cryptoprocessing.com/payment/Xr7Tg2Mq9Wd4Lp1Bn6Kc3V","foreign_id":"payment_request_123","url_store":"https://example.com/store","url_success":"https://example.com/success","url_failed":"https://example.com/failed","end_user_reference":"user_12345","payment_details":{"address":{"value":"rsF9GFU6Z92u4H9H7Rw3qbhvMZ7FxDjwrG","tag":"67890"},"expected_amount":"66.666667","expected_currency":{"iso":"XRP","network_name":"ripple"},"exchange_rate":{"from":{"iso":"XRP","network_name":"ripple"},"to":{"iso":"USD"},"rate":"1.50"}}}}}},"exampleType":"examples"}},"exampleType":"examples"},"7be5e76b-d74b-4a11-bd3d-abce79e70c1c":{"description":"Bad Request.","content":{"application/json":{"schema":{"type":"object","title":"ErrorResponse","required":["error","code"],"properties":{"error":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"integer","description":"HTTP status code.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Foreign ID already used":{"title":"Foreign ID already used","value":{"error":"Payment request with this foreign_id already exists.","code":400}},"Fee percentage not 0 or 100":{"title":"Fee percentage not 0 or 100","value":{"error":"userFeePercent must be 0 or 100.","code":400}},"Amount not a number":{"title":"Amount not a number","value":{"error":"Amount is incorrect.","code":400}},"Field with the wrong type":{"title":"Field with the wrong type","value":{"error":"Invalid request format.","code":400}},"Malformed JSON":{"title":"Malformed JSON","value":{"error":"Bad content format","code":"bad_content_format"}}},"exampleType":"examples"}},"exampleType":"examples"},"1133c252-e7ee-4db3-9ddf-7c3e1e31eee1":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable error message.","uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Error code.","uniqueKey":"code","typeLabel":"string"}},"description":"Invalid or missing headers, or the API key does not have access to the endpoint. Refer to [Errors](/api-reference/errors#general-errors) for troubleshooting steps.","uniqueKey":"","typeLabel":"object"},"examples":{"Bad signature header":{"title":"Bad signature header","value":{"error":"Bad signature header","code":"bad_header_signature"}},"API key does not have the required ability":{"title":"API key does not have the required ability","value":{"error":"The API key does not have access to this endpoint.","code":"api_key_ability_required"}},"No signature header":{"title":"No signature header","value":{"error":"No signature header","code":"required_header_signature"}},"No key header":{"title":"No key header","value":{"error":"No key header","code":"required_header_key"}},"Merchant disabled":{"title":"Merchant disabled","value":{"error":"Merchant is disabled.","code":403}}},"exampleType":"examples"}},"exampleType":"examples"},"4e3330a6-ccd2-4310-addc-6f316dbea5a0":{"description":"Invalid currency","content":{"application/json":{"schema":{"type":"object","title":"ErrorResponse","required":["error","code"],"properties":{"error":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"integer","description":"HTTP status code.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Currency not available for payment requests":{"title":"Currency not available for payment requests","value":{"error":"Currency is incorrect.","code":404}}},"exampleType":"examples"}},"exampleType":"examples"},"000b3438-4533-4b46-869e-476cc75aa46e":{"description":"Failed validation","content":{"application/json":{"schema":{"type":"object","title":"ErrorResponse","required":["error","code"],"properties":{"error":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"integer","description":"HTTP status code.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Missing currency":{"title":"Missing currency","value":{"error":"The currency field is mandatory.","code":422}},"Empty currency code":{"title":"Empty currency code","value":{"error":"Currency is a mandatory field.","code":422}},"Currency doesn't exist":{"title":"Currency doesn't exist","value":{"error":"Currency is incorrect.","code":422}},"Currency not available for payment requests":{"title":"Currency not available for payment requests","value":{"error":"The currency.iso is not available for the payment request.","code":422}},"Missing currency code":{"title":"Missing currency code","value":{"error":"The iso is a mandatory field.","code":422}},"Currency disabled":{"title":"Currency disabled","value":{"error":"The currency.iso is disabled.","code":422}},"Missing network for a cryptocurrency":{"title":"Missing network for a cryptocurrency","value":{"error":"The currency.network_name field is required for crypto currencies.","code":422}},"Currency not available on this network":{"title":"Currency not available on this network","value":{"error":"The combination of currency and network is not supported.","code":422}},"Missing amount":{"title":"Missing amount","value":{"error":"The amount field is mandatory.","code":422}},"Amount null, zero or negative":{"title":"Amount null, zero or negative","value":{"error":"Amount is a mandatory field it must be positive.","code":422}},"Amount below the minimum":{"title":"Amount below the minimum","value":{"error":"The minimum amount is \u003camount> \u003ccurrency>.","code":422}},"Amount above the maximum":{"title":"Amount above the maximum","value":{"error":"The maximum amount is \u003camount> \u003ccurrency>.","code":422}},"Amount with too many decimals":{"title":"Amount with too many decimals","value":{"error":"The amount for \u003ccurrency> cannot have more than \u003cdecimals> decimal places.","code":422}},"Missing lifespan":{"title":"Missing lifespan","value":{"error":"It is obligatory - to fill in life_time_date_time or life_time_duration.","code":422}},"Both lifespan fields sent":{"title":"Both lifespan fields sent","value":{"error":"Only one of fields life_time_date_time and life_time_duration should be field.","code":422}},"Lifespan too short":{"title":"Lifespan too short","value":{"error":"The lifespan must be longer than or equal to 5 minutes.","code":422}},"Lifespan too long":{"title":"Lifespan too long","value":{"error":"The lifespan must be shorter than or equal to 60 days.","code":422}},"Email address not valid":{"title":"Email address not valid","value":{"error":"The email address is incorrect.","code":422}},"Empty payment currency":{"title":"Empty payment currency","value":{"error":"payment_currency must not be empty if provided.","code":422}},"Payment currency is a fiat currency":{"title":"Payment currency is a fiat currency","value":{"error":"payment_currency.iso must be a cryptocurrency.","code":422}},"Empty payment currency code":{"title":"Empty payment currency code","value":{"error":"payment_currency.iso must not be empty if provided.","code":422}},"Payment currency doesn't exist":{"title":"Payment currency doesn't exist","value":{"error":"payment_currency.iso is incorrect.","code":422}},"Payment currency disabled":{"title":"Payment currency disabled","value":{"error":"payment_currency.iso is disabled.","code":422}},"No exchange rate between the currencies":{"title":"No exchange rate between the currencies","value":{"error":"Exchange rate is not available between \u003ccurrency> and \u003cpayment_currency>.","code":422}},"Empty payment currency network":{"title":"Empty payment currency network","value":{"error":"payment_currency.network_name must not be empty if provided.","code":422}},"Payment currency not available on this network":{"title":"Payment currency not available on this network","value":{"error":"The combination of currency and network is not supported.","code":422}},"Description longer than 255 characters":{"title":"Description longer than 255 characters","value":{"error":"The description must be 255 characters or less.","code":422}},"Empty description":{"title":"Empty description","value":{"error":"The description must not be empty if provided.","code":422}},"Foreign ID longer than 255 characters":{"title":"Foreign ID longer than 255 characters","value":{"error":"Foreign ID must be 255 characters or less.","code":422}},"Empty foreign ID":{"title":"Empty foreign ID","value":{"error":"The foreign_id must not be empty if provided.","code":422}},"Store URL not valid":{"title":"Store URL not valid","value":{"error":"The url store is invalid.","code":422}},"Store URL longer than 255 characters":{"title":"Store URL longer than 255 characters","value":{"error":"The url store must be 255 characters or less.","code":422}},"Success URL not valid":{"title":"Success URL not valid","value":{"error":"The url success is invalid.","code":422}},"Success URL longer than 255 characters":{"title":"Success URL longer than 255 characters","value":{"error":"The url success must be 255 characters or less.","code":422}},"Failure URL not valid":{"title":"Failure URL not valid","value":{"error":"The url failed is invalid.","code":422}},"Failure URL longer than 255 characters":{"title":"Failure URL longer than 255 characters","value":{"error":"The url failed must be 255 characters or less.","code":422}},"Empty end-user reference":{"title":"Empty end-user reference","value":{"error":"The end_user_reference must not be empty if provided.","code":422}},"End-user reference longer than 255 characters":{"title":"End-user reference longer than 255 characters","value":{"error":"The end_user_reference must be 255 characters or less.","code":422}},"Rate mode not standard or fixed":{"title":"Rate mode not standard or fixed","value":{"error":"The rate_mode must be either 'standard' or 'fixed'.","code":422}},"Fixed rate without a payment currency":{"title":"Fixed rate without a payment currency","value":{"error":"The payment_currency object is mandatory in fixed-rate mode.","code":422}},"Payment currency without a code":{"title":"Payment currency without a code","value":{"error":"The iso field is mandatory.","code":422}},"Fixed rate without a payment currency network":{"title":"Fixed rate without a payment currency network","value":{"error":"The payment_currency.network_name is mandatory in fixed-rate mode.","code":422}},"Fixed rate without an email address":{"title":"Fixed rate without an email address","value":{"error":"The email is mandatory in fixed-rate mode.","code":422}},"Fixed rate without a sender type":{"title":"Fixed rate without a sender type","value":{"error":"The sender_type is mandatory field in fixed-rate mode.","code":422}},"Fixed rate without sender data":{"title":"Fixed rate without sender data","value":{"error":"The sender_data is mandatory object in fixed-rate mode.","code":422}},"Missing sender type":{"title":"Missing sender type","value":{"error":"The sender_type is a mandatory field.","code":422}},"Sender type not natural or legal":{"title":"Sender type not natural or legal","value":{"error":"The sender_type must be either ‘natural’ or ‘legal’.","code":422}},"Missing sender data":{"title":"Missing sender data","value":{"error":"The sender_data object is mandatory.","code":422}},"Sender data not an object":{"title":"Sender data not an object","value":{"error":"The sender_data must be a valid object.","code":422}},"Missing first name for a natural person":{"title":"Missing first name for a natural person","value":{"error":"The first_name must be provided for sender_type = natural.","code":422}},"First name longer than 255 characters":{"title":"First name longer than 255 characters","value":{"error":"The first_name must be 255 characters or less.","code":422}},"Missing last name for a natural person":{"title":"Missing last name for a natural person","value":{"error":"The last_name must be provided for sender_type = natural.","code":422}},"Last name longer than 255 characters":{"title":"Last name longer than 255 characters","value":{"error":"The last_name must be 255 characters or less.","code":422}},"Date of birth not in YYYY-MM-DD format":{"title":"Date of birth not in YYYY-MM-DD format","value":{"error":"The date_of_birth must be in YYYY-MM-DD format.","code":422}},"Missing legal name for a legal entity":{"title":"Missing legal name for a legal entity","value":{"error":"The legal_name must be provided for sender_type = legal.","code":422}},"Legal name longer than 255 characters":{"title":"Legal name longer than 255 characters","value":{"error":"The legal_name must be 255 characters or less.","code":422}},"Missing country of registration for a legal entity":{"title":"Missing country of registration for a legal entity","value":{"error":"The country_of_registration must be provided for sender_type = legal.","code":422}},"Country of registration not 3 characters":{"title":"Country of registration not 3 characters","value":{"error":"The country_of_registration must contain exactly 3 characters.","code":422}},"Country of registration not an ISO alpha-3 code":{"title":"Country of registration not an ISO alpha-3 code","value":{"error":"The country_of_registration must be a valid ISO Alpha-3 code.","code":422}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"a0e34d2c-0523-49d1-9754-4e206205cdb2":{"xProcessingKey":{"type":"apiKey","description":"Your [API key](/merchant-administration/generate-and-activate-api-keys).","in":"header","name":"X-Processing-Key","scopes":[],"schemeName":"xProcessingKey"}}},"servers":{"cc4ac018-6f79-4de6-b0fa-423a789a0590":{"url":"https://app.ca.cryptoprocessing.com/api"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"Your [API key](/merchant-administration/generate-and-activate-api-keys).","in":"header","name":"X-Processing-Key","scopes":[],"schemeName":"xProcessingKey"},"schema":{"title":"X-Processing-Key","type":"string","description":"Your [API key](/merchant-administration/generate-and-activate-api-keys).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"xProcessingKey","name":"X-Processing-Key"}],"title":"xProcessingKey"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"cr-can","siteName":"CryptoProcessing","title":"Create a payment request - CryptoProcessing","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T12:46:58.891Z","gitLastModified":"2026-10-29T12:37:25.000Z","originalFileLocation":"api-reference/endpoints/payments.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=\"Create a payment request for the customer for a specified amount and a configurable expiration time.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CryptoProcessing\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_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/cr-can/Ha5yJbWhh_CHQifW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a payment request - CryptoProcessing\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a payment request for the customer for a specified amount and a configurable expiration time.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CryptoProcessing\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cr-can.mintlify.site/_mintlify/api/og/v2?division=Payment+requests\u0026amp;title=Create+a+payment+request\u0026amp;description=Create+a+payment+request+for+the+customer+for+a+specified+amount+and+a+configurable+expiration+time.\u0026amp;theme=d075ef76d4cb9d221b219fc8\u0026amp;signature=5a115b2b03bb591c6cd102c18fcb3c7b5547227426b0106787427c1aede6a148\">\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 a payment request - CryptoProcessing\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a payment request for the customer for a specified amount and a configurable expiration time.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cr-can.mintlify.site/_mintlify/api/og/v2?division=Payment+requests\u0026amp;title=Create+a+payment+request\u0026amp;description=Create+a+payment+request+for+the+customer+for+a+specified+amount+and+a+configurable+expiration+time.\u0026amp;theme=d075ef76d4cb9d221b219fc8\u0026amp;signature=5a115b2b03bb591c6cd102c18fcb3c7b5547227426b0106787427c1aede6a148\">\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/cr-can/Ha5yJbWhh_CHQifW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CryptoProcessing\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"yu4O7y66I-adhApJGRh2Cf0rw23afXp43M-V_C7o9WE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/payments.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ca.cryptoprocessing.com/#organization\",\"name\":\"CryptoProcessing\",\"url\":\"https://docs.ca.cryptoprocessing.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cr-can/JNU-a1yf24zsoHlI/logo/secondary%20logo%20black.svg?fit=max\u0026auto=format\u0026n=JNU-a1yf24zsoHlI\u0026q=85\u0026s=aaf2df80dcbc41f74d023d60472028af\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ca.cryptoprocessing.com#website\",\"name\":\"CryptoProcessing\",\"url\":\"https://docs.ca.cryptoprocessing.com\",\"publisher\":{\"@id\":\"https://docs.ca.cryptoprocessing.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments#webpage\",\"url\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments\",\"name\":\"Create a payment request\",\"description\":\"Create a payment request for the customer for a specified amount and a configurable expiration time.\",\"dateModified\":\"2026-10-29T12:37:25.000Z\",\"isPartOf\":{\"@id\":\"https://docs.ca.cryptoprocessing.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CryptoProcessing\",\"item\":\"https://docs.ca.cryptoprocessing.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a payment request\",\"item\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments#apireference\",\"headline\":\"Create a payment request\",\"name\":\"Create a payment request\",\"description\":\"Create a payment request for the customer for a specified amount and a configurable expiration time.\",\"url\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ca.cryptoprocessing.com/api-reference/endpoints/payments#webpage\"},\"dateModified\":\"2026-10-29T12:37:25.000Z\",\"publisher\":{\"@id\":\"https://docs.ca.cryptoprocessing.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ca.cryptoprocessing.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CryptoProcessing\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"CryptoProcessing","nav":{"global":null,"tabs":[{"tab":"Docs","icon":"book","pages":[{"title":"Docs","href":""}]},{"tab":"Supported currencies","icon":"bitcoin","pages":[{"title":"Supported currencies","href":"/supported-currencies"}]},{"tab":"API reference","icon":"code","groups":[{"group":"Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Callbacks","href":"/api-reference/callbacks/callbacks-overview"},{"title":"API errors","href":"/api-reference/errors"},{"title":"Postman API Testing","href":"/api-reference/postman-collection"},{"title":"API currency codes","href":"/api-reference/currency-codes"}]},{"group":"Deposits","pages":[{"title":"Generate a user deposit address","openapi":"POST /v2/addresses/take","href":"/api-reference/endpoints/addresses-take"},{"title":"Deposit callbacks","openapi":"api-reference/deposit-callbacks.openapi.yaml webhook deposit","playground":"none","href":"/api-reference/callbacks/deposit-callbacks"}]},{"group":"Withdrawals","pages":[{"title":"Withdraw crypto","openapi":"POST /v2/withdrawal/crypto","href":"/api-reference/endpoints/withdrawal-crypto"},{"title":"Withdraw crypto instantly","openapi":"POST /v2/crypto/withdrawal_instant","href":"/api-reference/endpoints/crypto-withdrawal-instant"},{"title":"Withdraw crypto instantly with conversion","openapi":"POST /v2/crypto/withdrawal_instant_exchange","href":"/api-reference/endpoints/crypto-withdrawal-instant-exchange"},{"title":"Withdrawal callbacks","openapi":"api-reference/withdrawal-callbacks.openapi.yaml webhook withdrawal","playground":"none","description":"Sent to your callback URL whenever the status of a withdrawal changes.","href":"/api-reference/callbacks/withdrawal-callbacks"}]},{"group":"Payment requests","pages":[{"title":"Create a payment request","openapi":"POST /payments/v1/requests","href":"/api-reference/endpoints/payments"},{"title":"Payment request callbacks","openapi":"api-reference/payment-request-callbacks.openapi.yaml webhook payment-request","playground":"none","description":"Sent to your callback URL whenever the status of a payment request changes. Payment requests created in the portal do not trigger these callbacks.","href":"/api-reference/callbacks/payment-request-callbacks"}]},{"group":"Exchanges","pages":[{"title":"Exchange at market rate","openapi":"POST /v2/exchange/now","href":"/api-reference/endpoints/exchange-now"},{"title":"Get a fixed exchange quote","openapi":"POST /v2/exchange/calculate","href":"/api-reference/endpoints/exchange-calculate"},{"title":"Exchange at a fixed rate","openapi":"POST /v2/exchange/fixed","href":"/api-reference/endpoints/exchange-fixed"},{"title":"Exchange callbacks","openapi":"api-reference/exchange-callbacks.openapi.yaml webhook exchange","playground":"none","href":"/api-reference/callbacks/exchange-callbacks"}]},{"group":"Currencies","pages":[{"title":"List supported currencies","openapi":"POST /v2/currencies/list","href":"/api-reference/endpoints/currencies-list"},{"title":"Get available currency pairs and exchange rates","openapi":"POST /v2/currencies/rates","href":"/api-reference/endpoints/currencies-rates"}]},{"group":"Transactions","pages":[{"title":"Get transaction details","openapi":"GET /v2/transactions/info","href":"/api-reference/endpoints/transactions-info"}]},{"group":"Account balance","pages":[{"title":"List balances","openapi":"POST /v2/accounts/list","href":"/api-reference/endpoints/accounts-list"}]},{"group":"System Health","pages":[{"title":"Check API status","openapi":"GET /v2/ping","href":"/api-reference/endpoints/ping"}]}]}]},"basePath":"","title":"Create a payment request - CryptoProcessing","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}