Skip to main content

Withdrawals

A withdrawal pays people from your BillPay balance, straight to their bank accounts. Use it for salaries, supplier payments, or refunds outside a payment. One withdrawal is a batch of 1 to 5,000 payments.

Withdrawals are different from settlements. A settlement pays you. A withdrawal pays other people.

  1. Get a quote to see the fees.
  2. Create the withdrawal, as JSON or a CSV file.
  3. Get it approved. Large batches need a second person from your team.
  4. Check its status until it's finished. Withdrawals don't send webhooks.

How BillPay handles a batch​

  • Every row is checked first. If any row is invalid, the whole batch is refused and nothing is paid. Fix the row and send the batch again.
  • The money is reserved at once. The total plus fees leaves your available balance when the batch is accepted. If your balance doesn't cover it, you get 422.
  • Large batches need a second approver. Someone on your team other than the person who created it must approve it.

The recipient rows​

Each row pays one person:

institutionIdstringRequired
The recipient's bank. See Bank IDs.
accountstringRequired
The recipient's account number. Up to 64 characters. Stored encrypted.
recipientNamestringRequired
The account holder's name. Up to 150 characters.
amountnumberRequired
At least 0.01.
referencestringRequired
Your note for this payment, such as Salary October. Up to 140 characters.

Bank IDs​

institutionId identifies the recipient's bank. The list of supported banks and their IDs will be published here.

1. Get a quote​

POST/api/v1/checkout/withdrawals/quote

Send the same rows you plan to withdraw. The quote shows the total and the fees. Nothing is reserved yet.

2. Create the withdrawal​

You can send the rows as JSON, or upload a CSV file.

POST/api/v1/checkout/withdrawals

An Idempotency-Key is required. Use your own batch ID, such as payroll-2026-10, so a retry can't pay everyone twice.

curl https://sandbox.api.billpay.et/api/v1/checkout/withdrawals \
-H "x-api-key: $BILLPAY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: payroll-2026-10" \
-d '{
"currency": "ETB",
"rows": [
{
"institutionId": "<institution-id>",
"account": "1000123456781",
"recipientName": "Kebede Alemu",
"amount": 4500.00,
"reference": "Salary October"
},
{
"institutionId": "<institution-id>",
"account": "1000987654325",
"recipientName": "Tigist Haile",
"amount": 5200.00,
"reference": "Salary October"
}
]
}'

3. Approve or reject​

A withdrawal that needs approval starts as PENDING_APPROVAL. A second person on your team approves or rejects it in the merchant portal.

4. Check the status​

GET/api/v1/checkout/withdrawals/{withdrawalId}

Withdrawals don't send webhooks. Check the status until it reaches a final one.

PENDING_APPROVAL ──► CONFIRMED ──► PROCESSING ──► COMPLETED
│ │ PARTIALLY_COMPLETED
▼ ▼ FAILED
REJECTED CANCELLED
StatusMeaningFinal
PENDING_APPROVALWaiting for a second person to approve it.No
CONFIRMEDApproved, or didn't need approval. Waiting to be sent.No
PROCESSINGBeing sent to the banks.No
COMPLETEDEveryone was paid.Yes
PARTIALLY_COMPLETEDSome rows were paid, some failed. Check each row.Yes
FAILEDNo one was paid.Yes
REJECTEDRefused by your approver.Yes
CANCELLEDCancelled before it was sent.Yes

To list your withdrawals, newest first:

GET/api/v1/checkout/withdrawals

It uses page and size like other lists. See Pagination.

Testing​

In the sandbox, the recipient's account number decides what happens:

Account numberResult
Ends in 0000Refused by the receiving bank.
Ends in 9999Paid, then sent back by the bank (ACCOUNT_CLOSED).
Anything elsePaid.