-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
- Are you running the latest version?
- Have you included sample input, output, error, and expected output?
- Have you checked if you are using correct configuration?
Describe the bug
Commerce.notification API does't subscripbe to ITEM.SOLD topic. I'm constantly receiving :195002 error.
Code
const subscriptionResponse = await fetch(
`${NOTIFICATION_BASE_URL}/subscription`,
{
method: "POST",
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
destinationId,
topicId: topic,
status: "ENABLED",
schemaVersion,
}),
}
);```
### Output
<!-- Please include output data or error here -->
Failed to subscribe store 11 to webhooks: Error: Failed to load topic ITEM_SOLD: {"errors":[{"errorId":195002,"domain":"API_NOTIFICATION","category":"REQUEST","message":"The topic id does not exist."}]}
### expected data
<!-- Please include expected output data here -->
Subscription Successful 200
**Would you like to work on this issue?**
<!-- choose one by changing [ ] to [x] -->
- [ ] Yes
- [ ] No
- [x] MaybeMetadata
Metadata
Assignees
Labels
No labels