Error Handling

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

The Xoxoday Rewards APIs use standard HTTP status codes to indicate whether a request was successful or failed.

  1. 2xx codes → Successful requests
  2. 4xx or 5xx codes → Failed requests

When a request fails, the API returns an error response in JSON format containing specific attributes.

Error Response Formats

The API can return errors in two possible formats:

OAuth / Authorization Errors

Returned when authentication or authorization fails, or when required parameters are missing.

Attributes:

{  
  "error": "invalid_request",  
  "error_description": "missing/invalid parameters authorization header"  
}

Attribute Description

AttributeDescription
errorA short error keyword describing the type of error (e.g., invalid_request, unauthorized_client).
error_descriptionA detailed explanation of the error.

Application / API Errors

Returned when a valid request was made, but the server could not process it due to resource, business logic, or data issues.


Attributes:

{  
  "code": 404,  
  "errorId": "PLE10030",  
  "errorInfo": "Failed to find vouchers.",  
  "error": "No Vouchers Found"  
}

Attribute Description

AttributeDescription
codeThe HTTP status code returned. Possible categories: 2xx, 4xx, 5xx
errorIdA short string describing the type of error (selected from a predefined list)
errorInfoA short description of the error
errorAdditional details explaining the cause of the error

Standard HTTP Error Code Summary

HTTP Status CodeTextDescription
400Bad RequestThe request was invalid. Common causes: malformed JSON or rule violation.
401UnauthorizedAuthorization failed or was not provided.
404Not FoundThe requested resource does not exist.
405Method Not AllowedThe HTTP method is recognized but disabled. (GET and HEAD must always be enabled)
406Not AcceptableNo content matches the criteria provided in the request headers.
415Unsupported Media TypeThe request’s media type is not supported by the server.
500Internal Server ErrorServer-side issue. Contact [email protected] for immediate resolution.

Note
All other HTTP status codes follow their standard meanings as defined in the HTTP specification.
Refer to: MDN HTTP Status Codes

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].