vuestorefront / vue-storefront-api

Vue.js storefront for Magento2 (and not only) - data backend
https://www.vuestorefront.io
MIT License
348 stars 338 forks source link

I can not place orders because the API expects a different message from VSF #550

Open revington opened 3 years ago

revington commented 3 years ago

I'm getting this exception: TypeError: req.body.products is not iterable From this line My incomming message:

POST /order {                                          
  "newOrder": {                                   
    "user_id": "",                                
    "cart_id": "vs-72ac6c953cfbdc42e10d8582970e8",
    "products": [                                 
      {                                           
        "marketPrice": 0,                         
        "originalPrice": 14.95,                   
        "length_class": "cm",                     
        "priceInclTax": 14.95,                    
        "originalPriceInclTax": 14.95,            
        "specialPriceTax": 0,                     
        "related_products": [                     
          "2173",                                 
          "2676"                                  
        ],....

VSF is sending this newOrder thing while VSF API does not expect it.

Related to vuestorefront/vue-storefront-api#532