Request

Only available to Buyer Users.

Security
OAuth2(Required scopes: FullAccessShopper)
Path
spendingAccountIDstringrequired

ID of the spending account.

curl -i -X GET \
  'https://api.ordercloud.io/v1/me/spendingaccounts/{spendingAccountID}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Only available to Buyer Users.

Bodyapplication/json
IDstring, <= 100 characters
Example:""
Namestring, <= 100 characters
Example:""
Balancenumber, (float)
Example:0
AllowAsPaymentMethodboolean

If true, a payment can be created referencing the SpendingAccountID.

Example:false
StartDatestring, (date-time)
Example:"2018-01-01T00:00:00-06:00"
EndDatestring, (date-time)
Example:"2018-01-01T00:00:00-06:00"
xpobject
Example:
{}
Response
{ "ID": "", "Name": "", "Balance": 0, "AllowAsPaymentMethod": false, "StartDate": "2018-01-01T00:00:00-06:00", "EndDate": "2018-01-01T00:00:00-06:00", "xp": {} }