Add Web Address
Developing
POST
{{web_ecommercev2_url}}/addresses
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{web_ecommercev2_url}}/addresses' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"name": {
"en": "Home Address",
"ar": "العنوان المنزلي"
},
"type": "office",
"country": "UAE",
"city": "Dubai",
"street": "Sheikh Zayed Road",
"addressLine1": "Building 42, Floor 3",
"phone": "+971501234567",
"notes": "Near the metro station",
"poBox": "12345",
"postCode": "54321",
"location": {
"type": "Point",
"coordinates": [
55.272659,
25.197197
]
},
"isDefault": true
}'
Response Response Example
{"id":"681a181340367a4791df3346","createdAt":"2025-05-06T17:09:23.273287567+03:00","createdBy":"667917cabd1516884a1af8fe","updatedAt":"2025-05-06T17:09:23.273287567+03:00","updatedBy":"667917cabd1516884a1af8fe","name":{"ar":"العنوان المنزلي","defaultTranslation":"Home Address","en":"Home Address"},"type":"office","country":"UAE","city":"Dubai","street":"Sheikh Zayed Road","addressLine1":"Building 42, Floor 3","notes":"Near the metro station","poBox":"12345","postCode":"54321","phone":"+971501234567","location":{"type":"Point","coordinates":[55.272659,25.197197]},"isDefault":true,"userId":"667917cabd1516884a1af8fe"}
Request
Header Params
x-access-token
string
required
Example:
{{admin-token}}
x-client
string
required
Example:
{{client}}
accept-language
string
required
Example:
{{acceptLanguage}}
Body Params application/json
Responses
Modified at 2025-05-27 07:43:34