Get Transaction Status
Poll payment status after GPI — recommended after every transaction (PayDirect and PayCollect).
Documentation Index
Fetch the complete documentation index at: https://payglocal.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
When to Use
Call status after every payment initiation, once the customer completes (or abandons) the flow. PayGlocal also sends lifecycle updates to yourmerchantCallbackURL, but status polling is the recommended way to confirm the final outcome and reconcile orders if a callback is delayed, retried, or missed.
Use this endpoint for all GPI transactions — PayDirect and PayCollect, cards, UPI, net banking, Apple Pay, and global alternative payments.
API
| Method | GET |
| Path | /gl/v1/payments/{id}/status |
| Production | https://api.payglocal.in/gl/v1/payments/{gid}/status |
| Sandbox | https://api.uat.payglocal.in/gl/v1/payments/{gid}/status |
gid or your merchantTxnId as {id}. Alternatively, call the pre-signed data.statusUrl from the GPI initiate response.
Headers
| Header | Mandatory | Description |
|---|---|---|
x-gl-token-external | Yes | RSA-signed JWS (see Key Management) |
x-gl-merchantid | Yes | Your PayGlocal merchant ID (MID) |
x-gl-kid | Yes | Key ID used to sign the JWS |
Notes
- Top-level
statusis the transaction state (e.g.SENT_FOR_CAPTURE,AUTHORIZED,INPROGRESS). The nesteddata.statusoften mirrors it for successful payments. - The
dataobject varies bypayment-method— use the Responses examples below (card, UPI, net banking, global alt pay, authorized card). - For auth-only flows (
captureTxn: false), expectAUTHORIZEDuntil you call capture.
Error Scenarios
| Scenario | HTTP code |
|---|---|
Unknown or invalid gid / merchantTxnId | 404 |
| Missing or invalid JWS | 401 |
Authorizations
RSA-signed JWS (JSON Web Signature) token carrying the request payload.
- Header:
{ "alg": "RS256", "kid": "<merchant-key-id>", "iss": "<merchant-id>", "x-gl-enc": "false", "is-digested": "true" } - Payload: the exact JSON body sent in the request (or its SHA-256 digest when
is-digested=true). - Signed with the merchant's RSA private key; PayGlocal verifies with the matching public key.
Used by all
/gl/v1/payments/*endpoints.
Path Parameters
PayGlocal gid or merchantTxnId from the initiate request.
Response
Status retrieved successfully. Top-level status reflects the transaction state;
data includes method-specific fields keyed by payment-method.
Response envelope for GET /gl/v1/payments/{id}/status.
PayGlocal transaction ID.
High-level transaction status (e.g. SENT_FOR_CAPTURE, AUTHORIZED, INPROGRESS).
Human-readable status message.
Response timestamp (DD/MM/YYYY HH:MM:SS).
Reason code for this status (e.g. GL-201-001).
data payload for transaction status. Fields present depend on payment-method
(e.g. CARD, UPI_INTENT, INB, ZIP). See response examples on
Get Transaction Status.
null on success.

