Merchant Proxy
Light Mode
Webhook
POST
https://mock.apidog.com/m1/444561-0-default/webhookBill24 send transaction detail through this interface to merchant. This endpoint implement by merchant side.
:::note
Change to your best URL:https://yourdomain/webhook
Request Header mock API:
Name | value | Description |
---|---|---|
Success |
success |
Test case successful (default success) |
Fail |
fail |
Test case fail |
:::
Request
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Success
string
required
Example:
success
Body Params application/json
tran_id
string
required
tran_date
string
required
tran_amount
integer
required
fee_amount
integer
required
total_amount
number
required
currency
string
required
identity_code
string
required
bank_code
string
required
bank_ref
string
required
purpose_of_transaction
string
required
device_code
string
required
channel_code
string
required
status
string
required
description
string
required
customer
array [object {7}]
required
branch_code
string
required
branch_name
string
required
customer_code
string
required
customer_name
string
required
customer_name_latin
string
required
bill_no
string
required
amount
integer
required
Example
{
"tran_id": "174952172035635",
"tran_date": "2023-05-10T15:47:12.890062",
"tran_amount": 50000,
"fee_amount": 500,
"total_amount": 50500,
"currency": "KHR",
"identity_code": "234000545",
"bank_code": "AMK",
"bank_ref": "FT1234567890",
"purpose_of_transaction": "INV23001",
"device_code": "T1",
"channel_code": "001",
"status": "success",
"description": "",
"customers": [
{
"branch_code": "BRANCH-PP",
"branch_name": "Phnom Penh Branch",
"customer_code": "12340001",
"customer_name": "ជា សំណាង",
"customer_name_latin": "CHEA Samnang",
"bill_no": "INV23001",
"amount": 50000
}
]
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
string
required
message
string
required
Example
Success
{
"status": "Success",
"message": "SUCCESS"
}
Last modified: 5 months ago