m2pfintech
Error Codes

Error Codes

Complete error code catalog for the M2P Prepaid Platform with resolution guidance.

Complete catalog of error codes across the M2P Prepaid Platform. Use these codes to implement accurate error handling and clear user-facing messages.


Error Response Format

All API errors follow a consistent JSON structure:

{
  "status": "error",
  "error": {
    "code": "TXN_003",
    "message": "Insufficient balance",
    "description": "The wallet balance is insufficient for this transaction",
    "httpStatus": 400
  },
  "timestamp": "2026-03-06T10:30:00Z",
  "requestId": "req_abc123"
}
FieldTypeDescription
codestringMachine-readable error code — use for programmatic handling
messagestringShort error summary
descriptionstringDetailed human-readable explanation
httpStatusintegerHTTP status code
requestIdstringUnique request identifier — include in support tickets

Error Categories


Error Handling Quick Reference

PracticeImplementation
Map error codes to user messagesTranslate M2P codes into friendly messages for your end users
Retry on 5xx onlyServer errors may be transient — use exponential backoff
Do not retry 4xxClient errors require request correction, not retry
Log error detailsStore requestId, code, and timestamp for debugging
Monitor error patternsAlert on repeated AUTH_008 (rate limit) or SYS_001 (server errors)

On this page