Create Product List
POST/api/v2/public/stores/{store_number}/productlists
Creates a product list, optionally with its first lines. product_list_type must already exist. The response returns the new list id, which the lines endpoint needs.
Query Parameters
Body ParametersJSON
product_list_name: string
Name of the product list. Must contain only letters, numbers, spaces, dots, hyphens, or underscores.
minLength1
is_allow_duplicate_products: optional boolean
When true (default), duplicate products may appear on multiple lines. When false, lines for the same product are merged and quantities are summed.
Create Product List
curl https://api.colleqtive.net/api/v2/public/stores/$STORE_NUMBER/productlists \
-H 'Content-Type: application/json' \
-H "Authorization: $COLLEQTIVE_BEARER_TOKEN" \
-d '{
"product_list_name": "Produce"
}'{
"product_list_id": 0
}{
"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
{
"product_list_id": 0
}{
"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."
}