Skip to main content

Customers

BillPay keeps a profile of each customer who has paid you. Personal details are stored encrypted. Phone numbers and emails are always returned masked, so you'll never get a full phone number or email back from the API.

List customers​

GET/api/v1/checkout/customers

Returns your customers. It uses page and size like other lists.

GET/api/v1/checkout/customers/{customerId}

Returns one customer.

Find a customer by phone​

POST/api/v1/checkout/customers/search

The phone number goes in the request body, not the URL. URLs end up in server logs and browser history, and a phone number shouldn't.

curl https://sandbox.api.billpay.et/api/v1/checkout/customers/search \
-H "x-api-key: $BILLPAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone": "+251911234567"}'

Reports​

MethodPathReturns
GET/api/v1/checkout/customers/topYour best customers over a period.
GET/api/v1/checkout/customers/activityHow many customers paid you, day by day.

Block a customer​

You can stop a customer from paying you, for example after repeated fraud. A block only applies to your business, not to other BillPay merchants.

PUT/api/v1/checkout/customer-blocks/{customerId}

Blocks the customer.

DELETE/api/v1/checkout/customer-blocks/{customerId}

Removes the block.

curl -X PUT https://sandbox.api.billpay.et/api/v1/checkout/customer-blocks/{customerId} \
-H "x-api-key: $BILLPAY_API_KEY"