Order API - Get Products

Get products

GET *base*/products Authentication : API Key

This will return product data from Centra with categories.

Parameters

sku
string
optional

Get products with a specific SKU.

modified
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.

created
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.

ean
string
optional

Get a product with specified EAN code.

productId variantId stockItemID
int
optional

Filter products based on product, variant and stock item IDs.

limit
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.

include
string
optional

include=attributes will also make the products include the custom attributes defined for each product and variant.

xml
boolean
optional

Response in xml format instead of json.

Request example

GET <base>/products HTTP/1.1
Content-type: application/json

Response

200 Content-type: application/json

status
string
required

ok if success, else no.

products
array
required

List of the products.

products
array
optional

List of the products.

sku
string
optional

SKU for this product.

product
string
optional

The internal name for this product.

productId
int
optional

ID for this product.

name
string
optional

The externally facing name for this product.

variantSku
string
optional

SKU for this variant.

variantId
int
optional

ID for this variant.

sizeSku
string
optional

SKU for this size.

stockItemId
int
optional

ID for this specific stock item.

ean
string
optional

The EAN for this product item size.

weight
decimal2 (0.00)
optional

The weight specified for this product.

weightUnit
string
optional

The unit used for the weight.

  • kg
  • lb

Previous article: Order API - Get Returns
Next article: Order API - Get Stock