Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

502 error when updating variant by Jeffrey Schweigler

$
0
0

I've been working with the Shopify API for the last month and everything has been going well until today.

I'm getting a 502 Bad Gateway error when trying to update a variant's inventory.

When I directly visit https://xxx.myshopify.com/admin/variants/757296615.json, the variant displays correctly so I know I am sending data to the correct place.

However, when I PUT the following data to that URL (with my api credentials included) I get the 502 error.

{
    "variant":{
        "id":328612671,
        "inventory_quantity":26
     }
}


Viewing all articles
Browse latest Browse all 25503

Trending Articles