Ttushe / docs
nsk_test_Operational

Pay a bill from an account

202, not 201, and status is routinely pending. Both providers answer their own version of "successful" the moment they accept a request — VTpass's 000 reads "TRANSACTION PROCESSED" and Flutterwave returns "status":"success" with a null token — so a 2xx here means we took your money and sent it on, not that the biller delivered. Watch the webhook or poll GET /v1/bills/{id}. The account is debited before the biller is called; a failed or reversed payment is made good by a compensating credit and the daily allowance is released. Supply Idempotency-Key: a retry returns the original payment rather than buying twice, and the same key with a different body is refused with IDEMPOTENCY_KEY_REUSED. amount is required for open products and optional for fixed/amount_due (it is derived, and rejected with AMOUNT_MISMATCH if you send a different one).

POSThttps://api.trytushe.com/v1/bills
POST/v1/bills

Authorization

api-key
x-api-key<token>

In: header

Header Parameters

idempotency-key*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

{  "status": true,  "statusCode": 200,  "message": "Request processed successfully",  "timestamp": "2026-10-03T16:30:00.000Z",  "path": "/v1/accounts",  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "pending",    "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",    "provider": "vtpass",    "providerRef": "VT-99281",    "biller": "ikeja-electric",    "productCode": "prepaid",    "customerRef": "45012345678",    "customerName": "string",    "quantity": 1,    "amount": "500000",    "currency": "NGN",    "token": "1234-5678-9012-3456-7890",    "units": "42.3",    "receiptRef": "string",    "failureReason": "string",    "createdAt": "2019-08-24T14:15:22Z",    "debitedAt": "2019-08-24T14:15:22Z",    "settledAt": "2019-08-24T14:15:22Z"  }}