Skip to main content
POST
/
customers
cURL
curl --request POST \
  --url https://api.juo.io/admin/v1/customers \
  --header 'Content-Type: application/json' \
  --header 'X-Juo-Admin-Api-Key: <api-key>' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "[email protected]",
  "phone": "<string>",
  "tags": [
    "<string>"
  ],
  "note": "<string>"
}
'
{
  "id": "<string>",
  "resource": "customer",
  "displayName": "<string>",
  "email": "[email protected]",
  "phone": "<string>"
}

Authorizations

X-Juo-Admin-Api-Key
string
header
required

Headers

X-Tenant-ID
string

Unique identifier of the tenant in the system (usually a store identifier)

Body

application/json
firstName
string
lastName
string
email
string<email>
phone
string
tags
string[]
note
string

Response

201 - application/json

Default Response

id
string
required
Minimum string length: 1
resource
enum<string>
required
Available options:
customer
displayName
string
required

Customer's full name.

Minimum string length: 1
email
null | string<email>
required

Customer's contact email.

phone
null | string
required

Customer's contact phone.

Minimum string length: 1