Prerequisites

You should have

  • an user-account enabled for api access & PIM and Marketplace access
  • an api-client
  • at least one merchant product-record stored in your Hublify Marketplace

Getting Merchant specific products

Simply provide the fields you want to have returned.
Info: In the following example an optional limit-parameter is given too, to avoid too big results returned.

Tipp: You can use all fields and filters that you already know from the "product" dataset in addition to the merchant specific fields.

Request URL

https://{your hublify url}/api/eos_10/data_getList

Request parameter

{
    "dataset": "merchant_product",
    "fields": [
        "prcmrch_id", 
        "pcode",
        "name",
        "drvd_categories",
        "prcmrch_condition",
        "prcmrch_price",
        "mrch_code",
        "mrch_name"
    ],
    "sql": {
        "limit": {
            "max": 3
        }
    }
}

Response

{
    "data": [
        {
            "prcmrch_id": "2",                              // the ID for this specific version of the product
            "pcode": "EK00003",                             // the regular product code shared between all offers of this product
            "name": "Calimero Salatsch\u00fcssel",          // the product name
            "drvd_categories": {                                      // details about the categories this belongs to
                "model": "productgroup",
                "primaryKey": "node_id",
                "displayKey": "node_name",
                "data": [
                    {
                        "node_id": 12,
                        "node_code": "bowles",
                        "node_name": "Sch\u00fcsseln",
                        "node_path": "|K\u00fcchenutensilien|Sch\u00fcsseln"
                    }
                ]
            },
            "prcmrch_condition": "used",                    // additional info about the condition of this product
            "prcmrch_price": "99.9900",                     // the merchant-specific price  
            "mrch_code": "MRCH00001",                       // the merchant-code
            "mrch_name": "Muster Merchant"                  // merchant-name 
        },
        ...
    ],
    "status": true,
    "meta": {
        "primaryKey": "prcmrch_id",
        "displayKey": "prcmrch_pcode_merchant"
    },
    "sql": {
        "limit": {
            "max": 3
        },
        "having": "",
        "group": "ecs_prd_price_merchant.prcmrch_id"
    }
}