POST
/
v1
/
customers
curl --request POST \
  --url https://api.stan-app.fr/v1/customers \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "jsmith@example.com",
  "address": {
    "firstname": "<string>",
    "lastname": "<string>",
    "street_address": "<string>",
    "street_address_line2": "<string>",
    "locality": "<string>",
    "zip_code": "<string>",
    "country": "<string>",
    "region": "<string>"
  },
  "phone_number": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "email": "jsmith@example.com",
  "phone_number": "<string>",
  "address": {
    "firstname": "<string>",
    "lastname": "<string>",
    "street_address": "<string>",
    "street_address_line2": "<string>",
    "locality": "<string>",
    "zip_code": "<string>",
    "country": "<string>",
    "region": "<string>"
  }
}

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
name
string
required

Customer fullname

email
string
required
address
object
required
phone_number
string

Response

200 - application/json
id
string
name
string

Customer fullname

email
string
phone_number
string
address
object