• 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

Payment by token

To use a token referenced in an order, add the alias attribute when creating the order.

Example:

Request

POST https://secure.lyra.com/marketplace/orders?expand=items

Body

{
  "marketplace": "ebfb36ab-2d30-4326-adb9-e16b0c9a89f3",
  "reference": "Exemple MKP BURO",
  "description": "Commande fournitures",
  "currency": "EUR",
  "alias": "1144951ea7ab42989c97159b3dfc0382",
  ...
}

By calling “execute” on this order, the payment will be made via the payment page with the token that has “1144951ea7ab42989c97159b3dfc0382” as an alias.

By calling “execute-embedded” on this order, the payment will be made via the embedded form with the token that has “1144951ea7ab42989c97159b3dfc0382” as an alias.

By calling “execute/token”, the token will also be updated via the payment page with the information contained in the order.

By calling “execute-embedded/token”, the token will also be updated via the embedded form with the information contained in the order.

Jobs
Legal
GDPR
25.18-1.11