Payment links
/ api/ payments/ linkCreate a Payment Link
Generate Payment link or QR Code.
mid + terminal-idTry it in Sandbox Request body
| Field | Type | Description |
|---|---|---|
amountRequired | number | The payment amount. For payment of 100 AED it must be 100 for 100.50 it must be written as 100.50 |
currencyRequired | string | The three-letter ISO currency code. |
order_Required | string | A order id you can later use to identify this payment, such as an order number. Can only be alphanumeric and must be unique for Benefit. |
referenceOptional | string | A reference to this payment. |
request_Required | string | This will give you response accordingly base on type. |
customer_Optional | string | Optional. Customer Email Id. Customer email notifications are only sent when this is provided. If not sent, the customer is asked for it on the payment page. |
customer_Optional | string | Optional. Customer mobile number including country code, without spaces, special characters, or + sign. For example, for a UAE number, it should start with 971 followed by the mobile number (e.g., 9715*******84). Customer SMS notifications are only sent when this is provided. If not sent, the customer is asked for it on the payment page. |
customer_Optional | string | Optional. Customer First Name. If not sent, the customer is asked for it on the payment page. |
customer_Optional | string | Optional. Customer Last Name. If not sent, the customer is asked for it on the payment page. |
captureOptional | boolean | Whether to capture the payment. |
success_Optional | string | For redirect success payment methods. |
failure_Optional | string | For redirect failure payment methods. |
send_Optional | boolean | This will send a notification to the merchant through email. |
send_Optional | boolean | This will send a notification to the merchant through SMS. |
send_Optional | boolean | This will send a notification to the customer through email. |
send_Optional | boolean | This will send a notification to the customer through SMS. |
alternative_Optional | string | Alternative merchant Email Id. |
alternative_Optional | string | Alternative merchant Mobile Number. |
alternative_Optional | string | Alternative customer Email Id. |
alternative_Optional | string | Alternative customer Mobile Number. |
metadataOptional | object | Allows you to store additional information about a transaction with custom fields, which can be used for reporting purposes. Note that this object only allows one level of depth, so cannot accept non-primitive data types such as objects or arrays. |
instalment_Optional | array of objects | Restrict the split payment to specific banks and optionally limit which split payment tenures are shown. If provided, only the specified banks will be displayed on the payment page. If the instalment array is omitted for a bank, all available tenures for that bank will be shown. Each bank_code must be a valid code from the supported list. For the full list of supported bank codes, visit https://geturbanledger.com/docs/instalment_bank_codes |
instalment_Required | string | The bank identifier code. Must be one of the supported split payment bank codes (e.g., EMIRATES_NBD, MASHREQ, ADCB, LIV, HSBC_ME, RAKBANK, FAB, DUBAI_FIRST). For the complete code list, visit https://geturbanledger.com/docs/instalment_bank_codes |
instalment_Optional | array of number | Optional. An array of split payment tenure months to allow for this bank (e.g., [3, 6, 9, 12]). If not provided or empty, all available split payment tenures for the bank will be shown. Each value must be a valid tenure offered by the specified bank. |
Headers
| Field | Type | Description |
|---|---|---|
midRequired | string | Your MID, starts with ul-mid. |
terminal-idRequired | string | Your terminal id, starts with ul-tid. |
Responses
| Status | Description |
|---|---|
| 200 OK | Success |
| 400 Bad request | Bad Request |
| 401 Unauthorized | Unauthorized |
Response fields 200
| Field | Type | Description |
|---|---|---|
request_Optional | string | Payment request id. |
linkOptional | string | Payment URL for the link or QR Code. |
https://sandbox.geturbanledger.com/api/payments/linkcurl -X POST "https://sandbox.geturbanledger.com/api/payments/link" \
-H "Content-Type: application/json" \
-H "mid: sb-ul-mid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
-H "terminal-id: ul-tid-xxxxxxxxxxxxxxxxxxxxxxxx" \
-d '{
"amount": 100,
"currency": "AED",
"order_id": "ORD-10482",
"reference": "ORD-10482",
"request_type": "QRCODE",
"customer_email": "aisha.rahman@example.com",
"customer_mobile": "971501234567",
"customer_first_name": "Aisha",
"customer_last_name": "Rahman",
"capture": true,
"success_url": "https://example.com/checkout/success",
"failure_url": "https://example.com/checkout/failed",
"send_email": true,
"send_sms": true,
"send_customer_email": false,
"send_customer_sms": false,
"alternative_merchant_email": "payments@example.com",
"alternative_merchant_mobile": "971561234567",
"alternative_customer_email": "aisha.r@example.com",
"alternative_customer_mobile": "971551234567",
"metadata": {
"channel": "web",
"customer_ref": "CUST-10482"
},
"instalment_bank_list": [
{
"bank_code": "EMIRATES_NBD",
"instalment": [
3,
6,
9
]
},
{
"bank_code": "MASHREQ"
},
{
"bank_code": "FAB",
"instalment": [
6,
12
]
}
]
}'{
"request_id": "631725c9a5bcfd0d3*******",
"link": "https://api.geturbanledger.com/api/merchant/payment-link/631725c9a5bcfd0d3*******"
}