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

Proxy

POST
https://mock.apidog.com/m1/444561-0-default/proxy
Bill24 query bill throught this interface to get bill/ invoice detail. This endpoint implement by Merchant side.
NOTE
Change to your best URL:https://yourdomain/proxy
Request Header mock API:
NamevalueDescription
SuccesssuccessTest case successful (default success)
FailfailTest case fail

Request

Header Params
Content-Type
string 
required
Example:
application/json
Accept
string 
required
Example:
application/json
token
string 
required
Example:
1603aa00dcc4426ba83298341bab126b
Body Params application/json
consumer_code
string 
required
Example
{
  "consumer_code": "CU003035"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mock.apidog.com/m1/444561-0-default/proxy' \
--header 'Accept: application/json' \
--header 'token: 1603aa00dcc4426ba83298341bab126b' \
--header 'Content-Type: application/json' \
--data-raw '{
    "consumer_code": "CU003035"
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
Status code
message
string 
required
Status message in English
message_kh
string 
optional
Status message in Khmer
data
object 
required
Details below
consumer_code
string 
required
consumer code or invoice number
consumer_name
string 
required
Consumer’s name, can be in any language
consumer_name_latin
string 
optional
Consumer’s name in English
phone
string 
required
Consumer’s phone number
currency
string 
required
Currency Code as per ISO 4217 (USD, KHR...)
due_amount
number 
required
Amount to pay
min_amount
number 
optional
Minimum amount can pay per transaction. If -1 mean unlimited.
max_amount
number 
optional
Maximum amount can pay per transaction.
If -1 mean unlimited.
balance
number 
optional
This represents the extra amount which
consumers has already paid. Eg. Total
customer’s due was 10,000៛ and customer
made 15,000៛ payment, thus the customer
has the balance of 5,000៛. This is optional
information which can be shown as
information to customer in some Bank Apps
when provided.
description
string 
optional
Free text information. It is only for
information and biller can use it for their
other validation. The information provided in
this field will be sent back in Webhook
payload.
last_bill_date
string 
optional
This is optional information which can be
shown as information to customer in some
Bank Apps when provided.
last_due_date
string 
required
This is required to know consumer last
due date.
last_pay_date
string 
optional
This is optional information which can be
shown as information to customer in some
Bank Apps when provided.
Examples
{
  "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"
  }
}
🟠404Record not found
🟠400Invalid input
🟢200OK
Previous
FAQ
Next
Webhook