A new value for every new session (a UUID is ideal), 8 to 255 characters. If your request times out, send it again with the same key to get the first session back. description and metadata may differ on the retry.
Where the customer goes after paying. A public https:// address (sandbox also allows http://localhost). session_id, reference and status are added to it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PrimePay","colors":{"primary":"#09000D","light":"#EBCC00","dark":"#09000D"},"logo":{"light":"https://mintcdn.com/prosystems-tech/rcMYSU1YPPUUcDzf/logo/primepay-v3-light.png?fit=max\u0026auto=format\u0026n=rcMYSU1YPPUUcDzf\u0026q=85\u0026s=eb5592018cf5323277a3135853fc9d6d","dark":"https://mintcdn.com/prosystems-tech/rcMYSU1YPPUUcDzf/logo/primepay-v3-dark.png?fit=max\u0026auto=format\u0026n=rcMYSU1YPPUUcDzf\u0026q=85\u0026s=ef373fc158fa9e283a01388a72fdf696"},"favicon":"https://mintcdn.com/prosystems-tech/b52CKE3uGy6vUOXL/logo/primepay-yellow.png?fit=max\u0026auto=format\u0026n=b52CKE3uGy6vUOXL\u0026q=85\u0026s=2780e0e1e5910c8dd14e61055baf15e5","background":{"color":{"dark":"#000000"}},"navbar":{"links":[{"href":"https://primepay.mw/help","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.primepay.mw/"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"prosystems-tech","hasAudioNarration":false,"actualSubdomain":"prosystems-tech","customDomains":["docs.primepay.mw"],"gitSource":{"type":"github","owner":"prosystemstechltd-company","repo":"primepay-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6af44b9d566700d04ef4b621"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5eaf304140d5ce9d767c7","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":30},{"language":"default","tag":"Docs","count":10},{"language":"default","tag":"Get started","count":7},{"language":"default","tag":"Payouts","count":7},{"language":"default","tag":"Payment links","count":6},{"language":"default","tag":"Transfers","count":6},{"language":"default","tag":"Recipes","count":6},{"language":"default","tag":"Payments","count":5},{"language":"default","tag":"Checkout sessions","count":3},{"language":"default","tag":"Refunds","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/checkout-sessions/create-a-checkout-session","slug":"/api-reference/checkout-sessions/create-a-checkout-session","pageMetadata":{"title":"Create a checkout session","description":"Creates a PrimePay payment page for one order. Redirect the customer to `url`; it can be paid for 30 minutes.\n\nGuide: [hosted checkout](/api-reference/checkout-overview) and [checkout errors](/api-reference/checkout-overview#checkout-errors).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/checkout/sessions","href":"/api-reference/checkout-sessions/create-a-checkout-session","autogeneratedByOpenApi":true},"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 a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Creates a PrimePay payment page for one order. Redirect the customer to \", _jsx(_components.code, {\n children: \"url\"\n }), \"; it can be paid for 30 minutes.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Guide: \", _jsx(_components.a, {\n href: \"/api-reference/checkout-overview\",\n children: \"hosted checkout\"\n }), \" and \", _jsx(_components.a, {\n href: \"/api-reference/checkout-overview#checkout-errors\",\n children: \"checkout errors\"\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};\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":{"title":"Create a checkout session","description":"Creates a PrimePay payment page for one order. Redirect the customer to `url`; it can be paid for 30 minutes.\n\nGuide: [hosted checkout](/api-reference/checkout-overview) and [checkout errors](/api-reference/checkout-overview#checkout-errors).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/checkout/sessions","href":"/api-reference/checkout-sessions/create-a-checkout-session","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Checkout sessions"],"summary":"Create a checkout session","operationId":"createCheckoutSession","description":"Creates a PrimePay payment page for one order. Redirect the customer to `url`; it can be paid for 30 minutes.\n\nGuide: [hosted checkout](/api-reference/checkout-overview) and [checkout errors](/api-reference/checkout-overview#checkout-errors).\n","parameters":["f9f0bf44-c024-4ee8-99aa-9566594526d5"],"requestBody":"7817c1b7-0dc1-4550-89a7-822b26af42c4","responses":{"201":"5745d4d6-d049-42dc-9b5c-a396d6db7474","400":"3622f4ed-f419-44fe-be68-98c75eafff65","409":"7f226e2c-c307-49ae-9bbf-c971cd86c93b"},"method":"post","type":"path","servers":["d911aee0-b44b-48be-9f3a-fd7b00e1e819","405140b9-f90a-47e4-aeaa-9946817b93f4"],"security":["f2d79d5d-613e-429d-be97-e78e77778c27"],"path":"/v1/checkout/sessions","baseUrlOptions":["https://api.primepay.mw","https://sandbox-api.primepay.mw"],"title":"Create a checkout session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f9f0bf44-c024-4ee8-99aa-9566594526d5":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":255,"example":"9b2f4c6e8a1d4f3b9c7e5a2d1f0b3c4e","isRequired":true,"description":"A new value for every new session (a UUID is ideal), 8 to 255 characters. If your request times out, send it again with the same key to get the first session back. `description` and `metadata` may differ on the retry.\n","uniqueKey":"","typeLabel":"string"},"description":"A new value for every new session (a UUID is ideal), 8 to 255 characters. If your request times out, send it again with the same key to get the first session back. `description` and `metadata` may differ on the retry.\n"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount","reference","return_url","cancel_url"],"properties":{"amount":{"type":"number","minimum":1,"maximum":10000000,"description":"At most 2 decimal places.","isRequired":true,"uniqueKey":"amount","typeLabel":"number"},"reference":{"type":"string","maxLength":100,"description":"Your order or invoice number. One open or paid session per order.","isRequired":true,"uniqueKey":"reference","typeLabel":"string"},"return_url":{"type":"string","maxLength":2048,"description":"Where the customer goes after paying. A public `https://` address (sandbox also allows `http://localhost`). `session_id`, `reference` and `status` are added to it.","isRequired":true,"uniqueKey":"return_url","typeLabel":"string"},"cancel_url":{"type":"string","maxLength":2048,"description":"Where the customer goes if they go back without paying. Same rules as `return_url`.","isRequired":true,"uniqueKey":"cancel_url","typeLabel":"string"},"currency":{"type":"string","default":"MWK","description":"`MWK` today. Other currencies are accepted once PrimePay takes payments in that country.","uniqueKey":"currency","typeLabel":"string"},"description":{"oneOf":[{"type":"string","maxLength":255,"description":"Shown to the customer.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"Shown to the customer.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"customer":{"type":"object","properties":{"first_name":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"customer.first_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"uniqueKey":"customer.first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"customer.last_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"uniqueKey":"customer.last_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.last_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","format":"email","uniqueKey":"customer.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","uniqueKey":"customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.email","typeLabel":"string\u003cemail> | null"},"phone":{"oneOf":[{"type":"string","description":"A Malawi mobile number, for example `0991234567` or `265991234567`. Returned as `+265991234567`.","uniqueKey":"customer.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"A Malawi mobile number, for example `0991234567` or `265991234567`. Returned as `+265991234567`.","uniqueKey":"customer.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.phone","typeLabel":"string | null"}},"uniqueKey":"customer","typeLabel":"object"},"line_items":{"type":"array","maxItems":50,"description":"Shown on the page. They must add up to `amount`.","items":{"type":"object","required":["name","quantity","unit_amount"],"properties":{"name":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].quantity","typeLabel":"integer"},"unit_amount":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].unit_amount","typeLabel":"number"},"description":{"oneOf":[{"type":"string","maxLength":500,"uniqueKey":"line_items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"uniqueKey":"line_items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].description","typeLabel":"string | null"}},"uniqueKey":"line_items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"line_items","typeLabel":"object[]"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Your own values, up to 50 keys and 8 KB. Returned with the session and in webhooks.","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Your own values, up to 50 keys and 8 KB. Returned with the session and in webhooks.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"sub_merchant_account_code":{"oneOf":[{"type":"string","description":"Aggregator accounts only. The 8-digit account code of a linked, active sub-merchant to collect for. The agreed fee always applies.","uniqueKey":"sub_merchant_account_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Aggregator accounts only. The 8-digit account code of a linked, active sub-merchant to collect for. The agreed fee always applies.","uniqueKey":"sub_merchant_account_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"sub_merchant_account_code","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"amount":42500,"currency":"MWK","reference":"ORDER-5531","description":"2 x School shoes","return_url":"https://shop.example.com/orders/5531/done","cancel_url":"https://shop.example.com/cart","customer":{"first_name":"Chikondi","last_name":"Banda","email":"customer@example.com","phone":"0991234567"},"line_items":[{"name":"School shoes","quantity":2,"unit_amount":20000},{"name":"Delivery","quantity":1,"unit_amount":2500}],"metadata":{"cart":"88412"}},"examples":{"Example":{"title":"Example","value":{"amount":42500,"currency":"MWK","reference":"ORDER-5531","description":"2 x School shoes","return_url":"https://shop.example.com/orders/5531/done","cancel_url":"https://shop.example.com/cart","customer":{"first_name":"Chikondi","last_name":"Banda","email":"customer@example.com","phone":"0991234567"},"line_items":[{"name":"School shoes","quantity":2,"unit_amount":20000},{"name":"Delivery","quantity":1,"unit_amount":2500}],"metadata":{"cart":"88412"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"5745d4d6-d049-42dc-9b5c-a396d6db7474":{"description":"The session. Redirect the customer to `url`.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"object":{"type":"string","example":"checkout.session","uniqueKey":"object","typeLabel":"string"},"url":{"oneOf":[{"type":"string","description":"The payment page. `null` once the session can no longer be paid.","uniqueKey":"url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The payment page. `null` once the session can no longer be paid.","uniqueKey":"url.oneOf.1","typeLabel":"null"}],"uniqueKey":"url","typeLabel":"string | null"},"status":{"type":"string","enum":["open","processing","complete","expired","cancelled"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"livemode":{"type":"boolean","uniqueKey":"livemode","typeLabel":"boolean"},"amount":{"type":"number","uniqueKey":"amount","typeLabel":"number"},"currency":{"type":"string","example":"MWK","uniqueKey":"currency","typeLabel":"string"},"reference":{"type":"string","uniqueKey":"reference","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"customer":{"type":"object","properties":{"first_name":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"customer.first_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"uniqueKey":"customer.first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"customer.last_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"uniqueKey":"customer.last_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.last_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","format":"email","uniqueKey":"customer.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","uniqueKey":"customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.email","typeLabel":"string\u003cemail> | null"},"phone":{"oneOf":[{"type":"string","description":"A Malawi mobile number, for example `0991234567` or `265991234567`. Returned as `+265991234567`.","uniqueKey":"customer.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"A Malawi mobile number, for example `0991234567` or `265991234567`. Returned as `+265991234567`.","uniqueKey":"customer.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.phone","typeLabel":"string | null"}},"uniqueKey":"customer","typeLabel":"object"},"line_items":{"type":"array","items":{"type":"object","required":["name","quantity","unit_amount"],"properties":{"name":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].quantity","typeLabel":"integer"},"unit_amount":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].unit_amount","typeLabel":"number"},"description":{"oneOf":[{"type":"string","maxLength":500,"uniqueKey":"line_items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"uniqueKey":"line_items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].description","typeLabel":"string | null"}},"uniqueKey":"line_items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"line_items","typeLabel":"object[]"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"sub_merchant_account_code":{"oneOf":[{"type":"string","uniqueKey":"sub_merchant_account_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"sub_merchant_account_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"sub_merchant_account_code","typeLabel":"string | null"},"return_url":{"type":"string","uniqueKey":"return_url","typeLabel":"string"},"cancel_url":{"type":"string","uniqueKey":"cancel_url","typeLabel":"string"},"payment":{"oneOf":[{"type":"object","description":"The payment that completed the session. `null` until it is paid.","properties":{"transaction_id":{"type":"string","format":"uuid","uniqueKey":"payment.oneOf.0.transaction_id","typeLabel":"string\u003cuuid>"},"transaction_reference":{"type":"string","example":"TXN-WRYF6S2W3DQW","uniqueKey":"payment.oneOf.0.transaction_reference","typeLabel":"string"},"method":{"type":"string","example":"wallet","uniqueKey":"payment.oneOf.0.method","typeLabel":"string"},"provider":{"oneOf":[{"type":"string","example":"airtel","uniqueKey":"payment.oneOf.0.provider.oneOf.0","typeLabel":"string"},{"type":"null","example":"airtel","uniqueKey":"payment.oneOf.0.provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.oneOf.0.provider","typeLabel":"string | null"},"amount":{"type":"number","example":42500,"uniqueKey":"payment.oneOf.0.amount","typeLabel":"number"},"fee":{"type":"number","example":1275,"uniqueKey":"payment.oneOf.0.fee","typeLabel":"number"},"levy":{"type":"number","example":0,"uniqueKey":"payment.oneOf.0.levy","typeLabel":"number"},"aggregator_fee":{"type":"number","example":0,"description":"Aggregator sessions: the aggregator's share.","uniqueKey":"payment.oneOf.0.aggregator_fee","typeLabel":"number"},"net":{"type":"number","example":41225,"description":"What reaches the account after fees.","uniqueKey":"payment.oneOf.0.net","typeLabel":"number"},"paid_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"payment.oneOf.0.paid_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"payment.oneOf.0.paid_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.oneOf.0.paid_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"payment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The payment that completed the session. `null` until it is paid.","properties":{"transaction_id":{"type":"string","format":"uuid"},"transaction_reference":{"type":"string","example":"TXN-WRYF6S2W3DQW"},"method":{"type":"string","example":"wallet"},"provider":{"oneOf":[{"type":"string","example":"airtel"},{"type":"null","example":"airtel"}]},"amount":{"type":"number","example":42500},"fee":{"type":"number","example":1275},"levy":{"type":"number","example":0},"aggregator_fee":{"type":"number","example":0,"description":"Aggregator sessions: the aggregator's share."},"net":{"type":"number","example":41225,"description":"What reaches the account after fees."},"paid_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]}},"uniqueKey":"payment.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment","typeLabel":"object | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"expires_at":{"type":"string","format":"date-time","uniqueKey":"expires_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"completed_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"3c0f6f4e-7a1b-4c59-9a3e-0d5b7f2c8e11","object":"checkout.session","url":"https://checkout.primepay.mw/c/3c0f6f4e-7a1b-4c59-9a3e-0d5b7f2c8e11","status":"open","livemode":true,"amount":42500,"currency":"MWK","reference":"ORDER-5531","description":"2 x School shoes","customer":{"first_name":"Chikondi","last_name":"Banda","email":"customer@example.com","phone":"+265991234567"},"line_items":[{"name":"School shoes","description":null,"quantity":2,"unit_amount":20000},{"name":"Delivery","description":null,"quantity":1,"unit_amount":2500}],"metadata":{"cart":"88412"},"sub_merchant_account_code":null,"return_url":"https://shop.example.com/orders/5531/done","cancel_url":"https://shop.example.com/cart","payment":null,"created_at":"2026-11-12T08:00:00Z","expires_at":"2026-11-12T08:30:00Z","completed_at":null},"examples":{"Example":{"title":"Example","value":{"id":"3c0f6f4e-7a1b-4c59-9a3e-0d5b7f2c8e11","object":"checkout.session","url":"https://checkout.primepay.mw/c/3c0f6f4e-7a1b-4c59-9a3e-0d5b7f2c8e11","status":"open","livemode":true,"amount":42500,"currency":"MWK","reference":"ORDER-5531","description":"2 x School shoes","customer":{"first_name":"Chikondi","last_name":"Banda","email":"customer@example.com","phone":"+265991234567"},"line_items":[{"name":"School shoes","description":null,"quantity":2,"unit_amount":20000},{"name":"Delivery","description":null,"quantity":1,"unit_amount":2500}],"metadata":{"cart":"88412"},"sub_merchant_account_code":null,"return_url":"https://shop.example.com/orders/5531/done","cancel_url":"https://shop.example.com/cart","payment":null,"created_at":"2026-11-12T08:00:00Z","expires_at":"2026-11-12T08:30:00Z","completed_at":null}}},"exampleType":"examples"}},"exampleType":"examples"},"3622f4ed-f419-44fe-be68-98c75eafff65":{"description":"An error. `param` names the field at fault. Use `code` in your code; show `message` to people.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","example":"invalid_request_error","uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","example":"line_items_total_mismatch","uniqueKey":"error.code","typeLabel":"string"},"param":{"oneOf":[{"type":"string","example":"line_items","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","example":"line_items","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"message":{"type":"string","example":"line_items add up to 40000.00 but amount is 42500.00.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"line_items_total_mismatch","param":"line_items","message":"line_items add up to 40000.00 but amount is 42500.00."}}}},"exampleType":"generated"}},"exampleType":"generated"},"7f226e2c-c307-49ae-9bbf-c971cd86c93b":{"description":"An error. `param` names the field at fault. Use `code` in your code; show `message` to people.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","example":"invalid_request_error","uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","example":"line_items_total_mismatch","uniqueKey":"error.code","typeLabel":"string"},"param":{"oneOf":[{"type":"string","example":"line_items","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","example":"line_items","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"message":{"type":"string","example":"line_items add up to 40000.00 but amount is 42500.00.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"line_items_total_mismatch","param":"line_items","message":"line_items add up to 40000.00 but amount is 42500.00."}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"f2d79d5d-613e-429d-be97-e78e77778c27":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key: `sk_live_…` / `sk_test_…` (secret), `pk_live_…` / `pk_test_…` (publishable, read-only reference data) or `rk_live_…` / `rk_test_…` (payments only).\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"d911aee0-b44b-48be-9f3a-fd7b00e1e819":{"url":"https://api.primepay.mw","description":"Live API (live keys, `sk_live_…`)"},"405140b9-f90a-47e4-aeaa-9946817b93f4":{"url":"https://sandbox-api.primepay.mw","description":"Sandbox API (test keys, `sk_test_…`)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your API key: `sk_live_…` / `sk_test_…` (secret), `pk_live_…` / `pk_test_…` (publishable, read-only reference data) or `rk_live_…` / `rk_test_…` (payments only).\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your API key: `sk_live_…` / `sk_test_…` (secret), `pk_live_…` / `pk_test_…` (publishable, read-only reference data) or `rk_live_…` / `rk_test_…` (payments only).\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"prosystems-tech","siteName":"PrimePay","title":"Create a checkout session - PrimePay","navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/checkout-sessions/create-a-checkout-session","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T16:36:07.360Z","originalFileLocation":"api-reference/checkout-sessions/create-a-checkout-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"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 PrimePay payment page for one order. Redirect the customer to url; it can be paid for 30 minutes. Guide: hosted checkout and checkout errors.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PrimePay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/prosystems-tech/bgyknVzzbWNYws3_/_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/prosystems-tech/bgyknVzzbWNYws3_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/prosystems-tech/bgyknVzzbWNYws3_/_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/prosystems-tech/bgyknVzzbWNYws3_/_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/prosystems-tech/bgyknVzzbWNYws3_/_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/prosystems-tech/bgyknVzzbWNYws3_/_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/prosystems-tech/bgyknVzzbWNYws3_/_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/prosystems-tech/bgyknVzzbWNYws3_/_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/prosystems-tech/bgyknVzzbWNYws3_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a checkout session - PrimePay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a PrimePay payment page for one order. Redirect the customer to url; it can be paid for 30 minutes. Guide: hosted checkout and checkout errors.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PrimePay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://prosystems-tech.mintlify.site/_mintlify/api/og/v2?division=Checkout+sessions\u0026amp;title=Create+a+checkout+session\u0026amp;description=Creates+a+PrimePay+payment+page+for+one+order.+Redirect+the+customer+to+%60url%60%3B+it+can+be+paid+for+30+minutes.%0A%0AGuide%3A+%5Bhosted+checkout%5D%28%2Fapi-reference%2Fcheckout-\u0026amp;theme=b265b6de14d9582a003885b7\u0026amp;signature=b12a38e54111ead13cd57ea6d0f36542c99daecfba1c24e8cc3c0e592140dd39\">\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 session - PrimePay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a PrimePay payment page for one order. Redirect the customer to url; it can be paid for 30 minutes. Guide: hosted checkout and checkout errors.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://prosystems-tech.mintlify.site/_mintlify/api/og/v2?division=Checkout+sessions\u0026amp;title=Create+a+checkout+session\u0026amp;description=Creates+a+PrimePay+payment+page+for+one+order.+Redirect+the+customer+to+%60url%60%3B+it+can+be+paid+for+30+minutes.%0A%0AGuide%3A+%5Bhosted+checkout%5D%28%2Fapi-reference%2Fcheckout-\u0026amp;theme=b265b6de14d9582a003885b7\u0026amp;signature=b12a38e54111ead13cd57ea6d0f36542c99daecfba1c24e8cc3c0e592140dd39\">\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/prosystems-tech/bgyknVzzbWNYws3_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PrimePay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#09000D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/checkout-sessions/create-a-checkout-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.primepay.mw/#organization\",\"name\":\"PrimePay\",\"url\":\"https://docs.primepay.mw\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/prosystems-tech/rcMYSU1YPPUUcDzf/logo/primepay-v3-light.png?fit=max\u0026auto=format\u0026n=rcMYSU1YPPUUcDzf\u0026q=85\u0026s=eb5592018cf5323277a3135853fc9d6d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.primepay.mw#website\",\"name\":\"PrimePay\",\"url\":\"https://docs.primepay.mw\",\"publisher\":{\"@id\":\"https://docs.primepay.mw/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session#webpage\",\"url\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session\",\"name\":\"Create a checkout session\",\"description\":\"Creates a PrimePay payment page for one order. Redirect the customer to url; it can be paid for 30 minutes. Guide: hosted checkout and checkout errors.\",\"dateModified\":\"2026-11-12T16:36:07.360Z\",\"isPartOf\":{\"@id\":\"https://docs.primepay.mw#website\"},\"breadcrumb\":{\"@id\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PrimePay\",\"item\":\"https://docs.primepay.mw\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a checkout session\",\"item\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session#apireference\",\"headline\":\"Create a checkout session\",\"name\":\"Create a checkout session\",\"description\":\"Creates a PrimePay payment page for one order. Redirect the customer to url; it can be paid for 30 minutes. Guide: hosted checkout and checkout errors.\",\"url\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.primepay.mw/api-reference/checkout-sessions/create-a-checkout-session#webpage\"},\"dateModified\":\"2026-11-12T16:36:07.360Z\",\"publisher\":{\"@id\":\"https://docs.primepay.mw/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.primepay.mw#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PrimePay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PrimePay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/checkout-sessions/create-a-checkout-session.md","siteName":"PrimePay","nav":{"global":null,"versions":[{"version":"v1","tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"API Reference","groups":[{"group":"Get started","pages":[{"title":"PrimePay API v1","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"Idempotency","href":"/api-reference/idempotency"},{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Operators","pages":[{"title":"List mobile money operators","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /mobile-money/operators","href":"/api-reference/operators/list-mobile-money-operators"}]},{"group":"Payments","pages":[{"title":"Create a payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payments/mobile-money","href":"/api-reference/payments/create-a-payment"},{"title":"Collect for a sub-merchant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/sub-merchants/{subMerchantCode}/payments/mobile-money","href":"/api-reference/payments/collect-for-a-sub-merchant"},{"title":"Get a payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{reference}","href":"/api-reference/payments/get-a-payment"},{"title":"Find a payment by order","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments","href":"/api-reference/payments/find-a-payment-by-order"}]},{"group":"Refunds","pages":[{"title":"Refund a payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payments/{reference}/refunds","href":"/api-reference/refunds/refund-a-payment"},{"title":"List a payment's refunds","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payments/{reference}/refunds","href":"/api-reference/refunds/list-a-payments-refunds"},{"title":"Get a refund","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/refunds/{reference}","href":"/api-reference/refunds/get-a-refund"}]},{"group":"Transfers","pages":[{"title":"Look up a merchant account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/transfers/merchant-account/recipient","href":"/api-reference/transfers/look-up-a-merchant-account"},{"title":"Look up a PrimePay wallet","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/transfers/wallet/recipient","href":"/api-reference/transfers/look-up-a-primepay-wallet"},{"title":"Transfer to a merchant account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/transfers/merchant-account","href":"/api-reference/transfers/transfer-to-a-merchant-account"},{"title":"Transfer to a PrimePay wallet","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/transfers/wallet","href":"/api-reference/transfers/transfer-to-a-primepay-wallet"},{"title":"Get a transfer","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/transfers/{reference}","href":"/api-reference/transfers/get-a-transfer"}]},{"group":"Payouts","pages":[{"title":"Look up a mobile money number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payouts/mobile-money/recipient","href":"/api-reference/payouts/look-up-a-mobile-money-number"},{"title":"Look up a bank account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payouts/bank/recipient","href":"/api-reference/payouts/look-up-a-bank-account"},{"title":"List banks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payouts/banks","href":"/api-reference/payouts/list-banks"},{"title":"Pay a mobile money number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payouts/mobile-money","href":"/api-reference/payouts/pay-a-mobile-money-number"},{"title":"Pay a bank account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payouts/bank","href":"/api-reference/payouts/pay-a-bank-account"},{"title":"Get a payout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payouts/{reference}","href":"/api-reference/payouts/get-a-payout"}]},{"group":"Payment links","pages":[{"title":"Create a payment link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-links","href":"/api-reference/payment-links/create-a-payment-link"},{"title":"Create a payment link for a sub-merchant","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/sub-merchants/{subMerchantCode}/payment-links","href":"/api-reference/payment-links/create-a-payment-link-for-a-sub-merchant"},{"title":"Get a payment link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/payment-links/{id}","href":"/api-reference/payment-links/get-a-payment-link"},{"title":"Deactivate a payment link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-links/{id}/deactivate","href":"/api-reference/payment-links/deactivate-a-payment-link"},{"title":"Reactivate a payment link","description":"No body. Makes an `inactive` link payable again. A completed or expired link can't be changed (`409`).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/payment-links/{id}/reactivate","href":"/api-reference/payment-links/reactivate-a-payment-link"}]},{"group":"Checkout sessions","pages":[{"title":"Create a checkout session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/checkout/sessions","href":"/api-reference/checkout-sessions/create-a-checkout-session"},{"title":"Check a checkout session","description":"Returns the session. Fulfil the order only when `status` is `complete`.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v1/checkout/sessions/{id}","href":"/api-reference/checkout-sessions/check-a-checkout-session"},{"title":"Cancel a checkout session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v1/checkout/sessions/{id}/expire","href":"/api-reference/checkout-sessions/cancel-a-checkout-session"}]}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"Recipes","pages":[{"title":"Recipes","href":"/recipes/overview"}]},{"tab":"Changelogs","pages":[{"title":"Changelogs","href":"/changelog"}]}]}]},"basePath":"","title":"Create a checkout session - PrimePay","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}