Map Shipping and Handling

Hi,

I am trying to create an order in Ordoro, using the API. My goal is to map the shipping and handling field, instead of adding shipping as an order item. What is wrong with my code?

POST: https://apiverson.ordoro.com/order

{“billing_address”:{“city”:“Watertown”,“name”:“Joe Smith”,“zip”:“02472”,“phone”:“7813300737”,“street1”:“123 Main St”,“company”:"",“state”:“MA”,“country”:“United States”,“street2”:""},“lines”:[{“product”:{“sku”:“ABC SIMPLE”,“name”:“THE ABC PRODUCT”,“weight”:0.0,“price”:1.0,“cost”:0.0},“tax_lines”:[],“item_price”:1.0,“total_price”:1.0,“quantity”:1}],“shipping_address”:{“city”:“Watertown”,“name”:“Joe Smith”,“zip”:“02472”,“phone”:“7813300737”,“street1”:“123 Main St”,“state”:“MA”,“country”:“United States”,“street2”:""},“shipments”:[{“tracking”:{“cost”:0.0,“updated”:“0001-01-01T00:00:00”,"_void":false,“tracking”:“1234567890”,“created”:“0001-01-01T00:00:00”},“requested_shipping_method”:“UPS”,“notify_cart”:false,“updated”:“0001-01-01T00:00:00”,“order_date”:“0001-01-01T00:00:00”,“created”:“0001-01-01T00:00:00”,“shipped”:false}],“shipping_amount”:1.0,“status”:“new”,“order_id”:“Test12”,“product_amount”:1.0,“grand_total”:2.9,“cart”:97244,“order_date”:“2019-02-25T18:10:23.0668752-05:00”,“discount_amount”:0.1,“tax_amount”:0.0}

{“error_message”: “The input field ‘shipments’ was not expected.”, “param”: null}02%20AM

Hi,

You’ll want to use POST /order with shipping_amount as the parameter to update the shipping and handling field in the UI.

Hope this helps.