Payments
/ api/ payments/ {id}Get payment details
Returns the details of the payment with the specified identifier string
mid + terminal-idTry it in Sandbox Path parameters
| Field | Type | Description |
|---|---|---|
idRequired | string | Payment request Id, Transaction Id and Order Id |
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 |
| 401 Unauthorized | Unauthorized |
| 404 Not found | Not Found |
Response fields 200
| Field | Type | Description |
|---|---|---|
statusOptional | string | The status of the payment |
amountOptional | string | The original payment amount |
currencyOptional | string | The three-letter ISO currency code of the payment |
transactionIdOptional | string | The transaction ID associated with that payment |
merchant_Optional | string | The unique order ID provided by the merchant |
settlementOptional | string | The settlement status of the payment |
messageOptional | string | The message associated with the payment status |
capture_Optional | number | Total capture amount |
refunded_Optional | number | Total refunded amount |
order_Optional | string | Order id of payment |
typeOptional | string | Payment mode |
terminal_Optional | string | Terminal id of the payment |
branch_Optional | string | Branch id of the payment |
metadataOptional | string | A set of key-value pairs that you can attach to a payment. It can be useful for storing additional information in a structured format |
referenceOptional | string | Your reference for the payment |
payment_Optional | object | Payment method details |
payment_Optional | string | Payment unique identifier. |
payment_Optional | string | The last four digits of the card number. |
payment_Optional | string | The expiry month. |
payment_Optional | string | The expiry year. |
payment_Optional | string | The card issuer's Bank Identification Number (BIN). |
payment_Optional | string | The card brand. |
payment_Optional | string | The name of the card issuer. |
payment_Optional | string | The card type. |
payment_Optional | string | CREDIT. |
payment_Optional | string | The customer's name |
payment_Optional | string | The customer's email address |
payment_Optional | string | The customer's mobile number |
https://sandbox.geturbanledger.com/api/payments/IDcurl -X GET "https://sandbox.geturbanledger.com/api/payments/ID" \
-H "mid: sb-ul-mid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
-H "terminal-id: ul-tid-xxxxxxxxxxxxxxxxxxxxxxxx"{
"status": "Captured",
"amount": 100,
"currency": "AED",
"transactionId": "UL_665707XXXXXXXXXXXXXXXXXX",
"merchant_order_id": "ORD-10482",
"settlement": "SETTLEMENT_PENDING",
"message": "string",
"capture_amount": 100,
"refunded_amount": 0,
"order_id": "c9056f69-****-****-****-538a24e00f55",
"type": "LINK",
"terminal_id": "6208df4ad7329e17d4******",
"branch_id": "620f5fcc6d99ee0228******",
"metadata": {
"channel": "web",
"customer_ref": "CUST-10482"
},
"reference": "ORD-10482",
"payment_details": {
"card_holder_name": "Aisha Rahman",
"last4": 4242,
"expiry_month": 12,
"expiry_year": 2029,
"bin": 424242,
"card_brand": "visa",
"issuer": "ADCB Bank",
"card_type": "631780583ed834d*********",
"method": "CREDIT_CARD"
},
"payment_customer_name": "Aisha Rahman",
"payment_customer_email": "aisha.rahman@example.com",
"payment_customer_mobile_number": "97156*******6"
}