curl -X POST 'https://api.henrylabs.ai/v0/cart/checkout' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'x-user-id: user123'
{ "success": true, "status": "success", "message": "Checkout initiated successfully", "data": { "checkout_url": "https://checkout.henrylabs.ai?session=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ1c2VyMTIzIiwiY2FydElkIjoiY2FydDQ1NiIsImV4cCI6MTcwMjQ5MTYwMH0.xyzabc123" } }
Generate a checkout URL for all items in the user’s cart
Show Data Object
checkout_url
Checkout initiated successfully
The response is of type object.
object