Create a customer
POST
/customers
const url = 'https://api.bizzle.my/v1/customers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","name":"example","phone":"example","metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.bizzle.my/v1/customers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "name": "example", "phone": "example", "metadata": {} }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
Unique identifier used to replay requests safely.
Request Body
Section titled “Request Body”Media typeapplication/json
object
email
string format: email
name
string
phone
string
metadata
object
Example generated
{ "email": "hello@example.com", "name": "example", "phone": "example", "metadata": {}}Responses
Section titled “Responses”Customer created.
Media typeapplication/json
object
id
string
object
string
merchantId
string
email
string format: email
name
string
phone
string
metadata
object
created
integer format: int64
Example
{ "id": "cus_5nq1Kdab2pXueN5y8Z", "object": "customer"}Error response.
Media typeapplication/json
object
error
required
string
message
string
code
string
details
object
Example generated
{ "error": "example", "message": "example", "code": "example", "details": {}}Too many requests.
Media typeapplication/json
object
error
required
string
message
string
code
string
details
object
Example generated
{ "error": "example", "message": "example", "code": "example", "details": {}}Headers
Section titled “Headers”RateLimit-Limit
integer
Maximum requests per window.
RateLimit-Remaining
integer
Requests remaining in the current window.
RateLimit-Reset
integer
Unix seconds when the window resets.
Retry-After
integer
Seconds to wait before retrying (on 429/handled outages).