SallaApp / Salla-CLI

Salla CLI provides a variety of commands for managing, viewing, and publishing your Salla Apps on Salla Partners Portal.
https://salla.dev
35 stars 23 forks source link

[docs]: endpoint url error #40

Closed anon-phantom closed 1 year ago

anon-phantom commented 1 year ago

Prerequisites

SallaCLI Version

Salla CLI issue Type

App

Current Behavior

image

@ webhooks#register-endpoint-1


404 Not Found
{
  "status": 404,
  "success": false,
  "error": {
    "code": "error",
    "message": ""
  }
}

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

Nabute commented 1 year ago

can you please provide more detail on how I can reproduce your scenario?

nabiloo19 commented 1 year ago

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"
}'
anon-phantom commented 1 year ago

the endpoit is working fine, the issue is wrong url in documentation page

nabiloo19 commented 1 year ago

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

https://user-images.githubusercontent.com/71615064/270214652-d171e97c-1b67-4449-807b-b2c89d83ec90.png

— 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: @.***>