Skip to main content
POST
/
customers
Add Customer
curl --request POST \
  --url https://app.stickyqr.com/api/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe",
  "phone": "+12345678999"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "phone": "<string>",
  "email": "<string>",
  "balance": 123,
  "lifetimePoints": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-lang
string
default:en

Language support

Example:

"en"

Body

application/json
name
string

Customer's name

Example:

"John Doe"

phone
string

Customer's phone

Example:

"+12345678999"

Response

Successful Response

id
string

Customer's id

name
string

Customer's name

phone
string

Customer's phone

email
string | null

Customer's email

balance
number

Current balance of customer

lifetimePoints
number

The cumulative points earned, excluding redeemed points