Appearance
Update Customer
Update an existing customer.
PATCH /v1/customers/:idPath Parameters
| Parameter | Description |
|---|---|
id | Customer ID |
Request Body
All fields are optional. Only include fields you want to update.
json
{
"name": "Jane Doe",
"company": "New Company Inc",
"phone": "+1987654321"
}| Field | Type | Description |
|---|---|---|
email | string | Customer email |
name | string | Customer name |
company | string | Company name |
phone | string | Phone 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"
}'