CheckoutPayment links

Update the status of a payment link

PATCH
/paymentLinks/{linkId}

Updates the status of a payment link. Use this endpoint to force the expiry of a payment link.

Authorization

AuthorizationBasic <token>

In: header

Path Parameters

linkId*string

Unique identifier of the payment link.

Request Body

application/json

status*"expired"

Status of the payment link. Possible values:

  • expired

Value in

  • "expired"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/paymentLinks/string" \  -H "Content-Type: application/json" \  -d '{    "status": "expired"  }'
{  "amount": {    "currency": "EUR",    "value": 8700  },  "countryCode": "NL",  "expiresAt": "2021-04-08T14:06:39Z",  "merchantAccount": "YOUR_MERCHANT_ACCOUNT",  "reference": "shopper-reference-ekvL83",  "shopperLocale": "hu-HU",  "shopperReference": "shopper-reference-LZfdWZ",  "status": "expired",  "url": "https://test.adyen.link/PL61C53A8B97E6915A",  "id": "PL61C53A8B97E6915A"}