Balance Validation
This operation is to validate the amount when consumer want to pay with any custom amount.
Implemented by: EDC Payment Gateway · Called by: Partner bank
Operation
| Description |
Value |
| URL |
https://edc-sit-api.oone.bz/pg-bank-api/balance/validate/v2 |
| Method |
POST |
| Key |
Value |
Remark |
| Accept |
application/json |
|
| Content-Type |
application/json |
|
| Authorization |
Bearer |
Will provide privately |
Request Payload
| Field |
Type |
Required |
Remark |
amount |
decimal |
Yes |
Amount to validate |
payment_token |
string |
Yes |
Value of "payment_token" from Balance Inquiry |
Example Request Payload
{
"amount": 250000.00,
"payment_token": "4be8fc1f50834aacb5c46005501cda8b..."
}
Response Payload
| Field |
Type |
Remark |
code |
string |
Response code |
message |
string |
Response message in English |
message_kh |
string |
Response message in Khmer |
data |
json |
Data object |
Response Payload for "data"
| Field |
Type |
Remark |
currency |
string |
Currency code (ISO 4217) |
total_amount |
decimal |
Total amount to pay |
bill_amount |
decimal |
Bill amount |
convenience_fee_amount |
decimal |
Transaction fee will pay by consumer |
sponsor_fee_amount |
decimal |
Transaction fee will pay by biller |
payment_token |
string |
Hashed token auto generated by Payment Gateway |
Example Response Payload
{
"code": "000",
"message": "",
"message_kh": "",
"data": {
"currency": "KHR",
"total_amount": 250000.00,
"bill_amount": 250000.00,
"convenience_fee_amount": 0.00,
"sponsor_fee_amount": 0.00,
"payment_token": "4be8fc1f50834aacb5c46005501cda8b..."
}
}