Authorizations
Supabase access token for authentication.
Body
application/json
curl --request POST \
--url https://api.sandbox.henrylabs.ai/v0/checkout/session/confirm \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--header 'x-api-key: <api-key>' \
--header 'x-session-token: <x-session-token>' \
--data '{
"shippingDetails": {
"fullName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"addressLine2": "Apt 1",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001"
}
}'{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"id": "<string>",
"status": "<string>",
"statusMessage": "<string>",
"subtotal": "<string>",
"tax": "<string>",
"shipping": "<string>",
"grandTotal": "<string>",
"currency": "<string>",
"products": [
{
"productName": "<string>",
"quantity": 123,
"productMetadata": {}
}
],
"cardLast4": "<string>",
"shippingDetails": {
"fullName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"addressLine2": "Apt 1",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001"
}
}
}Confirms the checkout session and creates an order
curl --request POST \
--url https://api.sandbox.henrylabs.ai/v0/checkout/session/confirm \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--header 'x-api-key: <api-key>' \
--header 'x-session-token: <x-session-token>' \
--data '{
"shippingDetails": {
"fullName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"addressLine2": "Apt 1",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001"
}
}'{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"id": "<string>",
"status": "<string>",
"statusMessage": "<string>",
"subtotal": "<string>",
"tax": "<string>",
"shipping": "<string>",
"grandTotal": "<string>",
"currency": "<string>",
"products": [
{
"productName": "<string>",
"quantity": 123,
"productMetadata": {}
}
],
"cardLast4": "<string>",
"shippingDetails": {
"fullName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"addressLine2": "Apt 1",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001"
}
}
}Supabase access token for authentication.
Show child attributes