Required if the parameter items is not provided.The total amount of the checkout.
string
Required if the parameter amount is provided.A lowercase ISO currency
code.
Currently supported currencies are: “dzd”.
string
default:"edahabia"
The payment method that will be used to pay the checkout. Currently supported
payment methods are: “edahabia”, “cib” and “chargily_app”. The customer can always change the payment method at the checkout page.When the payment method is “chargily_app”, a “qr_code_url” param will be returned in the response.
string
required
The URL where your customer will be redirected after a successful payment.
The URL where your customer will be redirected after a failed or canceled
payment.
string
The URL of your endpoint that will receive the webhook events sent by Chargily
Pay.
string
A description of the checkout. You can use this field to save a note about the
checkout.
string
The language of the checkout page, accepted values are: ‘ar’, ‘en’ or ‘fr’.
boolean
DEPRECATED, use chargily_pay_fees_allocation instead.A Boolean value indicates whether the Chargily Pay fees will be paid by you,
the merchant, or your customers.
string
Can be one of “customer”, “merchant” or “split”.Choose who is going to pay Chargily Pay fees (“Merchant” means you will pay the fees, “Customer” means the customer will pay the fees, “Split” means you will split the fees with the customer).
string
The shipping address of the customer for the checkout.
boolean
A Boolean value indicates whether the shipping address should be collected
from the customer.
integer
Prohibited if the parameter amount_discount is provided.A percentage discount that will be applied to the total amount of the
checkout.
integer
Prohibited if the parameter percentage_discount is provided.An amount discount that will be applied to the total amount of the checkout.
array
A Set of key-value pairs that can be used to store additional information
about the product.
Returns
If the request is successful, it returns a checkout object.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Chargily Pay Documentation","colors":{"primary":"#5801A2","light":"#12d1fa"},"logo":{"light":"https://mintcdn.com/chargily-78/IvLooWHoSWhCd-iT/logo/light.svg?fit=max\u0026auto=format\u0026n=IvLooWHoSWhCd-iT\u0026q=85\u0026s=54dd666d4c9300866f7484ebbb20261e","dark":"https://mintcdn.com/chargily-78/IvLooWHoSWhCd-iT/logo/dark.svg?fit=max\u0026auto=format\u0026n=IvLooWHoSWhCd-iT\u0026q=85\u0026s=0511d1af3e3499a94b36a75ee58e04b9","href":"http://dz.chargily.com/developer"},"favicon":"/favicon.ico","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://pay.chargily.net/test/api/v2"}},"footer":{"socials":{"github":"http://github.com/chargily","reddit":"http://reddit.com/u/chargily","telegram":"http://t.me/+653KV9zxIxAwNDY0"}},"seo":{"metatags":{"og:title":"Developer Documentation | Chargily for Developers | Chargily Algeria | Chargily","og:description":"APIs, SDKs, docs and open-source resources to integrate payments easily into any platform. Together, we’re building the future of fintech in Algeria.","og:image":"/images/meta-image.webp"},"indexing":"navigable"},"fonts":{"family":"Poppins"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chargily-78","hasAudioNarration":false,"actualSubdomain":"chargily-78","customDomains":["dev.chargily.com"],"gitSource":{"type":"github","owner":"chargilydev","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae91e5c490ed5cbb563f526:success","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":34},{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"Start The Integration","count":9},{"language":"default","tag":"Products","count":7},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Checkouts","count":6},{"language":"default","tag":"Customers","count":6},{"language":"default","tag":"Payment Links","count":6},{"language":"default","tag":"Prices","count":5},{"language":"default","tag":"The Full Guide","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"pay-v2/api-reference/checkouts/create","slug":"/pay-v2/api-reference/checkouts/create","pageMetadata":{"title":"Create a checkout","description":"Creates a new checkout.","api":"POST /checkouts","og:title":"Create a checkout | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","href":"/pay-v2/api-reference/checkouts/create"},"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: \"Creates a new checkout.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,multiple:true,id:`param-items`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Required if the parameters `,_jsx(_components.code,{children:`amount`}),` and `,_jsx(_components.code,{children:`currency`}),` are not provided.`]})}),_jsx(_components.p,{children:`The items are the products that are being sold.`}),_jsxs(Expandable,{title:`items`,children:[_jsx(ParamField,{body:`price`,type:`string`,required:true,id:`param-price`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/v2/api-reference/prices/price-object`,title:`Price`,children:`Price`}),`.`]})}),_jsx(ParamField,{body:`quantity`,type:`integer`,required:true,id:`param-quantity`,children:_jsx(_components.p,{children:`The quantity of the item.`})})]})]}),`\n`,_jsxs(ParamField,{body:`amount`,type:`integer`,id:`param-amount`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Required if the parameter `,_jsx(_components.code,{children:`items`}),` is not provided.`]})}),_jsx(_components.p,{children:`The total amount of the checkout.`})]}),`\n`,_jsxs(ParamField,{body:`currency`,type:`string`,id:`param-currency`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Required if the parameter `,_jsx(_components.code,{children:`amount`}),` is provided.`]})}),_jsxs(_components.p,{children:[`A lowercase `,_jsx(_components.a,{href:`https://www.iso.org/iso-4217-currency-codes.html`,title:`ISO currency code`,children:`ISO currency\ncode`}),`.\nCurrently supported currencies are: “dzd”.`]})]}),`\n`,_jsxs(ParamField,{body:`payment_method`,type:`string`,default:`edahabia`,id:`param-payment-method`,children:[_jsx(_components.p,{children:`The payment method that will be used to pay the checkout. Currently supported\npayment methods are: “edahabia”, “cib” and “chargily_app”. The customer can always change the payment method at the checkout page.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`When the payment method is “chargily_app”, a “qr_code_url” param will be returned in the response.`})})]}),`\n`,_jsx(ParamField,{body:`success_url`,type:`string`,required:true,id:`param-success-url`,children:_jsx(_components.p,{children:`The URL where your customer will be redirected after a successful payment.`})}),`\n`,_jsx(ParamField,{body:`customer_id`,type:`string`,id:`param-customer-id`,children:_jsxs(_components.p,{children:[`The ID of an existing `,_jsx(_components.a,{href:`/v2/api-reference/customers/customer-object`,title:`Customer`,children:`Customer`}),`.`]})}),`\n`,_jsx(ParamField,{body:`failure_url`,type:`string`,id:`param-failure-url`,children:_jsx(_components.p,{children:`The URL where your customer will be redirected after a failed or canceled\npayment.`})}),`\n`,_jsx(ParamField,{body:`webhook_endpoint`,type:`string`,id:`param-webhook-endpoint`,children:_jsx(_components.p,{children:`The URL of your endpoint that will receive the webhook events sent by Chargily\nPay.`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`A description of the checkout. You can use this field to save a note about the\ncheckout.`})}),`\n`,_jsx(ParamField,{body:`locale`,type:`string`,id:`param-locale`,children:_jsx(_components.p,{children:`The language of the checkout page, accepted values are: ‘ar’, ‘en’ or ‘fr’.`})}),`\n`,_jsxs(ResponseField,{name:`pass_fees_to_customer`,type:`boolean`,id:`param-pass-fees-to-customer`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`DEPRECATED, use chargily_pay_fees_allocation instead.`})}),_jsx(_components.p,{children:`A Boolean value indicates whether the Chargily Pay fees will be paid by you,\nthe merchant, or your customers.`})]}),`\n`,_jsxs(ResponseField,{name:`chargily_pay_fees_allocation`,type:`string`,id:`param-chargily-pay-fees-allocation`,children:[_jsx(_components.p,{children:`Can be one of “customer”, “merchant” or “split”.`}),_jsx(_components.p,{children:`Choose who is going to pay Chargily Pay fees (“Merchant” means you will pay the fees, “Customer” means the customer will pay the fees, “Split” means you will split the fees with the customer).`})]}),`\n`,_jsx(ParamField,{body:`shipping_address`,type:`string`,id:`param-shipping-address`,children:_jsx(_components.p,{children:`The shipping address of the customer for the checkout.`})}),`\n`,_jsx(ParamField,{body:`collect_shipping_address`,type:`boolean`,id:`param-collect-shipping-address`,children:_jsx(_components.p,{children:`A Boolean value indicates whether the shipping address should be collected\nfrom the customer.`})}),`\n`,_jsxs(ParamField,{body:`percentage_discount`,type:`integer`,id:`param-percentage-discount`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Prohibited if the parameter `,_jsx(_components.code,{children:`amount_discount`}),` is provided.`]})}),_jsx(_components.p,{children:`A percentage discount that will be applied to the total amount of the\ncheckout.`})]}),`\n`,_jsxs(ParamField,{body:`amount_discount`,type:`integer`,id:`param-amount-discount`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Prohibited if the parameter `,_jsx(_components.code,{children:`percentage_discount`}),` is provided.`]})}),_jsx(_components.p,{children:`An amount discount that will be applied to the total amount of the checkout.`})]}),`\n`,_jsx(ParamField,{body:`metadata`,type:`array`,id:`param-metadata`,children:_jsx(_components.p,{children:`A Set of key-value pairs that can be used to store additional information\nabout the product.`})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(_components.p,{children:`If the request is successful, it returns a checkout object.`})]})}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","description":"Creates a new checkout.","api":"POST /checkouts","og:title":"Create a checkout | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","href":"/pay-v2/api-reference/checkouts/create"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,multiple:true,id:`param-items`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Required if the parameters `,_jsx(_components.code,{children:`amount`}),` and `,_jsx(_components.code,{children:`currency`}),` are not provided.`]})}),_jsx(_components.p,{children:`The items are the products that are being sold.`}),_jsxs(Expandable,{title:`items`,children:[_jsx(ParamField,{body:`price`,type:`string`,required:true,id:`param-price`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/v2/api-reference/prices/price-object`,title:`Price`,children:`Price`}),`.`]})}),_jsx(ParamField,{body:`quantity`,type:`integer`,required:true,id:`param-quantity`,children:_jsx(_components.p,{children:`The quantity of the item.`})})]})]}),`\n`,_jsxs(ParamField,{body:`amount`,type:`integer`,id:`param-amount`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Required if the parameter `,_jsx(_components.code,{children:`items`}),` is not provided.`]})}),_jsx(_components.p,{children:`The total amount of the checkout.`})]}),`\n`,_jsxs(ParamField,{body:`currency`,type:`string`,id:`param-currency`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Required if the parameter `,_jsx(_components.code,{children:`amount`}),` is provided.`]})}),_jsxs(_components.p,{children:[`A lowercase `,_jsx(_components.a,{href:`https://www.iso.org/iso-4217-currency-codes.html`,title:`ISO currency code`,children:`ISO currency\ncode`}),`.\nCurrently supported currencies are: “dzd”.`]})]}),`\n`,_jsxs(ParamField,{body:`payment_method`,type:`string`,default:`edahabia`,id:`param-payment-method`,children:[_jsx(_components.p,{children:`The payment method that will be used to pay the checkout. Currently supported\npayment methods are: “edahabia”, “cib” and “chargily_app”. The customer can always change the payment method at the checkout page.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`When the payment method is “chargily_app”, a “qr_code_url” param will be returned in the response.`})})]}),`\n`,_jsx(ParamField,{body:`success_url`,type:`string`,required:true,id:`param-success-url`,children:_jsx(_components.p,{children:`The URL where your customer will be redirected after a successful payment.`})}),`\n`,_jsx(ParamField,{body:`customer_id`,type:`string`,id:`param-customer-id`,children:_jsxs(_components.p,{children:[`The ID of an existing `,_jsx(_components.a,{href:`/v2/api-reference/customers/customer-object`,title:`Customer`,children:`Customer`}),`.`]})}),`\n`,_jsx(ParamField,{body:`failure_url`,type:`string`,id:`param-failure-url`,children:_jsx(_components.p,{children:`The URL where your customer will be redirected after a failed or canceled\npayment.`})}),`\n`,_jsx(ParamField,{body:`webhook_endpoint`,type:`string`,id:`param-webhook-endpoint`,children:_jsx(_components.p,{children:`The URL of your endpoint that will receive the webhook events sent by Chargily\nPay.`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`A description of the checkout. You can use this field to save a note about the\ncheckout.`})}),`\n`,_jsx(ParamField,{body:`locale`,type:`string`,id:`param-locale`,children:_jsx(_components.p,{children:`The language of the checkout page, accepted values are: ‘ar’, ‘en’ or ‘fr’.`})}),`\n`,_jsxs(ResponseField,{name:`pass_fees_to_customer`,type:`boolean`,id:`param-pass-fees-to-customer`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`DEPRECATED, use chargily_pay_fees_allocation instead.`})}),_jsx(_components.p,{children:`A Boolean value indicates whether the Chargily Pay fees will be paid by you,\nthe merchant, or your customers.`})]}),`\n`,_jsxs(ResponseField,{name:`chargily_pay_fees_allocation`,type:`string`,id:`param-chargily-pay-fees-allocation`,children:[_jsx(_components.p,{children:`Can be one of “customer”, “merchant” or “split”.`}),_jsx(_components.p,{children:`Choose who is going to pay Chargily Pay fees (“Merchant” means you will pay the fees, “Customer” means the customer will pay the fees, “Split” means you will split the fees with the customer).`})]}),`\n`,_jsx(ParamField,{body:`shipping_address`,type:`string`,id:`param-shipping-address`,children:_jsx(_components.p,{children:`The shipping address of the customer for the checkout.`})}),`\n`,_jsx(ParamField,{body:`collect_shipping_address`,type:`boolean`,id:`param-collect-shipping-address`,children:_jsx(_components.p,{children:`A Boolean value indicates whether the shipping address should be collected\nfrom the customer.`})}),`\n`,_jsxs(ParamField,{body:`percentage_discount`,type:`integer`,id:`param-percentage-discount`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Prohibited if the parameter `,_jsx(_components.code,{children:`amount_discount`}),` is provided.`]})}),_jsx(_components.p,{children:`A percentage discount that will be applied to the total amount of the\ncheckout.`})]}),`\n`,_jsxs(ParamField,{body:`amount_discount`,type:`integer`,id:`param-amount-discount`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Prohibited if the parameter `,_jsx(_components.code,{children:`percentage_discount`}),` is provided.`]})}),_jsx(_components.p,{children:`An amount discount that will be applied to the total amount of the checkout.`})]}),`\n`,_jsx(ParamField,{body:`metadata`,type:`array`,id:`param-metadata`,children:_jsx(_components.p,{children:`A Set of key-value pairs that can be used to store additional information\nabout the product.`})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(_components.p,{children:`If the request is successful, it returns a checkout object.`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`33`,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:`33`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01hj5n7cqpaf0mt2d0xx85tgz8\"`}),_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:` \"entity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"checkout\"`}),_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:` \"livemode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500`}),_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:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dzd\"`}),_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:` \"fees\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"fees_on_merchant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"fees_on_customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"pass_fees_to_customer\"`}),_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:` \"chargily_pay_fees_allocation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_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:` \"locale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en\"`}),_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:` \"description\"`}),_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:` \"metadata\"`}),_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:` \"success_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://my-app.com/payments/success\"`}),_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:` \"failure_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://my-app.com/payments/failure\"`}),_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:` \"webhook_endpoint\"`}),_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:` \"payment_method\"`}),_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:` \"invoice_id\"`}),_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:` \"customer_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01hj150206g0jxnh5r2yvvdrna\"`}),_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:` \"payment_link_id\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1703144567`}),_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:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1703144567`}),_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:` \"shipping_address\"`}),_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:` \"collect_shipping_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"discount\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"percentage\"`}),_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:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount_without_discount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_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:` \"checkout_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pay.chargily.dz/test/checkouts/01hj5n7cqpaf0mt2d0xx85tgz8/pay\"`})]}),`\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","description":"Creates a new checkout.","api":"POST /checkouts","og:title":"Create a checkout | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","href":"/pay-v2/api-reference/checkouts/create"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Body parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Response","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=\"33\">\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\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"01hj5n7cqpaf0mt2d0xx85tgz8\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"entity\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"checkout\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"livemode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\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\">\"dzd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fees\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fees_on_merchant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fees_on_customer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"pass_fees_to_customer\"\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\"> \"chargily_pay_fees_allocation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"customer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pending\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"locale\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"en\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\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\"> \"metadata\"\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\"> \"success_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://my-app.com/payments/success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failure_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://my-app.com/payments/failure\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"webhook_endpoint\"\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\"> \"payment_method\"\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\"> \"invoice_id\"\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\"> \"customer_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"01hj150206g0jxnh5r2yvvdrna\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"payment_link_id\"\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\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1703144567\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1703144567\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"shipping_address\"\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\"> \"collect_shipping_address\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"discount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"percentage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">50\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:#116329;--shiki-dark:#9CDCFE\"> \"amount_without_discount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"checkout_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://pay.chargily.dz/test/checkouts/01hj5n7cqpaf0mt2d0xx85tgz8/pay\"\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":"/checkouts","servers":[{"url":"https://pay.chargily.net/test/api/v2"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"items":[{"type":"array","items":[{"type":"object","properties":{"price":[{"type":"string","description":"The ID of the Price .","required":true}],"quantity":[{"type":"integer","description":"The quantity of the item.","required":true}]}}],"description":"Required if the parameters `amount` and `currency` are not provided. The items are the products that are being sold."}],"amount":[{"type":"integer","description":"Required if the parameter `items` is not provided. The total amount of the checkout."}],"currency":[{"type":"string","description":"Required if the parameter `amount` is provided. A lowercase ISO currency code . Currently supported currencies are: “dzd”."}],"payment_method":[{"type":"string","description":"The payment method that will be used to pay the checkout. Currently supported payment methods are: “edahabia”, “cib” and “chargily_app”. The customer can always change the payment method at the checkout page. When the payment method is “chargily_app”, a “qr_code_url” param will be returned in the response."}],"success_url":[{"type":"string","description":"The URL where your customer will be redirected after a successful payment.","required":true}],"customer_id":[{"type":"string","description":"The ID of an existing Customer ."}],"failure_url":[{"type":"string","description":"The URL where your customer will be redirected after a failed or canceled payment."}],"webhook_endpoint":[{"type":"string","description":"The URL of your endpoint that will receive the webhook events sent by Chargily Pay."}],"description":[{"type":"string","description":"A description of the checkout. You can use this field to save a note about the checkout."}],"locale":[{"type":"string","description":"The language of the checkout page, accepted values are: ‘ar’, ‘en’ or ‘fr’."}],"shipping_address":[{"type":"string","description":"The shipping address of the customer for the checkout."}],"collect_shipping_address":[{"type":"boolean","description":"A Boolean value indicates whether the shipping address should be collected from the customer."}],"percentage_discount":[{"type":"integer","description":"Prohibited if the parameter `amount_discount` is provided. A percentage discount that will be applied to the total amount of the checkout."}],"amount_discount":[{"type":"integer","description":"Prohibited if the parameter `percentage_discount` is provided. An amount discount that will be applied to the total amount of the checkout."}],"metadata":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"A Set of key-value pairs that can be used to store additional information about the product."}]}}],"examples":{"example":{"value":{"items":[{"price":"\u003cstring>","quantity":123}],"amount":123,"currency":"\u003cstring>","payment_method":"\u003cstring>","success_url":"\u003cstring>","customer_id":"\u003cstring>","failure_url":"\u003cstring>","webhook_endpoint":"\u003cstring>","description":"\u003cstring>","locale":"\u003cstring>","shipping_address":"\u003cstring>","collect_shipping_address":true,"percentage_discount":123,"amount_discount":123,"metadata":[{}]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"pass_fees_to_customer":[{"type":"boolean","description":"DEPRECATED, use chargily_pay_fees_allocation instead. A Boolean value indicates whether the Chargily Pay fees will be paid by you, the merchant, or your customers."}],"chargily_pay_fees_allocation":[{"type":"string","description":"Can be one of “customer”, “merchant” or “split”. Choose who is going to pay Chargily Pay fees (“Merchant” means you will pay the fees, “Customer” means the customer will pay the fees, “Split” means you will split the fees with the customer)."}]}}],"examples":{"example":{"value":{"pass_fees_to_customer":true,"chargily_pay_fees_allocation":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"chargily-78","siteName":"Chargily Pay Documentation","title":"Create a checkout | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"Chargily Pay V2":{"href":"/pay-v2/api-reference/checkouts/create","matchLevel":0},"Chargily Pro V1":{"href":"/pro-v1/documentation","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-01-05T11:04:37.199Z","originalFileLocation":"pay-v2/api-reference/checkouts/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new checkout.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Chargily 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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a checkout | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"APIs, SDKs, docs and open-source resources to integrate payments easily into any platform. Together, we’re building the future of fintech in Algeria.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Chargily Pay Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chargily-78.mintlify.site/images/meta-image.webp\">\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 | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"APIs, SDKs, docs and open-source resources to integrate payments easily into any platform. Together, we’re building the future of fintech in Algeria.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chargily-78.mintlify.site/images/meta-image.webp\">\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/chargily-78/HpuciM5pKLD22xs-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Chargily Pay Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5801A2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pay-v2/api-reference/checkouts/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dev.chargily.com/#organization\",\"name\":\"Chargily Pay Documentation\",\"url\":\"https://dev.chargily.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chargily-78/IvLooWHoSWhCd-iT/logo/light.svg?fit=max\u0026auto=format\u0026n=IvLooWHoSWhCd-iT\u0026q=85\u0026s=54dd666d4c9300866f7484ebbb20261e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dev.chargily.com#website\",\"name\":\"Chargily Pay Documentation\",\"url\":\"https://dev.chargily.com\",\"publisher\":{\"@id\":\"https://dev.chargily.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create#webpage\",\"url\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create\",\"name\":\"Create a checkout\",\"description\":\"Creates a new checkout.\",\"dateModified\":\"2026-01-05T11:04:37.199Z\",\"isPartOf\":{\"@id\":\"https://dev.chargily.com#website\"},\"breadcrumb\":{\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Checkouts\",\"item\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/checkout-object\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a checkout\",\"item\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create#apireference\",\"headline\":\"Create a checkout\",\"name\":\"Create a checkout\",\"description\":\"Creates a new checkout.\",\"url\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create\",\"mainEntityOfPage\":{\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/checkouts/create#webpage\"},\"image\":\"https://dev.chargily.com/images/meta-image.webp\",\"dateModified\":\"2026-01-05T11:04:37.199Z\",\"publisher\":{\"@id\":\"https://dev.chargily.com/#organization\"},\"isPartOf\":{\"@id\":\"https://dev.chargily.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Chargily Pay Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Chargily Pay Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pay-v2/api-reference/checkouts/create.md","siteName":"Chargily Pay Documentation","nav":{"global":null,"versions":[{"version":"Chargily Pay V2","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/pay-v2/introduction"}]},{"anchor":"API Reference","icon":"link","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/pay-v2/api-reference/introduction"},{"title":"Authentication","href":"/pay-v2/api-reference/authentication"}]},{"group":"Balance","pages":[{"title":"The Balance object","href":"/pay-v2/api-reference/balance/balance-object"},{"title":"Retrieve balance","api":"GET /balance","href":"/pay-v2/api-reference/balance/retrieve-balance"}]},{"group":"Customers","pages":[{"title":"The Customer object","href":"/pay-v2/api-reference/customers/customer-object"},{"title":"Create a customer","api":"POST /customers","href":"/pay-v2/api-reference/customers/create"},{"title":"Update a customer","api":"POST /customers/{id}","href":"/pay-v2/api-reference/customers/update"},{"title":"Retrieve a customer","api":"GET /customers/{id}","href":"/pay-v2/api-reference/customers/retrieve"},{"title":"List all customers","api":"GET /customers","href":"/pay-v2/api-reference/customers/list"},{"title":"Delete a customer","api":"DELETE /customers/{id}","href":"/pay-v2/api-reference/customers/delete"}]},{"group":"Products","pages":[{"title":"The Product object","href":"/pay-v2/api-reference/products/product-object"},{"title":"Create a product","api":"POST /products","href":"/pay-v2/api-reference/products/create"},{"title":"Update a Product","api":"POST /products/{id}","href":"/pay-v2/api-reference/products/update"},{"title":"Retrieve a product","api":"GET /products/{id}","href":"/pay-v2/api-reference/products/retrieve"},{"title":"List all products","api":"GET /products","href":"/pay-v2/api-reference/products/list"},{"title":"Delete a product","api":"DELETE /products/{id}","href":"/pay-v2/api-reference/products/delete"},{"title":"Retrieve a products's prices","api":"GET /products/{id}/prices","href":"/pay-v2/api-reference/products/prices"}]},{"group":"Prices","pages":[{"title":"The Price object","href":"/pay-v2/api-reference/prices/price-object"},{"title":"Create a price","api":"POST /prices","href":"/pay-v2/api-reference/prices/create"},{"title":"Update a price","api":"POST /prices/{id}","href":"/pay-v2/api-reference/prices/update"},{"title":"Retrieve a price","api":"GET /prices/{id}","href":"/pay-v2/api-reference/prices/retrieve"},{"title":"List all prices","api":"GET /prices","href":"/pay-v2/api-reference/prices/list"}]},{"group":"Checkouts","pages":[{"title":"The Checkout object","description":"A Checkout is used to make your customers make a payment. Each time your customer wants to pay, you have to create a new Checkout.","href":"/pay-v2/api-reference/checkouts/checkout-object"},{"title":"Create a checkout","api":"POST /checkouts","href":"/pay-v2/api-reference/checkouts/create"},{"title":"Retrieve a checkout","description":"Retrieves all the information of an already-existing checkout by providing it's unique identifier (ID).","api":"GET /checkouts/{id}","href":"/pay-v2/api-reference/checkouts/retrieve"},{"title":"List all checkouts","api":"GET /checkouts","href":"/pay-v2/api-reference/checkouts/list"},{"title":"Retrieve a checkout's items","api":"GET /checkouts/{id}/items","href":"/pay-v2/api-reference/checkouts/items"},{"title":"Expire a checkout","api":"POST /checkouts/{id}/expire","href":"/pay-v2/api-reference/checkouts/expire"}]},{"group":"Payment Links","pages":[{"title":"The Payment Link object","href":"/pay-v2/api-reference/payment-links/payment-link-object"},{"title":"Create a payment link","api":"POST /payment-links","href":"/pay-v2/api-reference/payment-links/create"},{"title":"Update a Payment Link","api":"POST /payment-links/{id}","href":"/pay-v2/api-reference/payment-links/update"},{"title":"Retrieve a payment link","api":"GET /payment-links/{id}","href":"/pay-v2/api-reference/payment-links/retrieve"},{"title":"List all payment links","api":"GET /payment-links","href":"/pay-v2/api-reference/payment-links/list"},{"title":"Retrieve a payment link's items","api":"GET /payment-links/{id}/items","href":"/pay-v2/api-reference/payment-links/items"}]}]},{"anchor":"Community","icon":"telegram","href":"https://t.me/+653KV9zxIxAwNDY0"},{"anchor":"Live Support","icon":"whatsapp","href":"https://chargi.link/WaPay"},{"anchor":"Dashboard","icon":"gauge","href":"http://pay.chargily.com"}]},{"version":"Chargily Pro V1","pages":[{"title":"Chargily Pro V1","href":"/pro-v1/documentation"}]}]},"basePath":"","title":"Create a checkout | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","b0f84f53ff","2b790eda92"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","SectionHeading-DyxPTJti.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}