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=TESLAParameter “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=8606019604615Parameter “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-12Other 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 Method | GET | |||||||||||||
URL | Stage | https://api.stage.ananastest.com/product/api/v1/merchant-integration/products | ||||||||||||
Production | https://api.ananas.rs/product/api/v1/merchant-integration/products | |||||||||||||
HTTP Headers |
| |||||||||||||
URL Parameters |
|
Response
Response Body:Fields name | Type | Description |
id | Long | Product unique identifier |
externalId | String | Unique product identifier on merchant side |
ean | String | European Article Number |
ananasCode | String | Ananas code |
name | String | Product’s name |
description | String | Product description |
brand | String | Product’s brand |
sku | String | Stock keeping unit |
productType | String | Type of product |
categories | List<String> | List of categories where product belongs |
newBasePrice | BigDecimal/Double | Product price with VAT included for the next day |
basePrice | BigDecimal/Double | Product price with VAT included |
vat | BigDecimal/Double | Product VAT |
stockLevel | Integer | Product available stock level |
packageWeightValue | BigDecimal/Double | Package weight of product |
packageWeightUnit | String | Product weight package unit |
Example of response:
[
{
"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"
}
]