Add a webhook
1
Add a webhook
Under Endpoints, choose Add webhook.
2
Enter the URL
Enter your Endpoint URL. It must start with
https:// and be on the public internet: addresses inside a private network are refused, because Loveful’s servers send the request.3
Pick the events
Tick at least one of the Events below, then choose Add webhook.
4
Copy the signing secret
Loveful shows the webhook’s signing secret once. Copy it now: your endpoint uses it to check each request came from Loveful.
Events
Events are sent for signed-in shoppers and wishlisted orders. Guests’ saves and removes aren’t sent.
Each event is a
POST with a JSON body and an X-Loveful-Signature header, so your endpoint can check it came from Loveful. For the payloads and how to verify the signature, see Webhooks for developers.
Managing a webhook
Each webhook has an Edit button and a menu of more actions:- Edit changes which events it gets. The URL can’t be changed: to use a different URL, add a new webhook.
- Send test posts a sample
wishlist.testevent, signed like a real one, and tells you whether your endpoint accepted it. - Regenerate signing secret makes a new secret and shows it once. The old one stops working straight away, so update your endpoint.
- Delete webhook stops Loveful sending to that URL, after you confirm. This can’t be undone.
Delivery
Any2xx response counts as delivered. Each delivery waits up to 10 seconds for an answer and is tried up to 3 times. Loveful tries again when your endpoint can’t be reached, times out, or answers with a 5xx, 408, 425 or 429. Other answers, such as 400 or 404, aren’t retried.