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
  • SvenRSvenR Posts: 1Member

    Dear Tim,

    This Bug has returned to my shop... Could you please check if there were any changes in the API. Danny made the changes you told him, it worker for so long, but now is not working anymore... What changed? And what can I do to fix this so I can start my sale?

Sign In or Register to comment.