How can I check the status of a Pay by Link payment link?

To programmatically check the status of a Pay by Link payment link, you can do a GET request to our /paymentLinks/{linkId} endpoint. In the response you can check the status in the parameter status. More information can be found here: Adyen Checkout API.

Example:

GET - https://checkout-test.adyen.com/checkout/v53/paymentLinks/{linkId} 

Response:
200 OK

{
"amount": {
"currency": "EUR",
"value": 4200
},
"countryCode": "NL",
"expiresAt": "2020-08-11T08:37:11Z",
"id": "LINK_ID",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"reference": "YOUR_REFERENCE",
"shopperLocale": "en-US",
"status": "active",
"url": "https://checkoutshopper-test.adyen.com/checkoutshopper/payByLink.shtml?=LINK_ID”
}

For details on how to expire a payment link, refer to How can I expire a Pay by Link payment link? 

Was this article helpful?
0 out of 0 found this helpful