GoDigital
GoDigital Payments API

ProviderCode

string · enum
Enum values:
YAS
YAS (formerly Tigo) wallet tree
VODACOM
Vodacom M-Pesa wallet tree
AIRTEL
Airtel Money wallet tree
HALOTEL
Halopesa wallet tree

Mobile network wallet tree the request is posted to.

TransactionStatus

string · enum
Enum values:
RECEIVED
Request accepted by the API boundary.
AUTHENTICATED
Security and client validation completed.
VALIDATED
Business rules and payload validation completed.
FUNDS_RESERVED
B2C only. Amount reserved from the provider disbursement wallet.
ROUTED
Provider gateway accepted the request for processing.
PENDING_FINAL
Final provider outcome is still pending.
SUCCESS
Completed successfully and ledger posting applied.
FAILED
Failed. Any reservation is released.

Normalized transaction state. SUCCESS, FAILED and REVERSED are final.

Envelope

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.

data
​object | null

Endpoint-specific payload. null on errors.

TokenRequest

grant_type
​string · enum · required
Enum values:
client_credentials
client_id
​string · required

Client ID issued during onboarding.

client_secret
​string · required

Client secret issued during onboarding. Never expose it in a browser or mobile app.

TokenResponse

access_token
​string

JWT bearer token.

token_type
​string
expires_in
​integer

Lifetime of the token in seconds.

scope
​string

TokenError

success
​boolean
status
​string
code
​string
message
​string

PaymentRequest

requestId
​string · required

Your unique identifier for this request. Generate a new one for every payment.

merchantId
​string · required

Merchant identifier issued during onboarding.

providerCode
​ProviderCode · enum · required

Mobile network wallet tree the request is posted to.

Enum values:
YAS
YAS (formerly Tigo) wallet tree
VODACOM
Vodacom M-Pesa wallet tree
AIRTEL
Airtel Money wallet tree
HALOTEL
Halopesa wallet tree
amount
​number · required

Amount to move. Must be greater than zero and within your merchant limits. No thousands separators.

currency
​string · required

Transaction currency.

Default: TZS
msisdn
​string · pattern: ^255[0-9]{9}$ · required

Customer mobile number in international format, starting with 255.

reference
​string · required

Your business reference, such as an invoice, order or payout number. Use one per payment.

callbackUrl
​string · uri

HTTPS endpoint that receives the final result. Optional if a callback URL is configured on your merchant profile; the request value overrides it only if allowed by policy.

narration
​string

Optional note or payment description.

DisbursementAck

transactionId
​string

Gateway-generated, immutable transaction identifier.

providerCode
​ProviderCode · enum

Mobile network wallet tree the request is posted to.

Enum values:
YAS
YAS (formerly Tigo) wallet tree
VODACOM
Vodacom M-Pesa wallet tree
AIRTEL
Airtel Money wallet tree
HALOTEL
Halopesa wallet tree
transactionStatus
​TransactionStatus · enum

Normalized transaction state. SUCCESS, FAILED and REVERSED are final.

Enum values:
RECEIVED
Request accepted by the API boundary.
AUTHENTICATED
Security and client validation completed.
VALIDATED
Business rules and payload validation completed.
FUNDS_RESERVED
B2C only. Amount reserved from the provider disbursement wallet.
ROUTED
Provider gateway accepted the request for processing.
PENDING_FINAL
Final provider outcome is still pending.
SUCCESS
Completed successfully and ledger posting applied.
FAILED
Failed. Any reservation is released.
reservedAmount
​number

Amount reserved from your disbursement wallet.

currency
​string

CollectionAck

transactionId
​string

Gateway-generated, immutable transaction identifier.

providerCode
​ProviderCode · enum

Mobile network wallet tree the request is posted to.

Enum values:
YAS
YAS (formerly Tigo) wallet tree
VODACOM
Vodacom M-Pesa wallet tree
AIRTEL
Airtel Money wallet tree
HALOTEL
Halopesa wallet tree
transactionStatus
​TransactionStatus · enum

Normalized transaction state. SUCCESS, FAILED and REVERSED are final.

Enum values:
RECEIVED
Request accepted by the API boundary.
AUTHENTICATED
Security and client validation completed.
VALIDATED
Business rules and payload validation completed.
FUNDS_RESERVED
B2C only. Amount reserved from the provider disbursement wallet.
ROUTED
Provider gateway accepted the request for processing.
PENDING_FINAL
Final provider outcome is still pending.
SUCCESS
Completed successfully and ledger posting applied.
FAILED
Failed. Any reservation is released.
currency
​string

Transaction

transactionId
​string
providerCode
​ProviderCode · enum

Mobile network wallet tree the request is posted to.

Enum values:
YAS
YAS (formerly Tigo) wallet tree
VODACOM
Vodacom M-Pesa wallet tree
AIRTEL
Airtel Money wallet tree
HALOTEL
Halopesa wallet tree
operation
​string · enum

Type of operation.

Enum values:
C2B_USSD_PUSH
B2C_DISBURSEMENT
transactionStatus
​TransactionStatus · enum

Normalized transaction state. SUCCESS, FAILED and REVERSED are final.

Enum values:
RECEIVED
Request accepted by the API boundary.
AUTHENTICATED
Security and client validation completed.
VALIDATED
Business rules and payload validation completed.
FUNDS_RESERVED
B2C only. Amount reserved from the provider disbursement wallet.
ROUTED
Provider gateway accepted the request for processing.
PENDING_FINAL
Final provider outcome is still pending.
SUCCESS
Completed successfully and ledger posting applied.
FAILED
Failed. Any reservation is released.
amount
​number
currency
​string
msisdn
​string
reference
​string
providerTransactionId
​string | null

Transaction ID assigned by the mobile network.

providerReceiptNo
​string | null

Receipt number from the mobile network.

finalizedAt
​string | null · date-time

When the transaction reached a final state.

NameCheckResult

providerCode
​ProviderCode · enum

Mobile network wallet tree the request is posted to.

Enum values:
YAS
YAS (formerly Tigo) wallet tree
VODACOM
Vodacom M-Pesa wallet tree
AIRTEL
Airtel Money wallet tree
HALOTEL
Halopesa wallet tree
msisdn
​string
recipientName
​string

Registered name of the wallet holder.

resultCode
​string
resultMessage
​string
route
​string