/
Update Link
Updates the expiration time of a payment link identified by its unique ID. Pushing the expiration of an already expired link back into the future makes it active again. A link that is cancelled or finalized answers with a 409. The updated link comes back wrapped in a data object.
Required scope: link:update
Segurança
accountId and apiKey
- Sandboxhttps://api.test.easypay.pt/2.0/link/{id}
- Productionhttps://api.prod.easypay.pt/2.0/link/{id}
curl -i -X PATCH \
'https://api.test.easypay.pt/2.0/link/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"expiration_time": "2019-08-24T14:15:22Z"
}'Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2025-06-16T13:32:32Z", "modified_at": "2025-06-16T13:32:32Z", "expiration_time": "2026-06-10T09:27:55Z", "type": "SINGLE", "customer": { … }, "communication_channels": [ … ], "payment": { … }, "url": "https://easypay.pt/s/XStDvnMKZaN", "image": "https://cdn.easypay.pt/images/qr/XStDvnMKZaN", "status": "ACTIVE" } }