Customer

Create customer

Create customer

post/shops/{SHOP_ID}/customers

Path parameters

SHOP_IDinteger required
Example:4

Shop ID

Request body

namestring required

Customer name

phoneNumberstring required

Phone number

createTypestring

Create type

dateOfBirthstring date

Date of birth

last_order_atinteger

Last order timestamp

Example request

{
  "name": "Hoang",
  "phoneNumber": "0909090909",
  "createType": "force",
  "dateOfBirth": "1995-02-01",
  "last_order_at": 1715878800,
  "shop_customer_address": [
    {
      "full_address": "190, phường dịch vọng, cầu giấy, hà nội",
      "full_name": "hoang",
      "phone_number": "0972868874"
    },
    {
      "full_address": "190, Mỹ đình 2, Nam từ liêm, hà nội",
      "full_name": "hoang",
      "phone_number": "0972868875"
    }
  ]
}

Response

Success

successboolean

Success status

Changes

No recorded changes to this endpoint across all 1 revision of this API.