Guide
Integration
Resources
Error codes

Error Codes Reference

Comprehensive reference for operation status codes, payment transaction status codes, and error messages across TPay integrations.

Operation Status Codes

CodeDescriptionAction Required
0Payment Completed SuccessfullyGrant access to service, send welcome message
10PIN Code Sent / Follow USSD MenuWait for user to enter PIN or complete USSD flow
15Charging Error from OperatorInform user, suggest retry or alternative payment
16PIN Code ExpiredOffer to resend PIN or restart payment
21Pending TransactionWait for push notification with final status
51Unspecified ErrorCheck errorMessage parameter for details
202Pending on CallbackWait for push notification (subscription only)

Payment Transaction Status Codes

Used in push notifications and subscription responses:

CodeStatus NameDescription
0PaymentCompletedSuccessfullyPayment completed successfully
1FailedToSendVerificationPinFailed to send PIN code verification
2TransactionCancelledByUserUser cancelled the transaction
3FailedToContactMobileNetworkOperatorUnable to reach mobile operator
4NotEnoughCreditInsufficient balance (prepaid users)
5LimitExceededDaily or monthly limit exceeded (postpaid)
6OperationRejectedByMobileNetworkOperatorOperator rejected the transaction
7OperationRejectedBytpayAdministratively cancelled by tpay
8InactiveLineUser is blacklisted
9UnspecifiedErrorUnspecified error occurred
10VerificationCodeSentPIN sent, awaiting user action
11InvalidPINIncorrect PIN entered
13SubscriberDoesNotExistMSISDN not found in operator network
14CorporateNotEligibleCorporate postpaid line not eligible
15MobileNetworkOperatorChargingErrorCharging error from operator side
16ExpiredPinCodePIN code expired
17RevertedTransaction has been reverted
18NotSupportedPricePointPrice point not supported by operator
19TimeOutTransaction timeout
20InvalidPasswordInvalid password entered
21PendingTransactionPending from operator side
22PartiallyCollectedPartial payment collected
51MobileWalletOrderRejectedWallet validation error
100SucceededAndFailedToContactMerchantPayment succeeded but notification failed (treat as success)

Subscription Contract Status Codes

StatusValueDescription
New1Contract created, pending verification
Active2Subscription active, recurring enabled
Suspended3Temporarily suspended
Cancelled5Subscription terminated