raims charges
Manage charges and their payment details
Look up syntax, arguments, and options for each command. Use raims COMMAND --help to read the help in your terminal.
raims charges
Manage charges and their payment details
raims charges [flags]--help,-hbooldefault: false- help for charges
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Subcommands: raims charges boleto, raims charges create, raims charges get, raims charges list, raims charges payment, raims charges receipt, raims charges refund-eligibility, raims charges refunds, raims charges revoke, raims charges statistics, raims charges update.
raims charges boleto
Get the boleto download information
raims charges boleto ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for boleto
--savestringdefault: empty- Save the PDF to PATH (up to 32 MiB); the parent directory must exist and the file must not exist
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Get the boleto download information.
GET /v1/charges/{id}/boleto
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.Command example
raims --profile PROFILE --output json charges boleto ID --dry-runraims charges create
Create a charge
raims charges create [flags]--amount-centsintegerdefault: 0- Set JSON body field amount_cents (integer, required in the body)
--body-nullstringArraydefault: []- Set a nullable JSON body field to null by its JSON name (repeat for each field; cannot be combined with --data-file)
--cancel-redirect-urlstringdefault: empty- Set JSON body field cancel_redirect_url (string, nullable)
--create-checkoutbooldefault: false- Set JSON body field create_checkout (boolean)
--customer-idstringdefault: empty- Set JSON body field customer_id (string, required in the body)
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--descriptionstringdefault: empty- Set JSON body field description (string, nullable)
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--due-dateintegerdefault: 0- Set JSON body field due_date (integer, required in the body)
--external-referencestringdefault: empty- Set JSON body field external_reference (string, nullable)
--help,-hbooldefault: false- help for create
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--metadatastringArraydefault: empty- Set a metadata text value as KEY=VALUE (repeat for each key; dots in keys are literal)
--metadata-emptybooldefault: false- Send an empty metadata object; an update preserves existing keys
--metadata-nullstringArraydefault: []- Send null for a metadata key (repeat for each key; removes it when updating)
--payment-methodintegerdefault: 0- Set JSON body field payment_method (integer)
--payment-method-typesintegerArraydefault: empty- Set JSON body field payment_method_types (array<integer>, repeat the option for each item, nullable)
--send-emailbooldefault: false- Set JSON body field send_email (boolean)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--success-redirect-urlstringdefault: empty- Set JSON body field success_redirect_url (string, nullable)
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--titlestringdefault: empty- Set JSON body field title (string, nullable)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Create a charge.
POST /v1/charges
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.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
amount_cents integer required
cancel_redirect_url string optional, nullable
create_checkout boolean optional
customer_id string required
description string optional, nullable
due_date integer required
external_reference string optional, nullable
metadata object optional, nullable
payment_method integer optional; allowed: 0, 1, 2
payment_method_types array<integer> optional, nullable; allowed: 1, 2
send_email boolean optional
success_redirect_url string optional, nullable
title string optional, nullable
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"customer_id": "cus_1Q2W3E4R5T6Y7U8I9O0P",
"amount_cents": 10000,
"payment_method": 0,
"due_date": 1893456000,
"title": "Serviço contratado",
"description": "Cobrança do serviço",
"send_email": false,
"external_reference": "pedido_12345"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.
HTTP 202 means the request is pending. Inspect the returned resource before repeating an operation; this command does not wait for completion.
Metadata options send a text map: repeat --metadata KEY=VALUE for values, use --metadata-null KEY for a null value, or --metadata-empty for an empty object. Empty text, numeric-looking values and the text null remain strings. Omitted metadata and an empty object preserve existing keys when updating; null values remove individual keys, and --body-null metadata clears the entire map. Do not combine these options with --data-file, or use multiple values for the same key.Command example
raims --profile PROFILE --output json charges create --data-file request.json --dry-run
raims charges create --amount-cents=10000 --customer-id="cus_1Q2W3E4R5T6Y7U8I9O0P" --due-date=1893456000 --dry-runraims charges get
Get a charge
raims charges get ID [flags]--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)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Get a charge.
GET /v1/charges/{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.Command example
raims --profile PROFILE --output json charges get ID --dry-runraims charges list
List charges
raims charges list [flags]--afterstringdefault: empty- Read after this opaque cursor (cannot be combined with --before)
--allbooldefault: false- Read all pages as separate results (JSON Lines with --output json)
--beforestringdefault: empty- Read before this opaque cursor (cannot be combined with --after)
--created-gteint64default: 0- Created at or after this Unix timestamp (seconds)
--created-lteint64default: 0- Created at or before this Unix timestamp (seconds)
--customer-idstringdefault: empty- Filter by customer ID
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--due-gteint64default: 0- Due at or after this Unix timestamp (seconds)
--due-lteint64default: 0- Due at or before this Unix timestamp (seconds)
--emailstringdefault: empty- Filter by email address
--external-referencestringdefault: empty- Filter by external reference
--help,-hbooldefault: false- help for list
--identifierstringdefault: empty- Filter by public resource identifier
--max-pagesintdefault: 100- Maximum pages to read with --all (1-10000)
--page-sizeint64default: 10- Results per page (the API normalizes the requested size)
--paid-gteint64default: 0- Paid at or after this Unix timestamp (seconds)
--paid-lteint64default: 0- Paid at or before this Unix timestamp (seconds)
--payment-methodstringdefault: empty- Filter by comma-separated payment method codes
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--sort-keystringdefault: empty- Sort results by this API field
--sort-orderstringdefault: desc- Sort direction: asc or desc
--statusstringdefault: empty- Filter by comma-separated charge status codes
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
List charges.
GET /v1/charges
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.Command example
raims --profile PROFILE --output json charges list --dry-runraims charges payment
Get payment details for a charge
raims charges payment ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for payment
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Get payment details for a charge.
GET /v1/charges/{id}/payment
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.Command example
raims --profile PROFILE --output json charges payment ID --dry-runraims charges receipt
Get the payment receipt download information
raims charges receipt ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for receipt
--savestringdefault: empty- Save the PDF to PATH (up to 32 MiB); the parent directory must exist and the file must not exist
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Get the payment receipt download information.
GET /v1/charges/{id}/receipt
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.Command example
raims --profile PROFILE --output json charges receipt ID --dry-runraims charges refund-eligibility
Check whether a charge can be refunded
raims charges refund-eligibility ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for refund-eligibility
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Check whether a charge can be refunded.
GET /v1/charges/{id}/refund_eligibility
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.Command example
raims --profile PROFILE --output json charges refund-eligibility ID --dry-runraims charges refunds
Inspect and request refunds for a charge
raims charges refunds [flags]--help,-hbooldefault: false- help for refunds
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Subcommands: raims charges refunds create, raims charges refunds list.
raims charges refunds create
Request a refund for a charge
raims charges refunds create ID [flags]--amount-centsintegerdefault: 0- Set JSON body field amount_cents (integer, required in the body)
--body-nullstringArraydefault: []- Set a nullable JSON body field to null by its JSON name (repeat for each field; cannot be combined with --data-file)
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--descriptionstringdefault: empty- Set JSON body field description (string, nullable)
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for create
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Request a refund for a charge.
POST /v1/charges/{id}/refunds
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.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
amount_cents integer required
description string optional, nullable
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"amount_cents": 2500,
"description": "Devolução parcial do serviço"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.
HTTP 202 means the request is pending. Inspect the returned resource before repeating an operation; this command does not wait for completion.Command example
raims --profile PROFILE --output json charges refunds create ID --data-file request.json --dry-run
raims charges refunds create ID --amount-cents=2500 --dry-runraims charges refunds list
List refunds for a charge
raims charges refunds list ID [flags]--afterstringdefault: empty- Read after this opaque cursor (cannot be combined with --before)
--allbooldefault: false- Read all pages as separate results (JSON Lines with --output json)
--beforestringdefault: empty- Read before this opaque cursor (cannot be combined with --after)
--created-gteint64default: 0- Created at or after this Unix timestamp (seconds)
--created-lteint64default: 0- Created at or before this Unix timestamp (seconds)
--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)
--page-sizeint64default: 10- Results per page (the API normalizes the requested size)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
List refunds for a charge.
GET /v1/charges/{id}/refunds
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.Command example
raims --profile PROFILE --output json charges refunds list ID --dry-runraims charges revoke
Revoke a charge
raims charges revoke ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for revoke
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Revoke a charge.
DELETE /v1/charges/{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.
HTTP 202 means the request is pending. Inspect the returned resource before repeating an operation; this command does not wait for completion.Command example
raims --profile PROFILE --output json charges revoke ID --dry-runraims charges statistics
Get charge statistics for a period
raims charges statistics [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for statistics
--periodstringdefault: today- Reporting period: today, last_7_days, last_15_days or last_30_days
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Get charge statistics for a period.
GET /v1/charges/statistics
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.Command example
raims --profile PROFILE --output json charges statistics --dry-runraims charges update
Update a charge
raims charges update ID [flags]--body-nullstringArraydefault: []- Set a nullable JSON body field to null by its JSON name (repeat for each field; cannot be combined with --data-file)
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--descriptionstringdefault: empty- Set JSON body field description (string, nullable)
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--external-referencestringdefault: empty- Set JSON body field external_reference (string, nullable)
--help,-hbooldefault: false- help for update
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--metadatastringArraydefault: empty- Set a metadata text value as KEY=VALUE (repeat for each key; dots in keys are literal)
--metadata-emptybooldefault: false- Send an empty metadata object; an update preserves existing keys
--metadata-nullstringArraydefault: []- Send null for a metadata key (repeat for each key; removes it when updating)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--titlestringdefault: empty- Set JSON body field title (string, nullable)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Update a charge.
PATCH /v1/charges/{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.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
description string optional, nullable
external_reference string optional, nullable
metadata object optional, nullable
title string optional, nullable
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"title": "Serviço atualizado",
"description": "Descrição atualizada da cobrança",
"external_reference": "pedido_12345_atualizado"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.
Metadata options send a text map: repeat --metadata KEY=VALUE for values, use --metadata-null KEY for a null value, or --metadata-empty for an empty object. Empty text, numeric-looking values and the text null remain strings. Omitted metadata and an empty object preserve existing keys when updating; null values remove individual keys, and --body-null metadata clears the entire map. Do not combine these options with --data-file, or use multiple values for the same key.Command example
raims --profile PROFILE --output json charges update ID --data-file request.json --dry-run
raims charges update ID --description="Descrição atualizada da cobrança" --dry-run