Customer - Add New Customer
api/customers
Header
Campo | Tipo | Descripción |
---|---|---|
Authorization | String |
Basic Access Authentication token. |
Parámetro
Campo | Tipo | Descripción |
---|---|---|
company | String |
Mandatory Customer company. |
vat opcional | String |
Optional Vat. |
phonenumber opcional | String |
Optional Customer Phone. |
website opcional | String |
Optional Customer Website. |
groups_in opcional | Number[] |
Optional Customer groups. |
default_language opcional | String |
Optional Customer Default Language. |
default_currency opcional | String |
Optional default currency. |
address opcional | String |
Optional Customer address. |
city opcional | String |
Optional Customer City. |
state opcional | String |
Optional Customer state. |
zip opcional | String |
Optional Zip Code. |
partnership_type opcional | String |
Optional Customer partnership type. |
country opcional | String |
Optional country. |
billing_street opcional | String |
Optional Billing Address: Street. |
billing_city opcional | String |
Optional Billing Address: City. |
billing_state opcional | Number |
Optional Billing Address: State. |
billing_zip opcional | String |
Optional Billing Address: Zip. |
billing_country opcional | String |
Optional Billing Address: Country. |
shipping_street opcional | String |
Optional Shipping Address: Street. |
shipping_city opcional | String |
Optional Shipping Address: City. |
shipping_state opcional | String |
Optional Shipping Address: State. |
shipping_zip opcional | String |
Optional Shipping Address: Zip. |
shipping_country opcional | String |
Optional Shipping Address: Country. |
array (size=22)
'company' => string 'Interactive' (length=38)
'vat' => string '123456789' (length=9)
'phonenumber' => string '123456789' (length=9)
'website' => string 'AAA.com' (length=7)
'groups_in' =>
array (size=2)
0 => string '1' (length=1)
1 => string '4' (length=1)
'default_currency' => string '3' (length=1)
'default_language' => string 'english' (length=7)
'address' => string '1a The Alexander Suite Silk Point' (length=27)
'city' => string 'London' (length=14)
'state' => string 'London' (length=14)
'zip' => string '700000' (length=6)
'country' => string '243' (length=3)
'billing_street' => string '1a The Alexander Suite Silk Point' (length=27)
'billing_city' => string 'London' (length=14)
'billing_state' => string 'London' (length=14)
'billing_zip' => string '700000' (length=6)
'billing_country' => string '243' (length=3)
'shipping_street' => string '1a The Alexander Suite Silk Point' (length=27)
'shipping_city' => string 'London' (length=14)
'shipping_state' => string 'London' (length=14)
'shipping_zip' => string '700000' (length=6)
'shipping_country' => string '243' (length=3)
Success 200
Campo | Tipo | Descripción |
---|---|---|
status | Boolean |
Request status. |
message | String |
Customer add successful. |
HTTP/1.1 200 OK
{
"status": true,
"message": "Customer add successful."
}
Error 4xx
Nombre | Tipo | Descripción |
---|---|---|
status | Boolean |
Request status. |
message | String |
Customer add fail. |
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Customer add fail."
}