curl --request POST \
--url https://api.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": "[email protected]",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001",
"addressLine2": "Apt 1"
}
}
'{
"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": {}
}
],
"shippingDetails": {
"fullName": "John Doe",
"email": "[email protected]",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001",
"addressLine2": "Apt 1"
},
"cardLast4": "<string>"
}
}Confirms the checkout session and creates an order
curl --request POST \
--url https://api.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": "[email protected]",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001",
"addressLine2": "Apt 1"
}
}
'{
"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": {}
}
],
"shippingDetails": {
"fullName": "John Doe",
"email": "[email protected]",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001",
"addressLine2": "Apt 1"
},
"cardLast4": "<string>"
}
}Supabase access token for authentication.
Show child attributes
Full name
1"John Doe"
Phone number
1"+1234567890"
Address line 1
1"350 5th Ave"
Country code
2"US"
City
1"New York"
State or province
1"New York"
Postal code
1"10001"
Address line 2
"Apt 1"
Order placed successfully
Show child attributes
Show child attributes
Full name
1"John Doe"
Phone number
1"+1234567890"
Address line 1
1"350 5th Ave"
Country code
2"US"
City
1"New York"
State or province
1"New York"
Postal code
1"10001"
Address line 2
"Apt 1"