跳到主要内容
版本:1.x

API Errors

API errors occur when communicating with your WooCommerce server. These errors are prefixed with API and are organized into the following categories:

Categories

CategoryCode RangeDescription
ConnectionAPI01xxxNetwork and connectivity issues
AuthenticationAPI02xxxLogin, tokens, and permission issues
RequestAPI03xxxProblems with outgoing requests
ResponseAPI04xxxProblems with server responses
Plugin/WordPressAPI05xxxIssues with WordPress or WooCommerce plugins
ConfigurationAPI06xxxSetup and configuration problems

Connection Errors

Network and connectivity issues between the POS and your server.

CodeNameDescription
API01001Connection TimeoutThe server took too long to respond
API01002Connection RefusedThe server refused the connection
API01003Connection ResetThe connection was unexpectedly closed
API01004DNS Resolution FailedCould not resolve the server address
API01005SSL Certificate ErrorProblem with the site's security certificate
API01006Network UnreachableCannot reach the network
API01007Device OfflineYour device is not connected to the internet
API01008Website UnavailableThe website is not responding

Authentication Errors

Issues with login, sessions, and permissions.

CodeNameDescription
API02001Invalid CredentialsUsername or password is incorrect
API02002Token ExpiredYour session has expired
API02003Token InvalidThe authentication token is not valid
API02004User Not AuthorizedYou don't have permission to perform this action
API02005Insufficient PermissionsYour user role lacks required permissions
API02006API Key InvalidThe WooCommerce API key is not valid
API02007Token Refresh FailedCould not refresh your session
API02008Refresh Token InvalidThe refresh token is not valid
API02009Refresh Token ExpiredThe refresh token has expired
API02010Auth RequiredAuthentication is required for this action

Request Errors

Problems with the requests sent to the server.

CodeNameDescription
API03001Invalid Request FormatThe request format is not correct
API03002Missing Required ParametersRequired data is missing from the request
API03003Invalid Parameter ValueA parameter has an invalid value
API03004Request Too LargeThe request exceeds size limits
API03005Rate Limit ExceededToo many requests in a short time
API03006Unsupported MethodThe HTTP method is not supported
API03007Request Queue FullToo many pending requests

Response Errors

Problems with the responses received from the server.

CodeNameDescription
API04001Invalid Response FormatThe server response format is not valid
API04002Unexpected Response CodeReceived an unexpected HTTP status code
API04003Malformed JSON ResponseThe JSON response is corrupted or invalid
API04004Missing Response DataExpected data is missing from the response
API04005JSON Recovery AttemptedAttempted to recover from malformed JSON

Plugin/WordPress Errors

Issues with WordPress, WooCommerce, or the WCPOS plugin.

CodeNameDescription
API05001WooCommerce API DisabledThe WooCommerce REST API is disabled
API05002WCPOS Plugin Not FoundThe WCPOS plugin is not installed
API05003WCPOS Plugin OutdatedThe WCPOS plugin needs updating
API05004WordPress API DisabledThe WordPress REST API is disabled
API05005Plugin Not FoundA required plugin is not installed

Configuration Errors

Setup and configuration problems.

CodeNameDescription
API06001Invalid URL FormatThe URL format is not valid
API06002Missing API URLNo API URL has been configured
API06003Invalid Site ConfigurationThe site configuration is incorrect