This will allow you to fetch a list of line item ids for your orders. Each of these ids correspond to a SKU (product-color-size) in your order.
This endpoint requires JOOR ids.
Endpoint
- Method: GET
- URI:
https://api.jooraccess.com/v4/orders/sku_line_items?account=[account_id]&order_ids=[order_ids]&line_item_ids=[line_item_ids]
Params
- Accept: application/json
- Authorization: OAuth2 [Base64 encoded token]
Sample cURL Request
curl -X GET "https://apisandbox.jooraccess.com/v4/orders/sku_line_items?account=[account_id]&order_ids=[order_ids]&line_item_ids=[line_item_ids]" -H "accept: application/json"
Workflow
- Get the order id using the v2 GET orders endpoint.
a. You can also locate the order id on the web, on the order review page. See below for a screenshot.
- Reference this order id to get a list of the line item ids and corresponding SKU items.
- You will use the line item ids in the following endpoints
Parameter Details
PARAMETERS | REQUIRED | TYPE | NOTES |
---|---|---|---|
account | Y | string | Your JOOR account id Example: "123456" |
order_ids | N | string | The JOOR order ids the items belong to Example: "123456" |
line_item_ids | N | string | The JOOR item ids you want to view details for Example: "12345678" |
Response Example
{
"data": [
{
"id": "<the JOOR id for this item>",
"order_id": "<the JOOR order id this item belongs to",
"line_item_sku": {
"original_id": "<the JOOR sku id>",
"product": {
"name": "<the name of your product>",
"external_id": "<the system id of your product>"
},
"wholesale_price": 100.00,
"suggested_retail_price": 200.00,
"trait_values": [
{
"trait": {
"id": "U0tVVHJhaXQ6U3R5bGVDb2xvcg==",
"name": "Color",
"type": "sku"
},
"value": "Navy",
"external_id": "NAVY1"
},
{
"trait": {
"id": "U0tVVHJhaXQ6U2l6ZQ==",
"name": "Size",
"type": "sku"
},
"value": "36L",
"external_id": "36LONG"
}
]
},
"quantity": 0
}
],
"errors": []
}