Heartwork Commerce API
integer · int32 · requiredinteger · int32 · requiredstring[]string[]string · enumstringstring · enumstringinteger · int32 · required
string · requiredstring · requiredstring · requiredstring · requiredstring · enum · requiredinteger · int32 · requiredboolean · requiredstringstring
string · requiredstring · requiredstring · requiredstring · requiredstring · enum · requiredinteger · int32 · requiredboolean · requiredstringstring
string · requiredstring · requiredstring · requiredstring · requiredstring · enum · requiredinteger · int32 · requiredboolean · requiredstringstring
string · requiredstringstringstringboolean
string · requirednumber · doublestring · requiredboolean · requirednumber · doublenumber · doublenumber · double
string · requirednumber · double · requiredstring · requiredboolean · requirednumber · doublenumber · doublenumber · double
get products based on the input criteria, this method uses a POST instead of GET because of https://github.com/heartwork/roadmap/issues/690
POST
https://api.heart.work
/commerce-api/catalog/products
get products based on the input criteria, this method uses a POST instead of GET because of https://github.com/heartwork/roadmap/issues/690 › Request Body
takeFor paged querying, the amount of records to take (defaults to 100)
skipFor paged querying, the amount of records to skip (defaults to 0)
idscategoryIdsFor filtering data, filters on the exact value in the categories array
typeEnum values:
SimpleProduct
ConfigurableProduct
GroupedProduct
BundledProduct
object[]
queryFor searching, the query used when searching
sortOrderEnum values:
Asc
Desc
sortByFor sorting data, the name of the property used to sort by
get products based on the input criteria, this method uses a POST instead of GET because of https://github.com/heartwork/roadmap/issues/690 › Responses
200
OK
object[] · required
totalFetches a single product, by id.
GET
https://api.heart.work
/commerce-api/catalog/products/{id}
path Parameters
idUnique id of the product to fetch.
Fetches a single product, by id. › Responses
OK
idnameslugproductTypeEnum values:
SimpleProduct
ConfigurableProduct
GroupedProduct
BundledProduct
object[] · required
object[] · required
object[] · required
object[] · required
object · required
displayOrderobject[] · required
object[] · required
showStockobject
skugtinobject
object
Fetches a single product, by barcode.
GET
https://api.heart.work
/commerce-api/catalog/products/barcode/{barcode}
path Parameters
barcodeUnique barcode of the product to fetch.
Fetches a single product, by barcode. › Responses
OK
idnameslugproductTypeEnum values:
SimpleProduct
ConfigurableProduct
GroupedProduct
BundledProduct
object[] · required
object[] · required
object[] · required
object[] · required
object · required
displayOrderobject[] · required
object[] · required
showStockobject
skugtinobject
object
Fetches a single product, by slug.
GET
https://api.heart.work
/commerce-api/catalog/products/slug/{slug}
path Parameters
slugUnique slug of the product to fetch.
Fetches a single product, by slug. › Responses
OK
idnameslugproductTypeEnum values:
SimpleProduct
ConfigurableProduct
GroupedProduct
BundledProduct
object[] · required
object[] · required
object[] · required
object[] · required
object · required
displayOrderobject[] · required
object[] · required
showStockobject
skugtinobject
object
Get product filters, this method uses a POST instead of GET because of https://github.com/heartwork/roadmap/issues/690
POST
https://api.heart.work
/commerce-api/catalog/products/filters/{categoryId}
path Parameters
categoryIdThe id of the category to get the filters from
Get product filters, this method uses a POST instead of GET because of https://github.com/heartwork/roadmap/issues/690 › Request Body
querycatalogIdcategoryIdisActiveobject[]
Get product filters, this method uses a POST instead of GET because of https://github.com/heartwork/roadmap/issues/690 › Responses
200
OK
object[] · required
Gets the price for a product, by id
GET
https://api.heart.work
/commerce-api/catalog/products/price/{id}
path Parameters
idUnique id of the product
query Parameters
quantityThe quantity of the product to calculate the price for
Default: 1
Gets the price for a product, by id › Responses
OK
productIdshouldRequestPriceobject[] · required
A list of messages to display to the user as additional information. Can only be set in Rules.
salesPricesuggestedRetailPricecustomerPriceobject
Gets the prices for multiple products
POST
https://api.heart.work
/commerce-api/catalog/products/prices
Gets the prices for multiple products › Request Body
object[]
identifierquantityGets the prices for multiple products › Responses
200
OK
object[]
productIdshouldRequestPriceobject[] · required
A list of messages to display to the user as additional information. Can only be set in Rules.
salesPricesuggestedRetailPricecustomerPriceobject