Create or update a spending account assignment

Request

Security
OAuth2(Required scopes: FullAccessSpendingAccountAdmin)
Path
buyerIDstringrequired

ID of the buyer.

Bodyapplication/jsonrequired
SpendingAccountIDstringrequired
Example:""
UserIDstring
Example:""
UserGroupIDstring
Example:""
AllowExceedboolean

If true, a user can place an order for an amount greater than the available balance, causing the balance to go negative.

Example:false
curl -i -X POST \
  'https://api.ordercloud.io/v1/buyers/{buyerID}/spendingaccounts/assignments' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "SpendingAccountID": "",
    "UserID": "",
    "UserGroupID": "",
    "AllowExceed": false
  }'

Responses

Response
No content