Create B2B Customer
POST
/api/v2/orders/customers/create/Modified at: 6 months ago
Add new b2b customer
Request
Header Params
Authorization
string
optional
Example:
Token {{API_TOKEN}}
Content-Type
string
optional
Example:
application/json
Body Params application/json
type
string
required
Default:
personal
Examples:
personalcorporateconcessionconsignmentwholesaleonlineofflineemployeesaffiliate
name
string
required
customer_code
string
required
phone
string
required
email
string
required
config
object
required
packing_note
string
required
Packaging note for warehouse
Example:
Pack 100 pcs into one carton box
shipping_note
string
required
Shipping note will show on delivery note document
Example:
Call before delivery
is_invoice_waiting
boolean
required
Ask warehouse waiting handover before you completed update fully document
is_co_inspection
boolean
required
Added service: Co-inspection at delivery
door_to_door
boolean
required
Added service: Door to door delivery
queue_service
boolean
required
Added service: Queue when delivery
expected_on_day
integer
required
Expect to delivery on X day
Example:
2
expected_on_time
string
required
Expect to delivery on Y hours of X day
Examples:
10:0018:00
delivery_address
object
required
contact_name
string
required
contact_phone
string
required
country
string
required
province_id
integer
required
district_id
integer
required
sub_district_id
integer
required
zipcode
string
required
address
string
required
Example
{
"type": "distributor",
"name": "Vinh Vux2 ",
"customer_code": "C02332",
"phone": "02321312321323",
"email": "vinh@test.com",
"config": {
"packing_note": "Please pack with bubbles",
"shipping_note": "Call to phone before delivery",
"is_co_inspection": true,
"is_invoice_waiting": true,
"door_to_door": true,
"queue_service": false,
"expected_on_day": 2,
"expected_on_time": "10-12"
},
"delivery_address": {
"contact_name": "Store 1",
"contact_phone": "09084373743",
"country": "VN",
"province_id": 2,
"district_id": 33,
"sub_district_id": 112,
"zipcode": "00000",
"address": "18 Tam Trinh"
}
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
customer_id
integer
required
error
boolean
required
error_code
string
required
messages
string
required
request_id
integer
required
Example
{
"data": {
"customer_id": 234434
},
"error": false,
"error_code": "",
"messages": "Create customer successfully.",
"request_id": 1703485822
}
Last modified: 6 months ago