Skip to content

Update a Customer

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

Method: PUT

Required Scopes

  • edit-customers

Parameters

Param NameParam TypeDescriptionRequired
first_namestringCustomer first nameno
last_namestringCustomer last nameno
emailstringCustomer emailno
phonestringCustomer phone numberno
countrystringCustomer countryno
regionstringCustomer regionno
citystringCustomer cityno
notesstringCustomer notesno

Responses

[200] OK

json
{
    "message": "customer successfully updated",
    "http_code": 200,
    "code": "UPDATED",
    "type": "success",
    "data": null
}

[404] Not Found

json
{
    "status": 404,
    "code": 0,
    "detail": "Customer not found",
    "meta": []
}