Hi, So i’m fairly new to calling APIs.
I’ve created a scenario where upon product update on Woocommerce it Gets Listing (from Etsy’s module), then as advised by Make’s tech support to Call Etsy Api using Make’s module, bc “The Update Listing API from Etsy does not provide an option to update price and quantity”.
Etsy’s Api has two versions for the API: V2 & V3.
I used this URL for V2, Method PUT:
/v2/listings/{{31.listing_id}}/inventory
this for the body:
{
"products": [
{
"sku": "string",
"property_values": [
{
"property_id": 1,
"value_ids": [
1
],
"scale_id": 1,
"property_name": "string",
"values": [
"string"
]
}
],
"offerings": [
{
"price": 0,
"quantity": 0,
"is_enabled": true
}
]
}
],
"price_on_property": [
0
],
"quantity_on_property": [
0
],
"sku_on_property": [
0
]
}
This is the error i get:
The operation failed with an error. [403]: oauth_problem=signature_invalid&debug_sbs=PUT&https%3A%2F%2Fopenapi.etsy.com%2Fv2%2Flistings%2F1272651627%2Finventory&oauth_consumer_key%3Dupw7o2cd35p5y80imeth3891%26oauth_nonce%3Da9864c64a9b34037bb4001314992a3eb%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1658678979%26oauth_token%3Db3365901f859fa9ac4280b5a900832%26oauth_version%3D1.0%26price_on_property%3D0%26products%3DArray%26quantity_on_property%3D0%26sku_on_property%3D0
the code was copied from etsy doc.
https://developers.etsy.com/documentation/reference/#operation/updateListingInventory
Not sure which Version to use or body response…or hoenstly what to fill in the body.
this is the error i get for V3
URL: /v3/application/listings/{{40.listing_id}}/inventory
[401]: [object Object]
Any guidance will help tremendously. thanks.