Skip to content

Notification API doesn't support ITEM.SOLD event/topic #197

@AhamedAqilShihab

Description

@AhamedAqilShihab
  • 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] Maybe

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions