Orders
Creating orders in Shipsidekick
Endpoint: POST https://www.shipsidekick.com/api/v1/orders
Minimum Viable Order
We don't need a lot of details to create an order in SSK, only a shipToAddress and lineItems.
In this example we'll assign a name to the order with a prefix 'MN' (our default, stands for manual) using the next available integer in that namespace, so if you previously had an order "MN800" the next order will be "MN801".
We'll also generate a default price and compareAtPrice based on the sum of those values on the
attached lineItems but we recommend providing them if you have them (especially for international orders!)
By default the new order will get a financialStatus of paid and a fulfillmentStatus of
open. Once the order has been fulfilled it will contain shipment details like trackingCode
in the shipments array!
Line Items
When creating or updating orders, you can specify line items in multiple ways. The system will automatically find and match the correct product variant based on the identifier you provide.
Line Item Object
Each line item requires at least one identifier field and a quantity. The available identifier fields are:
| Field | Type | Description |
|---|---|---|
| productVariantId | string | Direct ID of the product variant (most efficient method) |
| productVariantSku | string | Stock Keeping Unit of the product variant |
| productVariantBarcode | string | Barcode associated with the product variant |
| productVariantUpc | string | Universal Product Code |
| productVariantEan | string | European Article Number |
| productVariantIsbn | string | International Standard Book Number |
| productVariantAsin | string | Amazon Standard Identification Number |
| productVariantTitle | string | Exact title of the product variant |
Example Line Item Creation
The following examples show different ways to add the same product to an order:
Using Product Variant ID:
Using SKU:
Using UPC:
Using Title:
Error Handling
If no product variant is found with the provided identifiers, the API will return a 400 error with details about which identifier failed to match:
Getting Started
Welcome to our API docs! There's nothing I love more than a shipping API so please make yourself at home and don't hesitate to contact support@shipsidekick.com!
Create a new order POST
Create a new order in the system. Optionally include a return order to be created simultaneously (useful for pre-paid return labels included with outbound orders). Requires full write access to orders.