If an object with the same ID already exists, it will be overwritten.
Security
OAuth2(Required scopes: FullAccessSpendingAccountAdmin)
If true, a payment can be created referencing the SpendingAccountID.
Example:false
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/buyers/{buyerID}/spendingaccounts/{spendingAccountID}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.ordercloud.io/v1/buyers/{buyerID}/spendingaccounts/{spendingAccountID}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "",
"Name": "",
"Balance": 0,
"AllowAsPaymentMethod": false,
"StartDate": "2018-01-01T00:00:00-06:00",
"EndDate": "2018-01-01T00:00:00-06:00",
"xp": {}
}'If an object with the same ID already exists, it will be overwritten.
If true, a payment can be created referencing the SpendingAccountID.
Example:false
Response
{ "ID": "", "Name": "", "Balance": 0, "AllowAsPaymentMethod": false, "StartDate": "2018-01-01T00:00:00-06:00", "EndDate": "2018-01-01T00:00:00-06:00", "xp": {} }