Encountering an Error message that prevents you to change order status can be a perplexing challenge, but fret not, here's a comprehensive guide to help you troubleshoot and resolve the issue efficiently.
Prerequisite
1. API Documentation Review:
Start by revisiting the API documentation. Ensure that you are well-acquainted with the expected response format, including the structure and presence of key objects. This step provides a baseline for identifying discrepancies.
2. Verify API Call Parameters:
Check your API call parameters against the documentation. Confirm that you are sending the correct data and that all required parameters are included. Misconfigurations here can lead to unexpected results.
How to solve it:
#1 Hint
Issue description:
Changing order status disallowed / لا يمكن تغيير حالة الطلب
Reason:
make sure the order status is not ready because you can’t reverse it at this stage and also if completed unless the merchant has made the status process reverse you can make the reverse update via the API.
How to solve it:
Make sure the order status is not ready because you can’t reverse it at this stage and also if completed unless the merchant has made the status processing reverse you can make the reverse update via the API.
Simply use the '/managers/store/orders/{order-id}/change-order-status' endpoint to change the order_status to reversed.
Need a further help?
connect with us via chat support and share the cURL command. This will enable us to conduct a more in-depth analysis and provide thorough support.