Prerequisites
You should have
- a valid api channel-token enabled for api access & product retrieval access
- an api-client
- at least one product available in the Hublify PIM
Getting product details
You can retrieve a list of products via the API to check for e.g. your current prices or availability of certain products.
Which product-details are available, depends on your channel-specific configuration,
You can add your own filter and fields, if needed. Additional filters and field-restrictions could apply depending on how your access was configured.
List
Request URL
https://{your hublify url}/api/channel_10/product_getList
Request parameter
{
"filter": {
"state": 2, // example: get only online products
},
"fields": ["pcode","name"]
}
Check the Web-API for details about filtering products.
Response
{
"data": [
{
"pcode": "FL00001",
"name": "KTribe F3 Standleuchte"
},
{
"pcode": "FL00002",
"name": "KTribe F3 Standleuchte"
},
{
"pcode": "FL00019",
"name": "Spun Light Standleuchte"
}
],
"status": true
}
Export
As an alternative, you could also receive a CSV-File to stream.
Column-headers and other data-modifications can be preconfigured.
It is also possible to add your own filters . Additional filters and field-restrictions could apply depending on how your access was configured.
Request URL
https://{your hublify url}/api/channel_10/product_export
Request parameter
{
"filter": {
"state": 2, // example: get only online products
}
}
Response
Attention: Make sure, your client is set up to receive a response other than JSON for this
"pcode";"name";"manufacturer";"Preis Netto" "HFYPRD0001";"Demo Produkt";"Hubli Crafters";"83,19"