Add Delivery Address
Add delivery address using this endpoint.
POST /api/v1/client/delivery-addresses/
Path param
authorization : *bearer
REQUEST BODY SCHEMA: multipart/form-data
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 |
Response
Code | Description |
---|---|
201 | Address create successfully |
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"
}
...
]