Create a Payment Link [v2]
The API will help you create payment links.You can chose to send the payment link to the customer via Email and SMS basis the flags specified in the API.
Request Body required
- Array [
- ]
This is the email address of your consumer
This is the first name of your consumer
This is the last name of your consumer
This is the mobile number of your consumer, default country code is +91.
This is the total amount inclusive of taxes for your entire cart amount
This is your internal unique reference identifier for this payment link
This is the future date at which you want the payment link to expire. If this is not provided default expiry date will 90 days from the payment link creation date. The expiry date format will be YYYY-MM-DD HH:MM:ss
.
The callback_url is the https URL where the payment link status and control will be redirected after the customer attempts to pay. It serves as a custom page for you to display either a success or failure message.
If true the payment link will only be generated but will not be sent to the customer.
If generate_only and notification_channel_email both are true, the payment link will be sent on payer_email_address
provided.
If generate_only and notification_channel_sms both are true, the payment link will be sent on payer_mobile_number
provided.
The sms template name for the payment link sms which will be sent to the customer. The custom sms template will be created in the Nimbbl system. For custom sms template creation reach out to us at help@nimbbl.biz.
The email template name for the payment link email which will be sent to the customer. The custom email template will be created in the Nimbbl system. For custom email template creation reach out to us at help@nimbbl.biz.
products object[] nullable
This contains the cart items against which the payment link is generated.
This is the unique id of the product stored in your system
This is the title of the product that is being sold
This is the detailed description of the product being sold
This is the public URL from which the image of the product can be fetched
This is the pre tax rate of the item
This is the quantity that is being purchased
This is the rate * quantity i.e. the amount before tax
This is the tax amount on the cart item
This is the sum of amount before tax and the tax amount
- 200
- 4XX
- 5XX
When the payment link creation request is successful, the response will be as below
Schema
This is the status of the HTTP status of the API call
This is the additional message for the api call.
payment_link object
This is your internal unique reference identifier for this payment link
This is the payment link url which will be sent to the customer for collecting payment.
This is the shortened payment link url/
This is the unique hash generated for each payment link.
This is payment link creation date and time in DD/MM/YY HH:MM format.
This is payment link expiry date and time in DD/MM/YY HH:MM format.
{
"status": 200,
"message": "success",
"payment_link": {
"invoice_id": "inv_asjjeibdhakk49hnek3",
"payment_link_url": "https://pages.nimbbl.biz/payu-link/8adBybXd1",
"payment_short_link_url": "https://pages.nimbbl.biz/8adBybXd1",
"payment_link_hash": "8adBybXd1",
"generated_at": "14/02/24 17:50",
"expires_at": "04/08/25 12:50"
}
}
When the payment link creation request is not successful, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
{
"message": 400,
"code": "HTTP 400: Unable to resolve order using specified order_id"
}
When there is a problem on the server, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
{
"status": 500,
"error": "HTTP 500: Internal Server Error"
}