PATCH
/
customers
/
{id}
curl --request PATCH \
  --url https://api.mpesaflow.com/v1/customers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "jsmith@example.com",
  "phoneNumber": "<string>",
  "balance": "<string>",
  "description": "<string>"
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "balance": "<string>",
    "livemode": true,
    "metadata": "<string>",
    "currency": "<string>",
    "email": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "lastActiveAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required
Example:

"Bearer SECRET"

Path Parameters

id
string
required
Example:

"cus_12345"

Body

application/json

The customer id

The body is of type object.

Response

200
application/json

Updated Customer

The response is of type object.