This endpoint creates an order, picks your store’s payment gateway and returns the checkout URL. Your website just needs to redirect the buyer to that URL.
Authentication: not required. The store is identified by shopUrl.
Amounts: in cents (the currency’s minor unit). 2500 is €25.00.
Errors are returned as HTTP 200 with redirectUrl: null. Checking the HTTP code isn’t enough: always make sure redirectUrl is set before redirecting.
Store URL exactly as registered in Hurry. It must match an active store exactly, character for character. If it’s missing or doesn’t match, no order is created.
You don’t need to send the buyer’s IP or User-Agent: Hurry takes them from the request itself. Pixel IDs and the option to show your own terms are read from the store settings.
If you repeat the call with the same externalId (page reload, double click, retry), you get the same order as long as it can still be charged through its gateway.If that gateway is no longer available (you’ve disabled it or the store no longer uses it), Hurry creates a new order routed with your current settings. Subsequent calls with the same externalId receive that new order.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hurry Pay Documentation","colors":{"primary":"#6c9bff","light":"#a8c3ff","dark":"#3c7aff"},"logo":{"light":"https://mintcdn.com/hurrypay/cj37hbsNCY7latxt/logo/hurrypay.png?fit=max\u0026auto=format\u0026n=cj37hbsNCY7latxt\u0026q=85\u0026s=ecac3c8d28c0259bdb72466353d412f0","dark":"https://mintcdn.com/hurrypay/cj37hbsNCY7latxt/logo/hurrypay.png?fit=max\u0026auto=format\u0026n=cj37hbsNCY7latxt\u0026q=85\u0026s=ecac3c8d28c0259bdb72466353d412f0"},"favicon":{"light":"https://mintcdn.com/hurrypay/k5OJMraVwMEnwCi1/images/favicon.png?fit=max\u0026auto=format\u0026n=k5OJMraVwMEnwCi1\u0026q=85\u0026s=c49435c186738d330928c1ab9ded80a5","dark":"https://mintcdn.com/hurrypay/k5OJMraVwMEnwCi1/images/favicon.png?fit=max\u0026auto=format\u0026n=k5OJMraVwMEnwCi1\u0026q=85\u0026s=c49435c186738d330928c1ab9ded80a5"},"navbar":{"links":[{"href":"mailto:team@hurrypayments.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.mintlify.com"}},"footer":{"socials":{"instagram":"https://www.instagram.com/hurrypayments","youtube":"https://www.youtube.com/@HurryPay"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"es","default":true,"href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hurrypay","hasAudioNarration":false,"actualSubdomain":"hurrypay","customDomains":["docs.hurrypayments.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-hurrypay-f813a403","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"720db064-41b9-457d-a980-2e47c9c23af5","liveDeploymentHistoryId":"6ae9ac9deda5fe10d8c0a0dc","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae9ac9deda5fe10d8c0a0dc"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae9ac9deda5fe10d8c0a0dc","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"es","tag":"Conexiones de pasarelas de pago","count":8},{"language":"en","tag":"Payment gateway connections","count":8},{"language":"es","tag":"Primeros pasos","count":5},{"language":"en","tag":"First steps","count":5},{"language":"es","tag":"Getting Started","count":4},{"language":"en","tag":"Getting started","count":4},{"language":"es","tag":"Marketing (SMS \u0026 Email)","count":3},{"language":"en","tag":"Marketing (SMS \u0026 email)","count":3},{"language":"es","tag":"API","count":2},{"language":"en","tag":"API","count":2},{"language":"es","tag":"Conexiones de píxeles","count":1},{"language":"en","tag":"Pixel connections","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/api/create-checkout","slug":"/en/api/create-checkout","pageMetadata":{"title":"Create a checkout","sidebarTitle":"Create checkout","description":"Create an order in Hurry and get the checkout URL to redirect the buyer to.","api":"POST https://app.hurrypayments.com/api/orders","playground":"none","authMethod":"none","icon":"shopping-cart","keywords":["api","orders","checkout","order","create order","redirectUrl","externalId","shopUrl"],"href":"/en/api/create-checkout"},"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 an order in Hurry and get the checkout URL to redirect the buyer to.\"\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`,hr:`hr`,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,ResponseField,Table,Warning}=_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(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This endpoint creates an order, picks your store’s payment gateway and returns the checkout URL. Your website just needs to redirect the buyer to that URL.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Authentication:`}),` not required. The store is identified by `,_jsx(_components.code,{children:`shopUrl`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amounts:`}),` in cents (the currency’s minor unit). `,_jsx(_components.code,{children:`2500`}),` is €25.00.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Errors are returned as `,_jsxs(_components.strong,{children:[`HTTP 200 with `,_jsx(_components.code,{children:`redirectUrl: null`})]}),`. Checking the HTTP code isn’t enough: always make sure `,_jsx(_components.code,{children:`redirectUrl`}),` is set before redirecting.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,required:true,id:`param-external-id`,children:_jsxs(_components.p,{children:[`ID of the cart or order in your system. It makes the call idempotent: if you repeat it with the same value, you get the same order. See `,_jsx(_components.a,{href:`#idempotency`,children:`Idempotency`}),`.`]})}),`\n`,_jsx(ParamField,{body:`shopUrl`,type:`string`,required:true,id:`param-shop-url`,children:_jsxs(_components.p,{children:[`Store URL exactly as registered in Hurry. It must match an active store `,_jsx(_components.strong,{children:`exactly`}),`, character for character. If it’s missing or doesn’t match, no order is created.`]})}),`\n`,_jsxs(ParamField,{body:`items`,type:`Item[]`,required:true,id:`param-items`,children:[_jsx(_components.p,{children:`Cart lines. Can’t be empty.`}),_jsxs(Expandable,{title:`Item properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Product name.`})}),_jsx(ParamField,{body:`unitAmount`,type:`integer`,required:true,id:`param-unit-amount`,children:_jsx(_components.p,{children:`Unit price in cents.`})}),_jsx(ParamField,{body:`quantity`,type:`integer`,required:true,id:`param-quantity`,children:_jsx(_components.p,{children:`Units.`})}),_jsx(ParamField,{body:`taxAmount`,type:`integer`,id:`param-tax-amount`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Total tax for the line`}),` in cents. It isn’t multiplied by `,_jsx(_components.code,{children:`quantity`}),`.`]})}),_jsx(ParamField,{body:`productId`,type:`string`,id:`param-product-id`,children:_jsx(_components.p,{children:`Product ID in your system.`})}),_jsx(ParamField,{body:`sku`,type:`string`,id:`param-sku`,children:_jsx(_components.p,{children:`Product SKU.`})}),_jsx(ParamField,{body:`imageUrl`,type:`string`,id:`param-image-url`,children:_jsx(_components.p,{children:`Product image shown at checkout.`})})]})]}),`\n`,_jsx(ParamField,{body:`currency`,default:`USD`,type:`string`,id:`param-currency`,children:_jsxs(_components.p,{children:[`Charge currency, in ISO 4217 format (`,_jsx(_components.code,{children:`EUR`}),`, `,_jsx(_components.code,{children:`USD`}),`…).`]})}),`\n`,_jsx(ParamField,{body:`showCurrency`,type:`string`,id:`param-show-currency`,children:_jsx(_components.p,{children:`Currency shown to the buyer. Only needed in multi-currency stores.`})}),`\n`,_jsx(ParamField,{body:`shippingOptionId`,type:`string`,id:`param-shipping-option-id`,children:_jsx(_components.p,{children:`Store shipping option. If you don’t send it, the first active option is used.`})}),`\n`,_jsx(ParamField,{body:`sourceUrl`,type:`string`,id:`param-source-url`,children:_jsxs(_components.p,{children:[`URL of the page the buyer was on. Used as `,_jsx(_components.code,{children:`event_source_url`}),` in the pixels’ server events.`]})}),`\n`,_jsx(ParamField,{body:`notes`,type:`string`,id:`param-notes`,children:_jsx(_components.p,{children:`Order notes.`})}),`\n`,_jsx(ParamField,{body:`logoUrl`,type:`string`,id:`param-logo-url`,children:_jsx(_components.p,{children:`Checkout logo. Only used if the store doesn’t have one configured.`})}),`\n`,_jsx(Heading,{level:`3`,id:`tracking-signals`,children:`Tracking signals`}),`\n`,_jsx(_components.p,{children:`All optional. Send them so your pixels’ server events attribute the sale correctly.`}),`\n`,_jsx(ParamField,{body:`fbc`,type:`string`,id:`param-fbc`,children:_jsxs(_components.p,{children:[`Meta `,_jsx(_components.code,{children:`_fbc`}),` cookie.`]})}),`\n`,_jsx(ParamField,{body:`fbp`,type:`string`,id:`param-fbp`,children:_jsxs(_components.p,{children:[`Meta `,_jsx(_components.code,{children:`_fbp`}),` cookie.`]})}),`\n`,_jsx(ParamField,{body:`visitorId`,type:`string`,id:`param-visitor-id`,children:_jsxs(_components.p,{children:[`Visitor ID (`,_jsx(_components.code,{children:`hy_vid`}),`). It’s the same `,_jsx(_components.code,{children:`external_id`}),` the pixel sends from the browser.`]})}),`\n`,_jsx(ParamField,{body:`ttc`,type:`string`,id:`param-ttc`,children:_jsx(_components.p,{children:`TikTok click ID.`})}),`\n`,_jsx(ParamField,{body:`ttp`,type:`string`,id:`param-ttp`,children:_jsxs(_components.p,{children:[`TikTok `,_jsx(_components.code,{children:`_ttp`}),` cookie.`]})}),`\n`,_jsx(ParamField,{body:`gclid`,type:`string`,id:`param-gclid`,children:_jsxs(_components.p,{children:[`Google Ads click ID (`,_jsx(_components.code,{children:`gclid`}),`, `,_jsx(_components.code,{children:`gcl_au`}),` or `,_jsx(_components.code,{children:`gcl_aw`}),`).`]})}),`\n`,_jsx(ParamField,{body:`epik`,type:`string`,id:`param-epik`,children:_jsxs(_components.p,{children:[`Pinterest click ID (`,_jsx(_components.code,{children:`_epik`}),` cookie).`]})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`You don’t need to send the buyer’s IP or User-Agent: Hurry takes them from the request itself. Pixel IDs and the option to show your own terms are read from the store settings.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`redirectUrl`,type:`string | null`,id:`param-redirect-url`,children:_jsxs(_components.p,{children:[`Checkout URL you must redirect the buyer to. It’s `,_jsx(_components.code,{children:`null`}),` if the order couldn’t be created.`]})}),`\n`,_jsx(ResponseField,{name:`orderId`,type:`string`,id:`param-order-id`,children:_jsx(_components.p,{children:`Order ID in Hurry.`})}),`\n`,_jsx(ResponseField,{name:`gateway`,type:`string`,id:`param-gateway`,children:_jsxs(_components.p,{children:[`Gateway used (`,_jsx(_components.code,{children:`STRIPE`}),`, `,_jsx(_components.code,{children:`SHOPIFY`}),`…). Only present with some gateways, such as Shopify Payments.`]})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Payment status: `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`paid`}),`, `,_jsx(_components.code,{children:`cancelled`}),`, `,_jsx(_components.code,{children:`refunded`}),` or `,_jsx(_components.code,{children:`fulfilled`}),`. Only present with some gateways.`]})}),`\n`,_jsx(ResponseField,{name:`checkoutUrl`,type:`string`,id:`param-checkout-url`,children:_jsxs(_components.p,{children:[`Same as `,_jsx(_components.code,{children:`redirectUrl`}),`. Only present with some gateways.`]})}),`\n`,_jsx(ResponseField,{name:`paymentSessionId`,type:`string`,id:`param-payment-session-id`,children:_jsx(_components.p,{children:`Payment session ID in Hurry. Only present with some gateways.`})}),`\n`,_jsx(ResponseField,{name:`externalPaymentSessionId`,type:`string`,id:`param-external-payment-session-id`,children:_jsx(_components.p,{children:`Payment session ID in the gateway. Only present with some gateways.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`The request responds `,_jsxs(_components.strong,{children:[`HTTP 200 with `,_jsx(_components.code,{children:`redirectUrl: null`})]}),` when:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`shopUrl`}),` is missing, doesn’t exist or the store is disabled.`]}),`\n`,_jsx(_components.li,{children:`The account is suspended.`}),`\n`,_jsxs(_components.li,{children:[`Charges are paused because the daily cap of `,_jsx(_components.a,{href:`/en/volume-routing`,children:`volume routing`}),` has been reached. They resume at 00:00.`]}),`\n`,_jsx(_components.li,{children:`The store has no active payment gateway.`}),`\n`,_jsxs(_components.li,{children:[`The body isn’t valid, for example with empty `,_jsx(_components.code,{children:`items`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The only request that returns an HTTP error is one that arrives `,_jsxs(_components.strong,{children:[`without `,_jsx(_components.code,{children:`externalId`})]}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`idempotency`,children:`Idempotency`}),`\n`,_jsxs(_components.p,{children:[`If you repeat the call with the same `,_jsx(_components.code,{children:`externalId`}),` (page reload, double click, retry), you get `,_jsx(_components.strong,{children:`the same order`}),` as long as it can still be charged through its gateway.`]}),`\n`,_jsxs(_components.p,{children:[`If that gateway is no longer available (you’ve disabled it or the store no longer uses it), Hurry creates a new order routed with your current settings. Subsequent calls with the same `,_jsx(_components.code,{children:`externalId`}),` receive that new order.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`amount-calculation`,children:`Amount calculation`}),`\n`,_jsx(CodeBlock,{filename:`Total`,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`total = Σ (unitAmount × quantity) + Σ taxAmount + shipping`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`In multi-currency stores, the amount is converted from `,_jsx(_components.code,{children:`showCurrency`}),` to `,_jsx(_components.code,{children:`currency`}),` at the day’s exchange rate plus the surcharge you’ve set on the store.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`order-statuses`,children:`Order statuses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Status`}),_jsx(_components.th,{style:{textAlign:`left`},children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PENDING`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`When the order is created.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`IN_PROGRESS`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`When the buyer opens the checkout page.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a checkout","sidebarTitle":"Create checkout","description":"Create an order in Hurry and get the checkout URL to redirect the buyer to.","api":"POST https://app.hurrypayments.com/api/orders","playground":"none","authMethod":"none","icon":"shopping-cart","keywords":["api","orders","checkout","order","create order","redirectUrl","externalId","shopUrl"],"href":"/en/api/create-checkout"}}},"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`,hr:`hr`,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,Table,Warning}=_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(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This endpoint creates an order, picks your store’s payment gateway and returns the checkout URL. Your website just needs to redirect the buyer to that URL.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Authentication:`}),` not required. The store is identified by `,_jsx(_components.code,{children:`shopUrl`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amounts:`}),` in cents (the currency’s minor unit). `,_jsx(_components.code,{children:`2500`}),` is €25.00.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Errors are returned as `,_jsxs(_components.strong,{children:[`HTTP 200 with `,_jsx(_components.code,{children:`redirectUrl: null`})]}),`. Checking the HTTP code isn’t enough: always make sure `,_jsx(_components.code,{children:`redirectUrl`}),` is set before redirecting.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,required:true,id:`param-external-id`,children:_jsxs(_components.p,{children:[`ID of the cart or order in your system. It makes the call idempotent: if you repeat it with the same value, you get the same order. See `,_jsx(_components.a,{href:`#idempotency`,children:`Idempotency`}),`.`]})}),`\n`,_jsx(ParamField,{body:`shopUrl`,type:`string`,required:true,id:`param-shop-url`,children:_jsxs(_components.p,{children:[`Store URL exactly as registered in Hurry. It must match an active store `,_jsx(_components.strong,{children:`exactly`}),`, character for character. If it’s missing or doesn’t match, no order is created.`]})}),`\n`,_jsxs(ParamField,{body:`items`,type:`Item[]`,required:true,id:`param-items`,children:[_jsx(_components.p,{children:`Cart lines. Can’t be empty.`}),_jsxs(Expandable,{title:`Item properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Product name.`})}),_jsx(ParamField,{body:`unitAmount`,type:`integer`,required:true,id:`param-unit-amount`,children:_jsx(_components.p,{children:`Unit price in cents.`})}),_jsx(ParamField,{body:`quantity`,type:`integer`,required:true,id:`param-quantity`,children:_jsx(_components.p,{children:`Units.`})}),_jsx(ParamField,{body:`taxAmount`,type:`integer`,id:`param-tax-amount`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Total tax for the line`}),` in cents. It isn’t multiplied by `,_jsx(_components.code,{children:`quantity`}),`.`]})}),_jsx(ParamField,{body:`productId`,type:`string`,id:`param-product-id`,children:_jsx(_components.p,{children:`Product ID in your system.`})}),_jsx(ParamField,{body:`sku`,type:`string`,id:`param-sku`,children:_jsx(_components.p,{children:`Product SKU.`})}),_jsx(ParamField,{body:`imageUrl`,type:`string`,id:`param-image-url`,children:_jsx(_components.p,{children:`Product image shown at checkout.`})})]})]}),`\n`,_jsx(ParamField,{body:`currency`,default:`USD`,type:`string`,id:`param-currency`,children:_jsxs(_components.p,{children:[`Charge currency, in ISO 4217 format (`,_jsx(_components.code,{children:`EUR`}),`, `,_jsx(_components.code,{children:`USD`}),`…).`]})}),`\n`,_jsx(ParamField,{body:`showCurrency`,type:`string`,id:`param-show-currency`,children:_jsx(_components.p,{children:`Currency shown to the buyer. Only needed in multi-currency stores.`})}),`\n`,_jsx(ParamField,{body:`shippingOptionId`,type:`string`,id:`param-shipping-option-id`,children:_jsx(_components.p,{children:`Store shipping option. If you don’t send it, the first active option is used.`})}),`\n`,_jsx(ParamField,{body:`sourceUrl`,type:`string`,id:`param-source-url`,children:_jsxs(_components.p,{children:[`URL of the page the buyer was on. Used as `,_jsx(_components.code,{children:`event_source_url`}),` in the pixels’ server events.`]})}),`\n`,_jsx(ParamField,{body:`notes`,type:`string`,id:`param-notes`,children:_jsx(_components.p,{children:`Order notes.`})}),`\n`,_jsx(ParamField,{body:`logoUrl`,type:`string`,id:`param-logo-url`,children:_jsx(_components.p,{children:`Checkout logo. Only used if the store doesn’t have one configured.`})}),`\n`,_jsx(Heading,{level:`3`,id:`tracking-signals`,children:`Tracking signals`}),`\n`,_jsx(_components.p,{children:`All optional. Send them so your pixels’ server events attribute the sale correctly.`}),`\n`,_jsx(ParamField,{body:`fbc`,type:`string`,id:`param-fbc`,children:_jsxs(_components.p,{children:[`Meta `,_jsx(_components.code,{children:`_fbc`}),` cookie.`]})}),`\n`,_jsx(ParamField,{body:`fbp`,type:`string`,id:`param-fbp`,children:_jsxs(_components.p,{children:[`Meta `,_jsx(_components.code,{children:`_fbp`}),` cookie.`]})}),`\n`,_jsx(ParamField,{body:`visitorId`,type:`string`,id:`param-visitor-id`,children:_jsxs(_components.p,{children:[`Visitor ID (`,_jsx(_components.code,{children:`hy_vid`}),`). It’s the same `,_jsx(_components.code,{children:`external_id`}),` the pixel sends from the browser.`]})}),`\n`,_jsx(ParamField,{body:`ttc`,type:`string`,id:`param-ttc`,children:_jsx(_components.p,{children:`TikTok click ID.`})}),`\n`,_jsx(ParamField,{body:`ttp`,type:`string`,id:`param-ttp`,children:_jsxs(_components.p,{children:[`TikTok `,_jsx(_components.code,{children:`_ttp`}),` cookie.`]})}),`\n`,_jsx(ParamField,{body:`gclid`,type:`string`,id:`param-gclid`,children:_jsxs(_components.p,{children:[`Google Ads click ID (`,_jsx(_components.code,{children:`gclid`}),`, `,_jsx(_components.code,{children:`gcl_au`}),` or `,_jsx(_components.code,{children:`gcl_aw`}),`).`]})}),`\n`,_jsx(ParamField,{body:`epik`,type:`string`,id:`param-epik`,children:_jsxs(_components.p,{children:[`Pinterest click ID (`,_jsx(_components.code,{children:`_epik`}),` cookie).`]})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`You don’t need to send the buyer’s IP or User-Agent: Hurry takes them from the request itself. Pixel IDs and the option to show your own terms are read from the store settings.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`redirectUrl`,type:`string | null`,id:`param-redirect-url`,children:_jsxs(_components.p,{children:[`Checkout URL you must redirect the buyer to. It’s `,_jsx(_components.code,{children:`null`}),` if the order couldn’t be created.`]})}),`\n`,_jsx(ResponseField,{name:`orderId`,type:`string`,id:`param-order-id`,children:_jsx(_components.p,{children:`Order ID in Hurry.`})}),`\n`,_jsx(ResponseField,{name:`gateway`,type:`string`,id:`param-gateway`,children:_jsxs(_components.p,{children:[`Gateway used (`,_jsx(_components.code,{children:`STRIPE`}),`, `,_jsx(_components.code,{children:`SHOPIFY`}),`…). Only present with some gateways, such as Shopify Payments.`]})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Payment status: `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`paid`}),`, `,_jsx(_components.code,{children:`cancelled`}),`, `,_jsx(_components.code,{children:`refunded`}),` or `,_jsx(_components.code,{children:`fulfilled`}),`. Only present with some gateways.`]})}),`\n`,_jsx(ResponseField,{name:`checkoutUrl`,type:`string`,id:`param-checkout-url`,children:_jsxs(_components.p,{children:[`Same as `,_jsx(_components.code,{children:`redirectUrl`}),`. Only present with some gateways.`]})}),`\n`,_jsx(ResponseField,{name:`paymentSessionId`,type:`string`,id:`param-payment-session-id`,children:_jsx(_components.p,{children:`Payment session ID in Hurry. Only present with some gateways.`})}),`\n`,_jsx(ResponseField,{name:`externalPaymentSessionId`,type:`string`,id:`param-external-payment-session-id`,children:_jsx(_components.p,{children:`Payment session ID in the gateway. Only present with some gateways.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`The request responds `,_jsxs(_components.strong,{children:[`HTTP 200 with `,_jsx(_components.code,{children:`redirectUrl: null`})]}),` when:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`shopUrl`}),` is missing, doesn’t exist or the store is disabled.`]}),`\n`,_jsx(_components.li,{children:`The account is suspended.`}),`\n`,_jsxs(_components.li,{children:[`Charges are paused because the daily cap of `,_jsx(_components.a,{href:`/en/volume-routing`,children:`volume routing`}),` has been reached. They resume at 00:00.`]}),`\n`,_jsx(_components.li,{children:`The store has no active payment gateway.`}),`\n`,_jsxs(_components.li,{children:[`The body isn’t valid, for example with empty `,_jsx(_components.code,{children:`items`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The only request that returns an HTTP error is one that arrives `,_jsxs(_components.strong,{children:[`without `,_jsx(_components.code,{children:`externalId`})]}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`idempotency`,children:`Idempotency`}),`\n`,_jsxs(_components.p,{children:[`If you repeat the call with the same `,_jsx(_components.code,{children:`externalId`}),` (page reload, double click, retry), you get `,_jsx(_components.strong,{children:`the same order`}),` as long as it can still be charged through its gateway.`]}),`\n`,_jsxs(_components.p,{children:[`If that gateway is no longer available (you’ve disabled it or the store no longer uses it), Hurry creates a new order routed with your current settings. Subsequent calls with the same `,_jsx(_components.code,{children:`externalId`}),` receive that new order.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`amount-calculation`,children:`Amount calculation`}),`\n`,_jsx(CodeBlock,{filename:`Total`,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`total = Σ (unitAmount × quantity) + Σ taxAmount + shipping`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`In multi-currency stores, the amount is converted from `,_jsx(_components.code,{children:`showCurrency`}),` to `,_jsx(_components.code,{children:`currency`}),` at the day’s exchange rate plus the surcharge you’ve set on the store.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`order-statuses`,children:`Order statuses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Status`}),_jsx(_components.th,{style:{textAlign:`left`},children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PENDING`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`When the order is created.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`IN_PROGRESS`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`When the buyer opens the checkout page.`})]})]})]}),`\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://app.hurrypayments.com/api/orders`}),_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:` \"externalId\": \"CART-abc123-9f1e\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"shopUrl\": \"mystore.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"EUR\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sourceUrl\": \"https://mystore.com/cart\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"items\": [`})}),`\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:` \"productId\": \"p1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"T-shirt\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unitAmount\": 2500,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"imageUrl\": \"https://mystore.com/img/t-shirt.jpg\"`})}),`\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:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`19`,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:`19`,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:` res`}),_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://app.hurrypayments.com/api/orders\"`}),_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:` { `}),_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`,_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:` externalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"CART-abc123-9f1e\"`}),_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:` shopUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mystore.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:` currency:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"EUR\"`}),_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:` items:`}),_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\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`productId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"p1\"`}),_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:` \"T-shirt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`unitAmount:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2500`}),_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`,_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`redirectUrl`}),_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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`href`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`redirectUrl`}),_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\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // The checkout couldn't be created: show an error or go back to the cart`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Order created`,numberOfLines:`4`,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:`4`,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:` \"redirectUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://app.hurrypayments.com/checkout/detail/v2?orderId=8f3c2a91-...\"`}),_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:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2a91-...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Error`,numberOfLines:`4`,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:`4`,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:` \"redirectUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\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 a checkout","sidebarTitle":"Create checkout","description":"Create an order in Hurry and get the checkout URL to redirect the buyer to.","api":"POST https://app.hurrypayments.com/api/orders","playground":"none","authMethod":"none","icon":"shopping-cart","keywords":["api","orders","checkout","order","create order","redirectUrl","externalId","shopUrl"],"href":"/en/api/create-checkout"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[{"title":"Tracking signals","slug":"tracking-signals","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Idempotency","slug":"idempotency","depth":2,"children":[]},{"title":"Amount calculation","slug":"amount-calculation","depth":2,"children":[]},{"title":"Order statuses","slug":"order-statuses","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://app.hurrypayments.com/api/orders\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\"> \"externalId\": \"CART-abc123-9f1e\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"shopUrl\": \"mystore.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"currency\": \"EUR\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"sourceUrl\": \"https://mystore.com/cart\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"items\": [\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\"> \"productId\": \"p1\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"T-shirt\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"unitAmount\": 2500,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"quantity\": 2,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"imageUrl\": \"https://mystore.com/img/t-shirt.jpg\"\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\"> }'\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=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> res\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://app.hurrypayments.com/api/orders\"\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>\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:#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\"> externalId:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"CART-abc123-9f1e\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> shopUrl:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"mystore.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\"> currency:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"EUR\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> items:\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>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">productId:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"p1\"\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\"> \"T-shirt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">unitAmount:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 2500\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:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">redirectUrl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> window\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">location\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">href\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">redirectUrl\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>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">else\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> // The checkout couldn't be created: show an error or go back to the cart\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":[]},"response":{"type":"ResponseExample","children":[{"filename":"Order created","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=\"4\">\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\"> \"redirectUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://app.hurrypayments.com/checkout/detail/v2?orderId=8f3c2a91-...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"orderId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"8f3c2a91-...\"\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":"Error","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=\"4\">\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\"> \"redirectUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"orderId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\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":[]}},"endpoint":{"title":"Create a checkout","path":"/api/orders","servers":[{"url":"https://app.hurrypayments.com"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"externalId":[{"type":"string","description":"ID of the cart or order in your system. It makes the call idempotent: if you repeat it with the same value, you get the same order. See Idempotency .","required":true}],"shopUrl":[{"type":"string","description":"Store URL exactly as registered in Hurry. It must match an active store exactly , character for character. If it’s missing or doesn’t match, no order is created.","required":true}],"items":[{"type":"array","items":[{"type":"object","properties":{"name":[{"type":"string","description":"Product name.","required":true}],"unitAmount":[{"type":"integer","description":"Unit price in cents.","required":true}],"quantity":[{"type":"integer","description":"Units.","required":true}],"taxAmount":[{"type":"integer","description":"Total tax for the line in cents. It isn’t multiplied by `quantity` ."}],"productId":[{"type":"string","description":"Product ID in your system."}],"sku":[{"type":"string","description":"Product SKU."}],"imageUrl":[{"type":"string","description":"Product image shown at checkout."}]}}],"description":"Cart lines. Can’t be empty.","required":true}],"currency":[{"type":"string","description":"Charge currency, in ISO 4217 format ( `EUR` , `USD` …)."}],"showCurrency":[{"type":"string","description":"Currency shown to the buyer. Only needed in multi-currency stores."}],"shippingOptionId":[{"type":"string","description":"Store shipping option. If you don’t send it, the first active option is used."}],"sourceUrl":[{"type":"string","description":"URL of the page the buyer was on. Used as `event_source_url` in the pixels’ server events."}],"notes":[{"type":"string","description":"Order notes."}],"logoUrl":[{"type":"string","description":"Checkout logo. Only used if the store doesn’t have one configured."}],"fbc":[{"type":"string","description":"Meta `_fbc` cookie."}],"fbp":[{"type":"string","description":"Meta `_fbp` cookie."}],"visitorId":[{"type":"string","description":"Visitor ID ( `hy_vid` ). It’s the same `external_id` the pixel sends from the browser."}],"ttc":[{"type":"string","description":"TikTok click ID."}],"ttp":[{"type":"string","description":"TikTok `_ttp` cookie."}],"gclid":[{"type":"string","description":"Google Ads click ID ( `gclid` , `gcl_au` or `gcl_aw` )."}],"epik":[{"type":"string","description":"Pinterest click ID ( `_epik` cookie)."}]}}],"examples":{"example":{"value":{"externalId":"\u003cstring>","shopUrl":"\u003cstring>","items":[{"name":"\u003cstring>","unitAmount":123,"quantity":123,"taxAmount":123,"productId":"\u003cstring>","sku":"\u003cstring>","imageUrl":"\u003cstring>"}],"currency":"\u003cstring>","showCurrency":"\u003cstring>","shippingOptionId":"\u003cstring>","sourceUrl":"\u003cstring>","notes":"\u003cstring>","logoUrl":"\u003cstring>","fbc":"\u003cstring>","fbp":"\u003cstring>","visitorId":"\u003cstring>","ttc":"\u003cstring>","ttp":"\u003cstring>","gclid":"\u003cstring>","epik":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"redirectUrl":[{"type":"object","properties":{},"description":"Checkout URL you must redirect the buyer to. It’s `null` if the order couldn’t be created."}],"orderId":[{"type":"string","description":"Order ID in Hurry."}],"gateway":[{"type":"string","description":"Gateway used ( `STRIPE` , `SHOPIFY` …). Only present with some gateways, such as Shopify Payments."}],"status":[{"type":"string","description":"Payment status: `pending` , `paid` , `cancelled` , `refunded` or `fulfilled` . Only present with some gateways."}],"checkoutUrl":[{"type":"string","description":"Same as `redirectUrl` . Only present with some gateways."}],"paymentSessionId":[{"type":"string","description":"Payment session ID in Hurry. Only present with some gateways."}],"externalPaymentSessionId":[{"type":"string","description":"Payment session ID in the gateway. Only present with some gateways."}]}}],"examples":{"example":{"value":{"redirectUrl":{},"orderId":"\u003cstring>","gateway":"\u003cstring>","status":"\u003cstring>","checkoutUrl":"\u003cstring>","paymentSessionId":"\u003cstring>","externalPaymentSessionId":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"hurrypay","siteName":"Hurry Pay Documentation","title":"Create a checkout - Hurry Pay Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/","matchLevel":3},"en":{"href":"/en/api/create-checkout","matchLevel":0}}},"lastModified":"2026-11-03T09:43:00.253Z","originalFileLocation":"en/api/create-checkout.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create an order in Hurry and get the checkout URL to redirect the buyer to.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hurry Pay Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hurrypay/nLDUqnGflMYCXVKJ/_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/hurrypay/nLDUqnGflMYCXVKJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hurrypay/nLDUqnGflMYCXVKJ/_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/hurrypay/nLDUqnGflMYCXVKJ/_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/hurrypay/nLDUqnGflMYCXVKJ/_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/hurrypay/nLDUqnGflMYCXVKJ/_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/hurrypay/nLDUqnGflMYCXVKJ/_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/hurrypay/nLDUqnGflMYCXVKJ/_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/hurrypay/nLDUqnGflMYCXVKJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a checkout - Hurry Pay Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an order in Hurry and get the checkout URL to redirect the buyer to.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hurry Pay Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hurrypayments.com/en/api/create-checkout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hurrypay.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Create+a+checkout\u0026amp;description=Create+an+order+in+Hurry+and+get+the+checkout+URL+to+redirect+the+buyer+to.\u0026amp;theme=1d712b5aa6aa74e7fdbb185e\u0026amp;signature=00469d5294874fff87b08aa01496b77e7153fe9ed326da6c833bb9f73933b21d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a checkout - Hurry Pay Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an order in Hurry and get the checkout URL to redirect the buyer to.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hurrypay.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Create+a+checkout\u0026amp;description=Create+an+order+in+Hurry+and+get+the+checkout+URL+to+redirect+the+buyer+to.\u0026amp;theme=1d712b5aa6aa74e7fdbb185e\u0026amp;signature=00469d5294874fff87b08aa01496b77e7153fe9ed326da6c833bb9f73933b21d\">\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/hurrypay/nLDUqnGflMYCXVKJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hurry Pay Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6c9bff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hurrypayments.com/en/api/create-checkout\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api/create-checkout.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hurrypayments.com/#organization\",\"name\":\"Hurry Pay Documentation\",\"url\":\"https://docs.hurrypayments.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hurrypay/cj37hbsNCY7latxt/logo/hurrypay.png?fit=max\u0026auto=format\u0026n=cj37hbsNCY7latxt\u0026q=85\u0026s=ecac3c8d28c0259bdb72466353d412f0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hurrypayments.com#website\",\"name\":\"Hurry Pay Documentation\",\"url\":\"https://docs.hurrypayments.com\",\"publisher\":{\"@id\":\"https://docs.hurrypayments.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hurrypayments.com/en/api/create-checkout#webpage\",\"url\":\"https://docs.hurrypayments.com/en/api/create-checkout\",\"name\":\"Create a checkout\",\"description\":\"Create an order in Hurry and get the checkout URL to redirect the buyer to.\",\"dateModified\":\"2026-11-03T09:43:00.253Z\",\"isPartOf\":{\"@id\":\"https://docs.hurrypayments.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hurrypayments.com/en/api/create-checkout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hurrypayments.com/en/api/create-checkout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://docs.hurrypayments.com/en/api/outgoing-webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a checkout\",\"item\":\"https://docs.hurrypayments.com/en/api/create-checkout\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hurrypayments.com/en/api/create-checkout#apireference\",\"headline\":\"Create a checkout\",\"name\":\"Create a checkout\",\"description\":\"Create an order in Hurry and get the checkout URL to redirect the buyer to.\",\"url\":\"https://docs.hurrypayments.com/en/api/create-checkout\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hurrypayments.com/en/api/create-checkout#webpage\"},\"dateModified\":\"2026-11-03T09:43:00.253Z\",\"keywords\":\"api, orders, checkout, order, create order, redirectUrl, externalId, shopUrl\",\"publisher\":{\"@id\":\"https://docs.hurrypayments.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hurrypayments.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hurry Pay Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Hurry Pay Documentation","nav":{"global":null,"languages":[{"language":"es","default":true,"pages":[{"title":"es","href":"/"}]},{"language":"en","pages":[{"group":"Getting started","pages":[{"title":"Introduction to Hurry Pay","sidebarTitle":"Introduction","icon":"house","mode":"wide","href":"/en"},{"title":"Who is Hurry for?","href":"/en/who-is-hurry-for"},{"title":"Pricing","sidebarTitle":"Pricing","icon":"tag","mode":"wide","href":"/en/pricing"},{"title":"First steps","href":"/en/quickstart"}]},{"group":"First steps","pages":[{"title":"Create an account","href":"/en/create-an-account"},{"title":"Enable 2FA","href":"/en/enable-2fa"},{"title":"Connect your online store","href":"/en/connect-your-store"},{"title":"Connect your payment gateway","href":"/en/connect-your-payment-gateway"},{"title":"Exit DEMO mode","href":"/en/exit-demo-mode"}]},{"group":"Payment gateway connections","pages":[{"title":"Connect Stripe","href":"/en/connect-stripe"},{"title":"Connect Shopify Payments","href":"/en/connect-shopify-payments"},{"title":"Connect Whop","href":"/en/connect-whop"},{"title":"Create a Stripe product for subscriptions","href":"/en/create-a-stripe-product"},{"title":"Connect SumUp","href":"/en/connect-sumup"},{"title":"Connect Square","href":"/en/connect-square"},{"title":"Volume routing","href":"/en/volume-routing"},{"title":"Payouts calendar","href":"/en/payouts-calendar"}]},{"group":"Pixel connections","pages":[{"title":"Connect a Meta pixel","href":"/en/connect-a-meta-pixel"}]},{"group":"Marketing (SMS \u0026 email)","pages":[{"title":"Create an email template","href":"/en/create-an-email-template"},{"title":"Create an SMS template","href":"/en/create-an-sms-template"},{"title":"Create an automation","href":"/en/create-an-automation"}]},{"title":"Support and bug reports","href":"/en/support-and-bug-reports"},{"title":"Affiliate program","href":"/en/affiliate-program"},{"title":"Collaborators and sub-accounts","href":"/en/collaborators-and-subaccounts"},{"title":"Connect with AI (MCP server)","sidebarTitle":"Connect with AI (MCP)","icon":"bot","tag":"NEW","href":"/en/connect-with-ai-mcp"},{"title":"Telegram notifications","sidebarTitle":"Telegram notifications","icon":"send","tag":"NEW","href":"/en/telegram-notifications"},{"group":"API","pages":[{"title":"Outgoing webhooks","description":"Receive a signed JSON POST in your system every time an order is paid or shipped, a charge fails, a refund is recorded or a dispute comes in.","icon":"satellite-dish","href":"/en/api/outgoing-webhooks"},{"title":"Create a checkout","sidebarTitle":"Create checkout","api":"POST https://app.hurrypayments.com/api/orders","playground":"none","icon":"shopping-cart","href":"/en/api/create-checkout"}]}]}]},"basePath":"","title":"Create a checkout - Hurry Pay Documentation","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js"]}