Skip to content
Get started

Adds or updates lines on an existing product list.

product_lists.update_product_list_lines(intid, ProductListUpdateProductListLinesParams**kwargs) -> ProductListUpdateProductListLinesResponse
POST/api/v2/public/stores/{store_number}/productlists/{id}

Adds or updates lines on an existing product list.

ParametersExpand Collapse
store_number: str
id: int
formatint64
lines: Optional[Iterable[Line]]

The product list lines to add or update.

quantity: float

Quantity on the line.

formatdouble
Deprecatedarticle_no: Optional[str]

Deprecated. Use product_number instead. Still accepted on input for backwards compatibility.

barcode: Optional[str]

The product barcode.

product_number: Optional[str]

Product number identifying the line item.

stock_pool: Optional[str]

Stock pool the line targets.

api_key: Optional[str]
ReturnsExpand Collapse
class ProductListUpdateProductListLinesResponse:
code: Optional[int]
formatint32
data: Optional[str]
message: Optional[str]
status: Optional[str]

Adds or updates lines on an existing product list.

import os
from colleqtive_sdk import Colleqtive

client = Colleqtive(
    bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"),  # This is the default and can be omitted
)
response = client.product_lists.update_product_list_lines(
    id=0,
    store_number="store_number",
    lines=[{
        "product_number": "PRD-001",
        "stock_pool": "StoreStockPool1",
        "quantity": 5,
    }, {
        "product_number": "PRD-002",
        "stock_pool": "StoreStockPool1",
        "quantity": 12,
    }],
)
print(response.code)
{
  "code": 0,
  "data": "data",
  "message": "message",
  "status": "status"
}
Returns Examples
{
  "code": 0,
  "data": "data",
  "message": "message",
  "status": "status"
}