Skip to content

Create a customer

Creates a customer with a reference to a user in your own system.

POST /v1/customers

Use cases

  • Create a customer when a user signs up or pays in your own system, before you issue a license to the user.
  • Import the users of your own system from a script, such as when you move from another licensing system.

Authentication

Send an API key. This endpoint requires the scope customers:write. See Authentication and Scopes.

Customers belong to your account, not to one product. An integration that is limited to one product can create customers. See Product.

Request

Headers

HeaderRequiredDescription
AuthorizationYesThe word Bearer, a space and the API key.
Content-TypeYesapplication/json.

Body

FieldTypeRequiredDescription
external_refstringYesThe ID of the customer in your own system. No other customer in your account can have the same reference. See References.
emailstringNoThe email address of the customer.
first_namestringNoThe first name of the customer.
last_namestringNoThe last name of the customer.

Spaces at the start and the end of a value are removed. A value that has only spaces is stored as null.

Response

The answer has the status 201.

FieldTypeDescription
idstringThe ID of the customer.
external_refstringThe ID of the customer in your own system. See References.
emailstring or nullThe email address of the customer.
first_namestring or nullThe first name of the customer.
last_namestring or nullThe last name of the customer.
created_atstringThe time when the customer was created.
updated_atstringThe time when the customer was last changed.

Errors

StatusReasonDescription
400The request body could not be read.The body is not valid JSON.
400The submitted details are not valid.A field is not valid. The errors field names it. See the table below.
401An API key is required.The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme.
401The API key is not valid.No integration has this key.
401The API key has expired.The expiry date of the key has passed.
403This integration does not have the customers:write scope.The integration does not have customers:write.
409A customer with this reference already exists.Another customer in your account has the reference in external_ref. The errors field names external_ref.
429There are too many requests. Try again later.See Rate limits.

These fields can be in errors:

FieldDescription
external_refThe reference is missing or too long.
emailThe email address is not valid or too long.
first_nameThe first name is too long.
last_nameThe last name is too long.

See Errors.

Example

curl https://api.seatify.dev/v1/customers \
  -H "Authorization: Bearer $SEATIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "external_ref": "usr_104233",
    "email": "mira.okafor@example.com",
    "first_name": "Mira",
    "last_name": "Okafor"
  }'

The answer:

{
  "id": "<customer id>",
  "external_ref": "usr_104233",
  "email": "mira.okafor@example.com",
  "first_name": "Mira",
  "last_name": "Okafor",
  "created_at": "2026-09-27T22:50:30Z",
  "updated_at": "2026-09-27T22:50:30Z"
}