curl --request GET \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"from": "2026-06-01",
"to": "2026-07-01",
"groupBy": "day",
"totalAmount": 482075,
"totalTransactions": 156,
"buckets": [
{
"period": "2026-06-01",
"amount": 125000,
"transactionCount": 18
}
]
}Get card spend over time
Completed card transaction totals grouped by hour, day, week, or month. Optionally filter by cardId (local rainCards _id) and/or userId (end user). Use date range filters to power spend charts in your dashboard.
curl --request GET \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/reports/spend"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"from": "2026-06-01",
"to": "2026-07-01",
"groupBy": "day",
"totalAmount": 482075,
"totalTransactions": 156,
"buckets": [
{
"period": "2026-06-01",
"amount": 125000,
"transactionCount": 18
}
]
}Authorizations
Bearer JWT issued to your business account during onboarding
Query Parameters
Start of the range (UTC). A date like 2026-07-08 starts at the beginning of that day. A full timestamp is used as the exact start time and is included.
"2026-06-01"
End of the range (UTC). A date like 2026-07-08 includes that whole day. A full timestamp is the exact end time and is not included, so back-to-back ranges do not overlap. Defaults to now.
"2026-07-01"
How to group results. One of hour, day, week, or month. Defaults to day.
hour, day, week, month "day"
Filter spend to one card. Pass the local rainCards Mongo _id; the report resolves the issuer rainCardId from that document.
"507f1f77bcf86cd799439013"
Filter spend to one end user (Mongo ObjectId). Must belong to this business.
"507f1f77bcf86cd799439012"