POST
/
customers
curl --request POST \
  --url https://base_url/api/v1/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "John Doe",
  "corporation_id": "b6d009b0-d174-463f-b030-94643c28e209",
  "email": "jsmith@example.com",
  "shipping_address": {
    "address_line_1": "1776 Main St",
    "address_line_2": "Apt. #123",
    "address_line_3": "<string>",
    "postal_code": "90401",
    "city": "Santa Monica",
    "state": "CA",
    "country": "US"
  },
  "external_id": "<string>"
}'
{
  "data": {
    "id": "b6d009b0-d174-463f-b030-94643c28e209",
    "corporation_id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
    "name": "John Doe",
    "email": "jsmith@example.com",
    "shipping_address": {
      "address_line_1": "1776 Main St",
      "address_line_2": "Apt. #123",
      "address_line_3": "<string>",
      "postal_code": "90401",
      "city": "Santa Monica",
      "state": "CA",
      "country": "US"
    },
    "external_id": "<string>"
  },
  "message": "Successfully created customer."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

A display name for this customer.

Minimum length: 3
Example:

"John Doe"

corporation_id
string
required

The unique identifier for a corporation this customer belongs to.

Example:

"b6d009b0-d174-463f-b030-94643c28e209"

email
string

Email address of the customer.

shipping_address
object
external_id
string

External identifier for the customer.

Response

200
application/json
Information about the created customer
data
object
message
string
Example:

"Successfully created customer."