Issue with setting webhooks

Dear devs,

I am facing issue when setting one of webhooks topic

I tried creating webhook for app_purchases_one_time/update so I recieved following error

{
“errors”: “Could not find the webhook topic app_purchases_one_time/update”
}

/=========request========/
{
“webhook”: {
“topic”: “app_purchases_one_time/update”,
“address”: “https://domain.com/folder_name/webhooks_app/one_time_purchase?shop=store.myshopify.com”,
“format”: “json”
}
}

Hi @anymnous

Is it possible your request is calling the Admin REST API?

That might be the issue, I don’t believe the REST API includes the app_purchases_one_time/update topic based on what I’m seeing in the list of available topics.

However, this topic is available in the GraphQL Admin API. Or you can define it in your shopify.app.toml file to auto register it across all merchants associated with your app.