v1

latestOpenAPI 3.1.02026-07-24233206489.1 KB
Customers (v1)

Create Customer

Create a new customer with first name, last name, email, and default device

post/v1/customers

Request body

Example request

{
  "data": {
    "attributes": {
      "default_device": "email",
      "email": "john@example.com",
      "first_name": "John",
      "last_name": "Doe",
      "phone": "+639171234567"
    }
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "created_at": 1710000000,
      "default_device": "email",
      "email": "john@example.com",
      "first_name": "John",
      "last_name": "Doe",
      "livemode": true,
      "phone": "+639171234567",
      "updated_at": 1710000000
    },
    "id": "cus_abc123",
    "type": "customer"
  }
}