Variant Bulk Update oldPriceIncl not updating

Hi,

I try to update the variants oldPriceIncl via the bulk update call (https://api.webshopapp.com/nl/variants/bulk.json). But it is not updating?

My body:

{
    "variant": [
        {
            "id" : 156082388,
            "priceIncl" : 83.3,
            "oldPriceIncl" : 119.0
        }
    ]
}


Answers

  • TimBloembergenTimBloembergen Posts: 38Moderator, Lightspeed Staff moderator
    edited December 2018
    Hi Danny,

    To update the "oldPriceIncl" of a variant you also need to send the "oldPriceExcl" field in your update call. 

    So in your example, if you would send the following payload your variant will get updated.

    {
      "variant": [
        {
          "id": 156082388,
          "priceIncl": 83.3,
          "oldPriceIncl": 119.0,
          "oldPriceExcl": 98.3471
        }
      ]
    }
    Tim Bloembergen
    API Integrations Specialist
    Lightspeed HQ
Sign In or Register to comment.