raims statements
Inspect account statement entries
From command to result
Find entries for a resource and retrieve one using its returned ID. Codes and units follow the public statement reference.
Configure the profile and credential before running real reads. With an API
key, the key determines the company and environment. --environment selects
an environment only for OAuth.
Filter by resource
Shellraims --profile sandbox --output json statements list --reference-id REFERENCE_ID --page-size 20Use the desired reference identifier. Read
data.listanddata.page; the cursor belongs to this query and its filters.Read an entry
Shellraims --profile sandbox --output json statements get STATEMENT_IDReview
reference_id,statement_type, andamount_centsin the entry. To save all pages while handling failures, follow scripted pagination.
Choose a command
| Command | Purpose |
|---|---|
raims statements get | Get an account statement entry |
raims statements list | List account statement entries |
The previews below use --dry-run and do not send the request. Replace placeholders and review the result before sending a write.
Body fields, filters, and headers are sent only when supplied. Execution option defaults do not fill API fields.
raims statements
Inspect account statement entries
raims statements [flags]Execution options
--help,-hbooldefault: false- help for statements
See global options.
Subcommands: raims statements get, raims statements list.
raims statements get
Get an account statement entry
raims statements get ID [flags]OAuth environments: Sandbox, Production. Success responses: 200.
Example
raims --profile PROFILE --output json statements get ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Refund linked to a refund request
{
"id": "st_3AbHiWSrsZBoaTg47OcMzC",
"reference_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"reference_type": 1,
"statement_type": 5,
"amount_cents": -2500,
"created_at": 1791936000
}Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for get
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
See global options.
Get an account statement entry.
GET /v1/statements/{id}
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.raims statements list
List account statement entries
raims statements list [flags]OAuth environments: Sandbox, Production. Success responses: 200.
Example
raims --profile PROFILE --output json statements list --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Receipt and fee for the same charge
{
"list": [
{
"id": "st_3AbHiWSrsZBoaTg47OcMzC",
"reference_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"reference_type": 1,
"statement_type": 1,
"amount_cents": 10000,
"created_at": 1791892800,
"refund_id": null,
"dispute_id": null
},
{
"id": "st_1AbXiWSrsCBoaTg47OcMzC",
"reference_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"reference_type": 1,
"statement_type": 2,
"amount_cents": -149,
"created_at": 1791892800,
"refund_id": null,
"dispute_id": null
}
],
"page": {
"page_size": 10,
"has_next": false,
"has_previous": false,
"next_after": null,
"previous_before": null
}
}Query filters
--afterstringsent only when supplied- Read after this opaque cursor (cannot be combined with --before)
--beforestringsent only when supplied- Read before this opaque cursor (cannot be combined with --after)
--created-gteint64sent only when supplied- Created at or after this Unix timestamp (seconds)
--created-lteint64sent only when supplied- Created at or before this Unix timestamp (seconds)
--page-sizeint64sent only when supplied- Results per page (the API normalizes the requested size)
--reference-idstringsent only when supplied- Filter by the referenced resource ID
--sort-orderstringsent only when supplied- Sort direction: asc or desc
--statement-typestringsent only when supplied- Filter by comma-separated statement type codes
Execution options
--allbooldefault: false- Read all pages as separate results (JSON Lines with --output json)
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for list
--max-pagesintdefault: 100- Maximum pages to read with --all (1-10000)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
See global options.
List account statement entries.
GET /v1/statements
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.