curl --request POST \
--url https://api.bitbybit.studio/customer/open/v1/customers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"imageUrl": "<string>",
"tags": [
"<string>"
],
"addresses": [
{
"address1": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"address2": "<string>",
"city": "<string>",
"province": "<string>",
"country": "<string>",
"zip": "<string>",
"mainAddress": false
}
]
}
'{
"data": {
"id": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"imageUrl": "<string>",
"tags": [
"<string>"
],
"addresses": [
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"province": "<string>",
"country": "<string>",
"zip": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Create a new customer. Either email or phoneNumber is required.
curl --request POST \
--url https://api.bitbybit.studio/customer/open/v1/customers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"imageUrl": "<string>",
"tags": [
"<string>"
],
"addresses": [
{
"address1": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"address2": "<string>",
"city": "<string>",
"province": "<string>",
"country": "<string>",
"zip": "<string>",
"mainAddress": false
}
]
}
'{
"data": {
"id": "<string>",
"email": "<string>",
"phoneNumber": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"imageUrl": "<string>",
"tags": [
"<string>"
],
"addresses": [
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"province": "<string>",
"country": "<string>",
"zip": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}API key for authentication. Create one in Settings > Developer.
Customer created
Show child attributes