---
title: "Create a new customer"
method: POST
path: "/customers"
tags: ["customers"]
---

# Create a new customer

`POST /customers`

## Request

- Base URL: `https://api.agentpaid.io/api/v1`
- URL: `https://api.agentpaid.io/api/v1/customers`
- Auth: HTTP bearer

## Request body

- CustomerCreate
  - `name` string, required
  - `externalId` string
  - `phone` string
  - `employeeCount` number, double
  - `annualRevenue` number, double
  - `taxExemptStatus` 'none' | 'exempt' | 'reverse'
  - `creationSource` 'manual' | 'api' | 'crm' | 'other'
  - `website` string
  - `billingAddress` Address
    - `line1` string, required
    - `line2` string
    - `city` string, required
    - `state` string, required
    - `zipCode` string, required
    - `country` string, required
  - `metadata` CustomerCreateMetadata: Flexible JSON field for storing custom metadata about the customer
  - `contacts` ContactCreateForCustomer[]: Array of contacts to create for this customer
    - `externalId` string
    - `salutation` 'Mr.' | 'Mrs.' | 'Miss' | 'Ms.' | 'Dr.' | 'Prof.', required
    - `firstName` string, required
    - `lastName` string, required
    - `accountName` string
    - `email` string, required
    - `phone` string
    - `billingStreet` string
    - `billingCity` string
    - `billingStateProvince` string
    - `billingCountry` string
    - `billingPostalCode` string

## Response `200`

Success response - customer already exists with this externalId

- Customer
  - `id` string, required
  - `organizationId` string, required
  - `name` string, required
  - `externalId` string
  - `phone` string
  - `employeeCount` number, double
  - `annualRevenue` number, double
  - `taxExemptStatus` 'none' | 'exempt' | 'reverse'
  - `creationSource` 'manual' | 'api' | 'crm' | 'other'
  - `creationState` 'active' | 'draft'
  - `website` string
  - `billingAddress` Address
    - `line1` string, required
    - `line2` string
    - `city` string, required
    - `state` string, required
    - `zipCode` string, required
    - `country` string, required
  - `metadata` CustomerMetadata: Flexible JSON field for storing custom metadata about the customer

---

[API](https://skmtc.dev/paid/apis/paid-2.md) - [All operations](https://skmtc.dev/paid/apis/paid-2/llms.txt) - [OpenAPI document](https://skmtc.dev/paid/apis/paid-2/revisions/dbdf4a60ed27?raw)
