Retrieving transactions
Retrieve transactions from theGET /issuing/transactions endpoint. For a dashboard-like view, you can fetch transactions by company, user, or card ID. The response includes:
- Cursor-based pagination for handling large datasets. The response is a plain array; to fetch the next page, pass the last itemβs
idas thecursorquery parameter. - Transaction types categorized by a
typefield. - Structured schemas for different transaction types.
Transaction Types
You can fetch transactions by type as well. Use thetype param, which is an array parameter that accepts one or more of the values below:
Filtering by status
Use thestatus param to return only transactions in a given state, such as the pending authorizations still waiting to settle. It accepts one value:
The
status filter applies to spend and payment transactions only. When you set status without type, the response excludes all other transaction types. Payment transactions report only pending and completed, so filtering by reversed or declined returns spend transactions alone.
If you combine status with a type value other than spend or payment, such as type=fee, the request returns 400 Bad Request.
For example, to list only declined transactions for a user:
Adding a memo to a transaction
To store additional context about a transaction, update it by passing a value to thememo field.
Example: Updating a transaction with a memo
Use the update transaction endpoint to attach a memo. The memo will be stored and returned with the transaction details.Managing transaction receipts
Forspend transactions, you can attach and retrieve receipts to enhance record-keeping.
Attaching a receipt
- Use the upload receipt endpoint.
- Send the receipt file as a
multipart/form-datapayload under thereceiptkey.
Fetching a receipt
- Call the get transaction receipt endpoint.
- The receipt will be returned as an
application/octet-stream.