mirror of
https://github.com/jlengrand/adyen-curl.git
synced 2026-03-10 08:01:25 +00:00
For fun
This commit is contained in:
19
PostOrders.ps1
Normal file
19
PostOrders.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
<#
|
||||
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"
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user