---
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.

## Changes

- **2026-07-28** `913f273cc2f7` — 1 warning
  - added the new `ContractNotFound` enum value to the `code` response property for the response status `404`
- **2026-07-23** `b876edd1a4fc` — 5 warning
  - added the new `CreditOveragePriceCurrencyNotFound` enum value to the `code` response property for the response status `400`
  - added the new `InvalidCreditOverageBillingModel` enum value to the `code` response property for the response status `400`
  - added the new `InvoicePreviewNotAvailableForDraftContract` enum value to the `code` response property for the response status `400`
  - added the new `OveragePriceNotSupportedOnAddon` enum value to the `code` response property for the response status `400`
  - …1 more
- **2026-07-08** `58bb216ff8ce` — 1 warning
  - added the new `GovernanceNotEnabled` enum value to the `code` response property for the response status `403`
- **2026-07-01** `04d5fa9dcb6f` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`
- **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`

[Full 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-service-production.skmtc.workers.dev/v1/apis/stiggio/stigg-api/revisions/3e2c8cfcd035/schema)
