Problem ItemShops API

Jean_MichelJean_Michel Posts: 1Member
edited February 26 in Development

Hi I have a call that usually works without any problems that started to throw error (probably due to this specific item being queried)

Any Idea what the problem could be?


I get this error:

{"httpCode":"400","httpMessage":"Bad Request","message":"Item not updated. You can not have more than one ItemVendorNum for each vendorID.","errorClass":"Exception"}


With the following request:

PUT /API/Account/{accountID}/Item/8449.json


Array

(

  [json] => Array

    (

      [ItemShops] => Array

        (

          [ItemShop] => Array

            (

              [itemShopID] => 43547

              [qoh] => 19

            )


        )


    )


)

Post edited by Alex Lugo on

2 comments

  • messhiasmesshias Posts: 35Member

    I'm facing the same issue too, even the SaleLines seems broken too.

  • LeahLeah Posts: 45Moderator, Lightspeed Staff moderator

    @Jean_Michel The error you're experiencing is due to a known issue where merged vendors create duplicate vendor IDs in items. You can simply remove one of the vendors from the product via the UI and this will allow you to update the item going forward.

    API Support
    Lightspeed HQ
Sign In or Register to comment.