Products

Search for product

get/products

Request

  • Base URL
    https://api.c1st.com/api
  • URL
    https://api.c1st.com/api/products
  • Auth
    HTTP bearer

Query parameters

cursorstring

Cursor for pagination. If parameter is set, paginationStart will be ignored. Only allowed for default sorting or based on id.

barcodestring

Barcode. Matches exactly on the barcode (also with leading zeros/¤ trimmed). If nothing is found, alternative barcodes are searched as well.

titlestring

Product title. Partial match.

brandstring

Brand. Partial match.

colorstring

Color. Partial match.

sizestring

Size. Partial match.

customfield1string

Value of custom field 1. Partial match.

customfield2string

Value of custom field 2. Partial match.

customfield3string

Value of custom field 3. Partial match.

customfield4string

Value of custom field 4. Partial match.

freetextstring

Freetext search used to find what humans expect. NB this can change over time, don't use this in your integration on this.

idinteger

The ID of the product.

idsinteger[]

Only retrieve products with one of these IDs. Must be sent with bracket syntax, ids[]=1&ids[]=2; repeated ids= parameters are not supported.

countboolean

If true, the total number of matching products (ignoring pagination) is returned in count.

allowDeletedboolean

Include deleted products.

notInStockboolean

Only retrieve products that are not in stock (stock is zero or negative).

availableboolean

Only retrieve products with available stock (stock not reserved by sales orders or tickets).

reservedboolean

Only retrieve products with stock reserved by sales orders or tickets (and with inventory tracking).

notsoldboolean

Exclude products that have been sold in POS and are no longer in stock.

excludeserialproductsboolean

Exclude products that have a serie-number.

hasPriceboolean

Only retrieve products with a price greater than zero.

hasBarcodeboolean

Only retrieve products that have a barcode.

styleGroupstring

Only retrieve products belonging to this style group.

inStockboolean

Only retrieve products that are currently in stock.

needsOrderingboolean

Only retrieve products that needs to be ordered because of low stock.

paginationStartinteger

Deprecated, use cursor instead. Determine the offset (in number of products) to fetch. This is usually a multiple of the pageLength. For legacy support pagination-start is also accepted.

paginationPageLengthinteger

Determine the number of products to fetch in one page. Default is 50. For legacy support pagination-pageLength is also accepted (the backend is case-sensitive).

productNostring[]

Pipe separated list of product numbers.

styleNostring[]

Pipe separated list of style numbers.

serieNostring

Serie-number

hasSerieNoboolean

Return products that has a serie-number

needsrrppriceupdateboolean

Return products that have a recommended retail price and the recommended retail price does not match the products price

stocktransactionlistidinteger

Search in stocktransactionlist, this will only search on products that are a part of a stocktransactionlist with this id

sort-order-1 | 1

Sorting order. If 1, products are retrieved in ascending order, if -1, in descending order.

sort-fieldstring

Product column to sort by. Offset pagination has no guaranteed order unless sort-field or sort-order is given (sort-field then defaults to id). Special values instock_title, stockno, bikedeskpossales and costprice are also supported. Cursor pagination only supports id.

suppliernamestring

Name of the supplier. Has no effect.

tagstring

Only retrieve products with this tag ID. Takes precedence over tags.

tagsstring[]

List of tag IDs to restrict the search to (any of them). Send as tags[]=1&tags[]=2.

supplieridstring

Only retrieve products from the supplier with this ID.

partnerstoreidstring

List products for a partner store that shares product data with the current store. Responds 401 if the store does not share product data.

vatmode'normal' | 'second_hand'

VAT mode

updated_afterstring

Get all products updated at or after the given date (Y-m-d H:i:s).

created_beforestring

Get all products created at or before the given date (Y-m-d H:i:s).

updated_beforestring

Get all products updated at or before the given date (Y-m-d H:i:s).

getDiscountPriceboolean

Whether to include discountprice for the products

hasSyncproductdatawebshopboolean

If given, only get products that has/has not syncproductdatawebshop set

Response

Ok

countinteger nullable

The total number of products found by the query if ignoring pagination. Is null if count was not specified in the query parameter.

hasMoreboolean

True if there are more products to receive than the current pagination allowed.

nextCursorstring nullable

Cursor for next page when using cursor based pagination.

Example response

{
  "content": [
    {
      "title": "Scott Scale 960",
      "price": 100,
      "pricewithoutvat": 80,
      "costprice": 8.65,
      "recommendedretailprice": 99.95,
      "suppliers": [
        {
          "id": 1,
          "name": "Johnson",
          "email": "johnson@doe.com",
          "address": "A place",
          "city": "London",
          "note": "Sells bike parts"
        }
      ],
      "tags": [
        {
          "position": 23.04
        }
      ],
      "updated_at": "2022-03-10 00:00:00"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.