Get products¶
GET
*base*/products
This will return product data from Centra with categories.
Parameters¶
string
optional
|
Get products with a specific SKU. |
date/datetime
optional
|
Get all products modified after a certain date. Allowed formats YYYY-mm-dd and YYYY-mm-dd HH:MM:SS . Timezone is system-wide and decided by the company using Centra. |
date/datetime
optional
|
Get all products added after a certain date. Allowed formats YYYY-mm-dd and YYYY-mm-dd HH:MM:SS . Timezone is system-wide and decided by the company using Centra. |
string
optional
|
Get a product with specified EAN code. |
integer
optional
|
Filter products based on product, variant and stock item IDs. |
int
optional
|
You will get this amount of products, and a “next” parameter in return if there are multiple pages. This will go a lot faster to fetch, instead of fetching all products at once. |
string
optional
|
include=attributes will also make the products include the custom attributes defined for each product and variant. |
boolean
optional
|
Response in xml format instead of json. |
Request example¶
1 2 | GET <base>/products HTTP/1.1
Content-type: application/json
|
Response¶
200
Content-type: application/json
string
required
|
ok if success, else no . |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
array
|
List of the products.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
string
optional
|
Will contain a URL to the previous page. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
string
optional
|
Will contain a URL to the next page. |
Response example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | {
"status": "ok",
"products": [
{
"sku": "M411-740",
"productId": 232,
"variantSku": "",
"variantId": 1211,
"sizeSku": "",
"brand": "Odd Molly",
"collection": "Molly Prefall 2011",
"product": "bakers cross 3\/4 blouse",
"variant": "LITE ROSE",
"size": "3",
"stockItemId": 3424,
"ean": "",
"weight": 0.17,
"weightUnit": "kg",
"countryOfOrigin": "PT",
"harmCode": "6206300090",
"harmDescription": "Cotton - blouse",
"active": 0,
"folder": "Folder 1 / Folder 2"
"name": "Bakers Cross",
"description": "",
"shortDescription": "",
"comment": "",
"store": "Retail",
"categories": [
"Collection \/ Jackets\/Outerwear",
"New Arrivals"
],
"images": [
"https:\/\/...\/images\/1_0d2f67cd05.jpg",
"https:\/\/...\/images\/1_318da2ad06.jpg",
"https:\/\/...\/images\/1_c4e1c20d34.jpg"
],
"prices": [
{
"id": "36",
"price": "329.00",
"pricelist": "EUR Europe",
"currency": "EUR",
"campaigns": [
{
"id": "40",
"campaign": "OUTLET 50% NY",
"price": 164.5
}
]
},
{
"id": "35",
"price": "269.00",
"pricelist": "GBP",
"currency": "GBP",
"campaigns": [
{
"id": "40",
"campaign": "OUTLET 50% NY",
"price": 134.5
}
]
}
]
},
{
"sku": "M411-740",
"productId": 232,
"variantSku": "",
"variantId": 1211,
"sizeSku": "",
"brand": "Odd Molly",
"collection": "Molly Prefall 2011",
"product": "bakers cross 3\/4 blouse",
"variant": "LITE ROSE",
"size": "4",
"stockItemId": 3425,
"ean": "",
"weight": 0.17,
"weightUnit": "kg",
"countryOfOrigin": "PT",
"harmCode": "6206300090",
"harmDescription": "Cotton - blouse",
"active": 0,
"name": "Bakers Cross",
"description": "",
"shortDescription": "",
"comment": "",
"store": "Retail",
"categories": [
"Collection \/ Jackets\/Outerwear",
"New Arrivals"
],
"images": [
"https:\/\/...\/images\/1_0d2f67cd05.jpg",
"https:\/\/...\/images\/1_318da2ad06.jpg",
"https:\/\/...\/images\/1_c4e1c20d34.jpg"
]
"prices": [
{
"id": "36",
"price": "329.00",
"pricelist": "EUR Europe",
"currency": "EUR",
"campaigns": [
{
"id": "40",
"campaign": "OUTLET 50% NY",
"price": 164.5
}
]
},
{
"id": "35",
"price": "269.00",
"pricelist": "GBP",
"currency": "GBP",
"campaigns": [
{
"id": "40",
"campaign": "OUTLET 50% NY",
"price": 134.5
}
]
}
]
}
],
"previous": "?limit=10&page=2",
"next": "?limit=10&page=3"
}
|