Generate Payment Link
Generate payment link for the user based on the provided request parameters.
Documentation Index
Fetch the complete documentation index at: https://docs.omnispay.com/llms.txt
Use this file to discover all available pages before exploring further.
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
Request payload for generating payment link
User's full name (only alphabets, dot, slash, apostrophe, and space allowed)
2 - 50[a-zA-Z./' ]+"John Doe"
User email address
3 - 60"user@example.com"
User phone number
"+971501234567"
Invoice amount (minimum 10)
x >= 10100.5
Notes related to payment
2 - 150"Payment for order #12345"
Must be true to accept terms and conditions
true
Specify if a QR code is required
true
Specify if an invoice should be generated
true
Expiry date of the payment link
User's address
"123 Street, City, Country"
City name
^[a-zA-Z\s.'-]+$"Dubai"
Country name
^[a-zA-Z\s.'-]+$"UAE"
Currency (only AED is allowed)
"AED"
Invoice ID
"INV123456"
Product ID
Callback URL for payment notifications
"https://example.com/callback"

