Get Products
GET/
Fetches products information. Typically used for a product page.
Request
Query Parameters
Comma separated list of product ids. Either ids or shortLinks must be provided.
Comma separated list of short link IDs. Either ids or shortLinks must be provided.
Possible values: [CAD
, USD
, GBP
, AUD
, EUR
]
Currency to return product prices in.
Responses
- 200
- 400
- 401
- 404
- 5XX
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
data object
data object[]
Unique product identifier.
Possible values: [CAD
, USD
, GBP
, AUD
, EUR
]
Currency code.
Product name.
description object
Whether the description is in raw format.
Product description
sections object[]
Product description sections.
Product description section title.
Product description section HTML content.
brand object
Brand public id.
Brand name.
logo object
Source of image.
Image height.
Image height.
merchant object
Merchant public id.
Merchant name.
variants object[]required
Array of product variants
The ID of the product variant.
Id of the main product.
The item SKU (stock keeping unit).
Original product price if on sale, otherwise null.
Position of this variant compared to all other variants (the variant index in this array).
The price of this item.
Inventory of product.
options object[]required
Option name.
Option value.
images object[]required
Source of image.
Image height.
Image height.
Final sale flag if known. Null if unknown
GTIN if available; null otherwise
images object[]
Contentful image id.
Some title.
Source of image.
Image format
Image height.
Image height.
Image height.
Public id added to product as custom data.
Product type.
Product availability in widget
Gender
Free shipping flag
reviews object
Product total ratings
Product star ratings
Merchant country
Inventory of product.
Categories of the product; Can be empty array too.
Url for product on merchant site
Afterpay eligibility flag
shippingCosts object[]required
Shipping costs for the product
return policy for the product
errors object[]
Unique identifier for error. Can be used for tracing across services.
HTTP status code.
Unique code for specific error.
Short description what the error entails.
{
"data": {
"data": [
{
"id": "9597879817",
"currency": "USD",
"name": "T-shirt",
"description": {
"isRaw": true,
"raw": "## Description\n Lorem ipsum ...",
"sections": [
{
"title": "Ingredients",
"htmlContent": "<p>An empty, refillable palette to use with Anastasia Eyeshadows</p>"
}
]
},
"brand": {
"publicId": "cjzyvjb930017n8s563uqn8cy",
"name": "Virgin Club",
"logo": {
"url": "http://www.3in1design.com/wp-content/uploads/2016/05/blank_tshirt.jpg",
"width": 200,
"height": 200
}
},
"merchant": {
"publicId": "cjzyvjb930017n8s563uqn8cy",
"name": "Bonsai-Merchant"
},
"variants": [
{
"id": "1234-M-Black",
"productId": "1234",
"sku": "sku2345",
"compareAtPrice": 25.6,
"position": 0,
"price": 15,
"inventoryQuantity": 10,
"options": [
{
"type": "size",
"value": "L"
}
],
"images": [
{
"url": "http://www.3in1design.com/wp-content/uploads/2016/05/blank_tshirt.jpg",
"width": 200,
"height": 200
}
],
"isFinalSale": true,
"gtin": "00012345678905"
}
],
"images": [
{
"contentfulId": "4jMIZT1PmS7DIChrlKIZ3j",
"title": "Image title",
"url": "http://www.3in1design.com/wp-content/uploads/2016/05/blank_tshirt.jpg",
"format": "image/jpeg",
"width": 200,
"height": 200,
"size": 200
}
],
"publicId": "cjld2cyuq0000t3rmniod1foy",
"type": "Tops",
"unavailable": true,
"gender": "unisex",
"hasFreeShipping": true,
"reviews": {
"totalRatings": 0,
"starRating": 0
},
"merchantCountry": "US",
"inventory": 10,
"categories": [
"tshirt"
],
"productURL": "https://www.store.com/footwear/sneakers/nice_shoe_you_want",
"isAfterpayEligible": true,
"shortLinks": [
"abc"
],
"shippingCosts": [
{
"countryCode": "string",
"shippingRate": 0,
"freeIfPassedSubtotal": 0
}
],
"returnPolicy": "string"
}
],
"errors": [
{
"id": "123e4567-e89b-12d3-a456-426655440000",
"status": 400,
"code": "USER_NOT_FOUND",
"title": "Error occurred trying to create a new order"
}
]
}
}
400 - Bad request
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"status": 400,
"detail": "",
"title": "Bad input request"
}
]
}
401 - Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"status": 401,
"detail": "",
"title": "Authentication information is missing or invalid"
}
]
}
404 - Not found
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"status": 404,
"detail": "",
"title": "Not Found"
}
]
}
500 - Unknown error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]
{
"errors": [
{
"status": 500,
"detail": "",
"title": "Unknown error"
}
]
}