Create Payment Link
Create a new payment link to collect payments from customers.
Overview
The Create Payment Link endpoint allows you to generate a unique URL that you can share with your customers to collect payments. This is ideal for businesses that don’t have a full website integration or want to collect payments via chat, email, or SMS.Key Features
- Customizable Expiry: Set how long the link remains valid.
- Buyer Information: Pre-fill buyer details to simplify their checkout experience.
- Product Details: Include what the payment is for.
- Instant Sharing: Get a link that can be shared immediately.
Request Parameters
The request body follows the same structure as the Create Order API, but it’s specifically optimized for generating shareable links.Required Fields
amount: The amount to collect.currency: Currently supportsINR.reference_id: Your internal reference for this payment.buyer: Customer details (name, email, phone, address).product: Details of the item or service.invoice: Invoice number and date.
Optional Fields
expiry_date: When the link should expire (ISO 8601 format). Defaults to 1 year if not provided.
Authorizations
Client Application ID - Your unique application identifier used to authenticate API requests. You can find your Client ID in the Developer Settings section of the merchant dashboard.
Client Secret Key - Your secret key used alongside the Client ID for secure authentication. Keep this confidential and never expose it in client-side code. Available in the Developer Settings section of the merchant dashboard.
Merchant Identifier - The unique ID for the merchant account. This is required for PSP (Payment Service Provider) merchants who manage multiple merchant accounts. You can find merchant IDs in the Merchant Management section of the dashboard.
API Version - Specifies which version of the API to use (e.g., '1.X.X', '2.X.X', or '3.X.X'). This header allows you to control which API version your integration uses. Default version information is available in the Developer Settings.