PATCH
/
customers
/
{id}
Update a customer
curl --request PATCH \
  --url https://api.mpesaflow.dev/customers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "John Doe",
  "phoneNumber": "254712345678"
}'
{
  "id": "cus_GqfKXLmg61LURZhB",
  "object": "customer",
  "environment": "development",
  "name": "John Doe",
  "phoneNumber": "254712345678",
  "createdAt": "2021-01-01T00:00:00Z",
  "lastActiveAt": "2021-01-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

The API key to use for authentication

Path Parameters

id
string
required

The customer id

Example:

"cus_GqfKXLmg61LURZhB"

Body

application/json

Update a customer

The body is of type object.

Response

200
application/json

Get One Customer

The response is of type object.