---
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 `200`

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.

## Changes

- **2026-06-08** `3acd63d6c861` — 2 info
  - added the new optional `header` request parameter `X-ACCOUNT-ID`
  - added the new optional `header` request parameter `X-ENVIRONMENT-ID`
- **2026-06-04** `4fa87d66426d` — 1 warning
  - added the new `PricingModelNotSupportedByBillingIntegration` enum value to the `code` response property for the response status `400`
- **2026-05-31** `0dece860f678` — 1 warning
  - added the new `DataExportIntegrationError` enum value to the `code` response property for the response status `400`
- **2026-05-28** `b181b166a2a5` — 1 warning
  - added the new `InvalidReceivedSignatureError` enum value to the `code` response property for the response status `400`

[Change history](https://skmtc.dev/stiggio/apis/stigg-api/changes/api/v1/customers/import/post.md)

---

[API](https://skmtc.dev/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.dev/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stiggio/apis/stigg-api/revisions/de96c0c4633a?raw)
