This repo contains example scripts for using the Ordoro API. Check out the complete API documentation for more information. There's also a ruby gem available.
We use basic auth. Your username can be found under settings->users in your Ordoro account.
JSON in, JSON out
curl --user 'myusername:mypassword' --header 'Content-Type: application/json' https://api.ordoro.com/order/?status=new
curl --user 'myusername:mypassword' https://api.ordoro.com/product/?status=active
NOTE When we import an order, we automatically decrease the available on hand so there's no need to change it manually based on orders.
- Setting inventory levels during initial setup
- Updating inventory levels regularly based on external feeds (for example, via supplier inventory feeds)
curl --user 'myusername:mypassword' --header 'Content-Type: application/json' --request PUT --data '{"on_hand":99}' https://api.ordoro.com/product/:sku/warehouse/:warehouse_id/
You must first create a shipment. Using this endpoint, we’ll automatically put the order lines into the shipment that have enough inventory to be fulfilled. You can then modify the shipment lines if necessary. You can also create a shipment directly if that’s more convenient.
curl --user 'myusername:mypassword' --header 'Content-Type: application/json' --request POST https://api.ordoro.com/order/:order_id/create_shipment/
curl --user 'myusername:mypassword' --header 'Content-Type: application/json' --request PUT --data '{"quantity":99}' https://api.ordoro.com/shipment/:shipment_id/line/:line_id/
curl --user 'myusername:mypassword' --header 'Content-Type: application/json' --request POST --data '{"notify_cart":true, "tracking":{"shipping_method: "fast","tracking":91728387,"vendor":"UPS","cost":55}}' https://api.ordoro.com/shipment/:shipment_id/tracking/
curl --user 'myusername:mypassword' --header 'Content-Type: application/json' --request POST --data '{"order_id": "unique-order-id", "billing_address": {"name": "Frank"}, "shipping_address": {"name": "John"}}' https://api.ordoro.com/order/
curl --user 'myusername:mypassword' --header 'Content-Type: application/json' --request POST --data '{"sku": "unique-sku", "name": "displayme"}' https://api.ordoro.com/product/
The tracking information is stored in the tracking field of the shipment
curl --user 'myusername:mypassword' https://api.ordoro.com/shipment/:shipment_id/