Accounts

accounts

Methods

List Accounts -> CursorPage<>
get/v1/accounts

List account configurations.

query Parameters
begin: string
Optional
(format: date-time)

Date string in RFC 3339 format. Only entries created after the specified time will be included. UTC time zone.

end: string
Optional
(format: date-time)

Date string in RFC 3339 format. Only entries created before the specified time will be included. UTC time zone.

ending_before: string
Optional

A cursor representing an item's token before which a page of results should end. Used to retrieve the previous page of results before this item.

page_size: number
Optional
(maximum: 100, minimum: 1, default: 50)

Page size (for pagination).

starting_after: string
Optional

A cursor representing an item's token after which a page of results should begin. Used to retrieve the next page of results after this item.

Response fields
data: Array<>
has_more: boolean

Whether there are more accounts to be retrieved.

Request example
200getAccounts
Get Account ->
get/v1/accounts/{account_token}

Get account configuration such as spend limits.

Update Account ->
patch/v1/accounts/{account_token}

Update account configuration such as state or spend limits. Can only be run on accounts that are part of the program managed by this API key. Accounts that are in the PAUSED state will not be able to transact or create new cards.

Get Account S Available Spend Limits ->
get/v1/accounts/{account_token}/spend_limits

Get an Account's available spend limits, which is based on the spend limit configured on the Account and the amount already spent over the spend limit's duration. For example, if the Account has a daily spend limit of $1000 configured, and has spent $600 in the last 24 hours, the available spend limit returned would be $400.

Domain types

Account = { token, created, spend_limit, 7 more... }
AccountSpendLimits = { available_spend_limit, spend_limit, spend_velocity }