Generate Payment Link
This endpoint allows merchants to generate a payment link with customer-specific details such as name, amount, and notes.Request Body
- FullName (string, required): The full name of the customer. Must be between 2 to 50 characters and match the pattern
[a-zA-Z./' ]+. - Email (string, required): The email address of the customer. Must be between 3 to 45 characters.
- Phone (string, required): The phone number of the customer.
- invoiceAmount (number, required): The amount for the payment, should be equal to or greater than 10.
- notes (string, required): Any additional information or description for the payment.
- isTermsAndConditionsAccepted (boolean, required): Whether the customer accepts the terms and conditions.
- currency (string, optional): The currency for the payment, must be “AED”.
- expiryOn (string, required): The expiry date of the payment link in
yyyy-MM-dd HH:mm:ssformat AND recommended expiry date should be 30 days from the payment link generation date. - Is_QR_needed (boolean, required): Whether a QR code is needed.
- Is_invoice_generated (boolean, required): Whether an invoice is generated.
- Address (string, optional): The address of the customer.
- City (string, optional): The city of the customer.
- Country (string, optional): The country of the customer.
- Invoice_Id (string, optional): The unique ID of the invoice.
- Product_Id (string, optional): The unique ID of the product.
- callback_url (string, optional): The callback URL for payment updates.
Example Request
Authorizations
Body
application/json
Request payload for generating payment link
User's full name (only alphabets, dot, slash, apostrophe, and space allowed)
Required string length:
2 - 50Example:
"John Doe"
User email address
Required string length:
3 - 60Example:
"user@example.com"
User phone number
Example:
"+971501234567"
Invoice amount (minimum 10)
Required range:
x >= 10Example:
100.5
Notes related to payment
Required string length:
2 - 150Example:
"Payment for order #12345"
Must be true to accept terms and conditions
Example:
true
Specify if a QR code is required
Example:
true
Specify if an invoice should be generated
Example:
true
Expiry date of the payment link
User's address
Example:
"123 Street, City, Country"
City name
Example:
"Dubai"
Country name
Example:
"UAE"
Currency (only AED is allowed)
Example:
"AED"
Invoice ID
Example:
"INV123456"
Product ID
Callback URL for payment notifications
Example:
"https://example.com/callback"

