Visa AR Manager APIs use a comprehensive error reporting system that combines HTTP status codes with detailed business logic error information. The APIs follow a consistent error reporting pattern across all endpoints, providing multiple levels of error information to help you understand and resolve issues quickly.
Visa AR Manager APIs use standard HTTP status codes to indicate the outcome of API requests at the protocol level. The API uses a limited set of HTTP status codes, focusing on the most relevant codes for payment operations. Each status code provides specific information about the request outcome and guides appropriate response handling.
| Code | Status | Description |
|---|---|---|
| 200 | OK | Request processed successfully. This status is returned for all successful API operations, including both successful business operations and business logic errors. Always check the response body for detailed status information. |
Important: The Visa AR Manager APIs return HTTP 200 for all processed requests, including business logic errors.
For HTTP 200 responses:
| Code | Status | Description |
|---|---|---|
| 400 | Bad Request | Request could not be processed due to client error. This status is specifically used for payment provisioning failures where the request format or content is invalid. Check request parameters and format. |
| 401 | Unauthorized | Authentication credentials are missing, invalid, or expired. Verify that required authentication headers are present and contain valid values. Check client credentials. |
| 403 | Forbidden | Request is understood but access is denied. This may indicate insufficient permissions for the requested operation or that the client is not authorized for the specific endpoint. |
| 404 | Not Found | Requested endpoint or resource does not exist. Verify the API endpoint URL and ensure you are using the correct base URL and path. |
For client error responses:
| Code | Status | Description |
|---|---|---|
| 500 | Internal Server Error | Unexpected server error occurred while processing the request. This indicates a problem with the API server. Implement retry logic with exponential backoff for transient server errors. |
| 502 | Bad Gateway | Server received an invalid response from an upstream server. This may indicate temporary connectivity issues between API components. Consider retry with appropriate delays. |
| 503 | Service Unavailable | API service is temporarily unavailable, possibly due to maintenance or high load. Implement retry logic with exponential backoff. Check service status and maintenance schedules. |
| 504 | Gateway Timeout | Server did not receive a timely response from an upstream server. This may indicate temporary performance issues. Consider retry with longer timeout values. |
For server error responses:
Business logic errors in the Visa AR Manager APIs are returned within the response body, even when the HTTP status code is 200. These errors provide detailed information about payment outcomes, configuration issues, and operational conditions that require attention.
All business logic errors follow a consistent structure across endpoints, providing status information, reason codes, and descriptive messages to help you understand and resolve issues.
Business logic errors are embedded in the response body with the following structure:
| Field | Type | Description |
|---|---|---|
| status | String | Overall operation status indicating success, failure, or pending state. |
| reason_code | String | Specific error code for programmatic error handling and classification. |
| reason_desc | String | Human-readable description explaining the error condition and context. |
| Code | Status | Description |
|---|---|---|
| 1000 | ENQUEUED | Payment request accepted and queued for processing. |
| 1001 | SUCCESS | Payment request processed successfully. |
| 1003 | PARTIAL_SUCCESS | Some payments succeeded while others failed. |
| 1004 | FAILED | Payment request failed to process. |
| 4001 | VALIDATION_FAILURE | Request validation failed due to invalid data. |
| 5001 | SYSTEM_ERROR | Internal system error occurred during processing. |
Each virtual card transaction within a request can have one of these status values:
| Status | Description |
|---|---|
| COMPLETED | Virtual card transaction completed successfully. |
| PENDING | Virtual card transaction is still being processed. |
| FAILED | Virtual card transaction failed to complete. |
| Category | Typical Reason | Description and Resolution |
|---|---|---|
| Authentication | Invalid client credentials | Client ID is invalid or expired. Verify credentials and ensure they are current. |
| Validation | Invalid payment data | Payment information is incomplete or invalid. Check customer information, payment instruments, and order details. |
| Processing | Payment declined | Payment was declined by the payment processor. Check payment instrument validity and available funds. |
| Configuration | Service not configured | Payment service is not properly configured for the client. Complete onboarding before processing payments. |
Common business logic errors for status inquiry operations:
| Category | Typical Reason | Description and Resolution |
|---|---|---|
| Request ID | Request not found | Specified request ID does not exist or is not accessible. Verify the request ID is correct and belongs to your client. |
| Pagination | Invalid page number | Requested page number is out of range. Check total pages and adjust pagination parameters. |
| Access | Unauthorized access | Client does not have access to the requested payment information. Verify client credentials and permissions. |
| Data | No data available | No payment information is available for the specified criteria. Verify request parameters and timing. |
These are the frequently encountered error conditions, their typical causes, and recommended resolution approaches. These scenarios are based on common integration patterns and operational experience with the Visa AR Manager APIs.
When encountering errors, always examine both HTTP status codes and response body details to understand the complete error context. Implement comprehensive logging to capture error details for debugging and monitoring purposes.
API requests fail with authentication errors, preventing access to Visa AR Manager API endpoints. These failures typically occur during the initial request validation phase and result in HTTP 401 or 403 status codes.
Common Causes:
Resolution Approach:
Where payment requests fail or payments are declined, preventing successful completion of virtual card transactions. These failures can occur at various stages of the payment workflow and require careful diagnosis.
Common Causes:
Resolution Approach:
Status inquiry requests return no data or unexpected results, preventing proper monitoring of payment transaction status. These issues can impact reconciliation and operational visibility.
Common Causes:
Resolution Approach:
API requests fail due to data format or validation issues, preventing proper processing of request data. These errors typically result in HTTP 400 status codes with detailed validation messages.
Common Causes:
Resolution Approach:
This troubleshooting section provides systematic approaches to diagnosing and resolving common issues with the Visa AR Manager APIs.
Before beginning troubleshooting, ensure you have access to API logs, error messages, and relevant configuration information.
After completing the troubleshooting process, you should have identified the root cause of the issue and implemented appropriate resolution steps. Document the resolution for future reference and to prevent similar issues.
Monitor the resolved issue to ensure the fix is effective and implement preventive measures to avoid similar problems in the future. Update your integration monitoring and alerting based on lessons learned from the troubleshooting process.