Create a customer record with merchant-scoped contact info. The customer can be assigned free plans and use the proxy immediately. To link a payment method, direct them through checkout. Idempotent when reference_id is provided (strongly recommended) — returns the existing customer if one matches.
Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'
Your external identifier for this customer (strongly recommended). When provided, acts as an idempotency key — creating a customer with the same reference_id returns the existing one. Cannot start with "con_" (reserved prefix). Can be used interchangeably with customer_id in all API endpoints.
255"usr_abc123"
Display name. Used as contact hint until the customer authenticates.
255"Jane Smith"
Email address. Used as contact hint and for checkout pre-population.
"jane@example.com"
Phone number in E.164 format. Used as contact hint and for checkout pre-population.
"+14155552671"
Arbitrary key-value metadata (max 16KB serialized).
{ "tier": "premium", "source": "api" }Customer created
Unique identifier for the customer
"con_test_01EXAMPLE00000000000000001"
Merchant's external identifier for this customer. Used for idempotent creation — POST with the same reference_id returns the existing customer.
"usr_abc123"
Active subscription summary, or null if none
Arbitrary key-value metadata stored on the customer. Set via PATCH.
{
"plan_tier": "enterprise",
"internal_id": "12345"
}ISO 8601 timestamp when the customer was created
"2023-05-15T08:35:42Z"