---
title: "Bulk import customers"
method: POST
path: "/api/v1/customers/import"
tags: ["Bulk Import"]
---

# Bulk import customers

`POST /api/v1/customers/import`

Imports multiple customers in bulk. Used for migrating customer data from external systems.

## Headers

- `X-ACCOUNT-ID` string
- `X-ENVIRONMENT-ID` string

## Request body

- ImportCustomersRequestDto — Bulk import up to 1000 customers. Existing customers are updated, new ones are created.
  - `customers` object[], required — List of customer objects to import
    - `name` string, nullable, required — The name of the customer
    - `email` string, email, nullable, required — The email of the customer
    - `id` string, required — Customer slug
    - `metadata` object — Additional metadata
    - `updatedAt` string, date-time — Timestamp of when the record was last updated
    - `billingId` string — Id in the billing provider
    - `salesforceId` string — The unique identifier for the customer in Salesforce integration
    - `paymentMethodId` string — Billing provider payment method id
  - `integrationId` string — Integration details

## Response `201`

Import results with success and failure details.

- ImportCustomersResponseDto — Response object
  - `data` object, required — List of newly created customer IDs from the import operation.
    - `newCustomers` string[], required — Customer IDs created during import

## Other responses

- `400` — bad request.
- `401` — User is not authenticated.
- `403` — User is not allowed to access this resource.
- `404` — Customer not found.
- `429` — Too many requests.

---

[API](https://skmtc.net/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.net/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stiggio/stigg-api/versions/ffc977f1c07e/schema)
