What do API error codes mean?
Every response has a code, a msg and a data field. The code tells you whether the request succeeded; the full list of codes and their meanings is in the response and error codes reference.
- Branch your logic on the code, not on the msg text. The msg is for troubleshooting only.
- If the request is rejected with a client error, it didn't happen. Fix it and try again.
- If you get a server error or no response, the outcome is unknown. Query the payout before doing anything else.
- If the response says the system is under maintenance, the request wasn't carried out. Try again later.
When you contact support@pexx.com about an error, include the X-Trace-Id value from the response header, the endpoint and the time of the request.