Returns the current status of an Embedded (S2S) transaction. The path parameter is named transactionId, but its value is the trans_id from the Direct Sale response.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Returns the current status of an Embedded (S2S) transaction using the paymentId returned by the Direct Sale API.
Use this endpoint to verify the latest payment status after a Direct Sale request, especially when the transaction is
PENDINGor required 3-D Secure authentication.
Hosted Checkout merchants: This endpoint is only for Embedded (S2S) integrations. Hosted Checkout integrations must use
GET /payment/checkout/status?sessionId={id}.
Request
| Method | GET |
| URL | https://api.digetpay.com/v1/payment/s2s/transaction/{transactionId} |
| Auth | Header x-api-key (Test API Key or Live API Key, required) |
Use the same API key mode (Test or Live) that created the transaction.
Path Parameters
| Parameter | Required | Description |
|---|---|---|
transactionId | Yes | The paymentId value from the Direct Sale response (also returned as trans_id), e.g. 07077294930390230372 |
Critical: The path parameter is named
transactionId, but its value is thepaymentIdfrom the Direct Sale response, not the UUID in the response'stransactionIdfield. Do not use a Hosted Checkout session ID.
Request example
curl -X GET "https://api.digetpay.com/v1/payment/s2s/transaction/07077294930390230372" \
-H "x-api-key: YOUR_TEST_API_KEY"Transaction flow
sequenceDiagram
autonumber
participant Merchant as Your Server
participant API as DigetPay API
participant Gateway as Payment Gateway
Note over Merchant: Use after Direct Sale returns PENDING / REDIRECT (3DS)
Merchant->>API: GET /payment/s2s/transaction/{paymentId}
API->>Gateway: Retrieve latest transaction status
Gateway-->>API: APPROVED / DECLINED / PENDING
API-->>Merchant: status, transactionId, paymentId, card details
Responses
{
"code": 200,
"message": "Success",
"errorCode": null,
"data": {
"transactionId": "58288e7a-33ad-4091-9716-20a9b0c3a088",
"paymentId": "07077294930390230372",
"order_id": "TEST-S2S-0001",
"status": "PENDING",
"amount": "0.11",
"currency": "SAR",
"paymentFlow": "DIRECT_S2S",
"Card": {
"Brand": "Mastercard",
"Token": "",
"Issuer": "TEST BANK",
"Number": "512345xxxxxx0008",
"PanType": "Card",
"ExpiryYear": "39",
"NameOnCard": "Ahmed Emad Abd-Alfatah",
"ExpiryMonth": "01",
"IsValidCard": null,
"ProductName": "Mastercard",
"FundingMethod": "credit",
"Is3DSVerified": false,
"IssuerCountry": "SAU"
},
"operationType": "PAY",
"transactionType": "PURCHASE",
"invoice": {
"id": "7294930"
}
}
}{
"statusCode": 404,
"error": "Not Found",
"message": "Transaction not found",
"path": "/v1/payment/s2s/transaction/07077294930390230000",
"timestamp": "2026-10-21T08:02:46.586Z"
}Returned when no transaction matches the ID in the path for the API key used. Check that you sent the exact paymentId from the Direct Sale response, and that you are using the same mode (Test or Live) API key that created the transaction.
{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing API key",
"path": "/v1/payment/s2s/transaction/07077294930390230372",
"timestamp": "2026-10-21T08:03:53.456Z"
}Returned when the x-api-key header is missing. Send your Test API Key or Live API Key in the x-api-key header.
Response fields
| Field | Description |
|---|---|
transactionId | DigetPay transaction ID (UUID) |
paymentId | Payment ID from the processor |
order_id | Your orderId from the Direct Sale request |
status | Current payment status (APPROVED, DECLINED, PENDING) |
amount | Payment amount |
currency | Payment currency |
paymentFlow | Integration flow. DIRECT_S2S for Embedded payments |
operationType | Operation, e.g. PAY |
transactionType | Transaction type, e.g. PURCHASE |
Card | Masked card details: number, expiry, brand, issuer, funding method |
Card.Token | Saved card token, filled when the Direct Sale request used saveToken: "Y" |
Card.Is3DSVerified | true after 3-D Secure has been completed |
invoice.id | Invoice reference for the payment |
Payment confirmed: Consider the transaction successful only when
statusisAPPROVED.
PENDINGmeans the payment is not final, for example the customer has not completed 3-D Secure yet. Check this endpoint again after the customer returns to yoursuccessUrlorfailureUrl, or after you receive a webhook. Webhooks and redirects are notifications only; fulfill the order only after this endpoint returnsAPPROVED.
Different IDs per integration: Embedded (S2S) uses the
paymentIdfrom Direct Sale with this endpoint. Hosted Checkout uses the session ID (idfrom Create Payment Link) withGET /payment/checkout/status?sessionId=.

