mirror of
https://github.com/jlengrand/adyen-curl.git
synced 2026-03-10 08:01:25 +00:00
20 lines
574 B
PowerShell
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"
|
|
}'
|
|
|