Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

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

Open
revington opened this issue Feb 9, 2021 · 0 comments

Comments

@revington
Copy link

revington commented Feb 9, 2021

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 #532

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant