API method

getProductsQty

Method returns a simplified product list

GET
Usage URL
https://b2b.onesto-energy.pl/api/getProductsQty.json?key=YOURAPIKEY

Query params

Put these in your URL, e.g. ?id=123.

  • id integer or integer[]

    Internal identifier of product.
    More than one value can be specified after comma (,) separator.

  • name string

    Name of product. Words separated by space will be treated as separate search terms.

    Example

    'cover' will return all products that contain cover in the name.

  • pid string

    Manufacturer identifier.

    Example

    'Z43' will return all products that contain Z43 in the manufacturer identifier

  • ean string

    European Article Number. You can search by part of the EAN.

    Example

    '5901234567890' will return all products that contain 5901234567890 in the EAN.

  • productcategoryid integer or integer[]

    Internal identifier of category in which the products are.
    More than one value can be specified after comma (,) separator.

  • modified datetime YYYY-MM-DD HH:MM:SS

    Return all products modified after the modified date. That is highly recommended when you want to update your local database.

  • currency string

    Currency symbol. If not set - API will use currency assigned to your account on your website. We recommend to always set this parameter to avoid situations where currency gets changed on your website, and you are not aware of it.

    Example

    Three letters format ie: PLN, EUR, USD.

  • lang string

    Language of result. ISO 2 Letter Language Codes

    Example

    en, pl, cs

Response fields

Fields returned by this method.

  • id integer

    Internal identifier of product.

  • userprice float

    Customer net price

  • userpricegross float

    Customer gross price

  • currency string

    Price currency (ISO 3)

    Example

    Three letters format ie: PLN, EUR, USD.

  • qty float

    How many in stock

  • vatrate float

    VAT rate of product