- Create a cart payment
If null, payment applies to order total (or total of specific line items, if set), less any other payments where Amount is set. Value can only be negative if processing a payment for an order return.
All payments must be Accepted to submit an order. This property should be updated after authorizing or capturing the payment in your middleware by a user with the elevated OrderAdmin role.
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/cart/payments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.ordercloud.io/v1/cart/payments \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "",
"Type": "PurchaseOrder",
"DateCreated": "2018-01-01T00:00:00-06:00",
"CreditCardID": "",
"SpendingAccountID": "",
"Description": "",
"Currency": "",
"Amount": 0,
"Accepted": false,
"OrderReturnID": "",
"xp": {},
"Transactions": [
{
"ID": "",
"Type": "",
"DateExecuted": "2018-01-01T00:00:00-06:00",
"Currency": "",
"Amount": 0,
"Succeeded": false,
"ResultCode": "",
"ResultMessage": "",
"xp": {}
}
]
}'If null, payment applies to order total (or total of specific line items, if set), less any other payments where Amount is set. Value can only be negative if processing a payment for an order return.
All payments must be Accepted to submit an order. This property should be updated after authorizing or capturing the payment in your middleware by a user with the elevated OrderAdmin role.
{ "ID": "", "Type": "PurchaseOrder", "DateCreated": "2018-01-01T00:00:00-06:00", "CreditCardID": "", "SpendingAccountID": "", "Description": "", "Currency": "", "Amount": 0, "Accepted": false, "OrderReturnID": "", "xp": {}, "Transactions": [ { … } ] }