import CheckoutIntents from 'checkout-intents';const client = new CheckoutIntents({ apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted});const shipment = await client.shipments.retrieve('id');console.log(shipment);
Returns shipment information if the lookup succeeds.
GET
/
api
/
v1
/
shipments
/
{id}
JavaScript
Copy
Ask AI
import CheckoutIntents from 'checkout-intents';const client = new CheckoutIntents({ apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted});const shipment = await client.shipments.retrieve('id');console.log(shipment);