customers

Create Customer

Changed on
post/v2/customers/

Request

  • Base URL
    https://docs.stancer.com (the document declares no server; this is the origin it was published from)
  • URL
    https://docs.stancer.com/v2/customers/
  • Auth
    • HTTP basic
    • or HTTP bearer

Request body

emailstring email

Customer email

namestring

Customer name

mobilestring

Customer mobile number

date_birthstring date

Date of birth

legal_idstring

Any legal identifier like SIREN, CBE, KVK, etc

countrystring

Country of the card issuer

external_idstring

Unique id with unicity check

billing_addressstring

Billing address ID

shipping_addressstring

Shipping address ID

Example request

{
  "email": "arthur.martin@example.com",
  "name": "Arthur Martin",
  "mobile": "+33100000000",
  "date_birth": "1953-01-19",
  "legal_id": "AA732A82C93V20",
  "country": "FR",
  "external_id": "UniqueId123",
  "billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
  "shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX"
}

Response

Successful Response

idstring required
countrystring

Country of the card issuer

createdstring date-time required

Unique id with unicity check

date_birthstring date

Date of birth

emailstring

Customer email

external_idstring

Unique id with unicity check

legal_idstring

Any legal identifier like SIREN, CBE, KVK, etc

mobilestring

Customer email

namestring

Customer name

billing_addressstring

Billing address

shipping_addressstring

Shipping address

deletedboolean required

Example response

{
  "id": "cust_yWYfCSzsUUhr9KwMv7vuLZHX",
  "country": "FR",
  "created": "UniqueId123",
  "date_birth": "1950-05-04",
  "email": "test@test.com",
  "external_id": "UniqueId123",
  "legal_id": "AA732A82C93V20",
  "mobile": "+33100000000",
  "name": "Arthur Martin",
  "billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
  "shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX"
}

Changes

    • breaking

      the request property's minLength was increased from 0 to 3

    • breaking

      the response property's maxLength was unset from 64 for the response status