Missing Value: Shipping Address


#1

Hello,

I have been trying to create a test order from the devapiverson.docs.apiary.io API.
I copied and pasted the example request body from https://devapiverson.docs.apiary.io/#reference/order/order/post and I am receiving this error message:

{
    "error_message": "Missing value",
    "param": "shipping_address"
}

I also tried tweaking the information, and completely writing a new order from scratch. No luck - same error message. What am I doing wrong?


#2

Hi,

Are you certain that the request body is being posted with the correct json payload? What is the url you are using?

Thank you,

Sophie


#3

Yes, positive. Tried it in C# and in Postman
The URL I utilized was https://apiverson.ordoro.com/order

I copied and pasted the example request body, and even tried reconstructing it with custom realistic data.
Yet I received the same error both times


#4

I see that our docs have a typo, there should not be a validation key in the request for either addresses.

You will also need to adjust the cart value to be of an id that exists in your account.

Other than the aforementioned items, if you ensure that you are sending valid JSON, with the content-type set to JSON, the example will work as is.