hello everyone I am using REST API of shipping service but i am facing certain errors. here’s the image of my block
here is the link of API docs please tell me what I am doing wrong. I think the error is most probably in order detail ( Array containing further fields).
but i am using the same header and post text method for other API calls and they are working. this time it is showing missing data but data is not missing. I think this is happening because I am not able to input data in order details correctly see block image and pls tell is this the correct method to show further field in and array.
In other apis you are sending params via Get request but here you need to to send params via POST request and in json format.
You just created a string with procedure not json
Also i am using this mehtod for almost a year in every webiste like onesignal, firebase ,openload and even this website but only this time in this website i am getting an error on on endpoint only.
my problem is still there even after using the json body POST Request. i am getting error invalid data here is the response that i am getting from API.
{
"message": "Oops! Invalid Data.",
"errors": {
"order_id": [
"The order id field is required."
]
},
"status_code": 422
}
Here’s the Post Request Body i even valdiated it with Jsonvalidator as asked by taifun.
Try changing the order number and see if it works cause I read in apidocs that…
“Orders cannot be created with order id’s same as that of cancelled orders. If error 422 shows up despite filling the correct details, consider changing the order_id.”