import HenrySDK from '@henrylabs/sdk';
const client = new HenrySDK({
apiKey: process.env['HENRY_SDK_API_KEY'], // This is the default and can be omitted
});
const response = await client.checkout.session.createQuote({
shippingDetails: {
addressLine1: '350 5th Ave',
city: 'New York',
countryCode: 'US',
email: '[email protected]',
fullName: 'John Doe',
phoneNumber: '+1234567890',
postalCode: '10001',
stateOrProvince: 'New York',
},
'x-user-id': 'x-user-id',
});
console.log(response.message);