EasyParcel (Singapore) Help Centre

Login Sign Up
Welcome
Login

How do I read API responses and errors?

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

FieldMeaning
api_statusSuccess when the request was authenticated and understood
error_code0 on success. Anything else is a failure
error_remarkA readable reason you can show to a merchant
resultThe 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

SymptomWhat to do
error_code is not 0Show error_remark. Do not retry blindly
Unauthorized userCheck the API key and that you use the base URL for your account's country
A quote returns an empty resultNo courier serves that route. Ask the user to change the address or time
A request times outThe booking may have gone through. Check recent orders before retrying

Log error_remark exactly. It is the fastest way for support to help.


Still need help?
Our team is happy to help. ? Live Chat  |  ✉️ Contact Us

E
EasyParcel is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.