put/customer/by-id

Update Customer

Update an existing customer's name, email, or metadata.

Authentication required: Bearer Token in Authorization header.

Parameters

Idempotency-Key
string (header)

Client-generated unique key making a mutating request idempotent. Replaying a request with the same key returns the original result instead of duplicating side effects. Optional on POST/PUT/PATCH/DELETE.

e.g. <IDEMPOTENCY-KEY>

Request Body (application/json)

namerequired
string
customerIdrequired
string

The unique identifier of the customer to update

email
string

Responses

200Customer updated successfully

Response Body (200)

action
string
status
boolean
code
integer
Request Example
curl -X PUT "https://api.keymint.dev/customer/by-id" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "email": "user@example.com",
  "customerId": "string"
}'
Response (200 OK)
{
  "action": "updateCustomer",
  "status": true,
  "code": 0
}