question

staskamyshov avatar image
0 Likes"
staskamyshov asked

Create subscription for notification

I created a URL to receive event notifications via API using the command https://api.ebay.com/commerce/notification/v1/destination Now I try to subscribe to notifications, but an error occurs.

POST https://api.ebay.com/commerce/notification/v1/subscription

Body:
{"topicId":"MARKETPLACE_ACCOUNT_DELETION","status":"ENABLED","destinationId":"e3bfbc30-2da3-4fa9-acb9-a46c7af867ae","payload":{"format":"JSON","schemaVersion":"1.0","deliveryProtocol":"HTTPS"}}

Response:
{"errors":[{"errorId":195011,"domain":"API_NOTIFICATION","category":"REQUEST","message":"Not authorized for this topic."}]}


Where can I find a list of topics? What it is?

subscriptiontopics
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @staskamyshov,

You can execute the getTopics call of Notification API to retrieve the all supported topics. Please go through the link given below to know more about the call. Also, please take the overview of Notification API by going through the link given below

Ref: https://developer.ebay.com/api-docs/commerce/notification/overview.html
https://developer.ebay.com/api-docs/commerce/notification/resources/topic/methods/getTopics

Best Regards
eBay developer support


· 3
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi,

Is there a dump of all the available topics ? For now, I only get to see "MARKETPLACE_ACCOUNT_DELETION" topic.

Thanks.

0 Likes 0 ·

Hi, I was already able to accomplish this service call by referring to the API docs link. The question was, can I get a dump of all topics ? The issue was, when I executed the call, I received only 1 topic back (PLA_CAMPAIGN_BUDGET_STATUS).

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.