2.3.4.Products

The Product data of the shop support operation like POST, PUT, DELETE and depending on the operation different validation rules are applied. For POST operation all required field will be validated and if they are missing the product will be accepted. For the PUT operation most of the fields are optional, this enables you to update only the required data. The DELETE operation is marking the product inactive at Qwindo, resulting it to be removed from the product overview.
 

TEST - https://testapi.fastcheckout.com/api/products/data?id=your_product_id
LIVE - https://liveapi.fastcheckout.com/api/products/data?id=your_product_id

 
JSON Structure

{
  //required valid int event if send as string
  "product_id": "418",
  //PUT optional, POST required valid string max length 128
  "product_name": "Tori Tank",
  //optional valid string max length 128
  "sku_number": "wbk003c",
  //PUT optional, POST required valid string of date format Y-m-d H:i:s
  "created": "2013-03-04 23:25:11",
  //PUT required, POST required valid string of date format Y-m-d H:i:s
  "updated": "2013-04-15 05:21:11",
  //PUT optional, POST required bool
  "downloadable": false,
  "unique_identifier": false,
  "gtin": null,
  "mpn": null,
  "brand": null,
  //optional valid float event if send as string or null
  "weight": null,
  //optional valid string one of values(KG, LP)
  "weight_unit": "KG",
  //PUT optional, POST required valid JSON object, key as valid locale, values valid strings max length 128
  "primary_category": {
    "en_US": "Tops & Blouses"
  },
  //PUT optional, POST required valid URL string max length 2000
  "product_url": "http://multisafepay-demo.com/plugingroup/development/magento/testing/tori-tank-609.html",
  //optional valid JSON array of objects
  "product_image_urls": [
    {
      //required valid URL string max length 2000
      "url": "http://multisafepay-demo.com/plugingroup/development/magento/testing/media/catalog/product/w/b/wbk003t.jpg",
      //required valid bool
      "main": true
    },
    {
      //required valid URL string max length 2000
      "url": "http://multisafepay-demo.com/plugingroup/development/magento/testing/media/catalog/product/w/b/wbk003t.jpg",
      //required valid bool
      "main": false
    },
    {
      //required valid URL string max length 2000
      "url": "http://multisafepay-demo.com/plugingroup/development/magento/testing/media/catalog/product/w/b/wbk003a.jpg",
      //required valid bool
      "main": false
    },
    {
      //required valid URL string max length 2000
      "url": "http://multisafepay-demo.com/plugingroup/development/magento/testing/media/catalog/product/w/b/wbk003b.jpg",
      //required valid bool
      "main": false
    }
  ],
  //PUT optional, POST required valid JSON object, keys valid locale, values string max length 256
  "short_product_description": {
    "en_US": "..."
  },
  //PUT optional, POST required valid JSON object, keys valid locale, values string
  "long_product_description": {
    "en_US": false
  },
  //PUT optional, POST required valid float even if send as string
  "sale_price": 60.00,
  //PUT optional, POST required valid float even if send as string
  "retail_price": 60.00,
  //PUT optional, POST required valid JSON object
  "tax": {
    //required valid string
    "name": "Taxable Goods",
    //required valid int event if is send as string
    "id": "2",
    "rules": {
      "NL": "21.0000",
      "ES": "8.0000"
    }
  },
  //PUT optional, POST required valid int even if send as string
  "stock": "10",
  //PUT optional, POST required valid JSON object
  "metadata": {
    //required valid JSON object, keys valid locale, values strings or null
    "title": {
      "en_US": null
    },
    //required valid JSON object, keys valid locale, values strings or null
    "keyword": {
      "en_US": null
    },
    //required valid JSON object, keys valid locale, values strings or null
    "description": {
      "en_US": null
    }
  },
  "attributes": {
    "occasion": {
      "en_US": {
        //required valid string
        "label": "Occasion en",
        //required valid string
        "value": "Casual"
      }
    }
  },
  "variants": [
    {
      //requried valid int even if send as string
      "product_id": "285",
      //optional valid string max length 128
      "sku_number": "wbk003",
      "unique_identifier": false,
      "gtin": null,
      "mpn": null,
      //optional valid JSON array of objects
      "product_image_urls": [
        {
          //required valid URL string max length 2000
          "url": "http://multisafepay-demo.com/plugingroup/development/magento/testing/media/catalog/product/w/b/wbk003t_1.jpg",
          //required valid bool
          "main": true
        }
      ],
      //PUT optional, POST required valid int even if send as string
      "stock": "-6",
      //PUT optional, POST required valid float even if send as string
      "sale_price": 60.00,
      //PUT optional, POST required valid float even if send as string
      "retail_price": 60.00,
      //PUT optional, POST required valid JSON object
      "attributes": {
        //keys valid locale (send only attributed that differs from the parent product)
        "color": {
          "en_US": {
            //required valid string
            "label": "Color",
            //required valid string
            "value": "Indigo"
          }
        },
        "size": {
          "en_US": {
            "label": "Size",
            "value": "S"
          }
        }
      }
    }
  ]
}
Suggest Edit