Skip to content

Update an address for a customer

Endpoint: https://api.youcan.shop/customers/{id}/addresses/{addressId}

Method: PUT

Required Scopes

  • edit-customers

Parameters

Param NameParam TypeDescriptionRequired
first_namestringAddress holder's first nameno
last_namestringAddress holder's last nameno
companystringAddress holder's company nameno
phonestringAddress holder's phone numberno
first_linestringAddress holder's first lineno
second_linestringAddress holder's second lineno
statestringAddress holder's stateno
regionstringAddress holder's regionno
citystringAddress holder's cityno
zip_codestringAddress holder's postal codeno
country_codestringAddress holder's country codeno
is_defaultbooleanAddress holder's country codeno

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": []
}