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 order of client.orders.list()) { console.log(order.id);}
List orders for the authenticated developer with cursor-based pagination.
GET
/
api
/
v1
/
orders
JavaScript
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 order of client.orders.list()) { console.log(order.id);}