Error Handling

In this section, you'll find all the conventional HTTP error codes associated with Xoxoday's Rewards APIs.

Xoxoday Rewards APIs uses conventional HTTP status codes to indicate success or failure. Responses with a status code starting with 4xx or 5xx can be considered as failed. The API returns errors in JS

Error Code Definitions

Different attributes associated with the error codes and objects are defined below:

AttributesDescription
codeThe HTTP status code of error returned. Can be: 2xx, 4xx, 5xx
keyA short string from the list on the right-hand side describes the kind of error which occurred.
messageMessage providing a short description of the error
detailsMessage providing more details about the error

Standard HTTP status code summary

Below is the standard HTTP error code summary:

HTTP Status CodeTextDescription
400Bad requestThe request was invalid, This happens mainly because of a malformed JSON or a violated rule
401UnauthorizedAuthorization failed or not provided yet
404Not FoundThe requested resource could not be found
405Method Not AllowedThe request method is known by the server but has been disabled and cannot be used. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code.
406Not AcceptableThis response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent.
415Unsupported Media TypeThe media format of the requested data is not supported by the server, so the server is rejecting the request.
500Internal Server ErrorThis happens because of an internal server error, reach out to the [email protected] to get an immediate resolution.

📘

HTTP Code Meaning

All other HTTP code returned by the service has conventional meanings.

Please refer to the meaning of HTTP codes here -> https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

Error Related to APIs

Some other common errors related to the Rewards APIs are listed below:

No.Error CodeDescriptionAPI EndpointsHTTP Status CodeActions
1PLE10001Validation error in place orderPlaceOrderHTTP400Please check the json payload.
2PLE10002Validation error in get order detailsGetorderDetails, GetorderHistoryHTTP400Please check the json payload.
3PLE10003Validation error in get filtersGetFiltersHTTP400Please check the json payload.
4PLE10004Failed to validate client's externalOrderIdGetOrderHistoryHTTP422The validation of poNumber has failed.
5PLE10005Failed to get currency valuePlaceOrderHTTP502Please try again after sometime.
6PLE10006Invalid response from currency APIPlaceOrderHTTP502Please try again after sometime.
7PLE10007Failed to add orderPlaceOrderHTTP422Order placement failed. Call the PlaceOrder API again.
8PLE10008Failed to get Order Amount detailsGetOrderHistoryHTTP502Please contact [email protected]
9PLE10009Failed to get company pointsGetbalanceHTTP502Please contact [email protected]
10PLE10010Failed to redeem pointsPlaceOrderHTTP422Order placement failed. Call the PlaceOrder API again.
11PLE10011Failed to confirm orderPlaceOrderHTTP422Order placement failed. Call the PlaceOrder API again.
12PLE10012Failed to process orderPlaceOrderHTTP502Order placement failed. Call the PlaceOrder API again.
13PLE10013Failed to confirm points redeemedGetVoucher,GetOrderDetials,GetorderHistoryHTTP503Please contact [email protected]
14PLE10014Invalid clientPlaceOrderHTTP400Please contact [email protected]
15PLE10015Amazon KYC is not approvedPlaceOrderHTTP400Amazon KYC process is not done. Please contact [email protected]
16PLE10016Failed to get Order detailsGetorderDetailsHTTP404Order ID or poNumber passed is incorrect.
17PLE10017Failed to get product detailsGetVoucherHTTP404Product details are not available. Please refresh the catalog by calling getvouchers API every 24 hours.
18PLE10018Invalid denomination for the productPlaceOrderHTTP400The denomination passed is not valid. Please check and pass correct denomination from GetVoucher API.
19PLE10019Clients are not allowed to place international ordersPlaceOrderHTTP401International products are disabled. Please write to [email protected] to enable it.
20PLE10020Failed to get currency details for the clientPlaceOrderHTTP404Please try again after sometime.
21PLE10021Failed to find order details while fulfilling orderGetOrderDetailsHTTP404Please try again after sometime.
22PLE10022Failed to find order historyGetOrderHistoryHTTP404Order ID or poNumber passed is incorrect.
23PLE10023Failed to get client's balanceGetBalanceHTTP502Please check the json payload.
24PLE10024Vouchers are out of stockPlaceOrderHTTP502Stock will be replenish. Please try again after sometime.
25PLE10025Failed to place order for the clientPlaceorderHTTP502System could not place the order. Please try again after sometime.
26PLE10026Order cancelled but refund failedPlaceOrderHTTP404Please write to [email protected]
27PLE10027Failed to find order historyGetorderHistoryHTTP404Order ID or poNumber passed is incorrect.
28PLE10028Failed to find TransactionId***HTTP404Order ID or poNumber passed is incorrect.
29PLE10029Failed to find filters for filterGroupCodeGetFiltersHTTP404The filter Group code used is invalid. Please check the value code in GetFilters API.
30PLE10030Failed to find vouchersGetVouchersHTTP404Please try again after some time.
31PLE10031Invalid filter value codeGetVouchersHTTP400The filter value code used is invalid. Please check the value code in GetFilters API.
32PLE10032Failed to validate OrderHistory RequestGetorderHistoryHTTP400Please check the json payload.
33PLE10033Failed to validate getVouchers requestGetVoucherHTTP400Please check the json payload.
34PLE10034Failed to process resendVoucherGetOrderDetailsHTTP502GetOrderDetails API failed to resend the voucher details. Please try again after sometime.
35PLE10035Failed to get order details to check status of orderPlaceOrderHTTP502PlaceOrder API has failed to check the status of the order. Please call the GetOrderDetails API and pass the same poNumber.
36PLE10036Failed to get order details as delivery is canceled.PlaceOrderHTTP404Order delivery is in cancelled state.
37PIPE10015Plum Pro APIs: User is disabled***HTTP401Please contact [email protected]
38PIPE10016Plum Pro APIs: Company is disabled***HTTP401Please contact [email protected]
39PIPE10017Plum Pro APIs: Access restricted for this IP***HTTP401IP must have blacklisted. Please share your server IP to [email protected] and get it whitelisted.
41PLE10041Clients are not allowed to place more than 10 QtyPlaceOrderHTTP409In an order, maximum ordered quantity of any product cannot exceed more than 9999. Please divide the order into smaller chunks and call the API multiple times.
42PLE10042This product is not activated for the client.PlaceOrderHTTP404This product is disabled, please submit your KYB. In case already done, please contact [email protected].