Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.
This repository was 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

Description

@revington

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions