Skip to content

Update Customer

Update an existing customer.

PATCH /v1/customers/:id

Path Parameters

ParameterDescription
idCustomer ID

Request Body

All fields are optional. Only include fields you want to update.

json
{
  "name": "Jane Doe",
  "company": "New Company Inc",
  "phone": "+1987654321"
}
FieldTypeDescription
emailstringCustomer email
namestringCustomer name
companystringCompany name
phonestringPhone number

Response

json
{
  "data": {
    "id": "cus_xxx",
    "email": "customer@example.com",
    "name": "Jane Doe",
    "company": "New Company Inc",
    "updatedAt": "2026-02-06T12:00:00.000Z"
  }
}

Example

bash
curl -X PATCH "https://api.packedge.dev/v1/customers/cus_xxx" \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Jane Doe",
    "company": "New Company Inc"
  }'