Skip to content

Create Customer

Create a new customer.

POST /v1/customers

Request Body

json
{
  "email": "customer@example.com",
  "name": "John Doe",
  "company": "Acme Inc",
  "phone": "+1234567890"
}
FieldRequiredTypeDescription
emailYesstringCustomer email (must be unique)
nameNostringCustomer name
companyNostringCompany name
phoneNostringPhone number

Response

json
{
  "data": {
    "id": "cus_xxx",
    "email": "customer@example.com",
    "name": "John Doe",
    "company": "Acme Inc",
    "createdAt": "2026-02-06T00:00:00.000Z"
  }
}

Example

bash
curl -X POST "https://api.packedge.dev/v1/customers" \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "customer@example.com",
    "name": "John Doe"
  }'

Notes

  • Customers are automatically created when creating a license with customerEmail
  • Email addresses must be unique across all customers