anhthh Posted July 24 Share Posted July 24 I created a webhook with event receipts were created. I want loyverse webhook should be attribute identify at header. How can i do that? Link to comment Share on other sites More sharing options...
Yasuaki Posted July 24 Share Posted July 24 Hello @anhthh There are 3 ways of creating webhooks in Loyverse. 1. Create webhook from https://r.loyverse.com/dashboard/#/webhooks 2. Create webhook from /webhook endpoint using an Access token. 3. Create webhook from /webhook endpoint using OAuth 2.0. Only when you create a webhook by 3. the webhook will contain X-Loyverse-Signature in the Header. We use the HMAC algorithm with SHA-1 as a hash function. Link to comment Share on other sites More sharing options...
DaveHerbert Posted Wednesday at 09:51 AM Share Posted Wednesday at 09:51 AM can you please clarify option 2. Create webhook from /webhook endpoint using an Access token. Link to comment Share on other sites More sharing options...
Yasuaki Posted Wednesday at 02:57 PM Share Posted Wednesday at 02:57 PM 5 hours ago, DaveHerbert said: can you please clarify option 2. Create webhook from /webhook endpoint using an Access token. You can create a webhook from this endpoint authorizing your post by an access token.https://developer.loyverse.com/docs/#tag/Webhooks/paths/~1webhooks~1/post Link to comment Share on other sites More sharing options...
DaveHerbert Posted Thursday at 11:05 PM Share Posted Thursday at 11:05 PM can i authenticate a incoming webhook from the loyverse dashboard tool with just an access token without creating an app Link to comment Share on other sites More sharing options...
Yasuaki Posted yesterday at 08:23 AM Share Posted yesterday at 08:23 AM 8 hours ago, DaveHerbert said: can i authenticate a incoming webhook from the loyverse dashboard tool with just an access token without creating an app Hello. No, the webhook doesn't contain your access token. This is an example header of a webhook created with an access token. Link to comment Share on other sites More sharing options...
DaveHerbert Posted yesterday at 09:29 AM Share Posted yesterday at 09:29 AM (edited) Ok thanks. So my question is, how can we authenticate a webhook created from https://r.loyverse.com/dashboard/#/webhooks? I read in another post that only when you create a webhook from /webhook endpoint using OAuth 2.0.. the webhook will contain X-Loyverse-Signature in the Header. Edited yesterday at 09:54 AM by DaveHerbert Link to comment Share on other sites More sharing options...
Recommended Posts