We announce the release of a new API version aimed at providing convenience for our partners using the service.
{
"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"
}
}
curl --location --request POST 'https://s.boxme.asia/api/v2/orders/customers/create/' \
--header 'Authorization: Token {{API_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
}'
{
"data": {
"customer_id": 234434
},
"error": false,
"error_code": "",
"messages": "Create customer successfully.",
"request_id": 1703485822
}