APIs for Businesses (Test)
Home
Services
  • Checkout / Deeplink
  • Merchant Proxy
Home
Services
  • Checkout / Deeplink
  • Merchant Proxy
  1. Merchant Proxy
  • Merchant Proxy
    • Overview
    • Full Example
    • FAQ
    • Proxy
      POST
    • Webhook
      POST
    • test
      POST
  1. Merchant Proxy

Proxy

POST
/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

Query Params

Header Params

Body Params application/json

Example
{
    "consumer_code": "CU003035"
}

Request Code 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 '/proxy?merchant_id=1234&transaction_id=174952172035635&hash=4be8fc1f50834aacb5c46005501cda8b' \
--header 'Success: success' \
--header 'token: 1603aa00dcc4426ba83298341bab126b' \
--header 'Content-Type: application/json' \
--data-raw '{
    "consumer_code": "CU003035"
}'

Responses

🟒200Success
application/json
Body

Example
{
    "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
Modified atΒ 2024-01-30 04:55:13
Previous
FAQ
Next
Webhook