Query Transaction Status

Returns the latest payment and refund status for a completed transaction using the gateway transaction ID.

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

Recommended usage: Call this endpoint after the customer completes payment to verify the final transaction status. Do not rely on the browser redirect alone—always confirm using the Status API or webhooks.


Endpoint

MethodGET
URL{baseUrl}/payment/checkout/status?id={gatewayTransactionId}
AuthenticationHeader x-api-key

Fin Staging Base URL

https://fin-api.digetpay.com/v1
❗️

Important: The id parameter must be the gateway transaction ID (UUID).

Do not use the checkout session ID returned by Create Payment Link.


Request Parameters

ParameterLocationRequiredDescription
idQueryYesGateway transaction UUID
x-api-keyHeaderYesMerchant API Key

Example Request

GET /payment/checkout/status?id=2232e99b-0257-47d5-bbfd-022c8951767f

Headers

x-api-key: YOUR_API_KEY

or

{
  "headers": {
    "x-api-key": "YOUR_API_KEY"
  },
  "query": {
    "id": "2232e99b-0257-47d5-bbfd-022c8951767f"
  }
}

Transaction Flow

sequenceDiagram
    autonumber

    participant Merchant as Your Server
    participant API as DigetPay API

    Merchant->>API: GET /payment/checkout/status?id={gatewayTransactionId}
    API-->>Merchant: transactionStatus
    API-->>Merchant: paymentStatus
    API-->>Merchant: refundStatus

    Note over Merchant,API: Continue only when transactionStatus = SUCCESS

Responses

{
  "success": {
    "status": 200,
    "body": {
      "code": 200,
      "message": "Success",
      "errorCode": null,
      "data": {
        "content": [
          {
            "transactionId": "2232e99b-0257-47d5-bbfd-022c8951767f",
            "amount": "0.20",
            "transactionStatus": "SUCCESS",
            "paymentStatus": "APPROVED",
            "refundStatus": "NONE",
            "totalRefundAmount": "0.00",
            "pan": "5387  7** **** 4254",
            "cardScheme": "MC"
          }
        ],
        "totalElements": 1
      }
    }
  }
}

Response Fields

FieldDescription
transactionIdGateway transaction UUID
transactionStatusSUCCESS, FAILED, PENDING
paymentStatusGateway authorization result
refundStatusNONE, PARTIAL, FULL
totalRefundAmountTotal refunded amount

Payment confirmed: Consider the payment successful only when:

  • transactionStatus = SUCCESS
  • paymentStatus = APPROVED
🚧

Best practice: Store the gateway transaction ID after payment completes and use it for:

  • Query Transaction Status
  • Process Refund
  • Payment reconciliation

Query Params
uuid
required

Gateway transaction UUID from the payment

Response

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