Orders

Making calls to the orders API

Index

Get a list of all orders.

GET/orders

Upload Orders

Create new orders in bulk

For this call, you are required to set the merchant using the Merchant Header.

POST/orders/upload
Parameter Type Examples Description
channel_id Required
integer5The ID of the sales channel the orders were placed on
orders Required
array<Order>[...]An array of orders to upload
orders.*.name Required
stringJane DoeThe name of the customer that placed the order. Required if first_name and last_name are not set.
orders.*.first_name Required
stringJaneThe first name of the customer that placed the order. Required if name is not set.
orders.*.last_name Required
stringDoeThe last name of the customer that placed the order. Required if name is not set.
orders.*.email Optional
emailjanedoe@gmail.comThe email address of the customer that placed the order.
orders.*.phone Optional
string+1 555 555 5555The phone number of the customer that placed the order.
orders.*.address_line_1 Required
string123 Example StThe first line of the shipping address for the customer that placed the order.
orders.*.address_line_2 Optional
stringApt 2The second line of the shipping address for the customer that placed the order.
orders.*.address_line_3 Optional
stringC/O John DoeThe third line of the shipping address for the customer that placed the order.
orders.*.city Required
stringNew YorkThe city of the shipping address for the customer that placed the order.
orders.*.state_province Required
stringNYThe province or state of the shipping address for the customer that placed the order.
orders.*.country Required
stringUnited StatesThe country of the shipping address for the customer that placed the order. Required without country_code.
orders.*.country_code Required
stringUSThe country code of the shipping address for the customer that placed the order. Required without country, and is the more reliable way to set the country.
orders.*.postal_code Required
string21222The postal code / ZIP of the shipping address for the customer that placed the order.
orders.*.is_residential Optional
booleantrueIf the shipping address for the customer that placed the order is a residential address.
orders.*.order_id Required
stringORDER-ABC-1234A unique string that identifies this order
orders.*.order_date Optional
date2022-03-22The date this order was placed
orders.*.gift_note Optional
stringCongratulations!A gift note to be included with the order
orders.*.items Required
array<Item>See the orders.*.items.* parametersThe items contained in the order
orders.*.items.*.merchant_sku Required
stringFLN-A-1554The SKU of the item matching. This should be consistent across all channels
orders.*.items.*.quantity Required
integer2The quantity of this item that was ordered
orders.*.items.*.title Required
stringWall-mounted Fan Unit, 18 inchThe title of this item. This will only be used if the item does not already exist on the portal.

Show

Get the details of a single order.

GET/orders/{ORDER_ID}

Upload Shipping Label

Add a shipping label to an order. This will not add a tracking number to the order and mark it as shipped. This must be done in a separate call.

POST/orders/{ORDER_ID}/uploadShippingLabel
Parameter Type Examples Description
file Required
fileShipping Label.pdfA file containing the shipping labels for the order. The file can be a PDF, PNG, or JPG.

Mark as Shipped

Mark an order as shipped and add a tracking number. This will send the tracking number to the marketplace and mark the order as shipped there.

POST/orders/{ORDER_ID}/markAsShipped
Parameter Type Examples Description
carrier Required
stringfedexThe carrier that was used to ship the order. Valid values: fedex, ups, usps, shippo, canada_post, dhl_express, ontrac, other
tracking_number Required
string1Z12345E0291980793The tracking number for the shipment. This is required if the carrier is set.