APIs for Businesses
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment MethodRetrieve Pending Invoice & Digital Bill
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment MethodRetrieve Pending Invoice & Digital Bill
  1. Retrieve Pending Invoice & Digital Bill
  • Retrieve Pending Invoices & Digital Bill
  1. Retrieve Pending Invoice & Digital Bill

Retrieve Pending Invoices & Digital Bill

This document outlines the API specifications for billers integrating with Bill24. Billers have two integration options to provide bill amounts, and pending bills.

Sample - Bank App#

This mockup illustrates the Pending Bills feature in the bank app. It allows consumers to conveniently review their past and current bills, ensuring transparency and easy access to payment records.
Preview

Example Pending Bills#

DateAmountBalanceDigital Bill Url
01/09/20255,00050,000www.example.com/digital_bill1
01/08/20255,00045,000www.example.com/digital_bill2
01/07/20255,00040,000www.example.com/digital_bill3
15/06/20255,00035,000www.example.com/digital_bill4
01/06/20255,00030,000www.example.com/digital_bill5
20/05/20255,00025,000www.example.com/digital_bill6
📌 Opening Balance: 20,000 KHR
(-)before amount is use for payment .

Integration#

The biller creates an endpoint for pending bills. Bill24 uses the existing proxy for bill amounts.
1.0 - Customer inputs consumer code or bill code.
1.1 - Bank calls to inquiry bill amount.
1.2 - Bill24 calls to biller to get bill amount.
1.3 - Biller responds with bill amount.
1.4 - Bill24 respone bill amount.
1.5 - Bank display bill amount to the customer.
2.0 - Customer click pending bills.
2.1 - Bank calls to pending bills from Bill24.
2.2 - Bill24 calls to biller to get pending bills.
2.3 - Biller responds with pending bills.
2.4 - Bill24 responds to Bank with pending bills.
2.5 - Bank displays pending bills on screen to customer.

1. Balance Inquiry#

Bill24 calls the existing (old) proxy API for bill amounts.

2. Pending bills#

Bill24 calls this endpoint to retrieve the pending bills for a consumer.

2.1 Operation#

DescriptionValue
URL{biller_domain}/pending_bills
MethodPOST

2.2 Headers#

KeyValueRemark
Content-Typeapplication/json
tokenbiller tokenToken auth from biller.

2.3 Request Payload#

FieldTypeRequireRemark
consumer_codeStringYesConsumer code or invoice number at biller side.

2.4 Example Request Payload#

{
  "consumer_code": "CU003035"
}

2.5 Response Payload#

FieldTypeRemark
codeIntegerResponse code.
messageStringMessage in English.
message_khStringMessage in Khmer.
dataJsonData Object.

2.5.1 Response Payload For “data” item#

FieldTypeRemark
opening_balanceDecimalThe total due amount before the earliest bill in last_transactions.
pending_billsList JsonPending bills.

2.5.2 Response Payload For “last_transactions” item#

FieldTypeRemark
dateStringTransaction date (dd/MM/yyyy).
amountDecimalBill amount or Payment amount.
balanceDecimalRunning total due at end of that bill period.
digital_bill_urlStringThe link of digital bill

2.6 Example Response Payload#

{
  "code": 0,
  "message": "Success",
  "message_kh": "",
  "data": {
    "opening_balance": 20000,
    "pending_bills": [
      {
        "date": "01/09/2025",
        "amount": 5000,
        "balance": 50000,
        "digital_bill_url": "http://www.example.com/digital_bill6"
      },
      {
        "date": "01/08/2025",
        "amount": 5000,
        "balance": 45000,
        "digital_bill_url": "http://www.example.com/digital_bill5"
      },
      {
        "date": "01/07/2025",
        "amount": 5000,
        "balance": 40000,
        "digital_bill_url": "http://www.example.com/digital_bill4"
      },
      {
        "date": "15/06/2025",
        "amount": 5000,
        "balance": 35000,
        "digital_bill_url": "http://www.example.com/digital_bill3"
      },
      {
        "date": "01/06/2025",
        "amount": 5000,
        "balance": 30000,
        "digital_bill_url": "http://www.example.com/digital_bill2"
      },
      {
        "date": "20/05/2025",
        "amount": 5000,
        "balance": 25000,
        "digital_bill_url": "http://www.example.com/digital_bill1"
      }
    ]
  }
}
Modified at 2025-11-26 02:13:01