Https://private-anon-b10599da89-devapiverson.apiary-proxy.com/order

https://private-anon-b10599da89-devapiverson.apiary-proxy.com/order

Hi Team,

We are trying to integrate the SAP ByD with ORDORO. Using above link we are currently creating the Orders.
Our requirement is to be able to send the “Shipping_Method” along with our Orders payload. From the sample payload given in the documentation I have come up with the payload below but unfortunately it is showing 400 Error Code.

Support PIN – 383236

{
“shipping_address”: {
“zip”: “90650”,
“street1”: “1865 Emily Renzelli Boulevard”,
“phone”: “+1 17670926362”,
“email”: "arunkumar.varathappan@VORWERK.COM",
“name”: “Arun Kumar”,
“state”: “CA”,
“country”: “US”,
“city”: “NORWALK”
},
“tax_amount”: 0,
“requested_shipping_method”: 03,
“lines”: [
{
“product”: {
“weight”: 8,
“price”: 1384,
“taxable”: “true”,
“name”: “TM5 incl Cook-Key”,
“sku”: 61578,
“cost”: 1448
},
“quantity”: 1,
“cart_orderitem_id”: 10
},
{
“product”: {
“weight”: 0,
“price”: 11,
“taxable”: “true”,
“name”: “Spatula TM5”,
“sku”: 51730,
“cost”: 12
},
“quantity”: 1,
“cart_orderitem_id”: 20
}
],
“cart”: 74326,
“product_amount”: 1396,
“order_date”: “2018-04-16T13:40:42Z”,
“cart_order_id”: “1111-T1”,
“order_id”: “1111-T1”,
“grand_total”: 1460,

"billing_address": {
    "zip": "90650",
    "street1": "1865 Emily Renzelli Boulevard",
    "phone": "+1 17670926362",
    "email": "arunkumar.varathappan@VORWERK.COM",
    "name": "Arun Kumar",
    "state": "CA",
    "country": "US",
    "city": "NORWALK"
},
"shipping_info": {
	"shipping_method": 03
}

}

Hi,

Please use the host apiverson.ordoro.com instead of the documentation proxy, as the latter is not a static url and should be for testing with the docs.

to clarify: you are making a POST /order request?
I do not think you are looking at the expected request body in the docs, for example, there is no shipping_info. It appears as you are trying to create an order with the response order shape.

Please take a look at the documentation for this endpoint along with the expected request to better clarify how to create an order in Ordoro via the API.
https://devapiverson.docs.apiary.io/#reference/order/adminorderordernumber/post

Hi Sophie,

I am trying to create an Order with Shipping Method as for e.g. “UPS Ground”. Yes you are correct I am trying to create the payload from response but my request is to find a payload where I can directly pass the value in my POST Payload, in which column i should pass the value

"requested_shipping_method": 03

I am sorry as currently I am not able to find the section where I can find the POST payload which satisfies my requirement. Through Below payload I am able to create the ORDERS but without the Shipping Method.

{

          "cart": 74326,

"product_amount": 1396,

"order_date": "2018-04-16T13:40:42Z",

"cart_order_id": "11111-T1",

"order_id": "11111-T1",

"grand_total": 1460,

"shipping_address": {

    "zip": "90650",

    "street1": "1865 Emily Renzelli Boulevard",

    "phone": "+1 17670926362",

    "email": "arunkumar.varathappan@VORWERK.COM",

    "name": "Arun Kumar",

    "state": "CA",

    "country": "US",

    "city": "NORWALK"

},

"billing_address": {

    "zip": "90650",

    "street1": "1865 Emily Renzelli Boulevard",

    "phone": "+1 17670926362",

    "email": "arunkumar.varathappan@VORWERK.COM",

    "name": "Arun Kumar",

    "state": "CA",

    "country": "US",

    "city": "NORWALK"

},

"lines": [

    {

        "product": {

            "weight": 8,

            "price": 1384,

            "taxable": "true",

            "name": "TM5 incl Cook-Key",

            "sku": 61578,

            "cost": 1448

        },

        "quantity": 1,

        "cart_orderitem_id": 10

    },

    {

        "product": {

            "weight": 0,

            "price": 11,

            "taxable": "true",

            "name": "Spatula TM5",

            "sku": 51730,

            "cost": 12

        },

        "quantity": 1,

        "cart_orderitem_id": 20

    }

],

"tax_amount": 0

}

Thanks

Saurabh

You can use shipping_type, and this is a string value.

Hi Sophie,

You are a life saver. Thank you for your help. :smile:

Thanks
Saurabh