Skip to content
myela

Only email is required. name falls back to the local part of the email when omitted. externalId is your own id for this customer, carried alongside ours so you do not have to store a second one. It must be unique among your active customers, and it is **write-once**: set it here, or later on a customer that has none. Changing one already set is 409. customFields are your own typed fields on the customer — up to **20** rows of {name, type, value}, and nothing invalid is ever silently dropped: a bad row is a 422 naming customFields[i]. name: 1–40 characters, starting with a letter, then letters/digits/spaces/underscores/hyphens; unique per customer, case-insensitively. type: text | number | boolean | date. value by type: text = string up to 500 characters (no control characters); number = a **string-encoded** decimal like "12" or "-3.14" (up to 50 characters — never a JSON number, so precision survives); boolean = true/false; date = a real calendar day as YYYY-MM-DD.

Create customer

POST/v1/customersLink

Only email is required. name falls back to the local part of the email when omitted.

externalId is your own id for this customer, carried alongside ours so you do not have to store a second one. It must be unique among your active customers, and it is write-once: set it here, or later on a customer that has none. Changing one already set is 409.

customFields are your own typed fields on the customer — up to 20 rows of {name, type, value}, and nothing invalid is ever silently dropped: a bad row is a 422 naming customFields[i]. name: 1–40 characters, starting with a letter, then letters/digits/spaces/underscores/hyphens; unique per customer, case-insensitively. type: text | number | boolean | date. value by type: text = string up to 500 characters (no control characters); number = a string-encoded decimal like "12" or "-3.14" (up to 50 characters — never a JSON number, so precision survives); boolean = true/false; date = a real calendar day as YYYY-MM-DD.

SandboxSecret keycustomers.create

Request fields

Edit a field and the generated request updates immediately.

Request body
stringrequired

The customer’s email address.

email

Optional fields4
stringoptional

A human-readable name.

stringoptional

A phone number including country code.

stringoptional

The external id value.

arrayoptional

The custom fields value.

Response contract

The successful wire shape and errors an integration should branch on.

201

Customer

application/json
idstringrequired
Unique customer identifier.
object"customer"required
Stable resource discriminator.
emailstring
Customer email.
namestring
Customer name.
phonestring
Customer phone.
externalIdstring
Your own id for this customer. Write-once.
customFieldsobject[]
Your own typed fields, up to 20 rows of {name, type, value}. Omitted when none are set. Replace-on-write.
createdAtstringrequired
ISO 8601 creation timestamp.
Example response
{
  "id": "cus_01JEXAMPLE",
  "object": "customer",
  "email": "ada@example.com",
  "name": "Ada Lovelace",
  "phone": "+15555550123",
  "externalId": "acct-8812",
  "customFields": [
    {
      "name": "Plan tier",
      "type": "text",
      "value": "gold"
    },
    {
      "name": "Seats",
      "type": "number",
      "value": "12"
    }
  ],
  "createdAt": "2026-08-10T20:49:51.653Z"
}
Error responses
401authentication_failed

The key is missing, malformed, revoked, or invalid for this environment.

403permission_denied

The key does not have customers.create.

422invalid_request

One or more request fields are invalid.