GDPR Mandatory problem

Solved
AceBlazer
Excursionist
28 2 1

I'm trying to include GDPR mandatory webhooks to my app (using nodejs and koa router). i exposed the 3 needed routes for the webhooks and when i test them in postman, i get: 

{
    "errors": {
        "topic": [
            "Invalid topic specified. Topics allowed: app/uninstalled, carts/create, carts/update, checkouts/create, checkouts/delete, checkouts/update, checkouts/paid, collection_listings/add, collection_listings/remove, collection_listings/update, 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, order_transactions/create, orders/cancelled, orders/create, orders/delete, orders/edited, orders/fulfilled, orders/paid, orders/partially_fulfilled, orders/updated, product_listings/add, product_listings/remove, product_listings/update, products/create, products/delete, products/update, refunds/create, shop/update, tender_transactions/create, app_purchases_one_time/update, app_subscriptions/update"
        ]
    }
}
0 Likes
zubairmohsin
Shopify Partner
58 1 10

Hi, are you trying to create these via webhooks via API? You can just add your endpoints via partner dashboard.

gdpr-webhooks-2d70a55c7dd815c4b325b6917f8f878e4c7db53d4d0d0122cedb9ba3e31fd26a

0 Likes
AceBlazer
Excursionist
28 2 1

yes i added them but i must develop their endpoints 

0 Likes
zubairmohsin
Shopify Partner
58 1 10

to develop endpoints, you just need to make three routes in your application. But you don't need to register them via "POST: /admin/webhooks.json" API call.  

0 Likes
AceBlazer
Excursionist
28 2 1

i want to test them using postman to verify
i get: forbidden

0 Likes
zubairmohsin
Shopify Partner
58 1 10

Please share your request details.

0 Likes
AceBlazer
Excursionist
28 2 1

!in headers i dont know what to include, so i added them all,


the body: 

{
    "shop_id": xxxxxxxxxx,
    "shop_domain": "foqusstoretest.myshopify.com"
}

 

fdgfdgdgdg.png

0 Likes
zubairmohsin
Shopify Partner
58 1 10

If I understand correctly, you are mocking this webhook to test your application if it works correctly or not. right?

So this Forbidden part is on your application side, you need to figure out what's causing it.

Maybe its because some of the headers you included. Nothing mentioned related to headers in docs. Everything you need is in payload. So give it a shot without headers.

 

0 Likes
AceBlazer
Excursionist
28 2 1

same thing happens.

0 Likes
AceBlazer
Excursionist
28 2 1

This is an accepted solution.

i tested it using "request customer data", in customers tab and it worked. no need for postman

 

yes.png

0 Likes