Skip to main content
POST
/
cart
/
checkout
Create Hosted Checkout
curl --request POST \
  --url https://api.henrylabs.ai/v0/cart/checkout \
  --header 'x-api-key: <api-key>' \
  --header 'x-user-id: <x-user-id>'
{
  "success": true,
  "status": "<string>",
  "message": "<string>",
  "data": {
    "checkout_url": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Headers

x-user-id
string
required

Query Parameters

auth
boolean
default:true

Whether authentication is required for checkout (default: true)

region
string

ISO 3166-1 alpha-2 country code (2-character lowercase string)

Required string length: 2

Response

Hosted checkout page created

success
boolean
required
Example:

true

status
string
required
Example:

"success"

message
string
required
Example:

"Hosted checkout page created"

data
object