Response Codes
TheBridge API uses a variety of response codes to indicate the status of your requests. Understanding these codes is crucial for effective error handling and troubleshooting in your integration.Response Code Structure
Each response includes two key elements:response_code
: A numeric code indicating the status of the request.response_message
: A human-readable description of the status.
List of Response Codes
Handling Response Codes
When integrating with TheBridge API, always check theresponse_code
in your API responses. Here’s a general approach to handling these codes:
- Success (500): Proceed with your application logic for successful transactions.
- Authentication Errors (011): Review your API credentials and ensure they are correctly implemented.
- Request Format Errors (004, 022): Check your request structure and ensure it matches the API specifications.
- Missing or Invalid Parameters: Review the specific parameter mentioned in the error message and correct it in your request.
- Time-related Errors: Ensure your system clock is synchronized and that requests are sent in a timely manner.
- Transaction Status: Handle accordingly based on whether the transaction is duplicate, failed, or pending.