This endpoint creates a checkout for the authenticated user based on the provided data. It supports
promotional codes and can handle both one-time and recurring payments. The product can be configured
in one of two mutually exclusive forms:
Legacy flat form: a product_code directly, or the traditional combination of product_type,
country_id, and product_protocol, with a top-level quantity.
Multi-location form: a single line_items entry carrying its own product type, billing cycle,
quantity, and per-location service_fulfillment_filter.
Important considerations
If product_code is provided alongside product_type/country_id/product_protocol, their values must match the actual product attributes.
API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and invoice_url points at its hosted page.
Content type for the request body as application/json.
Body
application/json
The data needed to create the checkout.
country_id
string
An ISO country code used for region-specific datacenter or ISP products.
cycle_interval
enum<string>
default:month
The billing interval for recurring purchases.
Available options:
year,
month,
week,
day
cycle_interval_count
integer
The number of intervals for a recurring cycle (e.g. 1 month, 2 months, etc.).
line_items
object[]
Multi-location form: a list containing exactly one line item that carries its own product
type, billing cycle, quantity, and optional per-location filter. Mutually exclusive with
the top-level product_code, product_type, country_id, product_protocol, cycle_interval,
cycle_interval_count, quantity, and service_fulfillment_filter fields (promotional_code
remains top-level).
Show child attributes
product_code
string
A direct product code (e.g. "datacenter_us"). If this is provided, you do not need product_type, country_id, or product_protocol.
product_protocol
enum<string>
default:ipv4
The protocol of the product.
Available options:
ipv4,
ipv6,
dual
product_type
enum<string>
The type of product to purchase (if product_code is not used).
Available options:
datacenter,
isp,
residential,
mobile
promotional_code
string
A promotional code to apply a discount to the checkout.
quantity
integer
The quantity of the product to purchase. Required for the legacy flat form (the line_items form uses item_quantity instead).
service_fulfillment_filter
object
Legacy single-object filter applied to the whole service (e.g. {"asn_id": 7018}), pinned
to the product's country. For multi-location allocation use line_items instead. asn_id
requires an account permission; insufficient stock matching the filter rejects with 422.
Response
201 - application/json
Successfully created a checkout. Depending on the remaining invoice amount, it may already be paid by credit, or you may need to complete payment at the returned invoice URL.
data
object
Show child attributes
message
string
Success message.
Example:
"Successfully created checkout and paid with credit. Your service will be provisioned shortly."
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Byteful Documentation","colors":{"primary":"#5547eb","light":"#a192ec","dark":"#5547eb"},"logo":{"light":"https://ping-proxies-strapi.ams3.digitaloceanspaces.com/public/uploads/ping_logo_b83f7f9c6b.webp","dark":"https://ping-proxies-strapi.ams3.cdn.digitaloceanspaces.com/public/uploads/byteful-white-logo.png"},"favicon":"https://mintcdn.com/pingproxies/jDaVCOuDPVpv6QiC/favicon.png?fit=max\u0026auto=format\u0026n=jDaVCOuDPVpv6QiC\u0026q=85\u0026s=5387ba98ccfda681a607c13a9a178666","navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"},{"href":"mailto:[email protected]","label":"Developer Help"}]},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pingproxies","hasAudioNarration":false,"actualSubdomain":"pingproxies","customDomains":["documentation.byteful.com"],"gitSource":{"type":"github","owner":"trybyteful","repo":"ping-proxies-public-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af628772605b19aec5efc96","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Documentation","count":147},{"language":"default","tag":"API Reference","count":53},{"language":"default","tag":"API Introduction","count":35},{"language":"default","tag":"Integrations","count":23},{"language":"default","tag":"Core Objects","count":17},{"language":"default","tag":"Explainers","count":9},{"language":"default","tag":"Mobile Proxies","count":7},{"language":"default","tag":"Residential Proxies","count":7},{"language":"default","tag":"Getting Started","count":6},{"language":"default","tag":"Trust \u0026 Safety","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body img:not(#navbar *){border-radius:16px}.code-tag{display:inline-block;padding:1px 5px;border-radius:4px;font-size:0.75em;font-weight:500;font-family:ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace}.code-tag.success{background:#d1fae5;color:#065f46}.code-tag.error{background:#fee2e2;color:#991b1b}"}],"page":{"pagePath":"api-reference/checkout/create-checkout","slug":"/api-reference/checkout/create-checkout","pageMetadata":{"openapi":"post /public/user/checkout/create","title":"Create Checkout","description":"This endpoint creates a checkout for the authenticated user based on the provided data. It supports\npromotional codes and can handle both one-time and recurring payments. The product can be configured\nin one of two mutually exclusive forms:\n- Legacy flat form: a `product_code` directly, or the traditional combination of `product_type`,\n `country_id`, and `product_protocol`, with a top-level `quantity`.\n- Multi-location form: a single `line_items` entry carrying its own product type, billing cycle,\n quantity, and per-location `service_fulfillment_filter`.\n\n**Important considerations**\n- If `product_code` is provided alongside `product_type`/`country_id`/`product_protocol`, their values must match the actual product attributes.\n- API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and `invoice_url` points at its hosted page.\n\n**Example: multi-location checkout (line_items form)**\n```json\n{\n \"line_items\": [\n {\n \"product_type\": \"isp\",\n \"item_quantity\": 5,\n \"cycle_interval\": \"month\",\n \"cycle_interval_count\": 1,\n \"service_fulfillment_filter\": [\n {\"country_id\": \"us\", \"quantity\": 2},\n {\"country_id\": \"gb\", \"quantity\": 2}\n ]\n }\n ],\n \"promotional_code\": \"PROMOCODEHERE\"\n}\n```\n","href":"/api-reference/checkout/create-checkout"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"This endpoint creates a checkout for the authenticated user based on the provided data. It supports\\npromotional codes and can handle both one-time and recurring payments. The product can be configured\\nin one of two mutually exclusive forms:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Legacy flat form: a \", _jsx(_components.code, {\n children: \"product_code\"\n }), \" directly, or the traditional combination of \", _jsx(_components.code, {\n children: \"product_type\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"country_id\"\n }), \", and \", _jsx(_components.code, {\n children: \"product_protocol\"\n }), \", with a top-level \", _jsx(_components.code, {\n children: \"quantity\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Multi-location form: a single \", _jsx(_components.code, {\n children: \"line_items\"\n }), \" entry carrying its own product type, billing cycle,\\nquantity, and per-location \", _jsx(_components.code, {\n children: \"service_fulfillment_filter\"\n }), \".\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Important considerations\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"If \", _jsx(_components.code, {\n children: \"product_code\"\n }), \" is provided alongside \", _jsx(_components.code, {\n children: \"product_type\"\n }), \"/\", _jsx(_components.code, {\n children: \"country_id\"\n }), \"/\", _jsx(_components.code, {\n children: \"product_protocol\"\n }), \", their values must match the actual product attributes.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and \", _jsx(_components.code, {\n children: \"invoice_url\"\n }), \" points at its hosted page.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Example: multi-location checkout (line_items form)\"\n })\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"15\",\n language: \"json\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"json\",\n children: _jsxs(_components.code, {\n language: \"json\",\n numberOfLines: \"15\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"{\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"line_items\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": [\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"product_type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"isp\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"item_quantity\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"5\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"cycle_interval\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"month\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"cycle_interval_count\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"1\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"service_fulfillment_filter\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": [\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"country_id\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"us\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"quantity\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"2\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"},\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"country_id\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"gb\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"quantity\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"2\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"}\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" ]\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" }\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" ],\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"promotional_code\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"PROMOCODEHERE\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"}\"\n })\n }), \"\\n\"]\n })\n })\n })]\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};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /public/user/checkout/create","title":"Create Checkout","description":"This endpoint creates a checkout for the authenticated user based on the provided data. It supports\npromotional codes and can handle both one-time and recurring payments. The product can be configured\nin one of two mutually exclusive forms:\n- Legacy flat form: a `product_code` directly, or the traditional combination of `product_type`,\n `country_id`, and `product_protocol`, with a top-level `quantity`.\n- Multi-location form: a single `line_items` entry carrying its own product type, billing cycle,\n quantity, and per-location `service_fulfillment_filter`.\n\n**Important considerations**\n- If `product_code` is provided alongside `product_type`/`country_id`/`product_protocol`, their values must match the actual product attributes.\n- API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and `invoice_url` points at its hosted page.\n\n**Example: multi-location checkout (line_items form)**\n```json\n{\n \"line_items\": [\n {\n \"product_type\": \"isp\",\n \"item_quantity\": 5,\n \"cycle_interval\": \"month\",\n \"cycle_interval_count\": 1,\n \"service_fulfillment_filter\": [\n {\"country_id\": \"us\", \"quantity\": 2},\n {\"country_id\": \"gb\", \"quantity\": 2}\n ]\n }\n ],\n \"promotional_code\": \"PROMOCODEHERE\"\n}\n```\n","href":"/api-reference/checkout/create-checkout"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/pingproxies/7505d9d366ea757e/ga.js"],"openApiReferenceData":{"operation":{"tags":["Checkout"],"summary":"Create Checkout","description":"This endpoint creates a checkout for the authenticated user based on the provided data. It supports\npromotional codes and can handle both one-time and recurring payments. The product can be configured\nin one of two mutually exclusive forms:\n- Legacy flat form: a `product_code` directly, or the traditional combination of `product_type`,\n `country_id`, and `product_protocol`, with a top-level `quantity`.\n- Multi-location form: a single `line_items` entry carrying its own product type, billing cycle,\n quantity, and per-location `service_fulfillment_filter`.\n\n**Important considerations**\n- If `product_code` is provided alongside `product_type`/`country_id`/`product_protocol`, their values must match the actual product attributes.\n- API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and `invoice_url` points at its hosted page.\n\n**Example: multi-location checkout (line_items form)**\n```json\n{\n \"line_items\": [\n {\n \"product_type\": \"isp\",\n \"item_quantity\": 5,\n \"cycle_interval\": \"month\",\n \"cycle_interval_count\": 1,\n \"service_fulfillment_filter\": [\n {\"country_id\": \"us\", \"quantity\": 2},\n {\"country_id\": \"gb\", \"quantity\": 2}\n ]\n }\n ],\n \"promotional_code\": \"PROMOCODEHERE\"\n}\n```\n","parameters":["8544d438-4f02-4898-bc13-f535867114d7"],"requestBody":"f4895a8d-af5b-4524-ad2b-9a341d692dcd","responses":{"201":"f6ce9bba-b7cd-453f-b7b6-1c4e1f430b57"},"security":["0d1b881a-9c48-4c40-ba9a-1219a4eaf03a"],"x-codegen-request-body-name":"body","method":"post","type":"path","servers":["6d5ab438-f389-48e8-a5ec-97fc91d8ff6b"],"path":"/public/user/checkout/create","baseUrlOptions":["https://api.byteful.com/1.0/"],"title":"Create Checkout","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8544d438-4f02-4898-bc13-f535867114d7":{"name":"Content-Type","in":"header","description":"Content type for the request body as application/json.","required":true,"schema":{"type":"string","default":"application/json","isRequired":true,"description":"Content type for the request body as application/json.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"description":"The data needed to create the checkout.","content":{"application/json":{"schema":{"type":"object","properties":{"country_id":{"type":"string","description":"An ISO country code used for region-specific datacenter or ISP products.","uniqueKey":"country_id","typeLabel":"string"},"cycle_interval":{"type":"string","description":"The billing interval for recurring purchases.","default":"month","enum":["year","month","week","day"],"uniqueKey":"cycle_interval","typeLabel":"enum\u003cstring>"},"cycle_interval_count":{"type":"integer","description":"The number of intervals for a recurring cycle (e.g. 1 month, 2 months, etc.).","uniqueKey":"cycle_interval_count","typeLabel":"integer"},"line_items":{"type":"array","description":"Multi-location form: a list containing exactly one line item that carries its own product\ntype, billing cycle, quantity, and optional per-location filter. Mutually exclusive with\nthe top-level product_code, product_type, country_id, product_protocol, cycle_interval,\ncycle_interval_count, quantity, and service_fulfillment_filter fields (promotional_code\nremains top-level).\n","items":{"required":["item_quantity","product_type"],"type":"object","properties":{"item_quantity":{"type":"integer","description":"The quantity of the product to purchase.","example":5,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].item_quantity","typeLabel":"integer"},"product_type":{"type":"string","example":"isp","enum":["datacenter","isp","residential","mobile"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].product_type","typeLabel":"enum\u003cstring>"},"cycle_interval":{"type":"string","example":"month","default":"month","enum":["year","month","week","day"],"uniqueKey":"line_items.items.[INDEX].cycle_interval","typeLabel":"enum\u003cstring>"},"cycle_interval_count":{"type":"integer","example":1,"uniqueKey":"line_items.items.[INDEX].cycle_interval_count","typeLabel":"integer"},"service_fulfillment_filter":{"type":"array","description":"Per-IP products (isp / datacenter) only. Entries are {country_id, quantity, [asn_id]};\nquantities are positive and may sum to less than item_quantity — the remainder is\nfulfilled from random locations. A country may repeat only when refinements differ\n(identical entries must be merged). Refinements beyond country_id/quantity (e.g.\nasn_id) require an account permission, and the JSON-encoded filter is capped at 450\ncharacters. Countries not offered for the product, and stock shortages (including\nrefined pools), reject with 422.\n","items":{"type":"object","properties":{"asn_id":{"type":"integer","example":7018,"uniqueKey":"line_items.items.[INDEX].service_fulfillment_filter.items.[INDEX].asn_id","typeLabel":"integer"},"country_id":{"type":"string","example":"gb","uniqueKey":"line_items.items.[INDEX].service_fulfillment_filter.items.[INDEX].country_id","typeLabel":"string"},"quantity":{"type":"integer","example":3,"uniqueKey":"line_items.items.[INDEX].service_fulfillment_filter.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"line_items.items.[INDEX].service_fulfillment_filter.items.[INDEX]","typeLabel":"object"},"uniqueKey":"line_items.items.[INDEX].service_fulfillment_filter","typeLabel":"object[]"}},"uniqueKey":"line_items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"line_items","typeLabel":"object[]"},"product_code":{"type":"string","description":"A direct product code (e.g. \"datacenter_us\"). If this is provided, you do not need `product_type`, `country_id`, or `product_protocol`.","uniqueKey":"product_code","typeLabel":"string"},"product_protocol":{"type":"string","description":"The protocol of the product.","default":"ipv4","enum":["ipv4","ipv6","dual"],"uniqueKey":"product_protocol","typeLabel":"enum\u003cstring>"},"product_type":{"type":"string","description":"The type of product to purchase (if `product_code` is not used).","enum":["datacenter","isp","residential","mobile"],"uniqueKey":"product_type","typeLabel":"enum\u003cstring>"},"promotional_code":{"type":"string","description":"A promotional code to apply a discount to the checkout.","uniqueKey":"promotional_code","typeLabel":"string"},"quantity":{"type":"integer","description":"The quantity of the product to purchase. Required for the legacy flat form (the line_items form uses item_quantity instead).","uniqueKey":"quantity","typeLabel":"integer"},"service_fulfillment_filter":{"type":"object","properties":{},"description":"Legacy single-object filter applied to the whole service (e.g. {\"asn_id\": 7018}), pinned\nto the product's country. For multi-location allocation use line_items instead. asn_id\nrequires an account permission; insufficient stock matching the filter rejects with 422.\n","uniqueKey":"service_fulfillment_filter","typeLabel":"object"}},"example":{"cycle_interval":"month","cycle_interval_count":1,"product_code":"isp_us","promotional_code":"PROMOCODEHERE","quantity":5},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"cycle_interval":"month","cycle_interval_count":1,"product_code":"isp_us","promotional_code":"PROMOCODEHERE","quantity":5}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"f6ce9bba-b7cd-453f-b7b6-1c4e1f430b57":{"description":"Successfully created a checkout. Depending on the remaining invoice amount, it may already be paid by credit, or you may need to complete payment at the returned invoice URL.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"created":{"type":"array","description":"A list of service IDs created during checkout (usually contains only one).","example":["API-1234-5678"],"items":{"type":"string","uniqueKey":"data.created.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.created","typeLabel":"string[]"},"invoice_is_paid":{"type":"boolean","description":"Indicates whether the invoice is already paid.","example":true,"uniqueKey":"data.invoice_is_paid","typeLabel":"boolean"},"invoice_url":{"type":"string","description":"Hosted Stripe URL of the paid invoice (null if payment is still pending).","example":"https://invoice.stripe.com/i/acct_1H7dAB2BUlqim5l/test_123","uniqueKey":"data.invoice_url","typeLabel":"string"},"mobile_ledger_created":{"type":"array","description":"A list of mobile ledger entries created (may be empty).","example":[],"items":{"type":"string","uniqueKey":"data.mobile_ledger_created.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.mobile_ledger_created","typeLabel":"string[]"},"proxies":{"type":"array","description":"A list of proxy objects tied to the newly created service.","items":{"type":"object","properties":{"asn_id":{"type":"integer","example":7018,"uniqueKey":"data.proxies.items.[INDEX].asn_id","typeLabel":"integer"},"asn_name":{"type":"string","example":"AT\u0026T Enterprises, LLC","uniqueKey":"data.proxies.items.[INDEX].asn_name","typeLabel":"string"},"city_example_postcode":{"type":"string","example":"75202","uniqueKey":"data.proxies.items.[INDEX].city_example_postcode","typeLabel":"string"},"city_id":{"type":"integer","example":75202,"uniqueKey":"data.proxies.items.[INDEX].city_id","typeLabel":"integer"},"city_latitude":{"type":"number","format":"float","example":32.7767,"uniqueKey":"data.proxies.items.[INDEX].city_latitude","typeLabel":"number\u003cfloat>"},"city_longitude":{"type":"number","format":"float","example":-96.797,"uniqueKey":"data.proxies.items.[INDEX].city_longitude","typeLabel":"number\u003cfloat>"},"city_name":{"type":"string","example":"Dallas","uniqueKey":"data.proxies.items.[INDEX].city_name","typeLabel":"string"},"city_timezone":{"type":"string","example":"America/Chicago","uniqueKey":"data.proxies.items.[INDEX].city_timezone","typeLabel":"string"},"country_id":{"type":"string","example":"us","uniqueKey":"data.proxies.items.[INDEX].country_id","typeLabel":"string"},"country_name":{"type":"string","example":"United States","uniqueKey":"data.proxies.items.[INDEX].country_name","typeLabel":"string"},"customer_id":{"type":"integer","example":1976,"uniqueKey":"data.proxies.items.[INDEX].customer_id","typeLabel":"integer"},"default_proxy_user_password":{"type":"string","example":"apple1984","uniqueKey":"data.proxies.items.[INDEX].default_proxy_user_password","typeLabel":"string"},"default_proxy_user_username":{"type":"string","example":"stevejobs","uniqueKey":"data.proxies.items.[INDEX].default_proxy_user_username","typeLabel":"string"},"ip_address_id_v4":{"type":"string","example":"107.225.73.142","uniqueKey":"data.proxies.items.[INDEX].ip_address_id_v4","typeLabel":"string"},"ip_address_id_v6":{"type":"string","description":"IPv6 address if dual protocol is used","example":"2600:1000:b12a:6351:8523:997e:93c4:f124","uniqueKey":"data.proxies.items.[INDEX].ip_address_id_v6","typeLabel":"string"},"proxy_http_port":{"type":"integer","example":8080,"uniqueKey":"data.proxies.items.[INDEX].proxy_http_port","typeLabel":"integer"},"proxy_id":{"type":"string","example":"7a018d34-76c2-4c23-b14d-f7b9a7054e25","uniqueKey":"data.proxies.items.[INDEX].proxy_id","typeLabel":"string"},"proxy_ip_address":{"type":"string","example":"107.225.73.142","uniqueKey":"data.proxies.items.[INDEX].proxy_ip_address","typeLabel":"string"},"proxy_ip_address_v6":{"type":"string","description":"IPv6 address if dual protocol is used","example":"2600:1000:b12a:6351:8523:997e:93c4:f124","uniqueKey":"data.proxies.items.[INDEX].proxy_ip_address_v6","typeLabel":"string"},"proxy_last_update_datetime":{"type":"string","format":"date-time","uniqueKey":"data.proxies.items.[INDEX].proxy_last_update_datetime","typeLabel":"string\u003cdate-time>"},"proxy_protocol":{"type":"string","example":"ipv4","uniqueKey":"data.proxies.items.[INDEX].proxy_protocol","typeLabel":"string"},"proxy_socks5_port":{"type":"integer","example":1080,"uniqueKey":"data.proxies.items.[INDEX].proxy_socks5_port","typeLabel":"integer"},"proxy_status":{"type":"string","example":"in_use","uniqueKey":"data.proxies.items.[INDEX].proxy_status","typeLabel":"string"},"proxy_type":{"type":"string","example":"isp","uniqueKey":"data.proxies.items.[INDEX].proxy_type","typeLabel":"string"},"service_id":{"type":"string","example":"API-1234-5678","uniqueKey":"data.proxies.items.[INDEX].service_id","typeLabel":"string"},"service_line_item_id":{"type":"string","description":"The service line item this proxy fulfills.","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.proxies.items.[INDEX].service_line_item_id","typeLabel":"string"},"subdivision_id":{"type":"string","example":"us-tx","uniqueKey":"data.proxies.items.[INDEX].subdivision_id","typeLabel":"string"},"subdivision_name":{"type":"string","example":"Texas","uniqueKey":"data.proxies.items.[INDEX].subdivision_name","typeLabel":"string"},"subnet_id":{"type":"string","example":"107.225.72.0/22","uniqueKey":"data.proxies.items.[INDEX].subnet_id","typeLabel":"string"},"subnet_id_v6":{"type":"string","description":"IPv6 subnet if dual protocol is used","example":"2600:1000::/28","uniqueKey":"data.proxies.items.[INDEX].subnet_id_v6","typeLabel":"string"}},"uniqueKey":"data.proxies.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.proxies","typeLabel":"object[]"},"proxy_edited":{"type":"array","description":"A list of proxies edited or updated in the process (may be empty).","example":["7a018d34-76c2-4c23-b14d-f7b9a7054e25"],"items":{"type":"string","uniqueKey":"data.proxy_edited.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.proxy_edited","typeLabel":"string[]"},"residential_ledger_created":{"type":"array","description":"A list of residential ledger entries created (may be empty).","example":[],"items":{"type":"string","uniqueKey":"data.residential_ledger_created.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.residential_ledger_created","typeLabel":"string[]"},"service":{"type":"object","properties":{"country_id":{"type":"string","example":"us","uniqueKey":"data.service.country_id","typeLabel":"string"},"open_invoice_id":{"type":"string","example":"null","uniqueKey":"data.service.open_invoice_id","typeLabel":"string"},"payment_method_id":{"type":"string","example":"null","uniqueKey":"data.service.payment_method_id","typeLabel":"string"},"service_creation_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_creation_datetime","typeLabel":"string\u003cdate-time>"},"service_cycle":{"type":"string","example":"1:month","uniqueKey":"data.service.service_cycle","typeLabel":"string"},"service_dispatch_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_dispatch_datetime","typeLabel":"string\u003cdate-time>"},"service_earliest_cancellation_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_earliest_cancellation_datetime","typeLabel":"string\u003cdate-time>"},"service_expiry_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_expiry_datetime","typeLabel":"string\u003cdate-time>"},"service_id":{"type":"string","example":"API-1234-5678","uniqueKey":"data.service.service_id","typeLabel":"string"},"service_image":{"type":"string","example":"https://files.stripe.com/links/MDB8YWNjdF8xSDdkOEFCMkJVbHFpbTVsfGZsX2xpdmVfZFZ6TTZjUG01Q0NuR1IzSTZsVzNjVVFX00kUPPfQE9","uniqueKey":"data.service.service_image","typeLabel":"string"},"service_is_automatic_collection":{"type":"boolean","example":true,"uniqueKey":"data.service.service_is_automatic_collection","typeLabel":"boolean"},"service_is_pending_cancellation":{"type":"boolean","example":false,"uniqueKey":"data.service.service_is_pending_cancellation","typeLabel":"boolean"},"service_is_reconfigurable":{"type":"boolean","example":true,"uniqueKey":"data.service.service_is_reconfigurable","typeLabel":"boolean"},"service_last_update_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_last_update_datetime","typeLabel":"string\u003cdate-time>"},"service_line_items":{"type":"array","description":"The service's live per-location line items (canceled lines excluded).","items":{"type":"object","properties":{"country_id":{"type":"string","example":"us","uniqueKey":"data.service.service_line_items.items.[INDEX].country_id","typeLabel":"string"},"service_id":{"type":"string","example":"API-1234-5678","uniqueKey":"data.service.service_line_items.items.[INDEX].service_id","typeLabel":"string"},"service_line_item_creation_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_line_items.items.[INDEX].service_line_item_creation_datetime","typeLabel":"string\u003cdate-time>"},"service_line_item_dispatch_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_line_items.items.[INDEX].service_line_item_dispatch_datetime","typeLabel":"string\u003cdate-time>"},"service_line_item_fulfillment_filter":{"type":"object","properties":{},"example":{"asn_id":7018},"uniqueKey":"data.service.service_line_items.items.[INDEX].service_line_item_fulfillment_filter","typeLabel":"object"},"service_line_item_id":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.service.service_line_items.items.[INDEX].service_line_item_id","typeLabel":"string"},"service_line_item_last_update_datetime":{"type":"string","format":"date-time","uniqueKey":"data.service.service_line_items.items.[INDEX].service_line_item_last_update_datetime","typeLabel":"string\u003cdate-time>"},"service_line_item_quantity":{"type":"integer","example":10,"uniqueKey":"data.service.service_line_items.items.[INDEX].service_line_item_quantity","typeLabel":"integer"},"service_line_item_status":{"type":"string","example":"active","uniqueKey":"data.service.service_line_items.items.[INDEX].service_line_item_status","typeLabel":"string"}},"uniqueKey":"data.service.service_line_items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.service.service_line_items","typeLabel":"object[]"},"service_metadata":{"type":"object","properties":{},"example":{},"uniqueKey":"data.service.service_metadata","typeLabel":"object"},"service_name":{"type":"string","example":"AT\u0026T ISP Proxies [US]","uniqueKey":"data.service.service_name","typeLabel":"string"},"service_promotional_code":{"type":"string","example":"PROMOCODEHERE","uniqueKey":"data.service.service_promotional_code","typeLabel":"string"},"service_protocol":{"type":"string","example":"ipv4","uniqueKey":"data.service.service_protocol","typeLabel":"string"},"service_quantity":{"type":"integer","example":5,"uniqueKey":"data.service.service_quantity","typeLabel":"integer"},"service_status":{"type":"string","example":"active","uniqueKey":"data.service.service_status","typeLabel":"string"},"service_subscription_id":{"type":"string","example":"sub_1QxSHmB2BUlqim5lTUH8HvKa","uniqueKey":"data.service.service_subscription_id","typeLabel":"string"},"service_subscription_is_paused":{"type":"boolean","example":false,"uniqueKey":"data.service.service_subscription_is_paused","typeLabel":"boolean"},"service_total":{"type":"integer","example":450,"uniqueKey":"data.service.service_total","typeLabel":"integer"},"service_type":{"type":"string","example":"isp","uniqueKey":"data.service.service_type","typeLabel":"string"},"subscription_schedule_id":{"type":"string","example":"null","uniqueKey":"data.service.subscription_schedule_id","typeLabel":"string"}},"description":"Detailed information about the provisioned service (null if not yet provisioned).","uniqueKey":"data.service","typeLabel":"object"},"service_id":{"type":"string","description":"The ID of the newly created service.","example":"API-1234-5678","uniqueKey":"data.service_id","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"},"message":{"type":"string","description":"Success message.","example":"Successfully created checkout and paid with credit. Your service will be provisioned shortly.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"created":["API-1234-5678"],"invoice_is_paid":true,"invoice_url":"https://invoice.stripe.com/i/acct_1H7dAB2BUlqim5l/test_123","mobile_ledger_created":[],"proxies":[{"asn_id":7018,"asn_name":"AT\u0026T Enterprises, LLC","city_example_postcode":"75202","city_id":75202,"city_latitude":32.7767,"city_longitude":-96.797,"city_name":"Dallas","city_timezone":"America/Chicago","country_id":"us","country_name":"United States","customer_id":1976,"default_proxy_user_password":"apple1984","default_proxy_user_username":"stevejobs","ip_address_id_v4":"107.225.73.142","ip_address_id_v6":"2600:1000:b12a:6351:8523:997e:93c4:f124","proxy_http_port":8080,"proxy_id":"7a018d34-76c2-4c23-b14d-f7b9a7054e25","proxy_ip_address":"107.225.73.142","proxy_ip_address_v6":"2600:1000:b12a:6351:8523:997e:93c4:f124","proxy_last_update_datetime":"2023-11-07T05:31:56Z","proxy_protocol":"ipv4","proxy_socks5_port":1080,"proxy_status":"in_use","proxy_type":"isp","service_id":"API-1234-5678","service_line_item_id":"550e8400-e29b-41d4-a716-446655440000","subdivision_id":"us-tx","subdivision_name":"Texas","subnet_id":"107.225.72.0/22","subnet_id_v6":"2600:1000::/28"}],"proxy_edited":["7a018d34-76c2-4c23-b14d-f7b9a7054e25"],"residential_ledger_created":[],"service":{"country_id":"us","open_invoice_id":"null","payment_method_id":"null","service_creation_datetime":"2023-11-07T05:31:56Z","service_cycle":"1:month","service_dispatch_datetime":"2023-11-07T05:31:56Z","service_earliest_cancellation_datetime":"2023-11-07T05:31:56Z","service_expiry_datetime":"2023-11-07T05:31:56Z","service_id":"API-1234-5678","service_image":"https://files.stripe.com/links/MDB8YWNjdF8xSDdkOEFCMkJVbHFpbTVsfGZsX2xpdmVfZFZ6TTZjUG01Q0NuR1IzSTZsVzNjVVFX00kUPPfQE9","service_is_automatic_collection":true,"service_is_pending_cancellation":false,"service_is_reconfigurable":true,"service_last_update_datetime":"2023-11-07T05:31:56Z","service_line_items":[{"country_id":"us","service_id":"API-1234-5678","service_line_item_creation_datetime":"2023-11-07T05:31:56Z","service_line_item_dispatch_datetime":"2023-11-07T05:31:56Z","service_line_item_fulfillment_filter":{"asn_id":7018},"service_line_item_id":"550e8400-e29b-41d4-a716-446655440000","service_line_item_last_update_datetime":"2023-11-07T05:31:56Z","service_line_item_quantity":10,"service_line_item_status":"active"}],"service_metadata":{},"service_name":"AT\u0026T ISP Proxies [US]","service_promotional_code":"PROMOCODEHERE","service_protocol":"ipv4","service_quantity":5,"service_status":"active","service_subscription_id":"sub_1QxSHmB2BUlqim5lTUH8HvKa","service_subscription_is_paused":false,"service_total":450,"service_type":"isp","subscription_schedule_id":"null"},"service_id":"API-1234-5678"},"message":"Successfully created checkout and paid with credit. Your service will be provisioned shortly."}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"0d1b881a-9c48-4c40-ba9a-1219a4eaf03a":{"APIPrivateKey":{"type":"apiKey","description":" Private API key for user-level authentication.","name":"X-API-Private-Key","in":"header","scopes":[]},"APIPublicKey":{"type":"apiKey","description":" Public API key for user-level authentication.","name":"X-API-Public-Key","in":"header","scopes":[]}}},"servers":{"6d5ab438-f389-48e8-a5ec-97fc91d8ff6b":{"url":"https://api.byteful.com/1.0/"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":" Private API key for user-level authentication.","name":"X-API-Private-Key","in":"header","scopes":[]},"schema":{"title":"X-API-Private-Key","type":"string","description":" Private API key for user-level authentication.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIPrivateKey","name":"X-API-Private-Key"},{"scheme":{"type":"apiKey","description":" Public API key for user-level authentication.","name":"X-API-Public-Key","in":"header","scopes":[]},"schema":{"title":"X-API-Public-Key","type":"string","description":" Public API key for user-level authentication.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIPublicKey","name":"X-API-Public-Key"}],"title":"APIPrivateKey \u0026 APIPublicKey"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"pingproxies","siteName":"Byteful Documentation","title":"Create Checkout - Byteful Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-13T14:24:16.776Z","originalFileLocation":"api-reference/checkout/create-checkout.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This endpoint creates a checkout for the authenticated user based on the provided data. It supports promotional codes and can handle both one-time and recurring payments. The product can be configured in one of two mutually exclusive forms: - Legacy flat form: a product_code directly, or the traditional combination of product_type, country_id, and product_protocol, with a top-level quantity. - Multi-location form: a single line_items entry carrying its own product type, billing cycle, quantity, and per-location service_fulfillment_filter. Important considerations - If product_code is provided alongside product_type/country_id/product_protocol, their values must match the actual product attributes. - API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and invoice_url points at its hosted page. Example: multi-location checkout (line_items form) json { \u0026quot;line_items\u0026quot;: [ { \u0026quot;product_type\u0026quot;: \u0026quot;isp\u0026quot;, \u0026quot;item_quantity\u0026quot;: 5, \u0026quot;cycle_interval\u0026quot;: \u0026quot;month\u0026quot;, \u0026quot;cycle_interval_count\u0026quot;: 1, \u0026quot;service_fulfillment_filter\u0026quot;: [ {\u0026quot;country_id\u0026quot;: \u0026quot;us\u0026quot;, \u0026quot;quantity\u0026quot;: 2}, {\u0026quot;country_id\u0026quot;: \u0026quot;gb\u0026quot;, \u0026quot;quantity\u0026quot;: 2} ] } ], \u0026quot;promotional_code\u0026quot;: \u0026quot;PROMOCODEHERE\u0026quot; }\">\u003cmeta data-mint-head name=\"application-name\" content=\"Byteful 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/pingproxies/uWB3sfmJW5QuHyF3/_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/pingproxies/uWB3sfmJW5QuHyF3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pingproxies/uWB3sfmJW5QuHyF3/_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/pingproxies/uWB3sfmJW5QuHyF3/_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/pingproxies/uWB3sfmJW5QuHyF3/_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/pingproxies/uWB3sfmJW5QuHyF3/_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/pingproxies/uWB3sfmJW5QuHyF3/_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/pingproxies/uWB3sfmJW5QuHyF3/_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/pingproxies/uWB3sfmJW5QuHyF3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Checkout - Byteful Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint creates a checkout for the authenticated user based on the provided data. It supports promotional codes and can handle both one-time and recurring payments. The product can be configured in one of two mutually exclusive forms: - Legacy flat form: a product_code directly, or the traditional combination of product_type, country_id, and product_protocol, with a top-level quantity. - Multi-location form: a single line_items entry carrying its own product type, billing cycle, quantity, and per-location service_fulfillment_filter. Important considerations - If product_code is provided alongside product_type/country_id/product_protocol, their values must match the actual product attributes. - API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and invoice_url points at its hosted page. Example: multi-location checkout (line_items form) json { \u0026quot;line_items\u0026quot;: [ { \u0026quot;product_type\u0026quot;: \u0026quot;isp\u0026quot;, \u0026quot;item_quantity\u0026quot;: 5, \u0026quot;cycle_interval\u0026quot;: \u0026quot;month\u0026quot;, \u0026quot;cycle_interval_count\u0026quot;: 1, \u0026quot;service_fulfillment_filter\u0026quot;: [ {\u0026quot;country_id\u0026quot;: \u0026quot;us\u0026quot;, \u0026quot;quantity\u0026quot;: 2}, {\u0026quot;country_id\u0026quot;: \u0026quot;gb\u0026quot;, \u0026quot;quantity\u0026quot;: 2} ] } ], \u0026quot;promotional_code\u0026quot;: \u0026quot;PROMOCODEHERE\u0026quot; }\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Byteful Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://documentation.byteful.com/api-reference/checkout/create-checkout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pingproxies.mintlify.site/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Create+Checkout\u0026amp;description=This+endpoint+creates+a+checkout+for+the+authenticated+user+based+on+the+provided+data.+It+supports%0Apromotional+codes+and+can+handle+both+one-time+and+recurring\u0026amp;theme=5f3efe6753c747b87bf62980\u0026amp;signature=15c220460ac0d60b9a7bb5a3d64a91c03eaef61f811c44fd5f2e6e3a374936dd\">\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 Checkout - Byteful Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint creates a checkout for the authenticated user based on the provided data. It supports promotional codes and can handle both one-time and recurring payments. The product can be configured in one of two mutually exclusive forms: - Legacy flat form: a product_code directly, or the traditional combination of product_type, country_id, and product_protocol, with a top-level quantity. - Multi-location form: a single line_items entry carrying its own product type, billing cycle, quantity, and per-location service_fulfillment_filter. Important considerations - If product_code is provided alongside product_type/country_id/product_protocol, their values must match the actual product attributes. - API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and invoice_url points at its hosted page. Example: multi-location checkout (line_items form) json { \u0026quot;line_items\u0026quot;: [ { \u0026quot;product_type\u0026quot;: \u0026quot;isp\u0026quot;, \u0026quot;item_quantity\u0026quot;: 5, \u0026quot;cycle_interval\u0026quot;: \u0026quot;month\u0026quot;, \u0026quot;cycle_interval_count\u0026quot;: 1, \u0026quot;service_fulfillment_filter\u0026quot;: [ {\u0026quot;country_id\u0026quot;: \u0026quot;us\u0026quot;, \u0026quot;quantity\u0026quot;: 2}, {\u0026quot;country_id\u0026quot;: \u0026quot;gb\u0026quot;, \u0026quot;quantity\u0026quot;: 2} ] } ], \u0026quot;promotional_code\u0026quot;: \u0026quot;PROMOCODEHERE\u0026quot; }\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pingproxies.mintlify.site/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Create+Checkout\u0026amp;description=This+endpoint+creates+a+checkout+for+the+authenticated+user+based+on+the+provided+data.+It+supports%0Apromotional+codes+and+can+handle+both+one-time+and+recurring\u0026amp;theme=5f3efe6753c747b87bf62980\u0026amp;signature=15c220460ac0d60b9a7bb5a3d64a91c03eaef61f811c44fd5f2e6e3a374936dd\">\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/pingproxies/uWB3sfmJW5QuHyF3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Byteful Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5547eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://documentation.byteful.com/api-reference/checkout/create-checkout\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/checkout/create-checkout.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://documentation.byteful.com/#organization\",\"name\":\"Byteful Documentation\",\"url\":\"https://documentation.byteful.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://ping-proxies-strapi.ams3.digitaloceanspaces.com/public/uploads/ping_logo_b83f7f9c6b.webp\"}},{\"@type\":\"WebSite\",\"@id\":\"https://documentation.byteful.com#website\",\"name\":\"Byteful Documentation\",\"url\":\"https://documentation.byteful.com\",\"publisher\":{\"@id\":\"https://documentation.byteful.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout#webpage\",\"url\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout\",\"name\":\"Create Checkout\",\"description\":\"This endpoint creates a checkout for the authenticated user based on the provided data. It supports promotional codes and can handle both one-time and recurring payments. The product can be configured in one of two mutually exclusive forms: - Legacy flat form: a product_code directly, or the traditional combination of product_type, country_id, and product_protocol, with a top-level quantity. - Multi-location form: a single line_items entry carrying its own product type, billing cycle, quantity, and per-location service_fulfillment_filter. Important considerations - If product_code is provided alongside product_type/country_id/product_protocol, their values must match the actual product attributes. - API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and invoice_url points at its hosted page. Example: multi-location checkout (line_items form) json { \\\"line_items\\\": [ { \\\"product_type\\\": \\\"isp\\\", \\\"item_quantity\\\": 5, \\\"cycle_interval\\\": \\\"month\\\", \\\"cycle_interval_count\\\": 1, \\\"service_fulfillment_filter\\\": [ {\\\"country_id\\\": \\\"us\\\", \\\"quantity\\\": 2}, {\\\"country_id\\\": \\\"gb\\\", \\\"quantity\\\": 2} ] } ], \\\"promotional_code\\\": \\\"PROMOCODEHERE\\\" }\",\"dateModified\":\"2026-08-13T14:24:16.776Z\",\"isPartOf\":{\"@id\":\"https://documentation.byteful.com#website\"},\"breadcrumb\":{\"@id\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Checkout\",\"item\":\"https://documentation.byteful.com/api-reference/checkout/retrieve-simplified-product-checkout-catalog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Checkout\",\"item\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout#apireference\",\"headline\":\"Create Checkout\",\"name\":\"Create Checkout\",\"description\":\"This endpoint creates a checkout for the authenticated user based on the provided data. It supports promotional codes and can handle both one-time and recurring payments. The product can be configured in one of two mutually exclusive forms: - Legacy flat form: a product_code directly, or the traditional combination of product_type, country_id, and product_protocol, with a top-level quantity. - Multi-location form: a single line_items entry carrying its own product type, billing cycle, quantity, and per-location service_fulfillment_filter. Important considerations - If product_code is provided alongside product_type/country_id/product_protocol, their values must match the actual product attributes. - API checkouts are settled with your existing credit balance; a cart your credit cannot fully cover is rejected with 422. The returned invoice is already paid and invoice_url points at its hosted page. Example: multi-location checkout (line_items form) json { \\\"line_items\\\": [ { \\\"product_type\\\": \\\"isp\\\", \\\"item_quantity\\\": 5, \\\"cycle_interval\\\": \\\"month\\\", \\\"cycle_interval_count\\\": 1, \\\"service_fulfillment_filter\\\": [ {\\\"country_id\\\": \\\"us\\\", \\\"quantity\\\": 2}, {\\\"country_id\\\": \\\"gb\\\", \\\"quantity\\\": 2} ] } ], \\\"promotional_code\\\": \\\"PROMOCODEHERE\\\" }\",\"url\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout\",\"mainEntityOfPage\":{\"@id\":\"https://documentation.byteful.com/api-reference/checkout/create-checkout#webpage\"},\"dateModified\":\"2026-08-13T14:24:16.776Z\",\"publisher\":{\"@id\":\"https://documentation.byteful.com/#organization\"},\"isPartOf\":{\"@id\":\"https://documentation.byteful.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Byteful Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Byteful Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/checkout/create-checkout.md","siteName":"Byteful Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Introduction","pages":[{"title":"API Introduction","href":"/api-introduction"}]},{"tab":"API Examples","pages":[{"title":"API Examples","href":"/examples-index"}]},{"tab":"API Reference","groups":[{"group":"Customer","pages":[{"openapi":"get /public/user/customer/retrieve","title":"Retrieve Current Customer","href":"/api-reference/customer/retrieve-current-customer"}]},{"group":"Proxy","pages":[{"openapi":"get /public/user/proxy/retrieve/{proxy_id}","title":"Retrieve Proxy","href":"/api-reference/proxy/retrieve-proxy"},{"openapi":"get /public/user/proxy/search","title":"Search Proxies","href":"/api-reference/proxy/search-proxies"},{"openapi":"post /public/user/proxy/list_by_id","title":"Generate Proxy List By ID","href":"/api-reference/proxy/retrieve-proxy-list-by-id"},{"openapi":"get /public/user/proxy/list_by_search","title":"Generate Proxy List By Search","href":"/api-reference/proxy/retrieve-proxy-list-by-search"},{"openapi":"post /public/user/proxy/list/options","title":"Get Proxy User List Options","href":"/api-reference/proxy/retrieve-proxy-list-options"}]},{"group":"Proxy User","pages":[{"openapi":"post /public/user/proxy_user/create","title":"Create Proxy User","href":"/api-reference/proxy-user/create-proxy-user"},{"openapi":"get /public/user/proxy_user/retrieve/{proxy_user_id}","title":"Retrieve Proxy User","href":"/api-reference/proxy-user/retrieve-proxy-user"},{"openapi":"get /public/user/proxy_user/search","title":"Search Proxy Users","href":"/api-reference/proxy-user/search-proxy-users"},{"openapi":"patch /public/user/proxy_user/edit/{proxy_user_id}","title":"Edit Proxy User","href":"/api-reference/proxy-user/edit-proxy-user"},{"openapi":"delete /public/user/proxy_user/delete/{proxy_user_id}","title":"Delete Proxy User Record","href":"/api-reference/proxy-user/delete-proxy-user-record"}]},{"group":"Proxy User ACL","pages":[{"openapi":"post /public/user/proxy_user_acl/create","title":"Create Proxy User ACL","href":"/api-reference/proxy-user-acl/create-proxy-user-acl"},{"openapi":"get /public/user/proxy_user_acl/retrieve/{proxy_user_acl_id}","title":"Retrieve Proxy User ACL","href":"/api-reference/proxy-user-acl/retrieve-proxy-user-acl"},{"openapi":"get /public/user/proxy_user_acl/search","title":"Search Proxy User ACLs","href":"/api-reference/proxy-user-acl/search-proxy-user-acls"},{"openapi":"delete /public/user/proxy_user_acl/delete/{proxy_user_acl_id}","title":"Delete Proxy User ACL Record","href":"/api-reference/proxy-user-acl/delete-proxy-user-acl"}]},{"group":"Residential","pages":[{"openapi":"get /public/user/residential/list","title":"Generated Residential List","href":"/api-reference/residential/create-residential-list"},{"openapi":"get /public/user/residential/summary","title":"Retrieve Residential Service Summary","href":"/api-reference/residential/retrieve-residential-service-summary"}]},{"group":"Residential Availability","pages":[{"openapi":"get /public/user/residential_availability/search","title":"Search Residential Availability","href":"/api-reference/residential-availability/search-residential-availability"},{"openapi":"get /public/user/residential_availability/count","title":"Get Residential Availability Count","href":"/api-reference/residential-availability/count-residential-availability"}]},{"group":"Residential Ledger","pages":[{"openapi":"get /public/user/residential_ledger/retrieve/{residential_ledger_id}","title":"Retrieve Residential Ledger","href":"/api-reference/residential-ledger/retrieve-residential-ledger"},{"openapi":"get /public/user/residential_ledger/search","title":"Search Residential Ledger","href":"/api-reference/residential-ledger/search-residential-ledger"}]},{"group":"Mobile","pages":[{"openapi":"get /public/user/mobile/list","title":"Generated Mobile List","href":"/api-reference/mobile/create-mobile-list"},{"openapi":"get /public/user/mobile/summary","title":"Retrieve Mobile Service Summary","href":"/api-reference/mobile/retrieve-mobile-service-summary"}]},{"group":"Mobile Availability","pages":[{"openapi":"get /public/user/mobile_availability/search","title":"Search Mobile Availability","href":"/api-reference/mobile-availability/search-mobile-availability"},{"openapi":"get /public/user/mobile_availability/count","title":"Get Mobile Availability Count","href":"/api-reference/mobile-availability/count-mobile-availability"}]},{"group":"Mobile Ledger","pages":[{"openapi":"get /public/user/mobile_ledger/retrieve/{mobile_ledger_id}","title":"Retrieve Mobile Ledger","href":"/api-reference/mobile-ledger/retrieve-mobile-ledger"},{"openapi":"get /public/user/mobile_ledger/search","title":"Search Mobile Ledger","href":"/api-reference/mobile-ledger/search-mobile-ledger"}]},{"group":"Service","pages":[{"openapi":"get /public/user/service/retrieve/{service_id}","title":"Retrieve Service","href":"/api-reference/service/retrieve-service"},{"openapi":"get /public/user/service/search","title":"Search Services","href":"/api-reference/service/search-services"},{"openapi":"patch /public/user/service/edit/{service_id}","title":"Edit Service","href":"/api-reference/service/edit-service"},{"openapi":"delete /public/user/service/cancel/{service_id}","title":"Cancel Service","href":"/api-reference/service/cancel-service"}]},{"group":"Service Adjustment","pages":[{"openapi":"get /public/user/service_adjustment/retrieve/{service_adjustment_id}","title":"Retrieve Service Adjustment","href":"/api-reference/service-adjustment/retrieve-service-adjustment"},{"openapi":"get /public/user/service_adjustment/search","title":"Search Service Adjustments","href":"/api-reference/service-adjustment/search-service-adjustments"}]},{"group":"Checkout","pages":[{"openapi":"get /public/user/checkout/catalog","title":"Retrieve Simplified Product Checkout Catalog","href":"/api-reference/checkout/retrieve-simplified-product-checkout-catalog"},{"openapi":"post /public/user/checkout/quote","title":"Generate Checkout Quote","description":"This endpoint allows a user to generate a quote for a service via the API. The product can be\nconfigured in one of two mutually exclusive forms:\n- Legacy flat form: a `product_code` directly, or the traditional combination of `product_type`,\n `country_id`, and `product_protocol`, with a top-level `quantity`.\n- Multi-location form: a single `line_items` entry carrying its own product type, billing cycle,\n quantity, and per-location `service_fulfillment_filter`.\n\n**Example: multi-location quote (line_items form)**\n```json\n{\n \"line_items\": [\n {\n \"product_type\": \"isp\",\n \"item_quantity\": 5,\n \"cycle_interval\": \"month\",\n \"cycle_interval_count\": 1,\n \"service_fulfillment_filter\": [\n {\"country_id\": \"us\", \"quantity\": 2},\n {\"country_id\": \"gb\", \"quantity\": 2}\n ]\n }\n ],\n \"promotional_code\": \"PROMOCODEHERE\"\n}\n```\n","href":"/api-reference/checkout/generate-checkout-quote"},{"openapi":"post /public/user/checkout/create","title":"Create Checkout","href":"/api-reference/checkout/create-checkout"}]},{"group":"Analytics","pages":[{"openapi":"get /public/user/analytics/graph","title":"Graph Proxy Analytics","description":"This endpoint analyzes proxy usage for a given customer within a specified time range\nand groups them by one of four discrete intervals: `minute`, `hour`, `day`, or `month`.\n\nYou can either\n\n1. Provide a `preset` parameter, which automatically sets period and interval\n (e.g. `last_day`, `last_hour`, etc.)\n2. OR, manually specify your own time range (`period_start`, `period_end`) plus `interval`\n\nYou can also filter by `hostname`, `network`, `proxy_user_id`, and `service_id`.\nService ID can only be filtered if period is within 7 days and interval is hour or less.\nHostname filters are disallowed if searching older than 90 days.\n","href":"/api-reference/proxy-analytics/graph-proxy-analytics"},{"openapi":"get /public/user/analytics/breakdown","title":"Analytics Breakdown","href":"/api-reference/proxy-analytics/breakdown-proxy-analytics"}]},{"group":"Product","pages":[{"openapi":"get /public/user/product/search","title":"Search Product","href":"/api-reference/product/search-product"}]},{"group":"ASN","pages":[{"title":"Retrieve ASN","openapi":"get /public/user/asn/retrieve/{asn_id}","href":"/api-reference/asn/retrieve-asn"},{"openapi":"get /public/user/asn/search","title":"Search ASN","href":"/api-reference/asn/search-asn"}]},{"group":"Continent","pages":[{"openapi":"get /public/user/continent/retrieve/{continent_id}","title":"Retrieve Continent","href":"/api-reference/continent/retrieve-continent"},{"openapi":"get /public/user/continent/search","title":"Search Continent","href":"/api-reference/continent/search-continent"}]},{"group":"Country","pages":[{"openapi":"get /public/user/country/retrieve/{country_id}","title":"Retrieve Country","href":"/api-reference/country/retrieve-country"},{"openapi":"get /public/user/country/search","title":"Search Country","href":"/api-reference/country/search-country"}]},{"group":"Subdivision","pages":[{"openapi":"get /public/user/subdivision/retrieve/{subdivision_id}","title":"Retrieve Subdivision","href":"/api-reference/subdivision/retrieve-subdivision"},{"openapi":"get /public/user/subdivision/search","title":"Search Subdivision","href":"/api-reference/subdivision/search-subdivision"}]},{"group":"City","pages":[{"openapi":"get /public/user/city/retrieve/{city_id}","title":"Retrieve City","href":"/api-reference/city/retrieve-city"},{"openapi":"get /public/user/city/search","title":"Search City","href":"/api-reference/city/search-city"}]},{"group":"Zip Code","pages":[{"openapi":"get /public/user/zip_code/retrieve/{zip_code_id}","title":"Retrieve Zip Code","href":"/api-reference/zip-code/retrieve-zip-code"},{"openapi":"get /public/user/zip_code/search","title":"Search Zip Code","href":"/api-reference/zip-code/search-zip-code"}]},{"group":"Proxy Tester","pages":[{"openapi":"POST /public/user/proxy_test_run/create","title":"Create Proxy Test Run","href":"/api-reference/proxy-tester/create-proxy-test"},{"openapi":"GET /public/user/proxy_test_server/search","title":"Search Proxy Test Servers","href":"/api-reference/proxy-tester/search-proxy-test-servers"}]}]},{"tab":"API Changelog","pages":[{"title":"API Changelog","href":"/api-changelog"}]},{"tab":"Product Updates","pages":[{"title":"Product Updates","href":"/product-updates"}]}]},"basePath":"","title":"Create Checkout - Byteful Documentation","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B6WFFOBL.js","utils-BN5um1KA.js","cloneDeep-C3md22mN.js","_Uint8Array-DLlL8L26.js","isObject-FP1Yky1u.js","utils-BSmbkXJR.js","addUniqueKeysToSchema-2tqcVnUE.js","snippetPresets-CtWfvr2J.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DkKHBy30.js","isEqual-O3q7y6pq.js","usePlaygroundInputsStore-Brc5H9UJ.js","shallow-C4L4xvbs.js","getApiPlaygroundDisplay-2bxyq_aI.js","CodeSnippet-BJu8ddd5.js","CodeSnippets-dazWmoqB.js","Page-CnLhKuUV.js","getPastedJson-Chy3Qa1S.js","icon-CyO7h3jh.js","MethodPill-Dle0_91v.js","DuplicateIcon-CVvWAf4a.js","createIcon-Di07A27B.js","DynamicMarkdown-C4w9kavL.js","SectionHeading-XiBebVYC.js","axios-vUo_bRtp.js","Markdown-DTeL0SpS.js","dist-OCScizqf.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-KcneGfMY.js"]}