askwhyweb / magento2-api

PHP Library API for Magento2
https://orvisoft.com/ecommerce-development
2 stars 0 forks source link

Array #1

Open sidneylopes opened 3 years ago

sidneylopes commented 3 years ago

My $newproduct array is filled with errors. Is the syntax correct?

askwhyweb commented 3 years ago

Can you please share snippet with the syntax errors you are receiving?

You may also want to give a try to PostAPI

With following post snippet

{
   "sku":"MTC108-004-00A",
   "name":"Updated Test Name",
   "special_price":"559.99",
   "qty":"219",
   "price":"649.99",
   "categories":{
      "1":[
         "Default",
         "Computing"
      ],
      "2":[
         "Default",
         "Computing",
         "Laptops",
         "Windows Pro Laptops"
      ],
      "3":[
         "Default",
         "Brands",
         "Lenovo"
      ]
   },
   "features":"Intel Core i5-8265U 1.6GHz / 3.9GHz Turbo Processor, 14\" Full HD Display (1920 x 1080) Resolution",
   "graphics_processing_type":"Integrated/On-Board Graphics",
   "operating_system":"Windows 10",
   "brand":"Lenovo",
   "brand_image":"Lenovo"
}