Update Customer
PUT
/api/v2/orders/customers/update/{customer_id}/Modified at: 6 months ago
Update customer based on customer_code.
Request
Path Params
customer_id
integer
required
Example:
92317
Header Params
Authorization
string
optional
Example:
Token {{API_TOKEN}}
Content-Type
string
optional
Example:
application/json
Body Params application/json
customer_code
string
required
type
string
required
Examples:
personalcorporateconcessionconsignmentwholesaleonlineofflineemployeesaffiliate
name
string
required
phone
string
required
email
string
required
config
object
required
packing_note
string
required
shipping_note
string
required
is_co_inspection
boolean
required
is_invoice_waiting
boolean
required
door_to_door
boolean
required
queue_service
boolean
required
expected_on_day
integer
required
expected_on_time
string
required
delivery_address
object
required
country
string
required
contact_name
string
required
contact_phone
string
required
address
string
required
province_id
integer
required
district_id
integer
required
sub_district_id
integer
required
zipcode
string
required
Example
{
"customer_code": "C02332",
"type": "distributor",
"name": "Vinh Vux2 ",
"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
id
integer
required
type
string
required
name
string
required
customer_code
string
required
phone
string
required
email
string
required
config
object
required
delivery_address
object
required
is_active
boolean
required
created_time
integer
required
updated_time
integer
required
error
boolean
required
error_code
string
required
messages
string
required
request_id
string
required
total
integer
required
Example
{
"data": {
"id": 92239,
"config": {
"is_co_inspection": true,
"is_invoice_waiting": true,
"door_to_door": true,
"queue_service": false,
"expected_on_day": 2,
"expected_on_time": "10-12",
"packing_note": "Please pack with bubbles",
"shipping_note": "Call to phone before delivery"
},
"name": "Vinh Vux2",
"type": "online",
"phone": "02321312321323",
"email": "vinh@test.com",
"customer_code": "C02332",
"delivery_address": {
"name": "Vinh Vux2",
"phone": "02321312321323",
"address": "18 Tam Trinh",
"province_id": 2,
"district_id": 33,
"sub_district_id": 112,
"zipcode": "",
"country": "VN",
"is_active": true
},
"is_active": true,
"created_time": 1705634416,
"updated_time": 1707188944
},
"error": false,
"error_code": "",
"messages": "",
"request_id": "65c1a2cf86cfbced073de39f"
}
Last modified: 6 months ago