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

20 lines
541 B
PowerShell

<#
Request: POST /orders
Summary: Create an order
Description: Creates an order to be used for partial payments. Make a POST `/orders` call before making a `/payments` call when processing payments with different payment methods.
#>
curl -X POST https://checkout-test.adyen.com/v71/orders `
-H 'Accept: application/json' `
-H 'Content-Type: application/json' `
-d '{
"amount": {
"currency": "currency",
"value": 0
},
"expiresAt": "expiresAt",
"merchantAccount": "merchantAccount",
"reference": "reference"
}'