import CheckoutIntents from 'checkout-intents';const client = new CheckoutIntents({ apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const shipment of client.shipments.list()) { console.log(shipment);}
Enables developers to query shipments associated with their account, with filters and cursor-based pagination.
GET
/
api
/
v1
/
shipments
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});// Automatically fetches more pages as needed.for await (const shipment of client.shipments.list()) { console.log(shipment);}