Which API that I can use to update product catalog availability ?
1

We have 2 Whatsapp Business Account that has feature to update availability product from API.

In some of our whatsapp business app we able to update the availability using this API

Endpoint : https://graph.facebook.com/<PRODUCT_ID>

Here is the payload

{
    "availability": "in stock",
    "brand": "Brand name"
}

Header : Authorization : Bearer

It works perfectly in app A but doesn't work in app B and I got this error response

{
    "error": {
        "message": "An unknown error has occurred.",
        "type": "OAuthException",
        "code": 1,
        "fbtrace_id": "AqbvqIXnc_TPl-p662a894i"
    }
}

Am I missing something ? All apps already using the same permissons.

I also saw another API https://graph.facebook.com/<CATALOG_ID/batch but it seems running asynchronously and need some time to finish update the product which we need to update the avaiability directly once the product in our inventory is out of stock.

Sigit
Posée il y a environ 6 mois