Get Checkout Transaction Details

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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

PropertyValue
MethodGET
URL{baseUrl}/payment/checkout/:sessionId/transaction
AuthenticationHeader x-api-key
Content-Typeapplication/json

Base URL — Test & Live

Both environments use the same API base URL:

https://api.digetpay.com/v1

The 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 transactionId returned in the transaction details response.


Request Parameters

ParameterLocationRequiredDescription
SessionIdPathYesUnique checkout identifier used to retrieve the transaction details.
x-api-keyHeaderYesMerchant 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_KEY

Request URL

GET https://api.digetpay.com/v1/payment/checkout/{sessionid}/transaction

Transaction 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

FieldDescription
codeAPI response code.
messageAPI response message.
errorCodeError code, if applicable.
data.transactionIdUnique gateway transaction UUID.
data.paymentIdPayment identifier assigned by the payment provider.
data.order_idOrder reference associated with the transaction.
data.statusOverall transaction status, such as SUCCESS.
data.amountTransaction amount.
data.currencyTransaction currency.
data.paymentFlowPayment processing flow, such as DIRECT_S2S.
data.operationTypePayment operation, such as PAY.
data.transactionTypeTransaction type, such as PURCHASE.

Card Information

FieldDescription
data.Card.BrandCard brand, such as Mastercard.
data.Card.TokenCard token, when applicable.
data.Card.IssuerCard issuing bank.
data.Card.NumberMasked card number.
data.Card.ExpiryMonthCard expiration month.
data.Card.ExpiryYearCard expiration year.
data.Card.NameOnCardCardholder name.
data.Card.FundingMethodCard funding type, such as credit or debit.
data.Card.IssuerCountryCard issuer country code.

Customer Information

FieldDescription
data.customer.nameCustomer name.
data.customer.emailCustomer email address.
data.customer.mobileCustomer mobile number.

Invoice Information

FieldDescription
data.invoice.idProvider invoice identifier.
data.invoice.statusInvoice status, such as PAID.
data.invoice.referenceInvoice reference number.
data.invoice.externalIdentifierExternal order or merchant reference.
data.invoice.creationDateInvoice creation timestamp.
data.invoice.expirationDateInvoice expiration timestamp.
data.invoice.userDefinedFieldAdditional user-defined invoice information.

Payment Transaction Details

FieldDescription
data.transaction.idProvider-specific transaction identifier.
data.transaction.statusProvider transaction status.
data.transaction.paymentIdProvider payment identifier.
data.transaction.referenceIdTransaction reference ID.
data.transaction.trackIdPayment tracking identifier.
data.transaction.authorizationIdPayment authorization reference.
data.transaction.paymentMethodPayment method used.
data.transaction.transactionDateTransaction processing timestamp.
data.transaction.eciElectronic Commerce Indicator.
data.transaction.networkTransactionIdCard network transaction identifier.
data.transaction.error.codeProvider error code, if any.
data.transaction.error.messageProvider error description, if any.
data.transaction.error.responseCodeProvider transaction response code.

Amount Details

FieldDescription
data.amountDetails.payCurrencyCurrency used for payment processing.
data.amountDetails.baseCurrencyBase currency of the transaction.
data.amountDetails.displayCurrencyCurrency used to display the transaction amount.
data.amountDetails.serviceChargePayment processing service charge.
data.amountDetails.serviceChargeVatVAT amount applied to the service charge.
data.amountDetails.receivableAmountReceivable amount reported by the provider.
data.amountDetails.valueInPayCurrencyAmount in payment processing currency.
data.amountDetails.valueInBaseCurrencyAmount in base currency.
data.amountDetails.valueInDisplayCurrencyAmount in display currency.

Supplier and Event Information

FieldDescription
data.suppliersSupplier allocation and settlement-related information.
data.suppliers[].codeSupplier identifier.
data.suppliers[].nameSupplier name.
data.suppliers[].depositShareSupplier deposit share.
data.suppliers[].invoiceShareSupplier invoice share.
data.event.codeEvent code.
data.event.nameEvent name.
data.event.referenceEvent reference identifier.
data.event.creationDateEvent creation timestamp.
data.event.countryIsoCodeEvent country code.

Payment Confirmation

Payment confirmed:

In the successful response example, the following fields indicate a completed payment:

  • data.status = SUCCESS
  • data.transaction.status = SUCCESS
  • data.invoice.status = PAID

Before 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.

IdentifierDescription
sessionIdCheckout identifier supplied in the API request path.
data.transactionIdDigetPay gateway transaction UUID.
data.paymentIdPayment provider identifier.
data.transaction.idProvider-specific transaction identifier.
data.order_idOrder reference associated with the payment.
data.invoice.idInvoice 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 id query 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-key header.
  • Use the actual payment status to determine whether the transaction succeeded.
  • The response structure contains nested objects such as Card, customer, invoice, transaction, and amountDetails.
  • 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.

Related Documentation

Query Params
string
required

Session ID (id) returned by Create Payment Link

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json