Skip to content

Product filtering / Variation grouping

POST
/v2/product-search-with-filters
curl --request POST \
--url https://api-admin.billz.ai/v2/product-search-with-filters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'accept-language: ru' \
--header 'platform-id: 7d4a4c38-dd84-4902-b744-0488b80a4c01' \
--data '{ "category_ids": [ "15c1d3e9-f628-4094-8c69-7b0e67a6240d" ], "status": "all", "skus": [ "100-29", "10276F" ], "group_variations": false, "product_field_filters": [ { "field_id": "491e1d8a-ad22-4180-bcc5-0c5699bdf4f9", "field_type": "attribute", "field_values": [ "aee6d71d-32ed-4695-8f3b-5516dacf75fe" ] }, { "field_id": "84122e63-9993-4fac-80d6-6ad8bfa95f2e", "field_type": "attribute", "field_values": [ "6321d850-77a4-40cd-aa47-4548f0dc8707" ] }, { "field_id": "3b6db763-eeaf-41c3-af99-48472add4e2e", "field_type": "custom", "field_values": [ "18" ] } ], "archived_list": false, "brand_ids": [ "e158f882-d0e0-499d-b6f8-9029ac1886ca" ], "measurement_unit_ids": [ "c5336f71-d684-4e2e-b5bc-307138593543" ], "supply_price_from": 1, "supply_price_to": 10000000, "retail_price_from": 1, "retail_price_to": 10000000, "whole_sale_price_from": 1, "whole_sale_price_to": 10000000, "shop_ids": [ "6f244db4-75d6-4fac-9841-14867d45e36a" ], "supplier_ids": [ "5f4c5af2-3320-4fa4-aed9-65a35e1dab8f" ], "limit": 10, "page": 1 }'

Error codes: 400 — input validation error; 401, 403, 429, 500 — shared by all methods. Body formats and semantics: Response codes and errors.

filter_added_to_stocktaking
boolean

Filter by products added to the stocktaking from a file

correlation_id
string

If set, products[].stocktaking_is_added is filled in the response

accept-language
string
default: ru

Ru|uz|en — affects the localization of fields[]

platform-id
string
default: 7d4a4c38-dd84-4902-b744-0488b80a4c01

Platform identifier. A static value is used for integrations.

Media typeapplication/json
object
page

0 -> defaults to 1

integer format: int32
default: 1
limit

0 -> defaults to 10

integer format: int32
default: 10
search

Limited in length

string
status

Enums: all, active, inactive, small_left, zero_left, negative_balanced

string
order

Example: -name

Array<string>
shop_ids

The number of elements is limited. Without the permission to see stock of all shops, the list is intersected with the shops available to the user

Array<string>
retail_price_from
number format: double
retail_price_to
number format: double
supply_price_from
number format: double
supply_price_to
number format: double
whole_sale_price_from
number format: double
whole_sale_price_to
number format: double
measurement_value_from

Lower stock bound

number format: double
measurement_value_to
number format: double
skus

The number of elements is limited

Array<string>
group_variations

True -> parent products in products[], variations in the variations[] field

boolean
with_archived
boolean
archived_list

Archived products

boolean
parent_id

Parent order identifier

string
supplier_id

A single supplier (in addition to supplier_ids)

string
category_ids

The number of elements is limited

Array<string>
product_type_ids
Array<string>
category_and_search
boolean
product_field_filters

Filters by product fields

Array<object>
object
field_id
string
field_values
Array<string>
field_type
string
last_update_date

Format yyyy-mm-dd hh:mm:ss; invalid — 400

string
brand_ids
Array<string>
supplier_ids
Array<string>
measurement_unit_ids
Array<string>
product_ids

Takes precedence over last_update_date

Array<string>
is_free_price

Free price

boolean
is_scalable

Weighed product

boolean
plu_codes
Array<string>
search_after

Paginated search cursor: the sort value of the last element of the previous response

Array<integer>
Example
{
"category_ids": [
"15c1d3e9-f628-4094-8c69-7b0e67a6240d"
],
"status": "all",
"skus": [
"100-29",
"10276F"
],
"group_variations": false,
"product_field_filters": [
{
"field_id": "491e1d8a-ad22-4180-bcc5-0c5699bdf4f9",
"field_type": "attribute",
"field_values": [
"aee6d71d-32ed-4695-8f3b-5516dacf75fe"
]
},
{
"field_id": "84122e63-9993-4fac-80d6-6ad8bfa95f2e",
"field_type": "attribute",
"field_values": [
"6321d850-77a4-40cd-aa47-4548f0dc8707"
]
},
{
"field_id": "3b6db763-eeaf-41c3-af99-48472add4e2e",
"field_type": "custom",
"field_values": [
"18"
]
}
],
"archived_list": false,
"brand_ids": [
"e158f882-d0e0-499d-b6f8-9029ac1886ca"
],
"measurement_unit_ids": [
"c5336f71-d684-4e2e-b5bc-307138593543"
],
"supply_price_from": 1,
"supply_price_to": 10000000,
"retail_price_from": 1,
"retail_price_to": 10000000,
"whole_sale_price_from": 1,
"whole_sale_price_to": 10000000,
"shop_ids": [
"6f244db4-75d6-4fac-9841-14867d45e36a"
],
"supplier_ids": [
"5f4c5af2-3320-4fa4-aed9-65a35e1dab8f"
],
"limit": 10,
"page": 1
}

Successful response

Media typeapplication/json
object
count

Total number of products found

integer format: int32
total

Total count of products found

number format: double
products

List of products

Array<object>
object
id

Absent from the response if the value is empty

string
parent_id

Absent from the response if the value is empty

string
company_id

Absent from the response if the value is empty

string
category_id

Absent from the response if the value is empty

string
is_variative
boolean
name
string
sku
string
main_image_url
string
barcode
string
additional_barcodes
Array<object>
nullable
object
id
integer format: int64
barcode
string
product_id
string
company_id
string
deleted_at
integer format: int64
categories
Array<object>
object
id
string
name
string
parent_id
string
all_parent_ids
Array<string>
sub_rows
string
product_count
integer
company_id
string
is_open
boolean
level_number
integer
from_parent
boolean
deleted_at
integer
subRows
Array<object>
nullable
object
id
string
name
string
parent_id
string
all_parent_ids
Array<string>
nullable
subRows
Array<object> recursive
product_count
integer format: int32
company_id
string
is_open
boolean
level_number
integer format: int32
from_parent
boolean
deleted_at
integer format: int32
super_parent_id
string
super_parent_id
string
set_products

Bundle contents

Array<string>
retail_price
number format: double
supply_price
number format: double
description
string
measurement_type
string
measurement_values
object
total_measurement_value
number
total_active_measurement_value
number
total_inactive_measurement_value
number
measurement_unit
object
id
string
name
string
company_id
string
short_name
string
precision
string
is_editable
boolean
is_default
boolean
supplier_id
string
supplier_ids
Array<string>
shop_measurement_values

Stock by shop

Array<object>
object
shop_id
string
total_measurement_value
number
total_active_measurement_value
number
total_inactive_measurement_value
number
small_left_measurement_value
number
has_trigger
boolean
total_supply_sum
number
...
string
total_min_supply_price
number
total_max_supply_price
number
total_active_min_supply_price
number
total_active_max_supply_price
number
total_active_supply_sum
number
total_inactive_min_supply_price
number
nullable
total_inactive_max_supply_price
number
nullable
total_inactive_supply_sum
number
total_sold_measurement_value
number
total_imported_measurement_value
number
total_transfer_arrived_measurement_value
number
total_transfered_measurement_value
number
total_in_transfer_measurement_value
number
total_in_transfer_min_supply_price
number
nullable
total_in_transfer_max_supply_price
number
nullable
total_in_transfer_supply_sum
number
total_written_off_measurement_value
number
import_started_measurement_value
number
is_small_left
boolean
total_retail_sum
number
total_active_retail_sum
number
total_inactive_retail_sum
number
shop_prices

Prices by shop

Array<object>
object
shop_id
string
retail_price
number
retail_currency
string
supply_currency
string
min_supply_price
number
max_supply_price
number
supply_price
number
wholesale_price
number
min_price
number
max_price
number
prices_list
Array<number>
nullable
from_supply_price
number
currency_prices
Array<object>
object
currency
string
retail_price
number
min_supply_price
number
max_supply_price
number
supply_price
number
wholesale_price
number
min_price
number
max_price
number
prices_list
Array<number>
promo_price
number
promos
Array<object>
nullable
object
retail_price_created_at
string
supply_price_created_at
string
prices
object
total_supply_price
number
total_retail_price
number
total_active_supply_price
number
total_active_retail_price
number
total_inactive_supply_price
number
total_inactive_retail_price
number
product_type_id
string
custom_fields
Array<object>
object
custom_field_name
string
custom_field_system_name
string
custom_field_id
string
custom_field_value
string
from_parent
boolean
created_at
string
updated_at
string
is_marked
boolean
brand_id
string
brand_name
string
variations

Filled when group_variations=true

Array<object>
object
id
string
name
string
base_name
string
barcode
string
brand_id
string
brand_name
string
sku
string
description
string
supply_price
string
retail_price
string
profit_margin
string
product_attributes
string
total_measurement_value
string
shipments
string
shop_prices
string
...
string
product_attributes
Array<string>
base_name
string
stocktaking_is_added

Set only when the correlation_id query parameter is passed

boolean
variation_id
string
is_archived

Product in archive

boolean
archived_at

Archiving date

string
archived_by

Archived by

object
id
string
name
string
free_price
boolean
min_price
number format: double
max_price
number format: double
deleted
boolean
suppliers
Array<string>
product_supplier_stock
Array<object>
object
supplier_id
string
supplier_name
string
shop_id
string
measurement_value
number
min_supply_price
number
max_supply_price
number
retail_price
number
wholesale_price
number
product_supply_stock
Array<object>
object
shop_id
string
shop_name
string
measurement_value
number
active_measurement_value
number
inactive_measurement_value
number
supply_price
number
supplier_ids
Array<string>
status
integer format: int32
scale_plu

PLU code of a weighed product

integer format: int32
scale_code

Weighted product code

integer
is_scalable

Weighed product

boolean
shop_free_prices
Array<object>
nullable
object
shop_id
string
sell_with_free_price
boolean
sort

Cursor for paginated search

Array<string>
cash_sale
integer format: int32
fields

Product table column settings

Array<object>
object
id
string
name
string
sequence_number
integer format: int32
is_active
boolean
is_attribute
boolean
is_custom_field
boolean
Examplegenerated
{
"count": 1,
"total": 1,
"products": [
{
"id": "example",
"parent_id": "example",
"company_id": "example",
"category_id": "example",
"is_variative": true,
"name": "example",
"sku": "example",
"main_image_url": "example",
"barcode": "example",
"additional_barcodes": [
{
"id": 1,
"barcode": "example",
"product_id": "example",
"company_id": "example",
"deleted_at": 1
}
],
"categories": [
{
"id": "example",
"name": "example",
"parent_id": "example",
"all_parent_ids": [
"example"
],
"sub_rows": "example",
"product_count": 1,
"company_id": "example",
"is_open": true,
"level_number": 1,
"from_parent": true,
"deleted_at": 1,
"subRows": [
{
"id": "example",
"name": "example",
"parent_id": "example",
"all_parent_ids": [
"example"
],
"subRows": [],
"product_count": 1,
"company_id": "example",
"is_open": true,
"level_number": 1,
"from_parent": true,
"deleted_at": 1,
"super_parent_id": "example"
}
],
"super_parent_id": "example"
}
],
"set_products": [
"example"
],
"retail_price": 1,
"supply_price": 1,
"description": "example",
"measurement_type": "example",
"measurement_values": {
"total_measurement_value": 1,
"total_active_measurement_value": 1,
"total_inactive_measurement_value": 1
},
"measurement_unit": {
"id": "example",
"name": "example",
"company_id": "example",
"short_name": "example",
"precision": "example",
"is_editable": true,
"is_default": true
},
"supplier_id": "example",
"supplier_ids": [
"example"
],
"shop_measurement_values": [
{
"shop_id": "example",
"total_measurement_value": 1,
"total_active_measurement_value": 1,
"total_inactive_measurement_value": 1,
"small_left_measurement_value": 1,
"has_trigger": true,
"total_supply_sum": 1,
"...": "example",
"total_min_supply_price": 1,
"total_max_supply_price": 1,
"total_active_min_supply_price": 1,
"total_active_max_supply_price": 1,
"total_active_supply_sum": 1,
"total_inactive_min_supply_price": 1,
"total_inactive_max_supply_price": 1,
"total_inactive_supply_sum": 1,
"total_sold_measurement_value": 1,
"total_imported_measurement_value": 1,
"total_transfer_arrived_measurement_value": 1,
"total_transfered_measurement_value": 1,
"total_in_transfer_measurement_value": 1,
"total_in_transfer_min_supply_price": 1,
"total_in_transfer_max_supply_price": 1,
"total_in_transfer_supply_sum": 1,
"total_written_off_measurement_value": 1,
"import_started_measurement_value": 1,
"is_small_left": true,
"total_retail_sum": 1,
"total_active_retail_sum": 1,
"total_inactive_retail_sum": 1
}
],
"shop_prices": [
{
"shop_id": "example",
"retail_price": 1,
"retail_currency": "example",
"supply_currency": "example",
"min_supply_price": 1,
"max_supply_price": 1,
"supply_price": 1,
"wholesale_price": 1,
"min_price": 1,
"max_price": 1,
"prices_list": [
1
],
"from_supply_price": 1,
"currency_prices": [
{
"currency": "example",
"retail_price": 1,
"min_supply_price": 1,
"max_supply_price": 1,
"supply_price": 1,
"wholesale_price": 1,
"min_price": 1,
"max_price": 1,
"prices_list": [
1
]
}
],
"promo_price": 1,
"promos": [
{}
],
"retail_price_created_at": "example",
"supply_price_created_at": "example"
}
],
"prices": {
"total_supply_price": 1,
"total_retail_price": 1,
"total_active_supply_price": 1,
"total_active_retail_price": 1,
"total_inactive_supply_price": 1,
"total_inactive_retail_price": 1
},
"product_type_id": "example",
"custom_fields": [
{
"custom_field_name": "example",
"custom_field_system_name": "example",
"custom_field_id": "example",
"custom_field_value": "example",
"from_parent": true
}
],
"created_at": "example",
"updated_at": "example",
"is_marked": true,
"brand_id": "example",
"brand_name": "example",
"variations": [
{
"id": "example",
"name": "example",
"base_name": "example",
"barcode": "example",
"brand_id": "example",
"brand_name": "example",
"sku": "example",
"description": "example",
"supply_price": "example",
"retail_price": "example",
"profit_margin": "example",
"product_attributes": "example",
"total_measurement_value": "example",
"shipments": "example",
"shop_prices": "example",
"...": "example"
}
],
"product_attributes": [
"example"
],
"base_name": "example",
"stocktaking_is_added": true,
"variation_id": "example",
"is_archived": true,
"archived_at": "example",
"archived_by": {
"id": "example",
"name": "example"
},
"free_price": true,
"min_price": 1,
"max_price": 1,
"deleted": true,
"suppliers": [
"example"
],
"product_supplier_stock": [
{
"supplier_id": "example",
"supplier_name": "example",
"shop_id": "example",
"measurement_value": 1,
"min_supply_price": 1,
"max_supply_price": 1,
"retail_price": 1,
"wholesale_price": 1
}
],
"product_supply_stock": [
{
"shop_id": "example",
"shop_name": "example",
"measurement_value": 1,
"active_measurement_value": 1,
"inactive_measurement_value": 1,
"supply_price": 1,
"supplier_ids": [
"example"
]
}
],
"status": 1,
"scale_plu": 1,
"scale_code": 1,
"is_scalable": true,
"shop_free_prices": [
{
"shop_id": "example",
"sell_with_free_price": true
}
],
"sort": [
"example"
],
"cash_sale": 1
}
],
"fields": [
{
"id": "example",
"name": "example",
"sequence_number": 1,
"is_active": true,
"is_attribute": true,
"is_custom_field": true
}
]
}