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 poNumber.GetOrderHistoryHTTP422The 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,
GetorderHistory
HTTP503Please 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! Use get order details to check status of order.PlaceOrderHTTP502PlaceOrder 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.
37PLE10037Failed to place order for the client.
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].
43PLE10043Failed to place order for the client
44PLE10044Failed to place order for the client
45PLE10045Failed to get currency conversion value
46PLE10046Invalid response from currency conversion API
47PLE10047Failed to get client details
48PLE10048Invalid response from currency exchange conversion API.
49PLE10049Failed to get client currency exchange details
50PLE10050Failed to get vouchers
51PLE10051Error while uploading file
52PLE10052Download link not found
53PLE10053Error while creating csv file
54PLE10054Error while reading csv file
55PLE10055Insufficient Balance in your Account.
56PLE10060KYC Approval required for the product
57PLE10061Failed to place order for the client.
58PLE10062API call limit exceeded
59PLE10063Client data not found
60PLE10064Filter data not found
61PLE10065Filter cached data not found
62PLE10066Failed to place order.
63PLE10067Invalid denomination.
64PLE10068Invalid response from currency getCurrencyDetails endpoint
65PLE10069Invalid response from currency clientCurrencyConversion endpoint
66PLE10070Failed to fetch balance
67PLE10071Failed to place order
68PLE10072Failed to fetch order details
69PLE10073Failed to get order history
70PLE10074Unable to place order
71PLE10075Failed to place order
72PLE10076Invalid response from currency clientCurrencyExchange endpoint
73PLE10077Failed to place order
74PLE10078Failed to fetch order details
75PLE10079Failed to place order
76PLE10080Failed to find payment history.
77PLE10081Failed to validate payment history request.
78PLE10082Failed to fetch payment report
79PLE10083Please retry after sometime
80PLE10084Internal server error
81PLE10085Data key is empty in order place api
82PLE10086Null response in order place api
83PLE10087Invalid loyalty memberId
84PLE10088Tag Details not found.
85PLE10089Tag is not mapped to any product.
86PLE10090Unable to add item in cart.
87PLE10091Cart not found.
88PLE10092Failed to insert cart data
89PLE10093Unable to get cart count
90PLE10094Unable to delete cart
91PLE10095TagId's field is empty
92PLE10096Unable to update payment
93PLE10097Unable to update payment with cartId
94PLE10098Validation error in update cart shipment.
95PLE10099Cart cannot be modified at this stage.
96PLE10100Unable to update shipment
97PLE10101Unable to get shipping price from OPMS
98PLE10102Unable to get cart details
99PLE10103No cart items found for the order placement
100PLE10104Mulitple currency products not allowed for the order placement
101PLE10105Validation error in search cart.
102PLE10106Validation error in add/update item in cart.
103PLE10107No cart items found for the respective cartId
104PLE10108Invalid cart order history request
105PLE10109Error while fetching cart order history
106PLE10110Error while locking cart
107PLE10111Payment details not found
108PLE10112Error while fetching cart prices and cart currency
109PLE10113Payment details can only be updated after shipping details are added
110PLE10114Cart cannot have more than 10 items
111PLE10115Shipping details cannot be updated for empty cart
112PLE10116Invalid user metas format
113PLE10117Contact number is required for mobile verification
114PLE10118Either email or contact number is required
115PLE10119User Metas schema validation failed
116PLE10120User Metas is required
117PLE10121Required user meta is missing for productId
118PLE10122Invalid user input meta
119PLE10123Invalid format for field
120PLE10124The input field length is shorter than the minimum required length
121PLE10125The input field length exceeds the maximum allowed characters
122PLE10126Invalid stage for order placement
123PLE10127Lounge details are required
124PLE10128Top Up Details are required
125PLE10129Miles Details are required
126PLE10130Campaign API invalid response
127PLE10131Campaign API did not return data
128PLE10132Error in fetching campaign details
129PLE10133Order not found
130PLE10134Order items not found
131PLE10135Invalid category type
132PLE10136Invalid input
133PLE10137Order not found
134PLE10138Invalid usage type
135PLE10139Invalid sort order
136PLE10140No tags found.
137PLE10141Utility Details are required
138PLE10142Request timeout
139PLE10143Cart Payment cannot be deleted at this stage
140PLE10144Failed to validate allowed product quantity
141PLE10145Requested quantity is not allowed for the product
142PLE10146Failed to validate product coupon
143PLE10147Invalid response from voucher service
144PLE10148Invalid voucher code
145PLE10149Unable to validate voucher code. Please try again.
146PLE10150Cart is empty
147PLE10151Failed to remove all coupon codes
148PLE10152Failed to update cart coupon discount
149PLE10153Coupon code already applied to this cart
150PLE10154Coupon code does not exist in this cart
151PLE10155Offer is out of stock
152PLE10156Invalid product
153PLE10161Failed to validate allowed product quantity
154PLE10162Requested quantity is not allowed for the product
155PLE10157Mobile number is required for topup product validation
156PLE10158Unable to identify the operator for the provided mobile number.
157PLE10159The selected operator does not match the operator associated with the mobile number.