Skip to main content
PUT
/
api
/
customers
/
{customerId}
curl -X PUT 'https://crypto-api.yativo.com/api/customers/cust_01HX9KZMB3F7VNQP8R2WDGT4E5' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "phone": "+14155559999",
    "metadata": { "plan": "enterprise" }
  }'
{
  "status": "success",
  "data": {
    "id": "cust_01HX9KZMB3F7VNQP8R2WDGT4E5",
    "email": "jane@example.com",
    "first_name": "Jane",
    "last_name": "Doe",
    "phone": "+14155559999",
    "metadata": { "plan": "enterprise" },
    "updated_at": "2026-03-26T11:00:00Z"
  }
}
Authorization
string
required
Bearer token: Bearer YOUR_ACCESS_TOKEN
customerId
string
required
The unique customer ID to update.
first_name
string
Updated first name.
last_name
string
Updated last name.
phone
string
Updated phone number in E.164 format.
metadata
object
Updated metadata key-value pairs. Merges with existing metadata.
curl -X PUT 'https://crypto-api.yativo.com/api/customers/cust_01HX9KZMB3F7VNQP8R2WDGT4E5' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "phone": "+14155559999",
    "metadata": { "plan": "enterprise" }
  }'
{
  "status": "success",
  "data": {
    "id": "cust_01HX9KZMB3F7VNQP8R2WDGT4E5",
    "email": "jane@example.com",
    "first_name": "Jane",
    "last_name": "Doe",
    "phone": "+14155559999",
    "metadata": { "plan": "enterprise" },
    "updated_at": "2026-03-26T11:00:00Z"
  }
}