Payments
/ api/ payments/ seamlessSeamless Integration
server to server seamless integration.
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. |
captureOptional | boolean | Whether to capture the payment. |
customer_Required | string | customer email id. |
customer_Required | string | customer mobile. |
customer_Required | string | customer First Name. |
customer_Required | string | customer Last Name. |
success_Required | string | For redirect success payment methods. |
failure_Required | 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. |
cardRequired | object | Allows you to send card information. |
card.Optional | string | Card number. |
card.Optional | string | Card expiry month. |
card.Optional | string | Card expiry year. |
card.Optional | string | Card CVC/CVV. |
card.Optional | string | Name on card. |
instalment_Optional | object | Split payment (EPP). Required when split payments are enabled on your account, and rejected when they are not. Cannot be combined with session_id - split payments require card details. Fetch the available banks and tenures from POST /api/payments/epp/banks. |
instalment_Required | string | The bank the customer selected, as returned by POST /api/payments/epp/banks (e.g. EMIRATES_NBD, MASHREQ, ADCB, LIV, HSBC_ME, RAKBANK, FAB, DUBAI_FIRST). The card used must belong to this bank. |
instalment_Required | number | The tenure in months the customer selected. Must be one of the tenures that bank offers your account. |
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. |
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 |
|---|---|---|
redirect_Optional | string | 3ds payment page link. |
statusOptional | string | Payment status. |
messageOptional | string | Request message. |
merchant_Optional | 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. |
transactionIdOptional | string | The Urban Ledger transaction id for this payment. |
payment_Optional | string | Customer full name. |
payment_Optional | string | Customer email id. |
payment_Optional | string | Customer mobile number. |
typeOptional | string | Request type. |
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 | object | Returned only for split payments (EPP) - a summary of the split payment plan that was booked. |
instalment_Optional | string | — |
instalment_Optional | string | — |
instalment_Optional | string | — |
instalment_Optional | number | Tenure in months. |
instalment_Optional | number | The amount the customer pays each month. |
instalment_Optional | number | The bank's processing fee for this amount and tenure. |
instalment_Optional | number | The amount plus the processing fee. |
instalment_Optional | string | APPROVED for MANUAL and BANKING_APP banks; PENDING for AUTOMATIC banks, which the bank confirms asynchronously. |
https://sandbox.geturbanledger.com/api/payments/seamlesscurl -X POST "https://sandbox.geturbanledger.com/api/payments/seamless" \
-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",
"capture": true,
"customer_email": "aisha.rahman@example.com",
"customer_mobile": "971501234567",
"customer_first_name": "Aisha",
"customer_last_name": "Rahman",
"success_url": "https://example.com/checkout/success",
"failure_url": "https://example.com/checkout/failed",
"card": {
"number": "4242424242424242",
"expiry_month": "12",
"expiry_year": "2029",
"cvc": "123",
"card_holder_name": "Aisha Rahman"
},
"metadata": {
"channel": "web",
"customer_ref": "CUST-10482"
}
}'{
"redirect_url": "https://api.geturbanledger.com/api/payments/665717cedf61dee714e1a0d2/process",
"status": "Pending",
"message": "",
"merchant_order_id": "ORD-10482",
"transactionId": "UL_665717cedf61dee714e1a0d2",
"payment_customer_name": "Aisha Rahman",
"payment_customer_email": "aisha.rahman@example.com",
"payment_customer_mobile_number": "9715*******84",
"type": "API",
"reference": "ORD-10482",
"metadata": {
"channel": "web",
"customer_ref": "CUST-10482"
}
}