GoDigital
GoDigital Payments API

Transactions

Server

Look up the latest normalized status of any payment.


Query transaction status

GET
https://api-sandbox.godigital.tz/api/v1
/payments/{reference}
Bearer (JWT)

Returns the latest normalized status of a payment. Use it when a callback has not arrived, or to reconcile your records.

A transaction is final when transactionStatus is SUCCESS, FAILED or REVERSED. See Transaction states.

Query transaction status › path Parameters

reference
​string · required

The reference of the payment you want to look up.

Query transaction status › Headers

X-Client-Id
​string · required

Client identifier issued during onboarding.

X-Request-Id
​string · uuid · required

Unique identifier for this request, used for traceability. A UUID is recommended.

X-Timestamp
​string · pattern: ^[0-9]{10}$ · required

Current time as a 10-digit Unix epoch timestamp in seconds.

X-Nonce
​string · required

Unique random value for every request, used to prevent replay attacks.

X-Content-SHA256
​string · required

SHA-256 hash of the raw request body, Base64-encoded. For requests without a body, hash the empty string (47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=).

X-Signature
​string

Optional Base64-encoded HMAC-SHA256 request signature. Only validated when signing was enabled for your integration during onboarding.

Query transaction status › Responses

Transaction found.

Every response uses this envelope.
status
​string · enum · required

Whether the API call itself was processed. For the payment outcome, read data.transactionStatus.

Enum values:
SUCCESS
FAILED
code
​string · required

Result code. PGW-0000 means success.

message
​string · required
requestId
​string

Echo of your request identifier.

timestamp
​string · date-time

ISO-8601 timestamp with timezone.

Endpoint-specific payload. null on errors.