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 Proxy
Bill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
CHECKOUT/ DEEPLINKMerchant Proxy
Bill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
  1. Merchant Proxy
  • Merchant Proxy
    • Overview
    • Response Code
    • Full Example
    • FAQ
    • Proxy
      POST
    • Webhook
      POST
  1. Merchant Proxy

Full Example

Integration Process



How to get started.

Merchants are required to implement the below endpoints:

1 Proxy πŸ”—

The Proxy functions as an interface, allowing Bill24 to retrieve customer or invoice data whenever a payment is initiated through any of the available bank channels.

NOTE

This endpoint implement by Merchant side.
Method: POST
Please provide the best URL endpoint: https://yourdomain/proxy


Example Request Payload

{
    //could be invoice code, consumer code or something that merhcant identify to in query. 
    "consumer_code": "CU003035"
}

Example Response Payload

{
    "code": 0,
    "message": "Success",
    "message_kh": "",
    "data": {
        "consumer_code": "CU003035",
        "consumer_name": "αž‰αŸ‰αŸαž” αž“αžΈαž˜",
        "consumer_name_latin": "Nheb Nim",
        "phone": "010888999",
        "currency": "USD",
        "due_amount": 10,
        "min_amount": -1,
        "max_amount": 5000,
        "balance": 0,
        "description": "Invoice on Feb-2024",
        "last_bill_date": "2024-2-29 10:46:33",
        "last_due_date": "2024-3-30 10:46:33",
        "last_pay_date": "2024-01-05 10:46:33"
    }
}

2 Webhook πŸ”—

When customers make a payment, Bill Gateway will instantly inform the Merchant / Biller System about the transaction status through a Webhook. The transaction details sent to the Webhook endpoint will be in JSON format.

NOTE

This endpoint implement by Merchant side.
Method: POST
Please provide the best URL endpoint: https://yourdomain/webhook


Example Request Payload

{
   {
    "tran_id": "348b4b16-1f06-4563-8204-105a8420a067",
    "tran_no": "6K0BTGwG7HsF",
    "payment_service_type": "Bank Channel",
    "tran_date": "2024-11-29T16:58:16.727168",
    "tran_amount": 45,
    "currency": "USD",
    "bank_code": "AC",
    "bank_name": "ACLEDA",
    "bank_ref": "AC00112301",
    "identity_code": "37627011",
    "purpose_of_transaction": "",
    "device_code": "",
    "status": "success",
    "customers": [
        {
            "branch_code": "",
            "branch_name": "",
            "customer_code": "37627011",
            "customer_name": "MAO SAMON",
            "customer_name_latin": "",
            "bill_no": "",
            "amount": 45
        }
    ]
}
}

Example Response Payload

{
    "status": "Success",
    "message": "SUCCESS",
}

NOTE

If there is a failure when posting the webhook to your end, we will make up to 5 retry attempts following our queue rules.

Previous
Response Code
Next
FAQ