GET
/
customers
/
{id}
Get a customer
curl --request GET \
  --url https://api.mpesaflow.dev/customers/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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"

Response

Get One Customer

id
string
required

The customer id

Example:

"cus_GqfKXLmg61LURZhB"

object
string
required
Example:

"customer"

name
string | null
required

The name of the customer

Example:

"John Doe"

phoneNumber
string
required

The customer's phone number

Required string length: 10 - 12
Example:

"254712345678"

createdAt
string
required

The date and time the customer was created in ISO 8601 format

Example:

"2021-01-01T00:00:00Z"

lastActiveAt
string | null
required

The date and time the customer was last active at in ISO 8601 format

Example:

"2021-01-01T00:00:00Z"

environment
enum<string>
default:development

The environment of the business

Available options:
development,
production
Example:

"development"