Appearance
Create Customer
Create a new customer.
POST /v1/customersRequest Body
json
{
"email": "customer@example.com",
"name": "John Doe",
"company": "Acme Inc",
"phone": "+1234567890"
}| Field | Required | Type | Description |
|---|---|---|---|
email | Yes | string | Customer email (must be unique) |
name | No | string | Customer name |
company | No | string | Company name |
phone | No | string | Phone 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
