Skip to main content

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


NameDescriptionRequiredType
idThe ID of the client Requiredstring

REQUEST BODY SCHEMA: application/json


NameDescriptionRequiredType
addressThe addressRequiredString
cityThe city RequiredString
phoneNumberThe phone number Requiredstring
regionThe region of the city Requiredstring
typeThe type of the address. Enum: "PRIMARY" "SECONDARY". Default: "PRIMARY" RequiredArray of strings

Responses

CodeDescription
201Addresses updated succesfully
409Unauthorized

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"
}
...
]