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

Webhook

POST
/Webhook
Bill24 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:
NamevalueDescription
SuccesssuccessTest case successful (default success)
FailfailTest 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.20,
    "supplier_fee": 0,
    "total_amount": 10.20,
    "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

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 '/Webhook' \
--header 'Accept: application/json' \
--header 'Success: success' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tnx_id": "BUb4CmDE",
    "tran_amount": 10,
    "customer_fee": 0.20,
    "supplier_fee": 0,
    "total_amount": 10.20,
    "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": []
}'

Responses

🟢200OK
application/json
Body
status
string 
required
message
string 
required
Examples
{
	"status": "Success",
	"message": "SUCCESS"
}
Modified at 2024-07-17 03:43:15
Previous
Proxy
Next
test