Generating the link
As soon as the Order is created, a “persist” link is available in the Order object at the associated “links” list level.
For example:
...
"links": {
...
"persist": {
"href": "https://secure.lyra.com/marketplace/orders/c4e214db-3ba7-4646-84dc-4e247b1e4b5f/persist"
}
...
},
...
In order to generate the payment link, simply call the corresponding resource:
GET /orders/{uuid}/persist
Once generated, the persist_url link and the expiry_date will now be accessible every time you call the Order object (via a POST, PUT or GET).
For example:
...
"persist_url": "https://secure.lyra.com/t/ioeD1uRP",
"expiry_date": "2021-02-15T15:37:47.632009Z"
...
It is only possible to generate a persistent link on an Order with the “CREATED” status.
The links cannot be modified or deleted.