v1
latestOpenAPI 3.1.02026-08-042453938.9 KBCustomers
Create a customer
Create a customer. Just pass externalCustomerId (your user ID). Add onchainAddress later for on-chain billing.
Requires a secret key (sk_*) with at least the OPERATOR role.
post/v1/customers
Request body
Example request
{
"externalCustomerId": "user_789",
"onchainAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f00000",
"email": "billing@acme.com",
"metadata": {
"plan": "pro",
"source": "signup"
}
}Response
Customer created successfully
Example response
{
"id": "cus_abc123def456",
"businessId": "biz_abc123",
"name": "Acme Logistics",
"externalCustomerId": "user_789",
"stripeCustomerId": "cus_StripeXYZ",
"onchainAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f00000",
"email": "billing@acme.com",
"status": "ACTIVE",
"metadata": {
"plan": "pro",
"source": "signup"
},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"provisioningStatus": "provisioned",
"fundingRequired": true,
"_warnings": [
"External customer ID resembles a patient identifier; avoid storing PHI in identifiers."
]
}