Create Bill
Last updated
Last updated
There are 2 ways when creating a bill. Both ways will generate a bill under a collection of your choice.
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
This will create a bill and return a link to our LeanX Payment page.
HTTP Method: POST
Query
Query | Type | Description |
---|---|---|
Request Body
Attributes
Response
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
Response
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
invoice_no
String
Your bill number
collection_uuid*
String
Your Collection UUID
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
collection_uuid*
String
Your Collection UUID
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
The Payment Service ID
invoice_ref*
String
Merchant Invoice Reference