1. 主页
  2. 文档
  3. REST API port
  4. Customers
  5. POST Creates a customer

POST Creates a customer

Creates a customer.

API:POST/rest/api/2021-07/customers

Parameters


Parameters
Data Type
Required

first_name
string
required

The customer’s first name.(Length:1-50)


last_name
string
required

The customer’s last name.(Length:1-50)


email
string
required

The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error.(Length:1-50)


areacode
integer

The customer`s phone area code. If phone has a value, this item is required(Length:0-5)


phone
integer

The customer`s phone.(Length:0-30)


marke_email
integer
required

Accept marketing email.(0:Not accepted,1:Accept)


receie_first_name
string
required

Receive address first name.(Length:1-50)


receie_last_name
string
required

Receive address last name.(Length:1-50)


company_name
string

Receive address company name.(Length:0-70)


zone
string
required

Receive address province.(Length:1-50)


city
string
required

Receive address city.(Length:1-50)


address
string
required

Receive address mailing address.(Length:1-255)


postal_code
string
required

Receive address postal code, also known as zip, postcode, Eircode, etc.(Length:1-30)


receive_areacode
integer
required

Receive address phone area code.(Length:1-5)


receive_phone
string
required

Receive address phone.(Length:1-30)