Skip to content
Get started

Update Product List Lines

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, using the list id. Each line has a product, a stock pool and a quantity.

ParametersExpand Collapse
store_number: str
id: int
formatint64
body: Optional[Iterable[Body]]
Deprecatedarticle_no: Optional[str]

Deprecated wire-name for CountingCloud.Entities.Entities.Request.PorductList.ProductListLineswithStockRequestModel.ProductNumber. Read on input only; never serialized. Use product_number for new integrations.

barcode: Optional[str]

The product barcode.

product_number: Optional[str]

Product number identifying the line item.

quantity: Optional[float]

Quantity on the line.

formatdouble
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]

Update Product List Lines

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",
)
print(response.code)
{
  "code": 0,
  "data": "data",
  "message": "message",
  "status": "status"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}
Returns Examples
{
  "code": 0,
  "data": "data",
  "message": "message",
  "status": "status"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}