You can update item quantities on an order.

This endpoint requires you to use the JOOR id for a SKU and order.

👍

Endpoint

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

  1. To get the order id, you can use the v2 GET orders endpoint.
  2. To get the line item id, you can use the v4 GET skus endpoint. You can filter by product id.
  3. Use this id in this endpoint to update your quantities.

Request Param Details

PARAMETERSREQUIREDTYPENOTES
idYstringThe JOOR id of the line item being updated

Example: "12345678"
quantityNstringThe 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": {}
    }
  ]
}