Javascript
import HenrySDK from '@henrylabs/sdk'; const client = new HenrySDK({ apiKey: 'My API Key', }); const response = await client.checkout.session.createQuote({ shippingDetails: { addressLine1: '350 5th Ave', city: 'New York', countryCode: 'US', email: 'john.doe@example.com', fullName: 'John Doe', phoneNumber: '+1234567890', postalCode: '10001', stateOrProvince: 'New York', }, 'x-user-id': 'x-user-id', }); console.log(response.message);
{ "success": true, "status": "<string>", "message": "<string>", "data": { "session_token": "<string>", "order_metadata": { "total_price": 123, "shipping": {}, "shipping_total": 123, "tax": 123 } } }
Creates or updates a checkout session with shipping details and returns pricing metadata plus a session token.
Supabase access token for authentication.
Show child attributes
Checkout session quote generated