Skip to main content
POST
/
customers
Create a customer
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"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Create one in Settings > Developer.

Body

application/json
email
string<email>
phoneNumber
string
firstName
string
lastName
string
imageUrl
string
tags
string[]
addresses
object[]

Response

Customer created

data
object