Customer Update
| Type |
Method |
PUT |
https://assignment.sunergetic.nl/api/v1/customers/:id |
PUT Headers
{
"Accept" : "application/json",
"Content-Type" : "application/x-www-form-urlencoded",
"token" : "{TOKEN}"
}
PUT Parameters
{
"email" : "email@example.com",
"firstname" : "John",
"lastname" : "Doe",
"address" : "Vermeulenbaan 178 13329VJ Zuidwolde",
"zipcode" : "1822LB",
"city" : "Alkmaar",
"phone" : "+31675399935"
}
example response
{
"message": "Customer updated!",
"data": {
"id": 45,
"email": "email@example.com",
"firstname": "John",
"lastname": "Doe",
"address": "Vermeulenbaan 178 13329VJ Zuidwolde",
"zipcode": "1822LB",
"city": "Alkmaar",
"phone": "+31675399935",
"created_at": "2022-08-31T07:39:53.000000Z",
"updated_at": "2022-08-31T07:39:53.000000Z"
}
}