curl --request POST \
--url https://api.henrylabs.ai/v0/checkout/session/quote \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--header 'x-api-key: <api-key>' \
--header 'x-user-id: <x-user-id>' \
--data '
{
"shippingDetails": {
"fullName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001",
"addressLine2": "Apt 1"
},
"region": "<string>"
}
'{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"session_token": "<string>",
"order_metadata": {
"total_price": 123,
"shipping": {},
"shipping_total": 123,
"tax": 123,
"transaction_fee": 123,
"transaction_fee_percentage": 123
}
}
}Creates or updates a checkout session with shipping details and returns pricing metadata plus a session token.
curl --request POST \
--url https://api.henrylabs.ai/v0/checkout/session/quote \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--header 'x-api-key: <api-key>' \
--header 'x-user-id: <x-user-id>' \
--data '
{
"shippingDetails": {
"fullName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"addressLine1": "350 5th Ave",
"countryCode": "US",
"city": "New York",
"stateOrProvince": "New York",
"postalCode": "10001",
"addressLine2": "Apt 1"
},
"region": "<string>"
}
'{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"session_token": "<string>",
"order_metadata": {
"total_price": 123,
"shipping": {},
"shipping_total": 123,
"tax": 123,
"transaction_fee": 123,
"transaction_fee_percentage": 123
}
}
}Supabase access token for authentication.
Was this page helpful?