Update Delivery Address
Update client's delivery address details. This endpoint allows you to delivvery addess of the client.
PATCH /api/v1/client/delivery-addresses/{id}
Path param
authorization : *bearer
PATH PARAMETER: application/json
| Name | Description | Required | Type |
|---|---|---|---|
| id | The ID of the client | Required | string |
REQUEST BODY SCHEMA: application/json
| Name | Description | Required | Type |
|---|---|---|---|
| address | The address | Required | String |
| city | The city | Required | String |
| phoneNumber | The phone number | Required | string |
| region | The region of the city | Required | string |
| type | The type of the address. Enum: "PRIMARY" "SECONDARY". Default: "PRIMARY" | Required | Array of strings |
Responses
| Code | Description |
|---|---|
| 201 | Addresses updated succesfully |
| 409 | Unauthorized |
Request Sample
Content type
application/json
[
{
"type": "PRIMARY",
"name": "string",
"region": "string",
"city": "string",
"phoneNumber": "string",
"address": "string"
}
...
]
Response Sample
Content type
application/json
[
{
"type": "PRIMARY",
"name": "string",
"region": "string",
"city": "string",
"phoneNumber": "string",
"address": "string"
}
...
]