Payment by token

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

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

{
	"marketplace": "ebfb36ab-2d30-4326-adb9-e16b0c9a89f3",
	"reference": "MKP BURO example",
	"description": "Office supplies order",
	"currency": "EUR",
	"alias": "1144951ea7ab42989c97159b3dfc0382",

	...

}

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

By calling "execute-embedded" on this order, the payment will be made via the embedded form with the token which 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.