POST
/
customers
Create a customer
curl --request POST \
  --url https://api.mpesaflow.dev/customers \
  --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

Body

application/json

Create a customer

The body is of type object.

Response

200
application/json

Get One Customer

The response is of type object.