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. |
Both onboarding and payment APIs use these response structure and status codes:
| Code | Status | Description |
|---|---|---|
| 1000 | ENQUEUED | Request received and queued for processing. |
| 1001 | SUCCESS | Request processed successfully. |
| 1003 | PARTIAL_SUCCESS | Some requests succeeded while others failed. |
| 1004 | FAILED | Request processing failed. |
| 4001 | VALIDATION_FAILURE | Request validation failed because it contains invalid data, missing required fields, or format violations. |
| 5000 | SYSTEM_ERROR | Internal processing error occurred. Retry may be appropriate after a delay. |
| 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. |
Common business logic errors for payment operations:
| 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. |
| Relaying to acquirer/processor or designated payment gateway | Payment declined | Payment was declined by the payment processor. Check payment instrument validity. |
| Configuration | Service not configured | Payment service is not properly configured for the client. Complete onboarding before initiating 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. |
Common business logic errors specific to onboarding operations:
| Category | Typical Reason | Description and Resolution |
|---|---|---|
| Supplier Validation | Invalid business information | Supplier information incomplete or invalid. Check company details, address, business contact, and recipient information for required fields and proper formatting. |
| Agreement Processing | Invalid signer details | Participation agreement authorized signer information is invalid or incomplete. Verify authorized signer name, email, and title are provided and properly formatted. |
| Customer Relationship | Invalid supplier relationship | Customer cannot be linked to specified supplier. Verify supplier exists and is properly provisioned before onboarding a customer. |
| Data Format | Field validation errors | Data format violations including invalid country codes, currency codes, email formats, phone number formats, or enumeration values. Review field requirements and resubmit with corrected data. |
| Provisioning Status | Operation dependency not met | Required provisioning steps not completed. Check supplier_provisioning_status and complete prerequisite operations before proceeding. |
| Deposit Confirmation | Invalid payment details | Deposit confirmation contains invalid payment information. Verify request_id, supplier_id, and payment_details array structure and content. |
Onboarding validation errors include a details array with field-level information:
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.
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 and onboarding provisioning progress. These issues can impact reconciliation and operational visibility.
Common Causes:
Resolution Approach:
Onboarding requests fail due to validation errors or process issues, preventing successful supplier registration or customer creation. These failures require specific attention to onboarding data requirements and workflow sequencing.
Common Causes:
Resolution Approach:
API requests fail due to data format or validation issues, preventing proper processing of request data. The new endpoints enforce specific API constraints for data validation.
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.