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

18 lines
551 B
PowerShell

<#
Request: POST /orders/cancel
Summary: Cancel an order
Description: Cancels an order. Cancellation of an order results in an automatic rollback of all payments made in the order, either by canceling or refunding the payment, depending on the type of payment method.
#>
curl -X POST https://checkout-test.adyen.com/v71/orders/cancel `
-H 'Accept: application/json' `
-H 'Content-Type: application/json' `
-d '{
"merchantAccount": "merchantAccount",
"order": {
"orderData": "orderData",
"pspReference": "pspReference"
}
}'