05-28-2023 11:01 PM
Hi there, When I'm testing the getOrders function in the eBay sandbox, I'm getting a system error ({"errors":[{"errorId":30500,"domain":"API_FULFILLMENT","category":"APPLICATION","message":"System error."}]}). I'm using the GET method, and my URL is "https://api.sandbox.ebay.com/sell/fulfillment/v1/order?filter=creationdate:%5B2023-05-22T22:15:00.00...". When I try to get orders without the fulfillment filter, I make a call to the URL "https://api.sandbox.ebay.com/sell/fulfillment/v1/order", and I get an empty array ({"href":"https://api.sandbox.ebay.com/sell/fulfillment/v1/order?limit=50&offset=0","total":0,"limit":50,"offs...). Why is this happening? How can I add orders to test the API call?
05-28-2023 11:53 PM
Hello,
The issue you are experiencing with the getOrders function in the eBay sandbox can have multiple causes. Here are a few possible reasons and solutions:
Sandbox Data: The eBay sandbox environment may not have any existing orders available for your test account. In the sandbox environment, you can simulate orders by creating them yourself. However, these simulated orders will not be visible in the production environment. To create orders, you can use the eBay API's "fulfillment" functionality or consider using the eBay Sandbox UI to create test orders manually.
Incorrect Filter Criteria: It's possible that the filter criteria you're using in the URL is too restrictive, leading to an empty result set. Double-check the filter you're applying, such as the creation date range, to ensure it matches the orders you expect to retrieve. Adjust the filter parameters accordingly.
API Limitations: The eBay API may have specific limitations on retrieving orders in the sandbox environment. Make sure you review the eBay API documentation and ensure that you're using the correct endpoint, HTTP method, and request headers.
System Error: The "System error" message you received suggests an issue on eBay's side. This type of error is typically temporary and unrelated to your specific request. It's recommended to retry the API call after some time to see if the issue resolves itself. If the problem persists, you can contact eBay developer support for further assistance, providing them with the exact error message and request details.
To summarize, ensure that you have created test orders in the eBay sandbox environment, verify your filter criteria, review API limitations, and consider retrying the request after some time.