import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const response = await client.v1.customers.import({ customers: [ { id: 'id', email: 'dev@stainless.com', name: 'name', }, ],});console.log(response.data);
Imports multiple customers in bulk. Used for migrating customer data from external systems.
POST
/
api
/
v1
/
customers
/
import
JavaScript
Copy
import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const response = await client.v1.customers.import({ customers: [ { id: 'id', email: 'dev@stainless.com', name: 'name', }, ],});console.log(response.data);