Create Order Item
Adds a line item to an existing order and recalculates the order totals.
To add several items at once, pass them in an order_items array to the PUT /orders/{order_id} operation instead, which consumes a single rate limit token rather than one per item.
Your API key, found under Store Settings on the API tab. This should be kept server-side.
Your store ID, found under Store Settings on the API tab.
Order Desk's internal order ID. This is not your source_id.
736745If an id field is passed the item will be updated. Otherwise it will be added.
1670028ODU Campus Hoodie0Example: 191Example: 21.2Item SKU or product code.
ODU-HOOD-NVY-LAvailable options are ship, noship, download, or future. Defaults to ship.
shipPossible values: Further details about the type of item. Freeform text.
ApparelFulfillment method responsible for this item, when one applies.
The item was added.
Either success or error.
Describes the result. Always present when an error occurs.
Time taken to process the request.
0.1524 secondsThe request was rejected. message names the problem.
Authentication failed. See the Authentication guide, and note that an invalid store ID blocks your store rather than simply failing the request.
No record matches that ID in your store.
An item's metadata or variation_list is over the limit. See
the Errors guide for the sizes.
You are sending too fast. Wait X-Retry-After seconds. See
the Rate Limits guide.
The request could not be completed.
curl "https://app.orderdesk.me/api/v2/orders/736745/order-items" \
-X POST \
-H "ORDERDESK-STORE-ID: your-store-id" \
-H "ORDERDESK-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{"name": "ODU Campus Hoodie", "code": "ODU-HOOD-NVY-L", "price": 19, "quantity": 1, "weight": 1.2, "delivery_type": "ship", "variation_list": {"Size": "Large", "Color": "Red"}}'
{
"status": "success",
"message": "Order Item Added",
"execution_time": "0.1524 seconds"
}Last updated
Was this helpful?

