{ "error": { "code": "AUTH_1001", "message": "Invalid API key" }}
Create a short-lived, single-use session tied to one merchant, customer, and order. The response gives you a session_token + iframe_url for the frontend — embed the iframe via the SDK or open the hosted checkout directly.POST /v1/sessions · Authenticated with your secret key.
Which flow?
Standard checkout
Mandate setup
Omit mandate_setup (or send intent: "checkout"). The session collects a card and charges immediately.
Include a mandate_setup block with intent: "mandate_setup". The session is authorize-only: it returns an iframe_url for passkey approval, and completing setup issues no payment credentials. Charge later with Charge a Mandate. There is no separate POST /v1/mandates create endpoint — a mandate is always set up through this endpoint.
Mandate setup
Mandate creation is part of the Session APIs — this endpoint is how mandates are created. Send a mandate_setup block (see Body) with intent: "mandate_setup" and the session becomes authorize-only: the response carries an iframe_url where the owner approves once with their passkey. Completing setup does not issue payment credentials. Once the mandate is active, charge it with Charge a Mandate within its approved terms — no further passkey needed.The mandate_setup field reference below covers recurring_frequency, merchant_scope, max_charges, and valid_until; see Mandates for the concept and guardrails.
Choosing a card source. Omit card to let the cardholder select or enter a card in the collection surface. Send card.card_id to pre-select an already-enrolled card, or card.vault_ref_id (a Skyflow UUID) for the vault-ref flow. Send exactly one — if both are present, card_id wins.
After collection, Get Payment Result returns the card bound to
each transaction as transactions[].card_id.
Body
string
required
Unique identifier for the customer in your system (1–255 chars). Required for merchant (secret-key) sessions — omitting it returns 400 VAL_2001.
string
required
Customer email. Required for merchant sessions. Must be a valid email address.
string
required
Total order amount as a decimal string with up to 2 decimals, e.g. "49.99". Need not equal the sum of line items (it may include tax, shipping, and fees). This value becomes the authorized amount cap.
string
required
ISO 4217 code — 3 uppercase letters — and must be a supported currency. Supported: USD, EUR, GBP, INR, CAD, AUD, JPY, SGD, AED, HKD, MXN, BRL, CHF, CNY, NZD, SEK, NOK, DKK, ZAR, THB, KRW, PLN, TWD, PHP, IDR, MYR, CZK, ILS, CLP, ARS, COP, PEN, SAR, QAR, KWD, BHD, OMR, EGP, NGN, KES, GHS, TZS, UGX, PKR, BDT, LKR, VND, MMK, NPR. Other codes are rejected.This is your pricing currency and is independent of the card’s issuing country: there is no requirement that it match country_code_iso2 (the merchant’s location) or the cardholder’s country. A US-issued card can pay an INR-denominated session; the card network settles the cross-currency conversion. Price in whatever currency your product uses — you don’t need to re-denominate.
object
required
What is being bought. Two modes — pick one:
From a quote — send quote: true and the opaque quote_id (qte_…) returned when the quote
was created. Merchant and product details come from that quote, so nothing else is needed.
Custom — omit quote (or send false) and describe the merchant and products yourself in custom.
Show purchase_context properties
boolean
default:false
Set true to build the session from an existing quote. When true, pass quote_id and
nothing else — custom must be omitted. When false or absent, custom is required and
quote_id must be omitted.
string
Required when quote is true. The opaque public quote id returned by quote creation
(for example, qte_…). The quote carries the merchant, products, and locked price.
Create the session before the quote expires; its expiry is separate from the session’s
lifetime. total_amount and currency must match the quote’s final total.
Do not send a merchant checkout-session id.
object[]
Required when quote is not true. Exactly one entry — multi-merchant sessions are not
yet supported.
Show custom[] properties
object
required
The destination merchant — the business the cardholder is buying from, not your
application. The name renders as the header on the checkout page and is forwarded to
Visa as the merchant of record for the token.
Show merchant_details properties
string
required
Merchant display name. Sanitized to a Visa-safe character set (e.g. H&M → HM); must contain at least one usable character.
string
required
Merchant website URL. Must use https — the URL is forwarded to Visa.
string
required
Merchant country — 2 uppercase ISO 3166-1 letters, e.g. "US".
string
Merchant category code (MCC). Free-form string, max 10 characters.
string
Merchant category description, max 100 characters.
object[]
required
At least one product.
Show product_details[] properties
string
required
Product description.
string
required
Unit price as a string, e.g. "24.99".
string
Your external product identifier, max 50 characters.
integer
default:1
Quantity of this product. Positive integer.
integer
default:15
How long the resulting mandate stays effective, in minutes. Positive integer.
string
default:"full_checkout"
full_checkout (hosted redirect) or embedding (mount the iframe via the SDK). Read by the frontend to choose the surface.
string
For hosted checkout: the URL Prava redirects the cardholder to after they finish. Must use https, max 2048 chars. Optional for all integration types.
object
Pre-select a card. Send one of the two fields below (see the note above).
Show card properties
string
An enrolled card id (the enrollmentId from the SDK’s collectPAN(), or a card_id from List Cards). Scoped to this customer + merchant.
string
A Skyflow vault reference UUID. Triggers provisioning at session-create.
object
Turns the session into mandate setup (authorize-only). See the Mandate setup tab above.
Show mandate_setup properties
string
mandate_setup (authorize-only, no charge) or checkout. Defaults to mandate_setup when this block is present.
string
one_time, weekly, monthly, or yearly.
string
listed (locked to this merchant) or any (any merchant). Recurring frequencies force listed — sending any with a recurring frequency returns 400 MANDATE_RECURRING_MUST_BE_SCOPED.
string
ISO 8601 datetime. Ignored for one_time, which is always clamped to 7 days. Recurring horizons: yearly 5y, monthly 2y, weekly 1y.
integer
default:1
Maximum number of charges allowed against this mandate. Positive integer. (The per-charge amount cap is enforced separately, at the card network.)
string
Customer phone number.
string
Customer country — 2 uppercase ISO 3166-1 letters.
string
Your external order reference id, max 255 chars.
string
Human-readable description of the order.
object
Optional, sandbox-only payment success simulation for quote-backed checkout. The exact shape
is { "stage": "payment", "outcome": "success" }; both fields are required and additional
fields are rejected. Custom checkout, production, and mandate-setup sessions cannot use it.
Normal card collection and verification still run. An eligible terminal payment result can
complete the sandbox lifecycle while observed_result retains the actual outcome.
See Sandbox simulation.
Response
string
Unique session identifier.
string
JWT authenticating client-side SDK calls within this session.
string
Secure card-collection (or, for mandate setup, passkey-approval) surface.
string
Internal order identifier.
string
ISO 8601 timestamp when the session expires.
Notes
Sessions are short-lived and single-use, tied to a specific merchant, customer, and order.
session_token and iframe_url are used on the frontend: embedded via the SDK, or opened directly for hosted checkout.
Validation error (missing/invalid fields; user_id/user_email missing on a merchant session; quote: true without a quote_id; custom missing when quote is not true). details names the fields.
400
CARD_NOT_FOUND
Pre-selected card_id does not exist for this customer + merchant
400
CARD_INACTIVE
Pre-selected card is not active
400
MANDATE_RECURRING_MUST_BE_SCOPED
Recurring frequency sent with merchant_scope: "any"
400
SANDBOX_SIMULATION_NOT_ALLOWED
Simulation requested outside sandbox, for a custom checkout, or for mandate setup
401
AUTH_1001
Invalid API key
401
AUTH_1002
Missing or invalid Authorization header
409
QUOTE_SESSION_MISMATCH
Session amount or currency differs from the quote’s final total
410
QUOTE_EXPIRED
The quote expired before session creation
429
TRIES_EXHAUSTED
Sandbox test-transaction limit reached for this merchant
500
MERCHANT_LOOKUP_ERROR
Failed to load the merchant account for the key
500
CONFIG_ERROR
Server-side configuration issue (Visa or Skyflow not configured)
{ "error": { "code": "AUTH_1001", "message": "Invalid API key" }}
Authorizations
Authorization
string
header
required
Your secret key: sk_test_* (sandbox) or sk_live_* (production).
Body
application/json
user_id
string
required
Unique identifier for the customer in your system
Required string length: 1 - 255
user_email
string<email>
required
Customer's email address
Maximum string length: 320
total_amount
string
required
Total order amount in decimal format (e.g. "49.99")
Minimum string length: 1
Pattern: ^\d+(\.\d{1,2})?$
currency
string
required
ISO 4217 currency code — exactly 3 uppercase letters, and one of Prava's supported currencies (e.g. USD, EUR, GBP, INR) - other codes are rejected
Required string length: 3
Pattern: ^[A-Z]{3}$
purchase_context
Custom checkout · object
required
What is being bought. Two modes — send exactly one: quote: true + quote_id (session built from an existing quote), or custom (describe the merchant and products yourself).
Custom checkout
Quote checkout
Show child attributes
user_phone
string
Customer's phone number
user_country_code_iso2
string
Customer's country — 2 uppercase ISO 3166-1 letters
Required string length: 2
Pattern: ^[A-Z]{2}$
external_order_ref
string
Your external order reference ID
Maximum string length: 255
description
string
Human-readable description of the order
integration_type
enum<string>
default:full_checkout
How the card is collected. full_checkout = hosted redirect; embedding = mount the iframe via the SDK.
Available options:
full_checkout,
embedding
callback_url
string<uri>
For hosted checkout: the https URL Prava redirects the cardholder to after they finish. Optional for all integration types.
Maximum string length: 2048
Pattern: ^https://
card
object
Pre-select a card. Send card_id OR vault_ref_id; if both are sent, card_id wins.
Show child attributes
mandate_setup
object
Turns the session into mandate setup (authorize-only). Absent = standard checkout.
Show child attributes
sandbox_simulation
object
Sandbox-only success simulation for quote-backed payment sessions. Fixed at session creation; production, custom checkout, and mandate setup reject this option. Normal card collection and verification still run. See Testing in Sandbox.
Show child attributes
Response
Session created
session_id
string
Unique session identifier
session_token
string
JWT to authenticate client-side SDK operations within this session
iframe_url
string
URL for the secure card collection surface
order_id
string
Internal order identifier
expires_at
string<date-time>
ISO 8601 timestamp when the session expires
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Prava Payments Docs","colors":{"primary":"#0D9488","light":"#5EEAD4","dark":"#0F766E"},"logo":{"light":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/logo/light.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=71d03047aba9f172d7f14809fdf5e948","dark":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/logo/dark.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=4df78b4529c65e9a8b94ac3a069adac5"},"favicon":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/favicon.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=1c66b21043707f41fe69a1954b061c8d","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]},"mdx":{"auth":{"method":"bearer"},"server":["https://sandbox.api.prava.space","https://api.prava.space"]}},"appearance":{"default":"light","strict":false},"background":{"image":{"light":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/images/bg-light.jpg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=680ed7301d3d464f9dd9aba7b39301a0","dark":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/images/bg-dark.jpg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=e5bab65750a21bbc573f37bf88529afd"},"color":{"light":"#F0FDFA","dark":"#07100E"}},"navbar":{"links":[{"href":"https://www.prava.space/blog","label":"Blog"},{"href":"mailto:support@prava.space","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/PravaPayments","github":"https://github.com/Prava-Payments","linkedin":"https://www.linkedin.com/company/prava-payments"}},"seo":{"metatags":{"og:image":"/images/brand-banner.png","twitter:image":"/images/brand-banner.png","twitter:card":"summary_large_image"}},"fonts":{"heading":{"family":"Neue Haas Display","weight":500,"source":"fonts/NeueHaasDisplayMedium.woff2","format":"woff2"},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"background":"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/images/brand-banner.png?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=5f9fd0ab72da457adc80b64355b7b407"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pravapayments","hasAudioNarration":false,"actualSubdomain":"pravapayments","customDomains":["docs.prava.space"],"gitSource":{"type":"github","owner":"prava-payments","repo":"prava-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af73b91ea2e3b727f3d6820","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Developer Guide","count":35},{"language":"default","tag":"API Reference","count":35},{"language":"default","tag":"Server-Side API","count":17},{"language":"default","tag":"Webhooks API","count":15},{"language":"default","tag":"Prava CLI","count":9},{"language":"default","tag":"Endpoints","count":8},{"language":"default","tag":"Webhooks","count":8},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Core Concepts","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Neue Haas Display\";font-weight:300;font-style:normal;font-display:swap;src:url(\"/fonts/NeueHaasDisplayLight.woff2\") format(\"woff2\")}@font-face{font-family:\"Neue Haas Display\";font-weight:400;font-style:normal;font-display:swap;src:url(\"/fonts/NeueHaasDisplayRegular.woff2\") format(\"woff2\")}@font-face{font-family:\"Neue Haas Display\";font-weight:500;font-style:normal;font-display:swap;src:url(\"/fonts/NeueHaasDisplayMedium.woff2\") format(\"woff2\")}:root{--prava-teal: #0d9488;--prava-teal-deep: #0f766e;--prava-mint: #5eead4;--prava-green: #34d399;--prava-green-soft: #6ee7b7;--prava-airy-1: #f0fdfa;--prava-airy-2: #ccfbf1;--prava-airy-3: #99f6e4}h1,h2,h3,h4{font-family:\"Neue Haas Display\", \"Inter\", system-ui, sans-serif;letter-spacing:normal;word-spacing:0.02em;font-weight:500}h1{letter-spacing:-0.015em}img[src*=\"brand-banner\"]{display:block;width:100%;max-width:100%;height:auto;border-radius:18px;margin:0.25rem 0 1.75rem;box-shadow:0 14px 40px rgba(6, 42, 39, 0.22);border:1px solid rgba(13, 148, 136, 0.18)}@media (orientation: landscape){[style*=\"/images/bg-light\"]{--bg-shift: -800px;background-position:right var(--bg-shift)!important}}[style*=\"/images/bg-light\"]{opacity:0.5}.mermaid .node rect,.mermaid .node polygon,.mermaid .node circle{fill:var(--prava-airy-1)!important;stroke:var(--prava-teal)!important;stroke-width:1.25px!important;rx:8px}.mermaid .edgePath .path,.mermaid .flowchart-link{stroke:var(--prava-teal)!important}.mermaid .marker{fill:var(--prava-teal)!important;stroke:var(--prava-teal)!important}.mermaid .node .nodeLabel,.mermaid .node text{color:#134e4a!important;fill:#134e4a!important;font-family:\"Inter\", system-ui, sans-serif!important}.mermaid .edgeLabel,.mermaid .edgeLabel p{color:var(--prava-teal-deep)!important;background-color:transparent!important}.dark .mermaid .node rect,.dark .mermaid .node polygon,.dark .mermaid .node circle{fill:rgba(13, 148, 136, 0.15)!important;stroke:var(--prava-mint)!important}.dark .mermaid .node .nodeLabel,.dark .mermaid .node text{color:var(--prava-airy-2)!important;fill:var(--prava-airy-2)!important}.dark .mermaid .edgeLabel,.dark .mermaid .edgeLabel p{color:var(--prava-mint)!important}.callout[data-callout-type=\"note\"]{background:var(--prava-airy-1);border-color:var(--prava-airy-3)}.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:var(--prava-teal-deep)}.callout[data-callout-type=\"info\"]{background:var(--prava-airy-2);border-color:var(--prava-mint)}.callout[data-callout-type=\"info\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:#115e59}.callout[data-callout-type=\"tip\"]{background:#ecfdf5;border-color:#a7f3d0}.callout[data-callout-type=\"tip\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"tip\"] [data-component-part=\"callout-icon\"] svg{color:#047857}.callout[data-callout-type=\"warning\"]{background:#fdf8ef;border-color:#f0dcb4}.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg{color:#8a5a0b}.dark .callout[data-callout-type=\"note\"]{background:rgba(13, 148, 136, 0.12);border-color:rgba(94, 234, 212, 0.28)}.dark .callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:var(--prava-mint)}.dark .callout[data-callout-type=\"info\"]{background:rgba(13, 148, 136, 0.2);border-color:rgba(94, 234, 212, 0.4)}.dark .callout[data-callout-type=\"info\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:var(--prava-airy-2)}.dark .callout[data-callout-type=\"tip\"]{background:rgba(52, 211, 153, 0.12);border-color:rgba(52, 211, 153, 0.35)}.dark .callout[data-callout-type=\"tip\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"tip\"] [data-component-part=\"callout-icon\"] svg{color:var(--prava-green-soft)}.dark .callout[data-callout-type=\"warning\"]{background:rgba(202, 138, 4, 0.12);border-color:rgba(202, 138, 4, 0.35)}.dark .callout[data-callout-type=\"warning\"] [data-component-part=\"callout-content\"],.dark .callout[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg{color:#e4b45e}.nav-tag-pill-text[data-nav-tag=\"GET\"]{color:#15803d!important;background-color:rgba(22, 163, 74, 0.12)!important}.dark .nav-tag-pill-text[data-nav-tag=\"GET\"]{color:#4ade80!important;background-color:rgba(74, 222, 128, 0.14)!important}.nav-tag-pill-text[data-nav-tag=\"POST\"]{color:#1d4ed8!important;background-color:rgba(37, 99, 235, 0.12)!important}.dark .nav-tag-pill-text[data-nav-tag=\"POST\"]{color:#60a5fa!important;background-color:rgba(96, 165, 250, 0.14)!important}.nav-tag-pill{order:-1}:where(div,span):has(>.nav-tag-pill){order:-1}"}],"page":{"pagePath":"api-reference/create-session","slug":"/api-reference/create-session","pageMetadata":{"title":"Create Session","description":"Create a payment session for a customer and order — standard checkout or mandate setup.","icon":"plus","openapi":"api-reference/openapi.json POST /v1/sessions","playground":"interactive","href":"/api-reference/create-session"},"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 session for a customer and order — standard checkout or mandate setup.\"\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`,em:`em`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField,Tab,Table,Tabs}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Create a short-lived, single-use session tied to one merchant, customer, and order. The response gives you a `,_jsx(_components.code,{children:`session_token`}),` + `,_jsx(_components.code,{children:`iframe_url`}),` for the frontend — embed the iframe via the `,_jsx(_components.a,{href:`/sdk/overview`,children:`SDK`}),` or open the `,_jsx(_components.a,{href:`/sdk/integration-modes`,children:`hosted checkout`}),` directly.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v1/sessions`}),` · Authenticated with your secret key.`]}),`\n`,_jsx(Heading,{level:`2`,id:`which-flow`,children:`Which flow?`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Standard checkout`,id:`standard-checkout`,children:_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`mandate_setup`}),` (or send `,_jsx(_components.code,{children:`intent: \"checkout\"`}),`). The session collects a card and charges immediately.`]})}),_jsx(Tab,{title:`Mandate setup`,id:`mandate-setup`,children:_jsxs(_components.p,{children:[`Include a `,_jsx(_components.code,{children:`mandate_setup`}),` block with `,_jsx(_components.code,{children:`intent: \"mandate_setup\"`}),`. The session is `,_jsx(_components.strong,{children:`authorize-only`}),`: it returns an `,_jsx(_components.code,{children:`iframe_url`}),` for passkey approval, and completing setup issues `,_jsx(_components.strong,{children:`no`}),` payment credentials. Charge later with `,_jsx(_components.a,{href:`/api-reference/mandate-charge`,children:`Charge a Mandate`}),`. There is no separate `,_jsx(_components.code,{children:`POST /v1/mandates`}),` create endpoint — a `,_jsx(_components.a,{href:`/concepts/mandates`,children:`mandate`}),` is always set up through this endpoint.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`mandate-setup`,children:`Mandate setup`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Mandate creation is part of the Session APIs — this endpoint is how mandates are created.`}),` Send a `,_jsx(_components.code,{children:`mandate_setup`}),` block (see `,_jsx(_components.a,{href:`#body`,children:`Body`}),`) with `,_jsx(_components.code,{children:`intent: \"mandate_setup\"`}),` and the session becomes authorize-only: the response carries an `,_jsx(_components.code,{children:`iframe_url`}),` where the owner approves `,_jsx(_components.strong,{children:`once`}),` with their passkey. Completing setup does not issue payment credentials. Once the mandate is `,_jsx(_components.code,{children:`active`}),`, charge it with `,_jsx(_components.a,{href:`/api-reference/mandate-charge`,children:`Charge a Mandate`}),` within its approved terms — no further passkey needed.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`mandate_setup`}),` field reference below covers `,_jsx(_components.code,{children:`recurring_frequency`}),`, `,_jsx(_components.code,{children:`merchant_scope`}),`, `,_jsx(_components.code,{children:`max_charges`}),`, and `,_jsx(_components.code,{children:`valid_until`}),`; see `,_jsx(_components.a,{href:`/concepts/mandates`,children:`Mandates`}),` for the concept and guardrails.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Choosing a card source.`}),` Omit `,_jsx(_components.code,{children:`card`}),` to let the cardholder select or enter a card in the collection surface. Send `,_jsx(_components.code,{children:`card.card_id`}),` to pre-select an already-enrolled card, or `,_jsx(_components.code,{children:`card.vault_ref_id`}),` (a Skyflow UUID) for the vault-ref flow. Send `,_jsx(_components.strong,{children:`exactly one`}),` — if both are present, `,_jsx(_components.code,{children:`card_id`}),` wins.\nAfter collection, `,_jsx(_components.a,{href:`/api-reference/get-payment-result`,children:`Get Payment Result`}),` returns the card bound to\neach transaction as `,_jsx(_components.code,{children:`transactions[].card_id`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`user_id`,type:`string`,required:true,id:`param-user-id`,children:_jsxs(_components.p,{children:[`Unique identifier for the customer in your system (1–255 chars). Required for merchant (secret-key) sessions — omitting it returns `,_jsx(_components.code,{children:`400 VAL_2001`}),`.`]})}),`\n`,_jsx(ParamField,{body:`user_email`,type:`string`,required:true,id:`param-user-email`,children:_jsx(_components.p,{children:`Customer email. Required for merchant sessions. Must be a valid email address.`})}),`\n`,_jsx(ParamField,{body:`total_amount`,type:`string`,required:true,id:`param-total-amount`,children:_jsxs(_components.p,{children:[`Total order amount as a decimal string with up to 2 decimals, e.g. `,_jsx(_components.code,{children:`\"49.99\"`}),`. Need not equal the sum of line items (it may include tax, shipping, and fees). This value becomes the authorized amount cap.`]})}),`\n`,_jsxs(ParamField,{body:`currency`,type:`string`,required:true,id:`param-currency`,children:[_jsxs(_components.p,{children:[`ISO 4217 code — 3 uppercase letters — and must be a `,_jsx(_components.strong,{children:`supported currency`}),`. Supported: USD, EUR, GBP, INR, CAD, AUD, JPY, SGD, AED, HKD, MXN, BRL, CHF, CNY, NZD, SEK, NOK, DKK, ZAR, THB, KRW, PLN, TWD, PHP, IDR, MYR, CZK, ILS, CLP, ARS, COP, PEN, SAR, QAR, KWD, BHD, OMR, EGP, NGN, KES, GHS, TZS, UGX, PKR, BDT, LKR, VND, MMK, NPR. Other codes are rejected.`]}),_jsxs(_components.p,{children:[`This is your `,_jsx(_components.strong,{children:`pricing currency`}),` and is independent of the card’s issuing country: there is no requirement that it match `,_jsx(_components.code,{children:`country_code_iso2`}),` (the merchant’s location) or the cardholder’s country. A US-issued card can pay an INR-denominated session; the card network settles the cross-currency conversion. Price in whatever currency your product uses — you don’t need to re-denominate.`]})]}),`\n`,_jsxs(ParamField,{body:`purchase_context`,type:`object`,required:true,id:`param-purchase-context`,children:[_jsxs(_components.p,{children:[`What is being bought. Two modes — pick `,_jsx(_components.strong,{children:`one`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`From a quote`}),` — send `,_jsx(_components.code,{children:`quote: true`}),` and the opaque `,_jsx(_components.code,{children:`quote_id`}),` (`,_jsx(_components.code,{children:`qte_…`}),`) returned when the quote\nwas created. Merchant and product details come from that quote, so nothing else is needed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Custom`}),` — omit `,_jsx(_components.code,{children:`quote`}),` (or send `,_jsx(_components.code,{children:`false`}),`) and describe the merchant and products yourself in `,_jsx(_components.code,{children:`custom`}),`.`]}),`\n`]}),_jsxs(Expandable,{title:`purchase_context properties`,children:[_jsx(ParamField,{body:`quote`,type:`boolean`,default:false,id:`param-quote`,children:_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`true`}),` to build the session from an existing quote. When `,_jsx(_components.code,{children:`true`}),`, pass `,_jsx(_components.code,{children:`quote_id`}),` and\nnothing else — `,_jsx(_components.code,{children:`custom`}),` must be omitted. When `,_jsx(_components.code,{children:`false`}),` or absent, `,_jsx(_components.code,{children:`custom`}),` is required and\n`,_jsx(_components.code,{children:`quote_id`}),` must be omitted.`]})}),_jsx(ParamField,{body:`quote_id`,type:`string`,id:`param-quote-id`,children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Required when `,_jsx(_components.code,{children:`quote`}),` is `,_jsx(_components.code,{children:`true`}),`.`]}),` The opaque public quote id returned by quote creation\n(for example, `,_jsx(_components.code,{children:`qte_…`}),`). The quote carries the merchant, products, and locked price.\nCreate the session before the quote expires; its expiry is separate from the session’s\nlifetime. `,_jsx(_components.code,{children:`total_amount`}),` and `,_jsx(_components.code,{children:`currency`}),` must match the quote’s final total.\nDo not send a merchant checkout-session id.`]})}),_jsxs(ParamField,{body:`custom`,type:`object[]`,id:`param-custom`,children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Required when `,_jsx(_components.code,{children:`quote`}),` is not `,_jsx(_components.code,{children:`true`}),`.`]}),` Exactly one entry — multi-merchant sessions are not\nyet supported.`]}),_jsxs(Expandable,{title:`custom[] properties`,children:[_jsxs(ParamField,{body:`merchant_details`,type:`object`,required:true,id:`param-merchant-details`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`destination merchant`}),` — the business the cardholder is buying from, `,_jsx(_components.strong,{children:`not your\napplication`}),`. The `,_jsx(_components.code,{children:`name`}),` renders as the header on the checkout page and is forwarded to\nVisa as the merchant of record for the token.`]}),_jsxs(Expandable,{title:`merchant_details properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsxs(_components.p,{children:[`Merchant display name. Sanitized to a Visa-safe character set (e.g. `,_jsx(_components.code,{children:`H\u0026M`}),` → `,_jsx(_components.code,{children:`HM`}),`); must contain at least one usable character.`]})}),_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:_jsxs(_components.p,{children:[`Merchant website URL. `,_jsxs(_components.strong,{children:[`Must use `,_jsx(_components.code,{children:`https`})]}),` — the URL is forwarded to Visa.`]})}),_jsx(ParamField,{body:`country_code_iso2`,type:`string`,required:true,id:`param-country-code-iso2`,children:_jsxs(_components.p,{children:[`Merchant country — 2 uppercase ISO 3166-1 letters, e.g. `,_jsx(_components.code,{children:`\"US\"`}),`.`]})}),_jsx(ParamField,{body:`category_code`,type:`string`,id:`param-category-code`,children:_jsx(_components.p,{children:`Merchant category code (MCC). Free-form string, max 10 characters.`})}),_jsx(ParamField,{body:`category`,type:`string`,id:`param-category`,children:_jsx(_components.p,{children:`Merchant category description, max 100 characters.`})})]})]}),_jsxs(ParamField,{body:`product_details`,type:`object[]`,required:true,id:`param-product-details`,children:[_jsx(_components.p,{children:`At least one product.`}),_jsxs(Expandable,{title:`product_details[] properties`,children:[_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`Product description.`})}),_jsx(ParamField,{body:`unit_price`,type:`string`,required:true,id:`param-unit-price`,children:_jsxs(_components.p,{children:[`Unit price as a string, e.g. `,_jsx(_components.code,{children:`\"24.99\"`}),`.`]})}),_jsx(ParamField,{body:`product_id`,type:`string`,id:`param-product-id`,children:_jsx(_components.p,{children:`Your external product identifier, max 50 characters.`})}),_jsx(ParamField,{body:`quantity`,type:`integer`,default:1,id:`param-quantity`,children:_jsx(_components.p,{children:`Quantity of this product. Positive integer.`})})]})]}),_jsx(ParamField,{body:`effective_until_minutes`,type:`integer`,default:15,id:`param-effective-until-minutes`,children:_jsx(_components.p,{children:`How long the resulting mandate stays effective, in minutes. Positive integer.`})})]})]})]})]}),`\n`,_jsx(ParamField,{body:`integration_type`,type:`string`,default:`full_checkout`,id:`param-integration-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`full_checkout`}),` (hosted redirect) or `,_jsx(_components.code,{children:`embedding`}),` (mount the iframe via the SDK). Read by the frontend to choose the surface.`]})}),`\n`,_jsx(ParamField,{body:`callback_url`,type:`string`,id:`param-callback-url`,children:_jsxs(_components.p,{children:[`For hosted checkout: the URL Prava redirects the cardholder to after they finish. `,_jsxs(_components.strong,{children:[`Must use `,_jsx(_components.code,{children:`https`})]}),`, max 2048 chars. Optional for all integration types.`]})}),`\n`,_jsxs(ParamField,{body:`card`,type:`object`,id:`param-card`,children:[_jsx(_components.p,{children:`Pre-select a card. Send one of the two fields below (see the note above).`}),_jsxs(Expandable,{title:`card properties`,children:[_jsx(ParamField,{body:`card_id`,type:`string`,id:`param-card-id`,children:_jsxs(_components.p,{children:[`An enrolled card id (the `,_jsx(_components.code,{children:`enrollmentId`}),` from the SDK’s `,_jsx(_components.a,{href:`/sdk/cards/collect-pan`,children:_jsx(_components.code,{children:`collectPAN()`})}),`, or a `,_jsx(_components.code,{children:`card_id`}),` from `,_jsx(_components.a,{href:`/api-reference/list-cards`,children:`List Cards`}),`). Scoped to this customer + merchant.`]})}),_jsx(ParamField,{body:`vault_ref_id`,type:`string`,id:`param-vault-ref-id`,children:_jsx(_components.p,{children:`A Skyflow vault reference UUID. Triggers provisioning at session-create.`})})]})]}),`\n`,_jsxs(ParamField,{body:`mandate_setup`,type:`object`,id:`param-mandate-setup`,children:[_jsx(_components.p,{children:`Turns the session into mandate setup (authorize-only). See the Mandate setup tab above.`}),_jsxs(Expandable,{title:`mandate_setup properties`,children:[_jsx(ParamField,{body:`intent`,type:`string`,id:`param-intent`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`mandate_setup`}),` (authorize-only, no charge) or `,_jsx(_components.code,{children:`checkout`}),`. Defaults to `,_jsx(_components.code,{children:`mandate_setup`}),` when this block is present.`]})}),_jsx(ParamField,{body:`recurring_frequency`,type:`string`,id:`param-recurring-frequency`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`one_time`}),`, `,_jsx(_components.code,{children:`weekly`}),`, `,_jsx(_components.code,{children:`monthly`}),`, or `,_jsx(_components.code,{children:`yearly`}),`.`]})}),_jsx(ParamField,{body:`merchant_scope`,type:`string`,id:`param-merchant-scope`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`listed`}),` (locked to this merchant) or `,_jsx(_components.code,{children:`any`}),` (any merchant). Recurring frequencies force `,_jsx(_components.code,{children:`listed`}),` — sending `,_jsx(_components.code,{children:`any`}),` with a recurring frequency returns `,_jsx(_components.code,{children:`400 MANDATE_RECURRING_MUST_BE_SCOPED`}),`.`]})}),_jsx(ParamField,{body:`valid_until`,type:`string`,id:`param-valid-until`,children:_jsxs(_components.p,{children:[`ISO 8601 datetime. `,_jsxs(_components.strong,{children:[`Ignored for `,_jsx(_components.code,{children:`one_time`})]}),`, which is always clamped to 7 days. Recurring horizons: yearly 5y, monthly 2y, weekly 1y.`]})}),_jsx(ParamField,{body:`max_charges`,type:`integer`,default:1,id:`param-max-charges`,children:_jsxs(_components.p,{children:[`Maximum number of charges allowed against this mandate. Positive integer. (The per-charge `,_jsx(_components.em,{children:`amount`}),` cap is enforced separately, at the card network.)`]})})]})]}),`\n`,_jsx(ParamField,{body:`user_phone`,type:`string`,id:`param-user-phone`,children:_jsx(_components.p,{children:`Customer phone number.`})}),`\n`,_jsx(ParamField,{body:`user_country_code_iso2`,type:`string`,id:`param-user-country-code-iso2`,children:_jsx(_components.p,{children:`Customer country — 2 uppercase ISO 3166-1 letters.`})}),`\n`,_jsx(ParamField,{body:`external_order_ref`,type:`string`,id:`param-external-order-ref`,children:_jsx(_components.p,{children:`Your external order reference id, max 255 chars.`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description-1`,children:_jsx(_components.p,{children:`Human-readable description of the order.`})}),`\n`,_jsx(ParamField,{body:`sandbox_simulation`,type:`object`,id:`param-sandbox-simulation`,children:_jsxs(_components.p,{children:[`Optional, sandbox-only payment success simulation for quote-backed checkout. The exact shape\nis `,_jsx(_components.code,{children:`{ \"stage\": \"payment\", \"outcome\": \"success\" }`}),`; both fields are required and additional\nfields are rejected. Custom checkout, production, and mandate-setup sessions cannot use it.\nNormal card collection and verification still run. An eligible terminal payment result can\ncomplete the sandbox lifecycle while `,_jsx(_components.code,{children:`observed_result`}),` retains the actual outcome.\nSee `,_jsx(_components.a,{href:`/api-reference/testing#simulate-successful-payment-completion`,children:`Sandbox simulation`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`session_id`,type:`string`,id:`param-session-id`,children:`Unique session identifier.`}),`\n`,_jsx(ResponseField,{name:`session_token`,type:`string`,id:`param-session-token`,children:`JWT authenticating client-side SDK calls within this session.`}),`\n`,_jsx(ResponseField,{name:`iframe_url`,type:`string`,id:`param-iframe-url`,children:`Secure card-collection (or, for mandate setup, passkey-approval) surface.`}),`\n`,_jsx(ResponseField,{name:`order_id`,type:`string`,id:`param-order-id`,children:`Internal order identifier.`}),`\n`,_jsx(ResponseField,{name:`expires_at`,type:`string`,id:`param-expires-at`,children:`ISO 8601 timestamp when the session expires.`}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Sessions are `,_jsx(_components.strong,{children:`short-lived`}),` and `,_jsx(_components.strong,{children:`single-use`}),`, tied to a specific merchant, customer, and order.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`session_token`}),` and `,_jsx(_components.code,{children:`iframe_url`}),` are used on the frontend: embedded via the `,_jsx(_components.a,{href:`/sdk/overview`,children:`SDK`}),`, or opened directly for `,_jsx(_components.a,{href:`/sdk/integration-modes`,children:`hosted checkout`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Sessions can be revoked before use via `,_jsx(_components.a,{href:`/api-reference/revoke-session`,children:_jsx(_components.code,{children:`POST /v1/sessions/:id/revoke`})}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VAL_2001`})}),_jsxs(_components.td,{children:[`Validation error (missing/invalid fields; `,_jsx(_components.code,{children:`user_id`}),`/`,_jsx(_components.code,{children:`user_email`}),` missing on a merchant session; `,_jsx(_components.code,{children:`quote: true`}),` without a `,_jsx(_components.code,{children:`quote_id`}),`; `,_jsx(_components.code,{children:`custom`}),` missing when `,_jsx(_components.code,{children:`quote`}),` is not true). `,_jsx(_components.code,{children:`details`}),` names the fields.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CARD_NOT_FOUND`})}),_jsxs(_components.td,{children:[`Pre-selected `,_jsx(_components.code,{children:`card_id`}),` does not exist for this customer + merchant`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CARD_INACTIVE`})}),_jsx(_components.td,{children:`Pre-selected card is not active`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_RECURRING_MUST_BE_SCOPED`})}),_jsxs(_components.td,{children:[`Recurring frequency sent with `,_jsx(_components.code,{children:`merchant_scope: \"any\"`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SANDBOX_SIMULATION_NOT_ALLOWED`})}),_jsx(_components.td,{children:`Simulation requested outside sandbox, for a custom checkout, or for mandate setup`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_1001`})}),_jsx(_components.td,{children:`Invalid API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_1002`})}),_jsx(_components.td,{children:`Missing or invalid Authorization header`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUOTE_SESSION_MISMATCH`})}),_jsx(_components.td,{children:`Session amount or currency differs from the quote’s final total`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`410`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUOTE_EXPIRED`})}),_jsx(_components.td,{children:`The quote expired before session creation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TRIES_EXHAUSTED`})}),_jsx(_components.td,{children:`Sandbox test-transaction limit reached for this merchant`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MERCHANT_LOOKUP_ERROR`})}),_jsx(_components.td,{children:`Failed to load the merchant account for the key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFIG_ERROR`})}),_jsx(_components.td,{children:`Server-side configuration issue (Visa or Skyflow not configured)`})]})]})]})]})}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 Session","description":"Create a payment session for a customer and order — standard checkout or mandate setup.","icon":"plus","openapi":"api-reference/openapi.json POST /v1/sessions","playground":"interactive","href":"/api-reference/create-session"}}},"mdxSourceWithNoJs":{"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`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Tab,Table,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Create a short-lived, single-use session tied to one merchant, customer, and order. The response gives you a `,_jsx(_components.code,{children:`session_token`}),` + `,_jsx(_components.code,{children:`iframe_url`}),` for the frontend — embed the iframe via the `,_jsx(_components.a,{href:`/sdk/overview`,children:`SDK`}),` or open the `,_jsx(_components.a,{href:`/sdk/integration-modes`,children:`hosted checkout`}),` directly.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v1/sessions`}),` · Authenticated with your secret key.`]}),`\n`,_jsx(Heading,{level:`2`,id:`which-flow`,children:`Which flow?`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Standard checkout`,id:`standard-checkout`,children:_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`mandate_setup`}),` (or send `,_jsx(_components.code,{children:`intent: \"checkout\"`}),`). The session collects a card and charges immediately.`]})}),_jsx(Tab,{title:`Mandate setup`,id:`mandate-setup`,children:_jsxs(_components.p,{children:[`Include a `,_jsx(_components.code,{children:`mandate_setup`}),` block with `,_jsx(_components.code,{children:`intent: \"mandate_setup\"`}),`. The session is `,_jsx(_components.strong,{children:`authorize-only`}),`: it returns an `,_jsx(_components.code,{children:`iframe_url`}),` for passkey approval, and completing setup issues `,_jsx(_components.strong,{children:`no`}),` payment credentials. Charge later with `,_jsx(_components.a,{href:`/api-reference/mandate-charge`,children:`Charge a Mandate`}),`. There is no separate `,_jsx(_components.code,{children:`POST /v1/mandates`}),` create endpoint — a `,_jsx(_components.a,{href:`/concepts/mandates`,children:`mandate`}),` is always set up through this endpoint.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`mandate-setup`,children:`Mandate setup`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Mandate creation is part of the Session APIs — this endpoint is how mandates are created.`}),` Send a `,_jsx(_components.code,{children:`mandate_setup`}),` block (see `,_jsx(_components.a,{href:`#body`,children:`Body`}),`) with `,_jsx(_components.code,{children:`intent: \"mandate_setup\"`}),` and the session becomes authorize-only: the response carries an `,_jsx(_components.code,{children:`iframe_url`}),` where the owner approves `,_jsx(_components.strong,{children:`once`}),` with their passkey. Completing setup does not issue payment credentials. Once the mandate is `,_jsx(_components.code,{children:`active`}),`, charge it with `,_jsx(_components.a,{href:`/api-reference/mandate-charge`,children:`Charge a Mandate`}),` within its approved terms — no further passkey needed.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`mandate_setup`}),` field reference below covers `,_jsx(_components.code,{children:`recurring_frequency`}),`, `,_jsx(_components.code,{children:`merchant_scope`}),`, `,_jsx(_components.code,{children:`max_charges`}),`, and `,_jsx(_components.code,{children:`valid_until`}),`; see `,_jsx(_components.a,{href:`/concepts/mandates`,children:`Mandates`}),` for the concept and guardrails.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Choosing a card source.`}),` Omit `,_jsx(_components.code,{children:`card`}),` to let the cardholder select or enter a card in the collection surface. Send `,_jsx(_components.code,{children:`card.card_id`}),` to pre-select an already-enrolled card, or `,_jsx(_components.code,{children:`card.vault_ref_id`}),` (a Skyflow UUID) for the vault-ref flow. Send `,_jsx(_components.strong,{children:`exactly one`}),` — if both are present, `,_jsx(_components.code,{children:`card_id`}),` wins.\nAfter collection, `,_jsx(_components.a,{href:`/api-reference/get-payment-result`,children:`Get Payment Result`}),` returns the card bound to\neach transaction as `,_jsx(_components.code,{children:`transactions[].card_id`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`user_id`,type:`string`,required:true,id:`param-user-id`,children:_jsxs(_components.p,{children:[`Unique identifier for the customer in your system (1–255 chars). Required for merchant (secret-key) sessions — omitting it returns `,_jsx(_components.code,{children:`400 VAL_2001`}),`.`]})}),`\n`,_jsx(ParamField,{body:`user_email`,type:`string`,required:true,id:`param-user-email`,children:_jsx(_components.p,{children:`Customer email. Required for merchant sessions. Must be a valid email address.`})}),`\n`,_jsx(ParamField,{body:`total_amount`,type:`string`,required:true,id:`param-total-amount`,children:_jsxs(_components.p,{children:[`Total order amount as a decimal string with up to 2 decimals, e.g. `,_jsx(_components.code,{children:`\"49.99\"`}),`. Need not equal the sum of line items (it may include tax, shipping, and fees). This value becomes the authorized amount cap.`]})}),`\n`,_jsxs(ParamField,{body:`currency`,type:`string`,required:true,id:`param-currency`,children:[_jsxs(_components.p,{children:[`ISO 4217 code — 3 uppercase letters — and must be a `,_jsx(_components.strong,{children:`supported currency`}),`. Supported: USD, EUR, GBP, INR, CAD, AUD, JPY, SGD, AED, HKD, MXN, BRL, CHF, CNY, NZD, SEK, NOK, DKK, ZAR, THB, KRW, PLN, TWD, PHP, IDR, MYR, CZK, ILS, CLP, ARS, COP, PEN, SAR, QAR, KWD, BHD, OMR, EGP, NGN, KES, GHS, TZS, UGX, PKR, BDT, LKR, VND, MMK, NPR. Other codes are rejected.`]}),_jsxs(_components.p,{children:[`This is your `,_jsx(_components.strong,{children:`pricing currency`}),` and is independent of the card’s issuing country: there is no requirement that it match `,_jsx(_components.code,{children:`country_code_iso2`}),` (the merchant’s location) or the cardholder’s country. A US-issued card can pay an INR-denominated session; the card network settles the cross-currency conversion. Price in whatever currency your product uses — you don’t need to re-denominate.`]})]}),`\n`,_jsxs(ParamField,{body:`purchase_context`,type:`object`,required:true,id:`param-purchase-context`,children:[_jsxs(_components.p,{children:[`What is being bought. Two modes — pick `,_jsx(_components.strong,{children:`one`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`From a quote`}),` — send `,_jsx(_components.code,{children:`quote: true`}),` and the opaque `,_jsx(_components.code,{children:`quote_id`}),` (`,_jsx(_components.code,{children:`qte_…`}),`) returned when the quote\nwas created. Merchant and product details come from that quote, so nothing else is needed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Custom`}),` — omit `,_jsx(_components.code,{children:`quote`}),` (or send `,_jsx(_components.code,{children:`false`}),`) and describe the merchant and products yourself in `,_jsx(_components.code,{children:`custom`}),`.`]}),`\n`]}),_jsxs(Expandable,{title:`purchase_context properties`,children:[_jsx(ParamField,{body:`quote`,type:`boolean`,default:false,id:`param-quote`,children:_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`true`}),` to build the session from an existing quote. When `,_jsx(_components.code,{children:`true`}),`, pass `,_jsx(_components.code,{children:`quote_id`}),` and\nnothing else — `,_jsx(_components.code,{children:`custom`}),` must be omitted. When `,_jsx(_components.code,{children:`false`}),` or absent, `,_jsx(_components.code,{children:`custom`}),` is required and\n`,_jsx(_components.code,{children:`quote_id`}),` must be omitted.`]})}),_jsx(ParamField,{body:`quote_id`,type:`string`,id:`param-quote-id`,children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Required when `,_jsx(_components.code,{children:`quote`}),` is `,_jsx(_components.code,{children:`true`}),`.`]}),` The opaque public quote id returned by quote creation\n(for example, `,_jsx(_components.code,{children:`qte_…`}),`). The quote carries the merchant, products, and locked price.\nCreate the session before the quote expires; its expiry is separate from the session’s\nlifetime. `,_jsx(_components.code,{children:`total_amount`}),` and `,_jsx(_components.code,{children:`currency`}),` must match the quote’s final total.\nDo not send a merchant checkout-session id.`]})}),_jsxs(ParamField,{body:`custom`,type:`object[]`,id:`param-custom`,children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Required when `,_jsx(_components.code,{children:`quote`}),` is not `,_jsx(_components.code,{children:`true`}),`.`]}),` Exactly one entry — multi-merchant sessions are not\nyet supported.`]}),_jsxs(Expandable,{title:`custom[] properties`,children:[_jsxs(ParamField,{body:`merchant_details`,type:`object`,required:true,id:`param-merchant-details`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`destination merchant`}),` — the business the cardholder is buying from, `,_jsx(_components.strong,{children:`not your\napplication`}),`. The `,_jsx(_components.code,{children:`name`}),` renders as the header on the checkout page and is forwarded to\nVisa as the merchant of record for the token.`]}),_jsxs(Expandable,{title:`merchant_details properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsxs(_components.p,{children:[`Merchant display name. Sanitized to a Visa-safe character set (e.g. `,_jsx(_components.code,{children:`H\u0026M`}),` → `,_jsx(_components.code,{children:`HM`}),`); must contain at least one usable character.`]})}),_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:_jsxs(_components.p,{children:[`Merchant website URL. `,_jsxs(_components.strong,{children:[`Must use `,_jsx(_components.code,{children:`https`})]}),` — the URL is forwarded to Visa.`]})}),_jsx(ParamField,{body:`country_code_iso2`,type:`string`,required:true,id:`param-country-code-iso2`,children:_jsxs(_components.p,{children:[`Merchant country — 2 uppercase ISO 3166-1 letters, e.g. `,_jsx(_components.code,{children:`\"US\"`}),`.`]})}),_jsx(ParamField,{body:`category_code`,type:`string`,id:`param-category-code`,children:_jsx(_components.p,{children:`Merchant category code (MCC). Free-form string, max 10 characters.`})}),_jsx(ParamField,{body:`category`,type:`string`,id:`param-category`,children:_jsx(_components.p,{children:`Merchant category description, max 100 characters.`})})]})]}),_jsxs(ParamField,{body:`product_details`,type:`object[]`,required:true,id:`param-product-details`,children:[_jsx(_components.p,{children:`At least one product.`}),_jsxs(Expandable,{title:`product_details[] properties`,children:[_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`Product description.`})}),_jsx(ParamField,{body:`unit_price`,type:`string`,required:true,id:`param-unit-price`,children:_jsxs(_components.p,{children:[`Unit price as a string, e.g. `,_jsx(_components.code,{children:`\"24.99\"`}),`.`]})}),_jsx(ParamField,{body:`product_id`,type:`string`,id:`param-product-id`,children:_jsx(_components.p,{children:`Your external product identifier, max 50 characters.`})}),_jsx(ParamField,{body:`quantity`,type:`integer`,default:1,id:`param-quantity`,children:_jsx(_components.p,{children:`Quantity of this product. Positive integer.`})})]})]}),_jsx(ParamField,{body:`effective_until_minutes`,type:`integer`,default:15,id:`param-effective-until-minutes`,children:_jsx(_components.p,{children:`How long the resulting mandate stays effective, in minutes. Positive integer.`})})]})]})]})]}),`\n`,_jsx(ParamField,{body:`integration_type`,type:`string`,default:`full_checkout`,id:`param-integration-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`full_checkout`}),` (hosted redirect) or `,_jsx(_components.code,{children:`embedding`}),` (mount the iframe via the SDK). Read by the frontend to choose the surface.`]})}),`\n`,_jsx(ParamField,{body:`callback_url`,type:`string`,id:`param-callback-url`,children:_jsxs(_components.p,{children:[`For hosted checkout: the URL Prava redirects the cardholder to after they finish. `,_jsxs(_components.strong,{children:[`Must use `,_jsx(_components.code,{children:`https`})]}),`, max 2048 chars. Optional for all integration types.`]})}),`\n`,_jsxs(ParamField,{body:`card`,type:`object`,id:`param-card`,children:[_jsx(_components.p,{children:`Pre-select a card. Send one of the two fields below (see the note above).`}),_jsxs(Expandable,{title:`card properties`,children:[_jsx(ParamField,{body:`card_id`,type:`string`,id:`param-card-id`,children:_jsxs(_components.p,{children:[`An enrolled card id (the `,_jsx(_components.code,{children:`enrollmentId`}),` from the SDK’s `,_jsx(_components.a,{href:`/sdk/cards/collect-pan`,children:_jsx(_components.code,{children:`collectPAN()`})}),`, or a `,_jsx(_components.code,{children:`card_id`}),` from `,_jsx(_components.a,{href:`/api-reference/list-cards`,children:`List Cards`}),`). Scoped to this customer + merchant.`]})}),_jsx(ParamField,{body:`vault_ref_id`,type:`string`,id:`param-vault-ref-id`,children:_jsx(_components.p,{children:`A Skyflow vault reference UUID. Triggers provisioning at session-create.`})})]})]}),`\n`,_jsxs(ParamField,{body:`mandate_setup`,type:`object`,id:`param-mandate-setup`,children:[_jsx(_components.p,{children:`Turns the session into mandate setup (authorize-only). See the Mandate setup tab above.`}),_jsxs(Expandable,{title:`mandate_setup properties`,children:[_jsx(ParamField,{body:`intent`,type:`string`,id:`param-intent`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`mandate_setup`}),` (authorize-only, no charge) or `,_jsx(_components.code,{children:`checkout`}),`. Defaults to `,_jsx(_components.code,{children:`mandate_setup`}),` when this block is present.`]})}),_jsx(ParamField,{body:`recurring_frequency`,type:`string`,id:`param-recurring-frequency`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`one_time`}),`, `,_jsx(_components.code,{children:`weekly`}),`, `,_jsx(_components.code,{children:`monthly`}),`, or `,_jsx(_components.code,{children:`yearly`}),`.`]})}),_jsx(ParamField,{body:`merchant_scope`,type:`string`,id:`param-merchant-scope`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`listed`}),` (locked to this merchant) or `,_jsx(_components.code,{children:`any`}),` (any merchant). Recurring frequencies force `,_jsx(_components.code,{children:`listed`}),` — sending `,_jsx(_components.code,{children:`any`}),` with a recurring frequency returns `,_jsx(_components.code,{children:`400 MANDATE_RECURRING_MUST_BE_SCOPED`}),`.`]})}),_jsx(ParamField,{body:`valid_until`,type:`string`,id:`param-valid-until`,children:_jsxs(_components.p,{children:[`ISO 8601 datetime. `,_jsxs(_components.strong,{children:[`Ignored for `,_jsx(_components.code,{children:`one_time`})]}),`, which is always clamped to 7 days. Recurring horizons: yearly 5y, monthly 2y, weekly 1y.`]})}),_jsx(ParamField,{body:`max_charges`,type:`integer`,default:1,id:`param-max-charges`,children:_jsxs(_components.p,{children:[`Maximum number of charges allowed against this mandate. Positive integer. (The per-charge `,_jsx(_components.em,{children:`amount`}),` cap is enforced separately, at the card network.)`]})})]})]}),`\n`,_jsx(ParamField,{body:`user_phone`,type:`string`,id:`param-user-phone`,children:_jsx(_components.p,{children:`Customer phone number.`})}),`\n`,_jsx(ParamField,{body:`user_country_code_iso2`,type:`string`,id:`param-user-country-code-iso2`,children:_jsx(_components.p,{children:`Customer country — 2 uppercase ISO 3166-1 letters.`})}),`\n`,_jsx(ParamField,{body:`external_order_ref`,type:`string`,id:`param-external-order-ref`,children:_jsx(_components.p,{children:`Your external order reference id, max 255 chars.`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description-1`,children:_jsx(_components.p,{children:`Human-readable description of the order.`})}),`\n`,_jsx(ParamField,{body:`sandbox_simulation`,type:`object`,id:`param-sandbox-simulation`,children:_jsxs(_components.p,{children:[`Optional, sandbox-only payment success simulation for quote-backed checkout. The exact shape\nis `,_jsx(_components.code,{children:`{ \"stage\": \"payment\", \"outcome\": \"success\" }`}),`; both fields are required and additional\nfields are rejected. Custom checkout, production, and mandate-setup sessions cannot use it.\nNormal card collection and verification still run. An eligible terminal payment result can\ncomplete the sandbox lifecycle while `,_jsx(_components.code,{children:`observed_result`}),` retains the actual outcome.\nSee `,_jsx(_components.a,{href:`/api-reference/testing#simulate-successful-payment-completion`,children:`Sandbox simulation`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`session_id`,type:`string`,id:`param-session-id`,children:`Unique session identifier.`}),`\n`,_jsx(ResponseField,{name:`session_token`,type:`string`,id:`param-session-token`,children:`JWT authenticating client-side SDK calls within this session.`}),`\n`,_jsx(ResponseField,{name:`iframe_url`,type:`string`,id:`param-iframe-url`,children:`Secure card-collection (or, for mandate setup, passkey-approval) surface.`}),`\n`,_jsx(ResponseField,{name:`order_id`,type:`string`,id:`param-order-id`,children:`Internal order identifier.`}),`\n`,_jsx(ResponseField,{name:`expires_at`,type:`string`,id:`param-expires-at`,children:`ISO 8601 timestamp when the session expires.`}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Sessions are `,_jsx(_components.strong,{children:`short-lived`}),` and `,_jsx(_components.strong,{children:`single-use`}),`, tied to a specific merchant, customer, and order.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`session_token`}),` and `,_jsx(_components.code,{children:`iframe_url`}),` are used on the frontend: embedded via the `,_jsx(_components.a,{href:`/sdk/overview`,children:`SDK`}),`, or opened directly for `,_jsx(_components.a,{href:`/sdk/integration-modes`,children:`hosted checkout`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Sessions can be revoked before use via `,_jsx(_components.a,{href:`/api-reference/revoke-session`,children:_jsx(_components.code,{children:`POST /v1/sessions/:id/revoke`})}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VAL_2001`})}),_jsxs(_components.td,{children:[`Validation error (missing/invalid fields; `,_jsx(_components.code,{children:`user_id`}),`/`,_jsx(_components.code,{children:`user_email`}),` missing on a merchant session; `,_jsx(_components.code,{children:`quote: true`}),` without a `,_jsx(_components.code,{children:`quote_id`}),`; `,_jsx(_components.code,{children:`custom`}),` missing when `,_jsx(_components.code,{children:`quote`}),` is not true). `,_jsx(_components.code,{children:`details`}),` names the fields.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CARD_NOT_FOUND`})}),_jsxs(_components.td,{children:[`Pre-selected `,_jsx(_components.code,{children:`card_id`}),` does not exist for this customer + merchant`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CARD_INACTIVE`})}),_jsx(_components.td,{children:`Pre-selected card is not active`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MANDATE_RECURRING_MUST_BE_SCOPED`})}),_jsxs(_components.td,{children:[`Recurring frequency sent with `,_jsx(_components.code,{children:`merchant_scope: \"any\"`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SANDBOX_SIMULATION_NOT_ALLOWED`})}),_jsx(_components.td,{children:`Simulation requested outside sandbox, for a custom checkout, or for mandate setup`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_1001`})}),_jsx(_components.td,{children:`Invalid API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_1002`})}),_jsx(_components.td,{children:`Missing or invalid Authorization header`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUOTE_SESSION_MISMATCH`})}),_jsx(_components.td,{children:`Session amount or currency differs from the quote’s final total`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`410`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUOTE_EXPIRED`})}),_jsx(_components.td,{children:`The quote expired before session creation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TRIES_EXHAUSTED`})}),_jsx(_components.td,{children:`Sandbox test-transaction limit reached for this merchant`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MERCHANT_LOOKUP_ERROR`})}),_jsx(_components.td,{children:`Failed to load the merchant account for the key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFIG_ERROR`})}),_jsx(_components.td,{children:`Server-side configuration issue (Visa or Skyflow not configured)`})]})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`17`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://sandbox.api.prava.space/v1/sessions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_test_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\": \"user_123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_email\": \"jane@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"total_amount\": \"49.99\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"USD\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purchase_context\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom\": [{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchant_details\": { \"name\": \"Acme Store\", \"url\": \"https://acme.example.com\", \"country_code_iso2\": \"US\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"product_details\": [{ \"description\": \"Widget\", \"unit_price\": \"24.99\", \"quantity\": 2 }]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"integration_type\": \"full_checkout\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"callback_url\": \"https://acme.example.com/return\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL · From a quote`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://sandbox.api.prava.space/v1/sessions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_test_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\": \"user_123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_email\": \"jane@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"total_amount\": \"22.45\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"USD\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purchase_context\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quote\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quote_id\": \"qte_9f2c...\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`20`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`resp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://sandbox.api.prava.space/v1/sessions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer sk_test_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jane@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"total_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"49.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purchase_context\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchant_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Acme Store\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://acme.example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"country_code_iso2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"product_details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Widget\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unit_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"24.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"integration_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"full_checkout\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"callback_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://acme.example.com/return\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`21`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` resp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://sandbox.api.prava.space/v1/sessions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer sk_test_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user_email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"jane@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` total_amount:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"49.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` currency:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` purchase_context:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` custom:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` merchant_details:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Acme Store\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://acme.example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`country_code_iso2:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` product_details:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Widget\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`unit_price:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"24.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quantity:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` integration_type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"full_checkout\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` callback_url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://acme.example.com/return\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL · Mandate setup`,numberOfLines:`21`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://sandbox.api.prava.space/v1/sessions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_test_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\": \"user_123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_email\": \"jane@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"total_amount\": \"40.00\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"USD\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purchase_context\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom\": [{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchant_details\": { \"name\": \"Acme Store\", \"url\": \"https://acme.example.com\", \"country_code_iso2\": \"US\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"product_details\": [{ \"description\": \"Monthly plan\", \"unit_price\": \"40.00\" }]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mandate_setup\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"intent\": \"mandate_setup\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"recurring_frequency\": \"monthly\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchant_scope\": \"listed\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_charges\": 12`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`201 Standard`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ses_9f2c...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"iframe_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://checkout.prava.space/s/ses_9f2c...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ord_4a1b...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-26T12:15:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`201 Mandate setup`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ses_7d1a...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"iframe_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://checkout.prava.space/s/ses_7d1a...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ord_88c2...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-26T12:15:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 Validation`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VAL_2001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unsupported currency code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401 Unauthorized`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AUTH_1001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid API key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}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 Session","description":"Create a payment session for a customer and order — standard checkout or mandate setup.","icon":"plus","openapi":"api-reference/openapi.json POST /v1/sessions","playground":"interactive","href":"/api-reference/create-session"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Which flow?","slug":"which-flow","depth":2,"children":[]},{"title":"Mandate setup","slug":"mandate-setup","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]},{"title":"Error responses","slug":"error-responses","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"17\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://sandbox.api.prava.space/v1/sessions\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_id\": \"user_123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_email\": \"jane@example.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"total_amount\": \"49.99\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"currency\": \"USD\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"purchase_context\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"custom\": [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"merchant_details\": { \"name\": \"Acme Store\", \"url\": \"https://acme.example.com\", \"country_code_iso2\": \"US\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"product_details\": [{ \"description\": \"Widget\", \"unit_price\": \"24.99\", \"quantity\": 2 }]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"integration_type\": \"full_checkout\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"callback_url\": \"https://acme.example.com/return\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL · From a quote","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://sandbox.api.prava.space/v1/sessions\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_id\": \"user_123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_email\": \"jane@example.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"total_amount\": \"22.45\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"currency\": \"USD\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"purchase_context\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"quote\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"quote_id\": \"qte_9f2c...\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">resp \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://sandbox.api.prava.space/v1/sessions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user_123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"jane@example.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"total_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"49.99\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"USD\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"purchase_context\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"custom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"merchant_details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Acme Store\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://acme.example.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"country_code_iso2\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"US\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"product_details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Widget\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"unit_price\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"24.99\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"quantity\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"integration_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"full_checkout\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"callback_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://acme.example.com/return\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> resp\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://sandbox.api.prava.space/v1/sessions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> user_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> user_email:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"jane@example.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> total_amount:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"49.99\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> currency:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"USD\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> purchase_context:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> custom:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> merchant_details:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">name:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Acme Store\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">url:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://acme.example.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">country_code_iso2:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"US\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> product_details:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [{ \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">description:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Widget\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">unit_price:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"24.99\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">quantity:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 2\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> integration_type:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"full_checkout\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> callback_url:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://acme.example.com/return\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL · Mandate setup","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://sandbox.api.prava.space/v1/sessions\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer sk_test_...\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_id\": \"user_123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_email\": \"jane@example.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"total_amount\": \"40.00\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"currency\": \"USD\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"purchase_context\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"custom\": [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"merchant_details\": { \"name\": \"Acme Store\", \"url\": \"https://acme.example.com\", \"country_code_iso2\": \"US\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"product_details\": [{ \"description\": \"Monthly plan\", \"unit_price\": \"40.00\" }]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"mandate_setup\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"intent\": \"mandate_setup\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"recurring_frequency\": \"monthly\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"merchant_scope\": \"listed\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"max_charges\": 12\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201 Standard","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"session_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ses_9f2c...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"session_token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"eyJhbGciOi...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"iframe_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://checkout.prava.space/s/ses_9f2c...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"order_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ord_4a1b...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"expires_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-07-26T12:15:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"201 Mandate setup","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"session_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ses_7d1a...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"session_token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"eyJhbGciOi...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"iframe_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://checkout.prava.space/s/ses_7d1a...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"order_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ord_88c2...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"expires_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-07-26T12:15:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 Validation","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"VAL_2001\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Unsupported currency code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401 Unauthorized","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"AUTH_1001\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid API key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Session","description":"Create a payment session for a customer and order — standard checkout or mandate setup.","operationId":"createSession","requestBody":"fd51b361-2505-4f65-98ef-2df682a70c13","responses":{"201":"0d24efbe-e287-4ba6-8195-ef23c64dd96c","400":"497f0c95-46c3-42d6-af7c-b398a7824da8","401":"d25451a1-dc6e-478b-aaf2-4ba3ba000cda","429":"192012a3-767d-4f35-b571-0b174fee08e8","500":"6b01941f-2909-43db-a400-9c2517b56ab5"},"method":"post","type":"path","servers":["1a788c54-5158-4e62-a50a-5cffcb7e9814","e3d57ce5-db41-430c-9870-b9dbb2a64a99"],"security":["a3ff96f4-53cf-4165-90ca-358fd92bf2eb"],"path":"/v1/sessions","baseUrlOptions":["https://sandbox.api.prava.space","https://api.prava.space"],"title":"Create Session","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"17","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://sandbox.api.prava.space/v1/sessions"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer sk_test_...\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_id\": \"user_123\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_email\": \"jane@example.com\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"total_amount\": \"49.99\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"currency\": \"USD\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"purchase_context\": {"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"custom\": [{"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"merchant_details\": { \"name\": \"Acme Store\", \"url\": \"https://acme.example.com\", \"country_code_iso2\": \"US\" },"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"product_details\": [{ \"description\": \"Widget\", \"unit_price\": \"24.99\", \"quantity\": 2 }]"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }]"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"integration_type\": \"full_checkout\","}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"callback_url\": \"https://acme.example.com/return\""}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"13","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://sandbox.api.prava.space/v1/sessions"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer sk_test_...\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_id\": \"user_123\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_email\": \"jane@example.com\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"total_amount\": \"22.45\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"currency\": \"USD\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"purchase_context\": {"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"quote\": true,"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"quote_id\": \"qte_9f2c...\""}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL · From a quote"},{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"20","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"resp "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests.post("}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://sandbox.api.prava.space/v1/sessions\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" headers"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Authorization\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Bearer sk_test_...\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" json"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"user_123\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_email\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"jane@example.com\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"total_amount\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"49.99\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"currency\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"USD\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"purchase_context\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"custom\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": [{"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"merchant_details\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"name\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Acme Store\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"url\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://acme.example.com\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"country_code_iso2\""}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"US\""}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"product_details\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": [{"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"description\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Widget\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"unit_price\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"24.99\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"quantity\""}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"2"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}],"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }],"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"integration_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"full_checkout\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"callback_url\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://acme.example.com/return\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n"]}}}},"filename":"Python"},{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"21","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" resp"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" fetch"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://sandbox.api.prava.space/v1/sessions\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", {"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" method:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"POST\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" headers:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" Authorization:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Bearer sk_test_...\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"application/json\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" body:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" JSON"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"stringify"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" user_id:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_123\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" user_email:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"jane@example.com\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" total_amount:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"49.99\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" currency:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"USD\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" purchase_context:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" custom:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" [{"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" merchant_details:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"name:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Acme Store\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"url:"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://acme.example.com\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"country_code_iso2:"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"US\""}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" product_details:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" [{ "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"description:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Widget\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"unit_price:"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"24.99\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"quantity:"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":" 2"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }],"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }],"}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" integration_type:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"full_checkout\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" callback_url:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://acme.example.com/return\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }),"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n"]}}}},"filename":"JavaScript"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"21","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://sandbox.api.prava.space/v1/sessions"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer sk_test_...\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_id\": \"user_123\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user_email\": \"jane@example.com\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"total_amount\": \"40.00\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"currency\": \"USD\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"purchase_context\": {"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"custom\": [{"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"merchant_details\": { \"name\": \"Acme Store\", \"url\": \"https://acme.example.com\", \"country_code_iso2\": \"US\" },"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"product_details\": [{ \"description\": \"Monthly plan\", \"unit_price\": \"40.00\" }]"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }]"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"mandate_setup\": {"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"intent\": \"mandate_setup\","}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"recurring_frequency\": \"monthly\","}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"merchant_scope\": \"listed\","}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"max_charges\": 12"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL · Mandate setup"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"session_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"ses_9f2c...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"session_token\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"eyJhbGciOi...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"iframe_url\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://checkout.prava.space/s/ses_9f2c...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"order_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"ord_4a1b...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"expires_at\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2026-07-26T12:15:00Z\""}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"201 Standard"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"session_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"ses_7d1a...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"session_token\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"eyJhbGciOi...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"iframe_url\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://checkout.prava.space/s/ses_7d1a...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"order_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"ord_88c2...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"expires_at\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2026-07-26T12:15:00Z\""}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"201 Mandate setup"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"code\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"VAL_2001\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Validation failed\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"details\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"currency\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Unsupported currency code\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"400 Validation"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"3","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"code\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"AUTH_1001\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\"message\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Invalid API key\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"401 Unauthorized"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["user_id","user_email","total_amount","currency","purchase_context"],"properties":{"user_id":{"type":"string","minLength":1,"maxLength":255,"description":"Unique identifier for the customer in your system","isRequired":true,"uniqueKey":"user_id","typeLabel":"string"},"user_email":{"type":"string","format":"email","maxLength":320,"description":"Customer's email address","isRequired":true,"uniqueKey":"user_email","typeLabel":"string\u003cemail>"},"total_amount":{"type":"string","minLength":1,"pattern":"^\\d+(\\.\\d{1,2})?$","description":"Total order amount in decimal format (e.g. \"49.99\")","isRequired":true,"uniqueKey":"total_amount","typeLabel":"string"},"currency":{"type":"string","minLength":3,"maxLength":3,"pattern":"^[A-Z]{3}$","description":"ISO 4217 currency code — exactly 3 uppercase letters, and one of Prava's supported currencies (e.g. USD, EUR, GBP, INR) - other codes are rejected","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"purchase_context":{"oneOf":[{"type":"object","title":"Custom checkout","description":"What is being bought. Two modes — send exactly one: quote: true + quote_id (session built from an existing quote), or custom (describe the merchant and products yourself).","required":["custom"],"properties":{"custom":{"type":"array","minItems":1,"maxItems":1,"description":"Exactly one entry — multi-merchant sessions are not currently supported.","items":{"type":"object","required":["merchant_details","product_details"],"properties":{"merchant_details":{"type":"object","required":["name","url","country_code_iso2"],"properties":{"name":{"type":"string","minLength":1,"description":"Merchant display name","isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].merchant_details.name","typeLabel":"string"},"url":{"type":"string","format":"uri","pattern":"^https://","description":"Merchant website URL. Must use https - the URL is forwarded to Visa.","isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].merchant_details.url","typeLabel":"string\u003curi>"},"country_code_iso2":{"type":"string","minLength":2,"maxLength":2,"pattern":"^[A-Z]{2}$","description":"Two uppercase ISO 3166-1 country code (e.g. \"US\")","isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].merchant_details.country_code_iso2","typeLabel":"string"},"category_code":{"type":"string","maxLength":10,"description":"Merchant category code","uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].merchant_details.category_code","typeLabel":"string"},"category":{"type":"string","maxLength":100,"description":"Merchant category description","uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].merchant_details.category","typeLabel":"string"}},"isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].merchant_details","typeLabel":"object"},"product_details":{"type":"array","minItems":1,"items":{"type":"object","required":["description","unit_price"],"properties":{"description":{"type":"string","minLength":1,"description":"Product description","isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].product_details.items.[INDEX].description","typeLabel":"string"},"unit_price":{"type":"string","minLength":1,"description":"Unit price as a string (no fixed decimal format enforced)","isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].product_details.items.[INDEX].unit_price","typeLabel":"string"},"product_id":{"type":"string","maxLength":50,"description":"Your external product identifier","uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].product_details.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity of this product","uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].product_details.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].product_details.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].product_details","typeLabel":"object[]"},"effective_until_minutes":{"type":"integer","minimum":1,"default":15,"description":"How long the mandate remains effective, in minutes. Positive integer, no maximum.","uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX].effective_until_minutes","typeLabel":"integer"}},"uniqueKey":"purchase_context.oneOf.0.custom.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchase_context.oneOf.0.custom","typeLabel":"object[]"},"quote":{"type":"boolean","const":false,"description":"Omit or set to false when describing the purchase in custom.","uniqueKey":"purchase_context.oneOf.0.quote","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"purchase_context.oneOf.0","typeLabel":"Custom checkout · object"},{"type":"object","title":"Quote checkout","description":"What is being bought. Two modes — send exactly one: quote: true + quote_id (session built from an existing quote), or custom (describe the merchant and products yourself).","required":["quote","quote_id"],"properties":{"quote":{"type":"boolean","const":true,"description":"Build the session from an existing quote.","isRequired":true,"uniqueKey":"purchase_context.oneOf.1.quote","typeLabel":"boolean"},"quote_id":{"type":"string","minLength":1,"description":"The opaque public quote ID returned by quote creation (for example, qte_...). Do not send a merchant checkout-session ID. Merchant and product details come from the quote.","isRequired":true,"uniqueKey":"purchase_context.oneOf.1.quote_id","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"purchase_context.oneOf.1","typeLabel":"Quote checkout · object"}],"isRequired":true,"uniqueKey":"purchase_context","typeLabel":"Custom checkout · object | Quote checkout · object"},"user_phone":{"type":"string","description":"Customer's phone number","uniqueKey":"user_phone","typeLabel":"string"},"user_country_code_iso2":{"type":"string","minLength":2,"maxLength":2,"pattern":"^[A-Z]{2}$","description":"Customer's country — 2 uppercase ISO 3166-1 letters","uniqueKey":"user_country_code_iso2","typeLabel":"string"},"external_order_ref":{"type":"string","maxLength":255,"description":"Your external order reference ID","uniqueKey":"external_order_ref","typeLabel":"string"},"description":{"type":"string","description":"Human-readable description of the order","uniqueKey":"description","typeLabel":"string"},"integration_type":{"type":"string","enum":["full_checkout","embedding"],"default":"full_checkout","description":"How the card is collected. full_checkout = hosted redirect; embedding = mount the iframe via the SDK.","uniqueKey":"integration_type","typeLabel":"enum\u003cstring>"},"callback_url":{"type":"string","format":"uri","pattern":"^https://","maxLength":2048,"description":"For hosted checkout: the https URL Prava redirects the cardholder to after they finish. Optional for all integration types.","uniqueKey":"callback_url","typeLabel":"string\u003curi>"},"card":{"type":"object","description":"Pre-select a card. Send card_id OR vault_ref_id; if both are sent, card_id wins.","properties":{"card_id":{"type":"string","minLength":1,"description":"An existing enrolled card ID","uniqueKey":"card.card_id","typeLabel":"string"},"vault_ref_id":{"type":"string","format":"uuid","description":"A valid UUID referencing a vaulted card","uniqueKey":"card.vault_ref_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"card","typeLabel":"object"},"mandate_setup":{"type":"object","description":"Turns the session into mandate setup (authorize-only). Absent = standard checkout.","properties":{"intent":{"type":"string","enum":["checkout","mandate_setup"],"description":"mandate_setup = authorize-only (no charge/credentials). Defaults to mandate_setup when this block is present.","uniqueKey":"mandate_setup.intent","typeLabel":"enum\u003cstring>"},"recurring_frequency":{"type":"string","enum":["one_time","weekly","monthly","yearly"],"uniqueKey":"mandate_setup.recurring_frequency","typeLabel":"enum\u003cstring>"},"merchant_scope":{"type":"string","enum":["any","listed"],"description":"Recurring frequencies force listed; any with a recurring frequency returns 400 MANDATE_RECURRING_MUST_BE_SCOPED.","uniqueKey":"mandate_setup.merchant_scope","typeLabel":"enum\u003cstring>"},"valid_until":{"type":"string","format":"date-time","description":"Ignored for one_time (clamped to 7 days). Recurring horizons: yearly 5y, monthly 2y, weekly 1y.","uniqueKey":"mandate_setup.valid_until","typeLabel":"string\u003cdate-time>"},"max_charges":{"type":"integer","minimum":1,"default":1,"description":"Positive integer; per-charge cap is network-enforced.","uniqueKey":"mandate_setup.max_charges","typeLabel":"integer"}},"uniqueKey":"mandate_setup","typeLabel":"object"},"sandbox_simulation":{"type":"object","description":"Sandbox-only success simulation for quote-backed payment sessions. Fixed at session creation; production, custom checkout, and mandate setup reject this option. Normal card collection and verification still run. See Testing in Sandbox.","additionalProperties":false,"required":["stage","outcome"],"properties":{"stage":{"type":"string","const":"payment","isRequired":true,"uniqueKey":"sandbox_simulation.stage","typeLabel":"string"},"outcome":{"type":"string","const":"success","isRequired":true,"uniqueKey":"sandbox_simulation.outcome","typeLabel":"string"}},"uniqueKey":"sandbox_simulation","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"user_id":"\u003cstring>","user_email":"jsmith@example.com","total_amount":"\u003cstring>","currency":"\u003cstring>","purchase_context":{"custom":[{"merchant_details":{"name":"\u003cstring>","url":"\u003cstring>","country_code_iso2":"\u003cstring>","category_code":"\u003cstring>","category":"\u003cstring>"},"product_details":[{"description":"\u003cstring>","unit_price":"\u003cstring>","product_id":"\u003cstring>","quantity":1}],"effective_until_minutes":15}],"quote":false},"user_phone":"\u003cstring>","user_country_code_iso2":"\u003cstring>","external_order_ref":"\u003cstring>","description":"\u003cstring>","integration_type":"full_checkout","callback_url":"\u003cstring>","card":{"card_id":"\u003cstring>","vault_ref_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"mandate_setup":{"valid_until":"2023-11-07T05:31:56Z","max_charges":1}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"0d24efbe-e287-4ba6-8195-ef23c64dd96c":{"description":"Session created","content":{"application/json":{"schema":{"type":"object","properties":{"session_id":{"type":"string","description":"Unique session identifier","uniqueKey":"session_id","typeLabel":"string"},"session_token":{"type":"string","description":"JWT to authenticate client-side SDK operations within this session","uniqueKey":"session_token","typeLabel":"string"},"iframe_url":{"type":"string","description":"URL for the secure card collection surface","uniqueKey":"iframe_url","typeLabel":"string"},"order_id":{"type":"string","description":"Internal order identifier","uniqueKey":"order_id","typeLabel":"string"},"expires_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the session expires","uniqueKey":"expires_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"session_id":"\u003cstring>","session_token":"\u003cstring>","iframe_url":"\u003cstring>","order_id":"\u003cstring>","expires_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"497f0c95-46c3-42d6-af7c-b398a7824da8":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"d25451a1-dc6e-478b-aaf2-4ba3ba000cda":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"192012a3-767d-4f35-b571-0b174fee08e8":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"6b01941f-2909-43db-a400-9c2517b56ab5":{"description":"Error response","headers":{"X-Response-ID":{"description":"UUID correlation identifier for this response. Include it when contacting Prava support.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code (e.g. VAL_2001, AUTH_1001)","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","description":"Optional — included for validation errors to specify which fields failed","uniqueKey":"error.details","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"a3ff96f4-53cf-4165-90ca-358fd92bf2eb":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your secret key: sk_test_* (sandbox) or sk_live_* (production).","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"1a788c54-5158-4e62-a50a-5cffcb7e9814":{"url":"https://sandbox.api.prava.space","description":"Sandbox"},"e3d57ce5-db41-430c-9870-b9dbb2a64a99":{"url":"https://api.prava.space","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your secret key: sk_test_* (sandbox) or sk_live_* (production).","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your secret key: sk_test_* (sandbox) or sk_live_* (production).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"pravapayments","siteName":"Prava Payments Docs","title":"Create Session - Prava Payments Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T16:32:23.335Z","originalFileLocation":"api-reference/create-session.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=\"light\"}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 session for a customer and order — standard checkout or mandate setup.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prava Payments Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_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/pravapayments/58blChps3BZKEvne/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Session - Prava Payments Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a payment session for a customer and order — standard checkout or mandate setup.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prava Payments Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.prava.space/api-reference/create-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pravapayments.mintlify.site/images/brand-banner.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Session - Prava Payments Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a payment session for a customer and order — standard checkout or mandate setup.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pravapayments.mintlify.site/images/brand-banner.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pravapayments/58blChps3BZKEvne/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prava Payments Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9488\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.prava.space/api-reference/create-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.prava.space/#organization\",\"name\":\"Prava Payments Docs\",\"url\":\"https://docs.prava.space\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pravapayments/O4nkkn6wh7EpbsaN/logo/light.svg?fit=max\u0026auto=format\u0026n=O4nkkn6wh7EpbsaN\u0026q=85\u0026s=71d03047aba9f172d7f14809fdf5e948\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.prava.space#website\",\"name\":\"Prava Payments Docs\",\"url\":\"https://docs.prava.space\",\"publisher\":{\"@id\":\"https://docs.prava.space/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.prava.space/api-reference/create-session#webpage\",\"url\":\"https://docs.prava.space/api-reference/create-session\",\"name\":\"Create Session\",\"description\":\"Create a payment session for a customer and order — standard checkout or mandate setup.\",\"dateModified\":\"2026-11-13T16:32:23.335Z\",\"isPartOf\":{\"@id\":\"https://docs.prava.space#website\"},\"breadcrumb\":{\"@id\":\"https://docs.prava.space/api-reference/create-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.prava.space/api-reference/create-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Server-Side API\",\"item\":\"https://docs.prava.space/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Session\",\"item\":\"https://docs.prava.space/api-reference/create-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.prava.space/api-reference/create-session#apireference\",\"headline\":\"Create Session\",\"name\":\"Create Session\",\"description\":\"Create a payment session for a customer and order — standard checkout or mandate setup.\",\"url\":\"https://docs.prava.space/api-reference/create-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.prava.space/api-reference/create-session#webpage\"},\"image\":\"https://docs.prava.space/images/brand-banner.png\",\"dateModified\":\"2026-11-13T16:32:23.335Z\",\"publisher\":{\"@id\":\"https://docs.prava.space/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.prava.space#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prava Payments Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Prava Payments Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/create-session.md","siteName":"Prava Payments Docs","nav":{"global":null,"tabs":[{"tab":"Developer Guide","pages":[{"title":"Developer Guide","href":""}]},{"tab":"API Reference","groups":[{"group":"Server-Side API","pages":[{"title":"API Reference","description":"Server-side REST API for Prava Payments","icon":"server","href":"/api-reference/overview"},{"title":"Create Session","icon":"plus","openapi":"api-reference/openapi.json POST /v1/sessions","playground":"interactive","href":"/api-reference/create-session"},{"title":"Enroll Card","description":"Provision a card only, or run the complete card-and-passkey enrollment flow without creating a payment.","icon":"credit-card","openapi":"api-reference/openapi.json POST /v1/sessions/enroll-card","playground":"interactive","href":"/api-reference/enroll-card"},{"title":"Get Card Enrollment Status","icon":"rotate","openapi":"api-reference/openapi.json GET /v1/sessions/{sessionId}/status","playground":"interactive","href":"/api-reference/get-card-enrollment-status"},{"title":"Revoke Session","icon":"ban","openapi":"api-reference/openapi.json POST /v1/sessions/{id}/revoke","playground":"interactive","href":"/api-reference/revoke-session"},{"title":"List Cards","icon":"credit-card","openapi":"api-reference/openapi.json GET /v1/listCards","playground":"interactive","href":"/api-reference/list-cards"},{"title":"Delete Card","icon":"trash","openapi":"api-reference/openapi.json POST /v1/deleteCard","playground":"interactive","href":"/api-reference/delete-card"},{"title":"Set Default Card","icon":"star","openapi":"api-reference/openapi.json PATCH /v1/cards/{id}/default","playground":"interactive","href":"/api-reference/set-default-card"},{"title":"Get Payment Result","icon":"receipt","openapi":"api-reference/openapi.json GET /v1/sessions/{sessionId}/payment-result","playground":"interactive","href":"/api-reference/get-payment-result"},{"title":"Report Status","icon":"flag","openapi":"api-reference/openapi.json POST /v1/sessions/{sessionId}/report-status","playground":"interactive","href":"/api-reference/report-status"},{"title":"Charge a Mandate","icon":"bolt","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/charge","playground":"interactive","href":"/api-reference/mandate-charge"},{"title":"Report a Mandate Charge","icon":"clipboard-check","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/charges/{txnId}/report","playground":"interactive","href":"/api-reference/mandate-report"},{"title":"List Mandates","icon":"list","openapi":"api-reference/openapi.json GET /v1/mandates","playground":"interactive","href":"/api-reference/mandate-list"},{"title":"Get a Mandate","icon":"file-invoice","openapi":"api-reference/openapi.json GET /v1/mandates/{id}","playground":"interactive","href":"/api-reference/mandate-get"},{"group":"Mandate lifecycle","expanded":true,"pages":[{"title":"Pause a Mandate","icon":"sliders","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/pause","playground":"interactive","href":"/api-reference/mandate-lifecycle"},{"title":"Resume a Mandate","icon":"play","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/resume","playground":"interactive","href":"/api-reference/mandate-resume"},{"title":"Cancel a Mandate","icon":"ban","openapi":"api-reference/openapi.json POST /v1/mandates/{id}/cancel","playground":"interactive","href":"/api-reference/mandate-cancel"}]}]},{"group":"Webhooks API","pages":[{"title":"Webhooks API","icon":"bell","href":"/api-reference/webhooks/overview"},{"title":"List Event Types","icon":"list","openapi":"api-reference/openapi.json GET /v1/webhook-event-types","playground":"interactive","href":"/api-reference/webhooks/list-event-types"},{"group":"Endpoints","expanded":true,"pages":[{"title":"Create an Endpoint","icon":"plus","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints","playground":"interactive","href":"/api-reference/webhooks/create-endpoint"},{"title":"List Endpoints","icon":"list-ul","openapi":"api-reference/openapi.json GET /v1/webhook-endpoints","playground":"interactive","href":"/api-reference/webhooks/list-endpoints"},{"title":"Retrieve an Endpoint","icon":"eye","openapi":"api-reference/openapi.json GET /v1/webhook-endpoints/{endpointId}","playground":"interactive","href":"/api-reference/webhooks/get-endpoint"},{"title":"Update an Endpoint","icon":"pen","openapi":"api-reference/openapi.json PATCH /v1/webhook-endpoints/{endpointId}","playground":"interactive","href":"/api-reference/webhooks/update-endpoint"},{"title":"Delete an Endpoint","icon":"trash","openapi":"api-reference/openapi.json DELETE /v1/webhook-endpoints/{endpointId}","playground":"interactive","href":"/api-reference/webhooks/delete-endpoint"},{"title":"Verify an Endpoint","icon":"circle-check","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints/{endpointId}/verify","playground":"interactive","href":"/api-reference/webhooks/verify-endpoint"},{"title":"Send a Test Event","icon":"paper-plane","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints/{endpointId}/test","playground":"interactive","href":"/api-reference/webhooks/send-test-event"},{"title":"Rotate the Signing Secret","icon":"key","openapi":"api-reference/openapi.json POST /v1/webhook-endpoints/{endpointId}/rotate-secret","playground":"interactive","href":"/api-reference/webhooks/rotate-signing-secret"}]},{"group":"Deliveries","expanded":true,"pages":[{"title":"List Deliveries","icon":"clock-rotate-left","openapi":"api-reference/openapi.json GET /v1/webhook-endpoints/{endpointId}/deliveries","playground":"interactive","href":"/api-reference/webhooks/list-deliveries"},{"title":"Retrieve a Delivery","icon":"magnifying-glass","openapi":"api-reference/openapi.json GET /v1/webhook-deliveries/{deliveryId}","playground":"interactive","href":"/api-reference/webhooks/get-delivery"},{"title":"Replay a Delivery","icon":"rotate-right","openapi":"api-reference/openapi.json POST /v1/webhook-deliveries/{deliveryId}/replay","playground":"interactive","href":"/api-reference/webhooks/replay-delivery"}]},{"group":"Events","expanded":true,"pages":[{"title":"List Events","icon":"list","openapi":"api-reference/openapi.json GET /v1/events","playground":"interactive","href":"/api-reference/webhooks/list-events"},{"title":"Retrieve an Event","icon":"bolt","openapi":"api-reference/openapi.json GET /v1/events/{eventId}","playground":"interactive","href":"/api-reference/webhooks/get-event"}]}]},{"group":"Reference","pages":[{"title":"Errors","icon":"triangle-exclamation","href":"/api-reference/errors"},{"title":"Test Cards","icon":"credit-card","href":"/api-reference/test-cards"},{"title":"Testing in Sandbox","icon":"flask","href":"/api-reference/testing"}]}]},{"tab":"Concepts","pages":[{"title":"Concepts","href":"/concepts/payments"}]},{"tab":"Capabilities","pages":[{"title":"Capabilities","href":"/integration/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/developer-faq"}]}]},"basePath":"","title":"Create Session - Prava Payments Docs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}