ref_id
+ date(yyyyMMddHHmmss)
+ currency
+ total_amount
+ customer_sync_code
+ settlement_to
, hash_token
))hash_token
{
"ref_id": "101",
"date": "2024-06-22T02:41:55.350Z",
"due_date": "2024-06-30T06:50:55.350Z",
"currency": "KHR",
"total_amount": 100,
"customer_sync_code": "xxxxxxxxx",
"total_tax": 0,
"payment_method_token": "",
"payment_to": "xxxxxxxxxxxxxxx",
"description": "Charge testing",
"exchange_rate_khr": "",
"total_amount_khr": "",
"hash": "xxxxxxxxxxxxxxx",
"details": [
{
"item_mame": "A001",
"description": "Hello",
"quantity": 2,
"price": 5,
"amount": 10,
"tax_amount": 0,
"tax_name": "Charge tax"
}
]
}
curl --location --request POST 'https://merchantapi-demo.bill24.io/bill_payment/push_bill_with_payment' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token get from endpoint (Authorization)}' \
--header 'Content-Type: application/json' \
--data-raw '{
"ref_id": "101",
"date": "2024-06-22T02:41:55.350Z",
"due_date": "2024-06-30T06:50:55.350Z",
"currency": "KHR",
"total_amount": 100,
"customer_sync_code": "xxxxxxxxx",
"total_tax": 0,
"payment_method_token": "",
"payment_to": "xxxxxxxxxxxxxxx",
"description": "Charge testing",
"exchange_rate_khr": "",
"total_amount_khr": "",
"hash": "xxxxxxxxxxxxxxx",
"details": [
{
"item_mame": "A001",
"description": "Hello",
"quantity": 2,
"price": 5,
"amount": 10,
"tax_amount": 0,
"tax_name": "Charge tax"
}
]
}'
{
"code": "000",
"message": "Push bill and capture payment successfully !",
"message_kh": "បញ្ជូនវិក័យ្យបត្រនិងធ្វើការទូទាត់រួចរាល់ !",
"data": {
"bill": {
"status": "success"
},
"payment": {
"status": "success"
}
}
}