raims disputes
Inspect disputes
From command to result
Use this group to read disputes and their stages. Available commands are read-only; they do not submit evidence or open a dispute.
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.
Find disputes for a charge
Shellraims --profile sandbox --output json disputes list --charge-id CHARGE_ID --page-size 20Replace the ID with a charge in the same environment. Read entries in
data.list; keep the filters when traversing pages.Read the current stage
Shellraims --profile sandbox --output json disputes get DISPUTE_IDUse an ID returned by the list. Review
stage, amounts, and available information; a closed stage does not imply a different financial outcome.
Choose a command
| Command | Purpose |
|---|---|
raims disputes get | Get a dispute |
raims disputes list | List disputes |
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 disputes
Inspect disputes
raims disputes [flags]Execution options
--help,-hbooldefault: false- help for disputes
See global options.
Subcommands: raims disputes get, raims disputes list.
raims disputes get
Get a dispute
raims disputes get ID [flags]OAuth environments: Sandbox, Production. Success responses: 200.
Example
raims --profile PROFILE --output json disputes get ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
MED case under review
{
"id": "med_123",
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"kind": "med",
"stage": "in_analysis",
"reason_code": 1,
"disputed_amount_cents": 10000
}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 a dispute.
GET /v1/disputes/{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 disputes list
List disputes
raims disputes list [flags]OAuth environments: Sandbox, Production. Success responses: 200.
Example
raims --profile PROFILE --output json disputes list --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Disputes returned by the query
{
"list": [
{
"id": "med_123",
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"kind": "med",
"stage": "in_analysis",
"reason_code": 1,
"disputed_amount_cents": 10000,
"created_at": 1791878400,
"updated_at": 1791964800
},
{
"id": "dp_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"kind": "chargeback",
"stage": "closed",
"reason_code": 2,
"disputed_amount_cents": 10000,
"created_at": 1791878400,
"updated_at": 1791964800
}
],
"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)
--charge-idstringsent only when supplied- Filter by charge ID
--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)
--disputed-amount-centsint64sent only when supplied- Filter by disputed amount in cents
--page-sizeint64sent only when supplied- Results per page (the API normalizes the requested size)
--sort-keystringsent only when supplied- Sort results by this API field
--sort-orderstringsent only when supplied- Sort direction: asc or desc
--stagestringsent only when supplied- Filter by comma-separated dispute stages
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 disputes.
GET /v1/disputes
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.