import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const customerListResponse of client.v1.customers.list()) { console.log(customerListResponse.id);}
Retrieves a paginated list of customers in the environment.
GET
/
api
/
v1
/
customers
JavaScript
Copy
Ask AI
import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const customerListResponse of client.v1.customers.list()) { console.log(customerListResponse.id);}