raims simulations
Simulate operations allowed by the API for the selected credential
From command to result
Simulations require a Sandbox credential and resource. Prepare a charge with a simulatable payment in that environment; Production data cannot be used even if the profile is named sandbox.
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.
Check the operation
Shellraims simulations charges confirm-payment CHARGE_ID --dry-runReplace the ID with the Sandbox charge ID. For OAuth, add
--environment sandboxto the preview; with an API key, the key itself determines the environment.Confirm the simulated payment
Shellraims --profile sandbox --output json simulations charges confirm-payment CHARGE_IDRun only with the verified Sandbox credential. Read status and
duplicatein the result. To test failure, usefail-paymentin a separate scenario instead of chaining success and failure for the same charge.Check the resource
Shellraims --profile sandbox --output json charges get CHARGE_IDRead the charge in the same environment. Boleto and refund scenarios have their own prerequisites; choose the corresponding command below.
Choose a command
| Command | Purpose |
|---|---|
raims simulations charges compensate-boleto | Simulate boleto clearing |
raims simulations charges configure-scenario | Configure the result of the next simulated operation |
raims simulations charges confirm-payment | Confirm a simulated payment |
raims simulations charges fail-payment | Simulate a failed payment |
raims simulations charges issue-payment | Issue a simulated payment for a charge |
raims simulations charges refunds create | Create a pending simulated refund |
raims simulations charges resolve-scenario | Resolve a pending simulated operation |
raims simulations refunds complete | Complete a simulated refund |
raims simulations refunds fail | Simulate a failed refund |
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 simulations
Simulate operations allowed by the API for the selected credential
raims simulations [flags]Execution options
--help,-hbooldefault: false- help for simulations
See global options.
Subcommands: raims simulations charges, raims simulations refunds.
raims simulations charges
Simulate charge and payment operations
raims simulations charges [flags]Execution options
--help,-hbooldefault: false- help for charges
See global options.
Subcommands: raims simulations charges compensate-boleto, raims simulations charges configure-scenario, raims simulations charges confirm-payment, raims simulations charges fail-payment, raims simulations charges issue-payment, raims simulations charges refunds, raims simulations charges resolve-scenario.
raims simulations charges compensate-boleto
Simulate boleto clearing
raims simulations charges compensate-boleto ID [flags]OAuth environments: Sandbox. Success responses: 200.
Example
raims --profile PROFILE --output json simulations charges compensate-boleto ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Boleto cleared
{
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"status": 1,
"duplicate": false,
"amount_cents": 10000
}Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for compensate-boleto
--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.
Simulate boleto clearing.
POST /v1/simulations/charges/{id}/compensate_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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.raims simulations charges configure-scenario
Configure the result of the next simulated operation
raims simulations charges configure-scenario ID [flags]OAuth environments: Sandbox. Success responses: 200.
Example 1
raims --profile PROFILE --output json simulations charges configure-scenario ID --data-file request.json --dry-runExample 2
raims simulations charges configure-scenario ID --action="boleto_issuance" --outcome="failed" --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Scenario configured
{
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"state": "configured",
"duplicate": false,
"action": "pix_issuance",
"outcome": "pending",
"charge_status": 0
}Body fields
--actionstringrequired in the body sent only when supplied- Action to test: pix_issuance for Pix issuance, boleto_issuance for boleto issuance, or cancellation for cancellation. For cancellation, keep the charge open with Pix or boleto already issued, without confirming payment.
--outcomestringrequired in the body sent only when supplied- Action result: pending keeps confirmation open; failed shows a failure.
Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for configure-scenario
--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.
Configure the result of the next simulated operation.
POST /v1/simulations/charges/{id}/scenario
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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.
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:
action string required; allowed: "pix_issuance", "boleto_issuance", "cancellation"
outcome string required; allowed: "pending", "failed"
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):
{
"action": "boleto_issuance",
"outcome": "failed"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.raims simulations charges confirm-payment
Confirm a simulated payment
raims simulations charges confirm-payment ID [flags]OAuth environments: Sandbox. Success responses: 200.
Example
raims --profile PROFILE --output json simulations charges confirm-payment ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Simulation applied
{
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"status": 4,
"duplicate": false,
"amount_cents": 10000
}Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for confirm-payment
--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.
Confirm a simulated payment.
POST /v1/simulations/charges/{id}/confirm_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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.raims simulations charges fail-payment
Simulate a failed payment
raims simulations charges fail-payment ID [flags]OAuth environments: Sandbox. Success responses: 200.
Example
raims --profile PROFILE --output json simulations charges fail-payment ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Simulation applied
{
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"status": 9,
"duplicate": false,
"amount_cents": 10000
}Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for fail-payment
--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.
Simulate a failed payment.
POST /v1/simulations/charges/{id}/fail_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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.raims simulations charges issue-payment
Issue a simulated payment for a charge
raims simulations charges issue-payment ID [flags]OAuth environments: Sandbox. Success responses: 200, 202.
HTTP 202 means the request is pending. Query the returned resource before repeating a write; the command does not wait for completion.
Example 1
raims --profile PROFILE --output json simulations charges issue-payment ID --data-file request.json --dry-runExample 2
raims simulations charges issue-payment ID --payment-method=2 --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Pix issuance pending
{
"id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"customer_id": "cus_1AbXiWSrsCBoaTg47OcMzC",
"status": 1,
"amount_cents": 10000,
"payment_method": 1,
"checkout_payment_method": 1
}Body fields
--payment-methodintegerrequired in the body sent only when supplied- Payment method to issue: 1 for Pix or 2 for boleto. It must be enabled on the charge.
Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for issue-payment
--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.
Issue a simulated payment for a charge.
POST /v1/simulations/charges/{id}/issue_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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.
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:
payment_method integer required
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):
{
"payment_method": 2
}
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.raims simulations charges refunds
Simulate pending refunds for a charge
raims simulations charges refunds [flags]Execution options
--help,-hbooldefault: false- help for refunds
See global options.
Subcommands: raims simulations charges refunds create.
raims simulations charges refunds create
Create a pending simulated refund
raims simulations charges refunds create ID [flags]OAuth environments: Sandbox. Success responses: 200, 202.
HTTP 202 means the request is pending. Query the returned resource before repeating a write; the command does not wait for completion.
Example 1
raims --profile PROFILE --output json simulations charges refunds create ID --data-file request.json --dry-runExample 2
raims simulations charges refunds create ID --amount-cents=2500 --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Refund awaiting confirmation
{
"id": "rf_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"status": "accepted",
"amount_cents": 2500,
"description": "Devolução parcial do serviço",
"created_at": 1791964800
}Body fields
--amount-centsintegerrequired in the body sent only when supplied- Amount requested for a refund, in Brazilian real cents. To refund the full amount, provide the remaining amount shown in the eligibility query.
--descriptionstringaccepts null sent only when supplied- Refund request description. You can leave this field empty.
Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--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
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for create
--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.
Create a pending simulated refund.
POST /v1/simulations/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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.
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.raims simulations charges resolve-scenario
Resolve a pending simulated operation
raims simulations charges resolve-scenario ID [flags]OAuth environments: Sandbox. Success responses: 200.
Example 1
raims --profile PROFILE --output json simulations charges resolve-scenario ID --data-file request.json --dry-runExample 2
raims simulations charges resolve-scenario ID --action="boleto_issuance" --outcome="failed" --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Pending action completed
{
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"state": "completed",
"duplicate": false,
"action": "pix_issuance",
"outcome": "completed",
"charge_status": 1
}Body fields
--actionstringrequired in the body sent only when supplied- Action to test: pix_issuance for Pix issuance, boleto_issuance for boleto issuance or cancellation for cancellation.
--outcomestringrequired in the body sent only when supplied- Result for the pending action: completed completes the action; failed confirms failure.
Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for resolve-scenario
--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.
Resolve a pending simulated operation.
POST /v1/simulations/charges/{id}/resolve
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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.
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:
action string required; allowed: "pix_issuance", "boleto_issuance", "cancellation"
outcome string required; allowed: "completed", "failed"
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):
{
"action": "boleto_issuance",
"outcome": "failed"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.raims simulations refunds
Complete or fail simulated refunds
raims simulations refunds [flags]Execution options
--help,-hbooldefault: false- help for refunds
See global options.
Subcommands: raims simulations refunds complete, raims simulations refunds fail.
raims simulations refunds complete
Complete a simulated refund
raims simulations refunds complete ID [flags]OAuth environments: Sandbox. Success responses: 200.
Example
raims --profile PROFILE --output json simulations refunds complete ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Complete a simulated refund
{
"id": "rf_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"status": "completed",
"amount_cents": 2500,
"description": "Devolução parcial do serviço",
"created_at": 1791964800
}Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for complete
--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.
Complete a simulated refund.
POST /v1/simulations/refunds/{id}/complete
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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.raims simulations refunds fail
Simulate a failed refund
raims simulations refunds fail ID [flags]OAuth environments: Sandbox. Success responses: 200.
Example
raims --profile PROFILE --output json simulations refunds fail ID --dry-runThe excerpt below shows the CLI contents of data. The envelope also reports status_code and the received request_id.
Simulate refund failure
{
"id": "rf_3AbHiWSrsZBoaTg47OcMzC",
"charge_id": "ch_3AbHiWSrsZBoaTg47OcMzC",
"status": "failed",
"amount_cents": 2500,
"description": "Devolução parcial do serviço",
"created_at": 1791964800
}Request headers
--idempotency-keystringsent only when supplied- Reuse this optional idempotency key when retrying the same request
Execution options
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for fail
--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.
Simulate a failed refund.
POST /v1/simulations/refunds/{id}/fail
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.
Simulations require Sandbox credentials and resources. OAuth requests must select Sandbox. Production data cannot be simulated.