Update an address for a customer
Endpoint: https://api.youcan.shop/customers/{id}/addresses/{addressId}
Method: PUT
Required Scopes
edit-customers
Parameters
Param Name | Param Type | Description | Required |
---|---|---|---|
first_name | string | Address holder's first name | no |
last_name | string | Address holder's last name | no |
company | string | Address holder's company name | no |
phone | string | Address holder's phone number | no |
first_line | string | Address holder's first line | no |
second_line | string | Address holder's second line | no |
state | string | Address holder's state | no |
region | string | Address holder's region | no |
city | string | Address holder's city | no |
zip_code | string | Address holder's postal code | no |
country_code | string | Address holder's country code | no |
is_default | boolean | Address holder's country code | no |
Response
[200] OK
json
{
"message": "Customer address updated successfully",
"http_code": 200,
"code": "UPDATED",
"type": "success",
"data": null
}
[404] Not Found
json
{
"status": 404,
"code": 0,
"detail": "Customer not found",
"meta": []
}
[404] Not Found
json
{
"status": 404,
"code": 0,
"detail": "Address not found",
"meta": []
}