Create Bill
There are 2 ways when creating a bill. Both ways will generate a bill under a collection of your choice.
Authentication
LeanX uses Auth Token to authenticate in each request's header.
Request Header
{
"auth-token": "LP-0D7C06DE-MM|7394e58e-edee-4c42-9ca5-bcbc449f1b9f|2141df4a3cb633d5ce8683bb0c55067e5caebfbe07390dde277dc455bcc95c91723a81b5e565c7c02d68fb84e396722563016bf99e576a4b8cdbe4423fbf226b"
}Option 1 : Payment Page
This will create a bill and return a link to our LeanX Payment page.
HTTP Method: POST
https://api.leanx.dev/api/v1/merchant/create-bill-pageQuery
invoice_no
String
Your bill number
Request Body
Attributes
amount*
Decimal (10,2)
Total amount to be paid in MYR
callback_url
String
Your callback URL
redirect_url*
String
Your redirect URL
full_name*
String
Name of the payer
email*
String
Email of the payer
phone_number*
String
Mobile number of the payer
Response
Option 2 : Without Payment Page
This will create a bill and return a link straight to the payment service that you chose through payment_service_id.
HTTP Method: POST
Request Body
Attributes
amount*
Decimal (10,2)
Total amount to be paid in MYR
callback_url*
String
Your callback URL
redirect_url
String
Your redirect URL
full_name*
String
Name of the payer
email*
String
Email of the payer
phone_number*
String
Mobile number of the payer
invoice_ref*
String
Merchant Invoice Reference
Response
Last updated