Closed anon-phantom closed 1 year ago
can you please provide more detail on how I can reproduce your scenario?
It seems working fine
I have linked an image showcasing the successfulness of the code written on the documentation:
https://docs.salla.dev/docs/merchant/fe18b08f8cf87-webhooks#regsiter-webhooks
View the image via this link: https://share.cleanshot.com/qPGXmPXx
You may use the following cURL to check:
curl --request POST \
--url https://api.salla.dev/admin/v2/webhooks/subscribe \
--header 'Accept: application/json' \
--header 'Authorization: YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Order Updated Webhook with Payment",
"event": "order.updated",
"version": "2",
"rule": "payment_method = mada",
"url": "https://webhook.site/168eb569-cbc5-40ad-8940-3dcd8044xxx",
"security_strategy": "token",
"secret": "4d7dac8e688eca1c1xxxx"
}'
the endpoit is working fine, the issue is wrong url in documentation page
https://api.salla.dev/admin/v2/admin/v2/webhooks/subscribe
https://api.salla.dev/admin/v2/webhooks/subscribe
Thank you for your feedback, we’ll make sure it is correctly reflected.
Appreciate the help
On Thu, 28 Sep 2023 at 00:37 Phantom X @.***> wrote:
the endpoit is working fine, the issue is wrong url in documentation page
- current url -> https://api.salla.dev/admin/v2/admin/v2/webhooks/subscribe
- correct url -> https://api.salla.dev/admin/v2/webhooks/subscribe
— Reply to this email directly, view it on GitHub https://github.com/SallaApp/Salla-CLI/issues/40#issuecomment-1738111339, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK5EFIKVISY5COVZ2RC237LX4SMCDANCNFSM6AAAAAA5FMRULM . You are receiving this because you modified the open/close state.Message ID: @.***>
Prerequisites
SallaCLI Version
Salla CLI issue Type
App
Current Behavior
@ webhooks#register-endpoint-1
Expected Behavior
null
Steps to Reproduce
Code Reproduction URL
No response
Salla Info
[Salla info]
version: 3.2.1 npm version: 9.7.2 node version: v18.6.0 php version: 8.2.8 os: win32 os version: 10.0.22621 user id: 2099118681 uuid: A7EBA3AA-04D5-4583-960F-E240A0AA76D1
Additional Information
No response