Files
adyen-curl/PatchPaymentLinksLinkId.ps1
Julien Lengrand-Lambert 610eb4d5a9 For fun
2024-02-22 16:13:52 +01:00

20 lines
574 B
PowerShell

<#
Request: PATCH /paymentLinks/{linkId}
Summary: Update the status of a payment link
Description: Updates the status of a payment link. Use this endpoint to [force the expiry of a payment link](https://docs.adyen.com/online-payments/pay-by-link#update-payment-link-status).
#>
param(
<# Unique identifier of the payment link. #>
[Parameter(Mandatory=$True)]
[String] $link
)
curl -X PATCH https://checkout-test.adyen.com/v71/paymentLinks/$linkId `
-H 'Accept: application/json' `
-H 'Content-Type: application/json' `
-d '{
"status": "expired"
}'