Retrieving transactions
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.
- 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 and set below types:
Fees - refers to the fees charged through the Rain Charge User API or Charge Company API
Spend - refers to regular spend transactions of the cardholder.
Collateral - refers to transactions related to the userβs or companyβs collateral contract.
Payment - refers to payments made (usually via Liquidation event) against the posted balance of the user or company.
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.