Bill Inquiry
Use this endpoint to request bill information. (5.0 in overall diagram)
Implemented by: OONE · Called by: Partner bank
Operation
| Description |
Value |
| URL |
https://{URL}/v1/Freeze/Bill |
| Method |
POST |
| Key |
Value |
Remark |
| Accept |
application/json |
|
| Content-Type |
application/json |
|
| Authorization |
Bearer |
{token} from get token endpoint |
Request Payload
| Field |
Type |
Required |
Remark |
txn |
string |
yes |
Transaction number |
Example Request Payload
Response Payload
| Field |
Type |
Remark |
txn |
string |
Transaction number |
desc |
string |
Bill description |
amount |
decimal |
Bill amount which freezable |
currency |
string |
Currency code (ISO 4217) |
phone |
string |
Consumer phone number |
Example Response Payload
{
"txn": "F1008XX",
"desc": "វិក្កយបត្របង្កកប្រាក់កក់ថ្លៃបន្តចរន្ត",
"amount": 84000,
"currency": "KHR",
"phone": "010 XXX XX8"
}
Response Codes (Failed)
| Code |
Type |
Error |
Remark |
| 101 |
FreezeException |
Bill {X} not exists! |
{X} Bill number |
| 102 |
FreezeException |
Bill {X} was in {Y} status! |
{Y} status like Frozen, Paid ... |
| 103 |
FreezeException |
Bill {X} was over due date! |
{X} Bill number |