GoDigital
GoDigital Payments API

Wallets

Server

Check the real-time balance of your wallets before sending money.


Balance enquiry

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

Returns real-time balance information for your wallets. Use it to confirm you have enough available funds before sending a disbursement.

Your wallets are organised as a tree: one merchant parent wallet, a total wallet per provider, and collection and disbursement leaf wallets under each provider.

Balance enquiry › path Parameters

clientId
​string · required

Your Client ID issued during onboarding.

Balance enquiry › Headers

Accept
​string · required
Default: application/json
Content-Type
​string · required
Default: application/json
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-Idempotency-Key
​string · required

Unique key for this operation. Sending the same key with the same body returns the original result. Reusing a key with a different body is rejected (PGW-1004).

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.

Balance enquiry › Responses

Wallet balance retrieved.

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.

​object | null

Endpoint-specific payload. null on errors.