Light Mode
Webhook
POST
/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
tnx_id
string
required
tran_amount
integer
required
customer_fee
number
required
supplier_fee
integer
required
total_amount
number
required
currency
string
required
bank_name
string
required
bank_ref
string
required
customer_sync_code
string
required
customer_code
string
required
customer_name
string
required
customer_phone
string
required
paid_by
string
required
paid_date
string
required
description
string
required
checkout_ref
string
required
bills
array[string]
required
Example
{
"tnx_id": "BUb4CmDE",
"tran_amount": 10,
"customer_fee": 0.2,
"supplier_fee": 0,
"total_amount": 10.2,
"currency": "USD",
"bank_name": "ACLEDA",
"bank_ref": "FT00003941",
"customer_sync_code": "",
"customer_code": "CU003035",
"customer_name": "Nheb Nim",
"customer_phone": "09294303",
"paid_by": "893-349-349-3449",
"paid_date": "2024-02-29 10:46:33",
"description": "",
"checkout_ref": "",
"bills": []
}
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: 6 months ago