PUT Customer
Developing
PUT
{{url}}api/v1/admin/customers/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'http://ecompulse.test/api/v1/admin/customers/5' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "Shane",
"last_name": "Poll",
"gender": "male",
"address": "Edward St, Sheffield",
"zip_code": "7BY SVX",
"phone": "12234444",
"email": "shane@gmail.com",
"country_id": 228
}'
Response Response Example
{
"status": "success",
"message": "Customer updated successfully",
"data": {
"id": 7,
"first_name": "Shane",
"last_name": "Poll",
"gender": "male",
"address": "Edward St, Sheffield",
"zip_code": "7BY SVX",
"phone": "12234444",
"email": "shane@gmail.com",
"country": {
"id": 228,
"name": "United Kingdom"
},
"status": 1,
"billing": null,
"shipping": null
}
}
Request
Path Params
id
integerÂ
required
Example:
5
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
Responses
Modified at 2024-05-27 00:19:06