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>"
}
}Generates a hosted checkout URL for the user’s cart that can be embedded in an iframe or modal. The page walks the buyer through reviewing the order, entering shipping and payment information, and confirming the purchase.
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>"
}
}Whether authentication is required for checkout (default: true)
ISO 3166-1 alpha-2 country code (2-character lowercase string)
2Was this page helpful?