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.
Auth Token can be retrieved in your portal dashboard under API page.
Request Header
Option 1 : Payment Page
This will create a bill and return a link to our LeanX Payment page.
HTTP Method: POST
Query
invoice_no
String
Your bill number
Request Body
Attributes
collection_uuid*
String
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.
Payment Service? Go to Payment Service to learn more about them and how to get their values.
HTTP Method: POST
Request Body
Attributes
collection_uuid*
String
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
payment_service_id*
Number
invoice_ref*
String
Merchant Invoice Reference
Response
Last updated