Errors can occur during interactions with our API for various reasons. This page aims to help you understand errors from the APIs.

Errors - Transactpay API Documentation

Authentication Errors

Authentication errors occur when there are issues with your API credentials. Ensure that you have provided the correct API keys and that they are properly configured in your requests.

Validation Errors

Validation errors occur when the data provided in your API request does not meet the required format or criteria. Common validation errors include missing required fields, invalid data formats, and exceeded character limits.

Server Errors

Server errors indicate issues on our end, such as temporary outages or technical difficulties. If you encounter server errors, please wait a few moments and try your request again. If the issue persists, contact our Support Team for assistance.

Example Server Error:

    
      {
        "error": {
          "code": 500,
          "message": "Internal Server Error",
          "description": "An unexpected error occurred on the server. Please try again later."
        }
      }
    
  

Common Errors

Error Code: 400 - Bad Request

This error occurs when the request sent to the server is invalid or cannot be processed. Double-check the request parameters and ensure they meet the required format and criteria.

    
      {
        "error": {
          "code": 400,
          "message": "Bad Request",
          "description": "The request sent to the server is invalid."
        }
      }
    
  

Error Code: 401 - Unauthorized

This error indicates that the request lacks proper authentication credentials or the provided credentials are incorrect. Make sure you have provided valid API keys and configured them correctly in your request headers.

    
      {
        "error": {
          "code": 401,
          "message": "Unauthorized",
          "description": "The request lacks proper authentication credentials."
        }
      }
    
  

More Errors and Response codes can be found below

Contact Us

If you encounter any errors not covered in this documentation or need further assistance, please don't hesitate to contact our Support Team at [email protected].

We're here to help you resolve any issues and ensure a smooth experience with our API