Update price for sellables

I’m trying to set price and I can’t find any API documentation.
I found it possible to change by

PUT {{base_url}}/products/{{product_id}}
{
  "product": {
    "product_variants_attributes": [
      {
        "id": 11111,
        "price": "1.99"
      }
    ]
  }
}

I did the change but sometimes response contains an old value in sellables

Hey @falko,

Your request looks good to me.

There is documentation for changing the price of a sellable on the update product detail page of the API docs. The example payload given is:

{
  "product": {
    "product_variants_attributes": [
      {
        "id": 14144702,
        "price": "150"
      }
    ]
  }
}

Which matches what your request contains, so it’s likely that there is something wrong elsewhere. If you see an old value in sellables, you could make a GET request to /products to verify your change, instead of relying on just the response of the PUT request.

If this works for you, please mark this message as a solution so that other developers can use it as a reference. If you are still having trouble, contact Veeqo Support via the support messenger in the Veeqo app or contacting helpme@support.veeqo.com

Hope this helps,
Alex - Veeqo

Sorry, but documentation has no details about the way to update price. The fact the response sometimes contains an old value after update looks like a bug, it should not be like it is.

Hey @falko,

I agree, that sounds like it may be a bug. My original reply was to help you troubleshoot whether it’s a bug or something wrong with the request.

In regards to updating price, I was referencing the “example2” request on the “Update Product Detail” page, which contains information on how to update a sellable’s price.

Since it may be a bug, in order for us to be able to investigate and escalate this issue further - could you contact Veeqo Support via the support messenger or helpme@support.veeqo.com with details of your request/response?

Thanks,
Alex - Veeqo