You can update item quantities on an order.
This endpoint requires you to use the JOOR id for a SKU and order.
Endpoint
- Method: POST
- URI:
https://api.jooraccess.com/v4/orders/sku_line_items/bulk_update?account=[account_id]
Params
- Accept: application/json
- Authorization: OAuth2 [Base64 encoded token]
Sample cURL Request
curl -X POST "https://apisandbox.jooraccess.com/v4/orders/sku_line_items/bulk_update?account=[account_id]" -H "accept: application/json" -H "Content-Type: application/json" -d "[{\"id\":\"string\",\"quantity\":0}]"
Workflow
- To get the order id, you can use the v2 GET orders endpoint.
- To get the line item id, you can use the v4 GET skus endpoint. You can filter by product id.
- Use this id in this endpoint to update your quantities.
Request Param Details
PARAMETERS | REQUIRED | TYPE | NOTES |
---|---|---|---|
id | Y | string | The JOOR id of the line item being updated Example: "12345678" |
quantity | N | string | The quantity for this line item Example: "50" |
Request Example
[
{
"id": "string",
"quantity": 0
},
]
Response Example
{
"data": [
{
"id": "string",
"order_id": "string",
"line_item_sku": {
"original_id": "string",
"product": {
"name": "string",
"external_id": "string"
},
"trait_values": [
{
"trait": {
"id": "string",
"name": "string",
"type": "string"
},
"value": "string",
"external_id": "string"
}
]
},
"quantity": 0
}
],
"errors": [
{
"status": "string",
"message": "string",
"details": {}
}
]
}