Hi Guys,
Am not able to configure webhook for topic ‘subscription_billing_attempts/success’.
Am i missing any thing ?
Thanks in advance.
Doc link:
Written Code:
const data = await client.post({
path: 'webhooks',
data: {
webhook:{
topic:"subscription_billing_attempts/success",
address:"https://enm8v27hvjhqy1k.m.pipedream.net/",
format:"json",
}},
type: DataType.JSON,
});
Error Response:
{
"response": {
"code": 422,
"statusText": "Unprocessable Entity",
"body": {
"errors": {
"topic": [
"Invalid topic specified: subscription_billing_attempts/success. Does it exist? Is there a missing access scope? Topics allowed: app/uninstalled, collections/create, collections/delete, collections/update, customer_groups/create, customer_groups/delete, customer_groups/update, customers/create, customers/delete, customers/disable, customers/enable, customers/update, customers_marketing_consent/update, draft_orders/create, draft_orders/delete, draft_orders/update, products/create, products/delete, products/update, segments/create, segments/delete, segments/update, shop/update, app_purchases_one_time/update, app_subscriptions/update, domains/create, domains/update, domains/destroy, selling_plan_groups/create, selling_plan_groups/update, selling_plan_groups/delete, bulk_operations/finish\n"
]
}
},
"headers": {
"date": [
"Thu, 31 Mar 2022 14:01:36 GMT"
],
"content-type": [
"application/json; charset=utf-8"
],
"transfer-encoding": [
"chunked"
],
"connection": [
"close"
],
"x-sorting-hat-podid": [
"258"
],
"x-sorting-hat-shopid": [
"63615631619"
],
"referrer-policy": [
"origin-when-cross-origin"
],
"x-frame-options": [
"DENY"
],
"x-shopid": [
"63615631619"
],
"x-shardid": [
"258"
],
"x-stats-userid": [
"82449596675"
],
"x-stats-apiclientid": [
"6713477"
],
"x-stats-apipermissionid": [
"366492090627"
],
"http_x_shopify_shop_api_call_limit": [
"1/40"
],
"x-shopify-shop-api-call-limit": [
"1/40"
],
"x-shopify-api-version": [
"2022-04"
],
"strict-transport-security": [
"max-age=7889238"
],
"x-shopify-stage": [
"production"
],
}
}
}
