Overview
During integration with the Oceanpayment API, the system may return various error response codes. Merchant systems need to correctly identify and handle these codes to ensure the stability of business processes.
Response Codes
View the complete OPCCOUNT response codes and their descriptions.
Error Handling
-
Receive API Response
- After calling the Oceanpayment API, the system first receives the response code and description.
-
Check for Success
- If the response indicates success (for example, status code
200), proceed with the subsequent business process. - If an error code is returned, enter the error handling workflow.
- If the response indicates success (for example, status code
-
Classify Error Types
- Identify and categorize the type of error to determine the appropriate handling method.
-
Log Errors
- Record all error responses for auditing and troubleshooting purposes.
-
Notify Users or Trigger Manual Intervention
- If user action is required (e.g., updating bank card information), prompt the user accordingly.
- For system exceptions, notify technical personnel for manual intervention.