Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

Idempotency-Key
string

A unique key for making the request idempotent. Must match pattern: ^[a-zA-Z0-9\-_:\.]+$. See Idempotent Requests for more details.

Maximum string length: 255
Pattern: ^[a-zA-Z0-9\-_:\.]+$

Body

application/json

Create Customer

customerDetails
object
required

Billing details for the customer.

Response

Customer created successfully

customerId
string

Unique identifier for the created customer

Example:

"cus_Tfd3Jq1tZxPjYVhRQW2r3"