Register Poynt Store Webhooks for Poynt Cloud APIs Not Working

#1

Hi,

I am trying to create web hooks for the particular business in the Poynt system.Product, Order and Transaction web hooks are working fine. I need to create Store Web hooks as well when a new store is added in the business.

I am trying to create Store Web hooks in the same way as other web hooks but it’s throwing errors with Unauthorized access.

Error: {
“code”: “UNAUTHORIZED_ACCESS”,
“httpStatus”: 401,
“message”: “Access not authorized for the requested resource.”,
“developerMessage”: “There is no resource associated with the event: STORE_CREATED”,
“requestId”: “XXXXXXXX-667c-4671-948d-XXXXXXXXXXXX”
}

Below is sample CURL Request which is used to create Web hook:

curl --location --request POST ‘https://services.poynt.net/hooks
–header ‘Authorization: Bearer {token}’
–header ‘Content-Type: application/json’
–data-raw ‘{
“applicationId”: “{applicationId}”,
“businessId”: “{businessId}”,
“deliveryUrl”: “{deliveryUrl}”,
“secret”: “******”,
“eventTypes”: [
“STORE_CREATED”,
“STORE_UPDATED”
]
}’

Reference:
https://docs.poynt.com/api-reference/#hooks-post-hooks-createhook

Can anyone please help?