Create Payment Link
Creates a re-usable hosted payment link
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Payment link details
The total amount in the smallest currency unit
The three-letter ISO 4217 currency code
The payment mode (e.g., 'payment' or 'subscription')
payment, setup, subscription The URL to redirect to on successful payment
The URL to redirect to if customer cancels
Optional custom metadata
{
"orderId": "12345",
"customField": "value"
}The name of the payment link
A description of the payment link
The ID of the merchant whose balance is being requested. If omitted, defaults to the authenticated merchant.
Array of line items for the checkout
The unique identifier of the customer
Configuration for the hosted checkout page
Response
Payment link created successfully
payment, setup, subscription { "customField": "value" }Configuration for the hosted checkout page