Quick Summary
Every API action replies with the same envelope. Read error_code, not api_status, to know if the operation worked.
We'll Cover:
Response fields
| Field | Meaning |
| api_status | Success when the request was authenticated and understood |
| error_code | 0 on success. Anything else is a failure |
| error_remark | A readable reason you can show to a merchant |
| result | The data. The shape depends on the action |
A failed operation still returns HTTP 200. For example, a cancellation refused because the driver already has the parcel comes back as api_status Success with error_code -1.
Common problems
| Symptom | What to do |
| error_code is not 0 | Show error_remark. Do not retry blindly |
| Unauthorized user | Check the API key and that you use the base URL for your account's country |
| A quote returns an empty result | No courier serves that route. Ask the user to change the address or time |
| A request times out | The booking may have gone through. Check recent orders before retrying |
Log error_remark exactly. It is the fastest way for support to help.
What's next?
Still need help?
Our team is happy to help. ? Live Chat | ✉️ Contact Us