• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
Europe (English)
France
Spain
Europe (English)
India
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
SDD mandates by REST API
Snippets
Payment methods
Plugins
Marketplace
Guides
Merchant Back Office
Back Office Expert
Functional guides

Using webhooks

Webhooks allow you to be automatically notified when an object’s status changes (order, registration, refund, etc.). By following its life cycle, you are able to react by triggering new events, calls, etc.

For example: a webhook is sent to you when the payment for an order is captured on the payment account from which you can, if this has been agreed upon in your business process, send information to your sub-merchant to validate the delivery.

For security reasons, the webhook is reduced to its simplest form that is unusable without an authenticated access to the API. This is a POST request with the following body:

{"order":"dd5e4c4c-2c07-4af8-ae30-15f4c6d5b5e5"}

When you receive this webhook, it is up to you to interrogate the object in question via the corresponding resource provided to you, and find out the new status.

Example:

GET https://secure.lyra.com/orders/dd5e4c4c-2c07-4af8-ae30-15f4c6d5b5e5)

Usually, the webhook reaches the marketplace server a few seconds after the status change. If an error occurs when it is sent (e.g. network unavailable), it can be resent up to two additional times, i.e. three times in total, at 15-minute intervals.

The webhook is not resent if there is an error once it is received (for example: if your server returns a 400, 404, 500 status, etc.). To avoid the most common errors, a dispatch and receipt check is carried out when the webhook is registered.

This section explains how to:
  1. Define one (or more) access points
  2. Access the available webhooks, and those currently defined on your marketplace
  3. Register, modify and delete your webhooks.
  • Defining the webhook address
  • Accessing the webhooks defined and available on your marketplace
  • Registering, modifying or deleting a webhook
Jobs
Legal
GDPR
25.18-1.11