Slash API: Retrieve Balances and Transaction Data
Last updated April 9, 2026
Overview
Slash's API gives you programmatic access to your account balances and transaction data. You can pull balances on demand, list and filter transactions, and get aggregated summaries — all without logging into the dashboard.
What You'll Need
- An API key created from your Developer Account settings
- Your account ID(s)
Listing Your Accounts
Start by retrieving a list of all accounts you have access to with GET /account. This returns each account's ID, which you'll use in subsequent calls.
Retrieving Account Balances
Use GET /account/{accountId}/balance to get the current balances for a specific account. The response includes one or more balance objects depending on the account type.
Balance Types
debit— The only balance type for debit accounts. Represents funds available to spend or withdraw.cash— For charge card accounts only. Represents excess cash not being used as collateral for the card.credit— For charge card accounts only. Represents the amount available to spend on the charge card.
Each balance has an available amount (immediately usable) and a posted amount (settled transactions only, excludes pending). Both are returned in cents. A timestamp indicates when the balance was computed.
Retrieving Transactions
Use GET /transaction to list transactions. You can narrow results using filter parameters in the query string. All filters use the filter: prefix:
filter:accountId— Show transactions for a specific accountfilter:virtualAccountId— Show transactions for a specific virtual accountfilter:cardId— Show transactions for a specific cardfilter:from_date/filter:to_date— Filter by date range (Unix timestamps in milliseconds)filter:status— Filter by basic status (pending,posted,failed)filter:detailed_status— Filter by more specific status likesettled,declined,refund,returned, and more
Transaction amounts are in cents. Negative amounts are debits (money out), positive amounts are credits (money in).
Understanding Transaction Statuses
Every transaction has both a basic status and a more granular detailed status:
Basic statuses: pending (authorized but not yet settled), posted (settled to the account), failed (did not complete).
Detailed statuses provide more context: pending, pending_approval, in_review, canceled, failed, settled, declined, refund, reversed, returned, dispute.
Single Transactions and Aggregations
To get the full details of a single transaction, use GET /transaction/{transactionId}.
For summarized data across multiple transactions, use GET /transaction/aggregation. This is useful for building dashboards or getting spend totals for a period.
Results are paginated using a cursor. Pass the cursor from the response into your next request to get the next page of results.
Need More Help?
For the complete API reference, visit https://api.joinslash.com/openapi. Contact support through the Slash dashboard or email support@slash.com.
Can’t find what you’re looking for?
Our support team is available 24/7 to help you with any questions.