Get Products

GET REST API request that returns list of all current products that are linked to merchant. Response example is shown below.

Alongside “Authorization” header, parameter “search” can be passed with stringvalue, that will filter out current products by name, SKU and EAN. For example:

https://api.stage.ananastest.com/product/api/v1/merchant-integration/products?search=TESLA

Parameter “ean” will filter out current product faster than “search” parameter by multiple EAN, but must contain full EAN string of product, otherwise it won’t find anything. For example:

https://api.stage.ananastest.com/product/api/v1/merchant-integration/products?ean=8806092081918&ean=8606019604615

Parameter “date-modified-after” will filter out all products that are modified after a specified date. The pattern for date format is yyyy-MM-dd. Fox example:

https://api.stage.ananastest.com/product/api/v1/merchant-integration/products?date-modified-after=2022-09-12

Other 2 parameters are “page” and “size”, that are used for pagination. By default, only 2000 products will be listed, but by setting size to higher values, the list can be increased

Request

Request:

HTTP MethodGET
URLStagehttps://api.stage.ananastest.com/product/api/v1/merchant-integration/products
Productionhttps://api.ananas.rs/product/api/v1/merchant-integration/products
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}
URL Parameters
Parameter nameParameter description
searchSearch by name, SKU and EAN
eanSearch only by EAN
date-modified-afterSearch products modified after specified date
pagePage number - Starts from 0
sizeNumber of products show by page

Response

Response Body:
Fields nameTypeDescription
idLongProduct unique identifier
externalIdStringUnique product identifier on merchant side
eanStringEuropean Article Number
ananasCodeStringAnanas code
nameStringProduct’s name
descriptionStringProduct description
brandStringProduct’s brand
skuStringStock keeping unit
productTypeStringType of product
categoriesList<String>List of categories where product belongs
newBasePriceBigDecimal/DoubleProduct price with VAT included for the next day
basePriceBigDecimal/DoubleProduct price with VAT included
vatBigDecimal/DoubleProduct VAT
stockLevelIntegerProduct available stock level
packageWeightValueBigDecimal/DoublePackage weight of product
packageWeightUnitStringProduct weight package unit

Example of response:

Click to copy
Success!
    [
        {
            "id": 1769761,
            "externalId": null,
            "ean": "194512452102",
            "ananasCode": null,
            "name": "UNDER ARMOUR UA HOVR Summit Mid",
            "description": "Pokažite svoju autentičnost u Under Armour UA HOVR Summit Mid patikama za slobodne
                aktivnosti.\nSavršeno lagane i udobne, ove jedinstvene patike svaki korak čine savršeno komfornim, a vaš stil smelim i
                drugačijim.\nGornjište je izrađeno od prozračnog tekstila i ojačano izdržljivim sintetičkim slojevima materijala.\nPleteni deo
                oko gležnja vam daje osećaj “zaključavanja”, a lagani uložak od EVA pene responzivnost i dodatni komfor.\nUA HOVR
                tehnologija pene u srednjem đonu vraća energiju i smanjuje pritisak na stopalo za osećaj “nulte gravitacije” tokom
                kretanja.\nGumeni đon sa dubokim fleksibilnim kanalima i čvrstim “kramponima” na peti omogućava sigurnu trakciju i
                izdržljivost.\nSpecifikacija:\nMuške lifestyle patike\nGornjište: tekstil, sintetika\nSrednji đon: UA HOVR pena\nĐon: izdržljiva
                trakciona guma\nBoja: zelena- Baroque Green\nŠifra artikla: 3022949-301",
            "brand": "{\"id\":1600,\"name\":\"UNDER ARMOUR\"}",
            "sku": "194512452102",
            "productType": "Sportske Patike",
            "categories": [
                "Muške patike"
            ],
        "newBasePrice": 3499.00,
        "basePrice": 2499.00,
        "vat": 10.00,
        "stockLevel": 20,
        "packageWeightValue": 0.30,
        "packageWeightUnit": "kg"
        }
    ]
Copyright © Ananas 2023. All right reserved.