Products
Get products
This operation returns a list of products.
Note: This operation needs Authentication and supports the following JSON:API features:
Relationships -
productType
,modifierSets
,productVariants
usinginclude
query parameter.Sparse fieldsets - supports all fields of
product
and related resources withfields
query parameter.
Request
GET
[PlatformAddress]/v1/products
Response
{
"data": [
{
"id": "286ef74f-e37f-477f-bcda-77f8fbfd13ea",
"type": "products",
"attributes": {
"name": "Product Number One",
"description": "Description of product number one.",
"sku": "ABC-123-HR-K",
"status": "active",
"barcode": "1234567890",
"isAvailable": true,
"createdAt": "2022-10-16T11:29:00Z",
"updatedAt": "2022-10-19T11:29:00Z",
"tax": "2.00",
"retailPriceInclTax": "10.00",
"retailPriceExclTax": "8.00"
},
"relationships": {
"productType": {
"data": {
"id": "c53372e2-9aa1-452a-8965-2ea3fa514fb2",
"type": "productTypes"
}
},
"taxes": {
"data": [
{
"id": "5efa8b3c-b930-4b31-918d-95ab0e212e64",
"type": "taxes"
}
]
},
"modifierSets": {
"data": [
{
"id": "06382148-c76a-489d-b382-72fb7d7ab37b",
"type": "modifierSets"
},
{
"id": "e727124a-d2bb-4002-98bd-81af6d788666",
"type": "modifierSets"
}
]
},
"modifiers": {
"data": [
{
"id": "0907e6d2-62c1-44cd-a886-f403ce9c7145",
"type": "modifiers"
},
{
"id": "0d4e4ec6-118f-47a6-9040-b68abbec0575",
"type": "modifiers"
}
]
},
"productVariants": {
"data": [
{
"id": "0907e6d2-62c1-44cd-a886-f403ce9c7145",
"type": "productVariants"
},
{
"id": "0d4e4ec6-118f-47a6-9040-b68abbec0575",
"type": "productVariants"
}
]
}
}
}
],
"links": {
"prev": "https://api.mews-demo.com/pos/v1/products?page%5Bbefore%5D=NA&page%5Bsize%5D=1",
"next": "https://api.mews-demo.com/pos/v1/products?page%5Bafter%5D=NA&page%5Bsize%5D=1"
}
}
Below is a list of all possible fields this endpoint can return including relationships fields fetched with include query parameter.
included
array of object product_type,modifier_set,modifier,product_variant,tax
optional, max 1000 items
Details of the objects to which the product is related.
product
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
relationships
required
A relationships object describing relationships between the resource and other JSON:API resources.
product_attributes
name
string
required, max length 255 characters
Name of the product.
description
string
required, max length 10000 characters
Description of the product.
sku
string
required, max length 255 characters
SKU of the product.
isAvailable
boolean
required
Whether the product is available.
barcode
string
required, max length 255 characters
Barcode of the product.
status
string
required
Status of the product. Possible values are "active" and "inactive".
tax
string
required, max length 255 characters
Tax of the product.
retailPriceExclTax
string
required, max length 255 characters
Product price excluding tax.
retailPriceInclTax
string
required, max length 255 characters
Product price including applicable taxes.
createdAt
string
required, max length 25 characters
Created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Updated at timestamp in RFC 3339 format.
product_relationships
productType
object
required
Details of the product type associated with the product.
modifierSets
object
required
Details of the modifier sets associated with the product.
modifiers
object
required
Details of the modifiers associated with the product.
productVariants
object
required
Details of the product variants associated with the product.
taxes
object
required
Details of the taxes associated with the product.
product_type
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
product_type_attributes
name
string
required, max length 255 characters
Name of the product type.
createdAt
string
required, max length 25 characters
Created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Updated at timestamp in RFC 3339 format.
modifier_set
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
relationships
required
A relationships object describing relationships between the resource and other JSON:API resources.
modifier_set_attributes
name
string
required, max length 255 characters
Name of the modifier set.
selection
string
required
Modifier set selection type. Possible values are "single" and "multiple".
maximumCount
integer
required
Maximum number of modifiers that can be selected.
minimumCount
integer
required
Minimum number of modifiers that must be selected.
createdAt
string
required, max length 25 characters
Created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Updated at timestamp in RFC 3339 format.
modifier_set_relationships
modifiers
object
required
Details of the modifiers associated with the modifier set.
modifier
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
modifier_attributes
name
string
required, max length 255 characters
Name of the modifier.
price
string
required, max length 255 characters
Price of the modifier.
createdAt
string
required, max length 25 characters
Created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Updated at timestamp in RFC 3339 format.
product_variant
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required, max length 255 characters
The type member is used to describe resource objects that share common attributes and relationships.
product_variant_attributes
retailPriceExclTax
string
required, max length 255 characters
Product price excluding tax.
retailPriceInclTax
string
required, max length 255 characters
Product price including applicable taxes.
sku
string
required, max length 255 characters
SKU of the variant.
selector
object
required
Arbitrary key/value JSON object for product variant selector.
barcode
string
required, max length 255 characters
Barcode of the variant.
createdAt
string
required, max length 25 characters
Created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Updated at timestamp in RFC 3339 format.
tax
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
tax_attributes
name
string
required, max length 255 characters
Name of the tax.
rate
string
required, max length 255 characters
Tax rate as a decimal.
taxType
string
required
Type of the tax.
isActive
boolean
required
Whether the tax is active.
createdAt
string
required, max length 25 characters
Created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Updated at timestamp in RFC 3339 format.
label
string,null
optional, max length 255 characters
Label of the tax.
ratePercent
string
required, max length 7 characters
Tax rate as a percentage.
product_pagination_links
prev
string
required, max length 1024 characters
The link to the previous page of results.
next
string,null
optional, max length 1024 characters
The link to the next page of results.
Last updated