Create a new spending account.
POST
/buyers/{buyerID}/spendingaccounts
201Description
If ID is provided and an object with that ID already exists, a 409 (conflict) error is returned.
Roles
At least one of the roles below is required to access this endpoint.
FullAccessSpendingAccountAdmin
Parameters
Name | Type | Description | Possible Values | |
---|---|---|---|---|
buyerID | Required | string | ID of the buyer. | --- |
Request Body
Property | Type | Format | Max Length | Possible Values | ||
---|---|---|---|---|---|---|
ID | string | --- | 100 characters | --- | ||
Name | Required | string | --- | 100 characters | --- | |
Balance | Required | number | float | --- | --- | |
AllowAsPaymentMethod | boolean | --- | --- | --- | ||
StartDate | string | date-time | --- | --- | ||
EndDate | string | date-time | --- | --- | ||
xp | object | --- | --- | --- |
Response Body
Property | Type | Format | Max Length | Possible Values | ||
---|---|---|---|---|---|---|
ID | string | --- | 100 characters | --- | ||
Name | string | --- | 100 characters | --- | ||
Balance | number | float | --- | --- | ||
AllowAsPaymentMethod | boolean | --- | --- | --- | ||
StartDate | string | date-time | --- | --- | ||
EndDate | string | date-time | --- | --- | ||
xp | object | --- | --- | --- |