| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Retrieve detailed transaction information using the Session identifier.
This endpoint allows merchants to retrieve the payment status, transaction identifiers, customer details, invoice information, card information, and amount breakdown associated with a checkout transaction.
Recommended usage: Call this endpoint after receiving a payment webhook or when reconciling a payment. Always verify the returned transaction status before marking an order as paid.
Do not rely solely on the browser redirect or the webhook payload to confirm a successful payment.
Endpoint
| Property | Value |
|---|---|
| Method | GET |
| URL | {baseUrl}/payment/checkout/:sessionId/transaction |
| Authentication | Header x-api-key |
| Content-Type | application/json |
Base URL — Test & Live
Both environments use the same API base URL:
https://api.digetpay.com/v1The API key determines whether the request runs in the Test or Live environment.
Important: Replace
{SessionId}with the Session identifier associated with the payment.This identifier is different from the gateway
transactionIdreturned in the transaction details response.
Request Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
SessionId | Path | Yes | Unique checkout identifier used to retrieve the transaction details. |
x-api-key | Header | Yes | Merchant Test or Live API Key. |
Example Request
curl --location --globoff \
'https://api.digetpay.com/v1/payment/checkout/1c7c014e-e978-4656-bb37-3caef04e85c6/transaction' \
--header 'x-api-key: YOUR_API_KEY'Headers
x-api-key: YOUR_API_KEYRequest URL
GET https://api.digetpay.com/v1/payment/checkout/{sessionid}/transactionTransaction Verification Flow
sequenceDiagram
autonumber
participant Customer
participant DigetPay
participant Merchant as Merchant Server
Customer->>DigetPay: Completes payment
DigetPay-->>Merchant: Payment webhook notification
Merchant->>DigetPay: GET /payment/checkout/{sessionId}/transaction
DigetPay-->>Merchant: Transaction details and payment status
alt Payment Successful
Merchant->>Merchant: Verify order reference and amount
Merchant->>Merchant: Update order as Paid
else Payment Failed
Merchant->>Merchant: Handle failed payment
else Payment Pending
Merchant->>Merchant: Keep order pending verification
end
Best practice: Use webhook notifications to trigger transaction verification. Confirm the actual payment status through the API before updating the merchant order.
Response
Successful Transaction Response
{
"code": 200,
"message": "Success",
"errorCode": null,
"data": {
"transactionId": "683cae68-efec-42d3-ac24-dd341cb395b3",
"paymentId": "07077286159389558275",
"order_id": "TRAN-02263630365",
"status": "SUCCESS",
"amount": "258",
"currency": "SAR",
"paymentFlow": "DIRECT_S2S",
"Card": {
"Brand": "Mastercard",
"Token": "",
"Issuer": "Test Bank",
"Number": "512345xxxxxx0008",
"ExpiryYear": "39",
"NameOnCard": "Ahmed Ali",
"ExpiryMonth": "01",
"FundingMethod": "credit",
"IssuerCountry": "KWT"
},
"operationType": "PAY",
"transactionType": "PURCHASE",
"customer": {
"name": "Ahmed Ali",
"email": "[email protected]",
"mobile": "966501234567"
},
"invoice": {
"id": "7286159",
"status": "PAID",
"reference": "2026001480",
"externalIdentifier": "TRAN-02263630365",
"creationDate": "2026-10-18T20:21:06.817Z",
"expirationDate": "2026-10-21T20:21:06.817Z",
"userDefinedField": ""
},
"transaction": {
"id": "129664",
"status": "SUCCESS",
"paymentId": "07077286159389558275",
"referenceId": "629120129664",
"trackId": "18-10-2026_3895582",
"authorizationId": "129664",
"paymentMethod": "VISA/MASTER",
"transactionDate": "2026-10-18T20:21:18.8190266Z",
"eci": "02",
"networkTransactionId": "777123456789",
"ip": {
"address": "203.0.113.10",
"country": "Saudi Arabia"
},
"error": {
"code": "",
"message": "",
"responseCode": "00"
}
},
"amountDetails": {
"payCurrency": "KWD",
"baseCurrency": "SAR",
"displayCurrency": "SAR",
"serviceCharge": "2.58",
"serviceChargeVat": "0.387",
"receivableAmount": "0",
"valueInPayCurrency": "21.16",
"valueInBaseCurrency": "258",
"valueInDisplayCurrency": "258"
},
"suppliers": [
{
"code": 141,
"name": "Demo Merchant",
"depositShare": "255.033",
"invoiceShare": "255.033"
}
],
"event": {
"code": 1,
"name": "PAYMENT_STATUS_CHANGED",
"reference": "WH-1118046",
"creationDate": "2026-10-18T20:21:18.8970000Z",
"countryIsoCode": "KWT"
}
}
}Response Fields
General Transaction Information
| Field | Description |
|---|---|
code | API response code. |
message | API response message. |
errorCode | Error code, if applicable. |
data.transactionId | Unique gateway transaction UUID. |
data.paymentId | Payment identifier assigned by the payment provider. |
data.order_id | Order reference associated with the transaction. |
data.status | Overall transaction status, such as SUCCESS. |
data.amount | Transaction amount. |
data.currency | Transaction currency. |
data.paymentFlow | Payment processing flow, such as DIRECT_S2S. |
data.operationType | Payment operation, such as PAY. |
data.transactionType | Transaction type, such as PURCHASE. |
Card Information
| Field | Description |
|---|---|
data.Card.Brand | Card brand, such as Mastercard. |
data.Card.Token | Card token, when applicable. |
data.Card.Issuer | Card issuing bank. |
data.Card.Number | Masked card number. |
data.Card.ExpiryMonth | Card expiration month. |
data.Card.ExpiryYear | Card expiration year. |
data.Card.NameOnCard | Cardholder name. |
data.Card.FundingMethod | Card funding type, such as credit or debit. |
data.Card.IssuerCountry | Card issuer country code. |
Customer Information
| Field | Description |
|---|---|
data.customer.name | Customer name. |
data.customer.email | Customer email address. |
data.customer.mobile | Customer mobile number. |
Invoice Information
| Field | Description |
|---|---|
data.invoice.id | Provider invoice identifier. |
data.invoice.status | Invoice status, such as PAID. |
data.invoice.reference | Invoice reference number. |
data.invoice.externalIdentifier | External order or merchant reference. |
data.invoice.creationDate | Invoice creation timestamp. |
data.invoice.expirationDate | Invoice expiration timestamp. |
data.invoice.userDefinedField | Additional user-defined invoice information. |
Payment Transaction Details
| Field | Description |
|---|---|
data.transaction.id | Provider-specific transaction identifier. |
data.transaction.status | Provider transaction status. |
data.transaction.paymentId | Provider payment identifier. |
data.transaction.referenceId | Transaction reference ID. |
data.transaction.trackId | Payment tracking identifier. |
data.transaction.authorizationId | Payment authorization reference. |
data.transaction.paymentMethod | Payment method used. |
data.transaction.transactionDate | Transaction processing timestamp. |
data.transaction.eci | Electronic Commerce Indicator. |
data.transaction.networkTransactionId | Card network transaction identifier. |
data.transaction.error.code | Provider error code, if any. |
data.transaction.error.message | Provider error description, if any. |
data.transaction.error.responseCode | Provider transaction response code. |
Amount Details
| Field | Description |
|---|---|
data.amountDetails.payCurrency | Currency used for payment processing. |
data.amountDetails.baseCurrency | Base currency of the transaction. |
data.amountDetails.displayCurrency | Currency used to display the transaction amount. |
data.amountDetails.serviceCharge | Payment processing service charge. |
data.amountDetails.serviceChargeVat | VAT amount applied to the service charge. |
data.amountDetails.receivableAmount | Receivable amount reported by the provider. |
data.amountDetails.valueInPayCurrency | Amount in payment processing currency. |
data.amountDetails.valueInBaseCurrency | Amount in base currency. |
data.amountDetails.valueInDisplayCurrency | Amount in display currency. |
Supplier and Event Information
| Field | Description |
|---|---|
data.suppliers | Supplier allocation and settlement-related information. |
data.suppliers[].code | Supplier identifier. |
data.suppliers[].name | Supplier name. |
data.suppliers[].depositShare | Supplier deposit share. |
data.suppliers[].invoiceShare | Supplier invoice share. |
data.event.code | Event code. |
data.event.name | Event name. |
data.event.reference | Event reference identifier. |
data.event.creationDate | Event creation timestamp. |
data.event.countryIsoCode | Event country code. |
Payment Confirmation
Payment confirmed:
In the successful response example, the following fields indicate a completed payment:
data.status = SUCCESSdata.transaction.status = SUCCESSdata.invoice.status = PAIDBefore updating an order, verify the returned order reference, amount, currency, and transaction status against the original payment request.
Important: An HTTP 200 response or API code: 200 alone does not confirm that the payment was successful.
The merchant must inspect the actual transaction status inside the data object.
If the payment has not reached a confirmed successful state, the merchant should not mark the order as paid.
Transaction Identifiers
The response contains several identifiers serving different purposes.
| Identifier | Description |
|---|---|
sessionId | Checkout identifier supplied in the API request path. |
data.transactionId | DigetPay gateway transaction UUID. |
data.paymentId | Payment provider identifier. |
data.transaction.id | Provider-specific transaction identifier. |
data.order_id | Order reference associated with the payment. |
data.invoice.id | Invoice identifier. |
Best practice: Store the session ID, gateway transaction ID, payment ID, and merchant order reference together.
These identifiers are useful for payment verification, transaction tracking, refunds, reconciliation, and technical support.
Do not assume that the session ID and gateway transaction ID are the same value.
Important Notes
- The endpoint uses a checkout identifier in the URL path, not an
idquery parameter. - Test and Live environments share the same API base URL:
https://api.digetpay.com/v1. - The API key must be provided through the
x-api-keyheader. - Use the actual payment status to determine whether the transaction succeeded.
- The response structure contains nested objects such as
Card,customer,invoice,transaction, andamountDetails. - Preserve the exact JSON field names and their letter casing when parsing the response.
- Card numbers are masked in the response and must remain protected.
- Always reconcile the transaction amount and currency against the merchant's original order.
- Store transaction identifiers for future payment inquiries and reconciliation.

