Swiftazu

Customers

Update customer

Change a customer's details.

PATCH/v1/customers/{customerId}
Bearer tokenReturns JSONSuccess 200

Send only the fields you want to change. The mobile number cannot be changed.

Request

Headers

FieldTypeDescription
AuthorizationrequiredstringThe access token from Get token, as "Bearer <token>".
Content-TyperequiredstringAlways application/json when a body is sent.

Path parameters

FieldTypeDescription
customerIdrequiredstringThe customer's id.

Request body

FieldTypeDescription
fullNameoptionalstringThe customer's full name, 2 to 200 characters.
emailoptionalstringEmail address.
alternateNumberoptionalstringA second phone number.
customerReferenceoptionalstringYour own id for this customer.
notesoptionalstringNotes for your own use.
Example request
curl -X PATCH "https://api.swiftazu.com/v1/customers/8778df1e-9b74-420d-b826-d17cdad86d36" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "notes": "Prefers evening delivery"
}'

Response

Example response · 200
{
  "status": "ok"
}

Errors

HTTPCodeMeaning
404not_foundThe record does not exist, or it is not yours.

Every call can also return the shared errors listed on the Overview page. Overview