Skip to main content
POST
/
cart
/
checkout
Create Hosted Checkout
curl --request POST \
  --url https://api.sandbox.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)

Response

Hosted checkout page created

success
boolean
required
status
string
required
message
string
required
data
object