Integrating a 3PL or supplier system with Ordoro

Uncle Sam edited this page Jan 11, 2016 · 1 revision

Get new orders

First thing's first, get the new orders from Ordoro.

curl --user 'user:pass'

NOTE When an Ordoro is received in Ordoro, we automatically adjust the available on hand, which is written to the cart. Available on hand is the physical on hand quantity minus the ordered quantities.

Create a shipment for each order, which will change the order status to in_process. It will also create a shipment object to which you'll attach your tracking information.

curl --user 'user:pass' --header 'content-type: application/json' --request POST

This will create a shipment object that would fulfill all the lines of the order. If you need to send several shipments for an order, you'll need to modify the quantity of the shipment lines of the first shipment created and create additional shipments.

curl --user 'user:pass' --header 'content-type: application/json' --data {"quantity": 0} --request PUT

curl --user 'user:pass' --header 'content-type: application/json' --request POST

Ship stuff

Tell Ordoro when you've shipped something by creating a tracking number. tracking and vendor are required, all others are optional.

curl --user 'user:pass' --header 'content-type: application/json' --request POST --data {"notify_cart":true,"ship_date":"2015-12-28T17:03:00-06:00","tracking":{"vendor":"other","tracking":"slow","shipping_method":"fast","cost":"5"}}

Once you ship an order, the physical on hand is changed to reflect the amount shipped.

Update inventory levels

If you need to make a manual adjust to the physical on hand inventory levels, modify the warehouse at which the inventory is located.

curl --user 'user:pass' --header 'content-type: application/json' --request PUT --data {"on_hand": 69}

To set the maximum value for available on hand that will be written to a sales channel, modify the product.

curl --user 'user:pass' --header 'content-type: application/json' --request PUT --data {"max_export_qty": 69, "cart_id": 68}

You can get a list of carts and their IDs by calling GET carts.

curl --user 'user:pass'

Similarly, you can get a list of warehouses and their IDs by calling GET warehouse.

curl --user 'user:pass'
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.