# Introduction The **GoDigital Payments API** gives you one merchant-facing API for mobile money payments across Tanzania's networks: **YAS**, **Vodacom**, **Airtel** and **Halotel**. You name the network with `providerCode`, and GoDigital picks the best internal route for you. :::tip{title="Want to try it right away?"} Save your sandbox credentials on the [Sandbox Credentials](/sandbox) page, then send real requests from the [API Reference](/api). ::: ## What you can do | Capability | Endpoint | What happens | | ---------------------- | ----------------------------------------- | ---------------------------------------------------------- | | **C2B push collection** | `POST /payments/collections/push` | The customer gets a USSD prompt to approve a payment. | | **B2C disbursement** | `POST /payments/disbursements` | Money moves from your disbursement wallet to a customer. | | **Transaction status** | `GET /payments/{reference}` | Returns the latest normalized status of a payment. | | **Balance enquiry** | `GET /payments/wallets/balance/{clientId}`| Returns real-time wallet balances. | | **Name check** | `GET /payments/name-check` | Returns the registered name behind a mobile number. | | **Callbacks** | Your HTTPS endpoint | Receives the final result of every payment. | ## Base URLs | Environment | Base URL | | ----------------- | ---------------------------------------------- | | **UAT / Sandbox** | `https://api-sandbox.godigital.tz/api/v1` | | **Production** | `https://{BASE_URL}/api/v1` (shared at go-live) | Use separate credentials and callback URLs for UAT and production. ## API style | Standard | Rule | | ------------------ | ----------------------------------------------------------------- | | Protocol | HTTPS only | | Payload format | JSON, UTF-8 | | Authentication | OAuth2 bearer access token. Optional HMAC request signature. | | Idempotency | Required for payment creation endpoints | | Date and time | ISO-8601 with timezone in responses | | Amounts | Decimal numbers without thousands separators, e.g. `25000.00` | | Currency | `TZS` (Tanzania Shillings) | ## Response envelope Every response uses the same envelope. `status` tells you whether the **API call** was processed; for the **payment outcome**, always read `data.transactionStatus`. ```json { "status": "SUCCESS", "code": "PGW-0000", "message": "Request processed successfully", "requestId": "a15c1e07-5e8f-4d45-a533-f1a57ad7c9d9", "timestamp": "2026-04-19T21:15:33+03:00", "data": {} } ``` :::caution{title="Acknowledgement is not the final result"} Collections and disbursements are asynchronous. A `SUCCESS` response with `PGW-0000` only means the request was **accepted**. The final outcome arrives on your [callback](/callbacks), or you can [query the transaction](/api/transactions). :::