Why isn't API PUT call updating variant price?

Why isn't API PUT call updating variant price?

JMarketInvaders
Visitor
1 0 0

Hello everyone,


We're trying to change the price of a variation via the Shopify API. We are proceeding with a PUT call to the https://nom-du-site.fr/admin/api/2023-04/variants/variant_id.json entity, accompanied by the JSON content provided at the end of this message.


During a test via POSTMAN, although we receive a 200 response code with the variant in the response content, the price is not modified. However, it seems that the modification rights are correctly assigned to our application.


Does anyone know why the call does not produce the expected effect?

 

{
    "variant":
    {
        "id": variant_id,
        "product_id": product_id,
        "title": "Title",
        "price": "190.91",
        "sku": "SKUVariant"
    }
}

 

Thanks,

Jérôme.

Replies 0 (0)