Docs
Checking Raims account
Raims CLIAPI commands

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.

  1. Check the operation

    Shell
    raims simulations charges confirm-payment CHARGE_ID --dry-run

    Replace the ID with the Sandbox charge ID. For OAuth, add --environment sandbox to the preview; with an API key, the key itself determines the environment.

  2. Confirm the simulated payment

    Shell
    raims --profile sandbox --output json simulations charges confirm-payment CHARGE_ID

    Run only with the verified Sandbox credential. Read status and duplicate in the result. To test failure, use fail-payment in a separate scenario instead of chaining success and failure for the same charge.

  3. Check the resource

    Shell
    raims --profile sandbox --output json charges get CHARGE_ID

    Read the charge in the same environment. Boleto and refund scenarios have their own prerequisites; choose the corresponding command below.

Choose a command

CommandPurpose
raims simulations charges compensate-boletoSimulate boleto clearing
raims simulations charges configure-scenarioConfigure the result of the next simulated operation
raims simulations charges confirm-paymentConfirm a simulated payment
raims simulations charges fail-paymentSimulate a failed payment
raims simulations charges issue-paymentIssue a simulated payment for a charge
raims simulations charges refunds createCreate a pending simulated refund
raims simulations charges resolve-scenarioResolve a pending simulated operation
raims simulations refunds completeComplete a simulated refund
raims simulations refunds failSimulate 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

Shell
raims simulations [flags]

Execution options

  • --help, -h bool default: false
    • help for simulations

See global options.

Subcommands: raims simulations charges, raims simulations refunds.

raims simulations charges

Simulate charge and payment operations

Shell
raims simulations charges [flags]

Execution options

  • --help, -h bool default: 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

Shell
raims simulations charges compensate-boleto ID [flags]

OAuth environments: Sandbox. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json simulations charges compensate-boleto ID --dry-run

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for compensate-boleto
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations charges configure-scenario

Configure the result of the next simulated operation

Shell
raims simulations charges configure-scenario ID [flags]

OAuth environments: Sandbox. Success responses: 200.

Example 1

Shell
raims --profile PROFILE --output json simulations charges configure-scenario ID --data-file request.json --dry-run

Example 2

Shell
raims simulations charges configure-scenario ID --action="boleto_issuance" --outcome="failed" --dry-run

Body fields

  • --action string required 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.
  • --outcome string required in the body sent only when supplied
    • Action result: pending keeps confirmation open; failed shows a failure.

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for configure-scenario
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations charges confirm-payment

Confirm a simulated payment

Shell
raims simulations charges confirm-payment ID [flags]

OAuth environments: Sandbox. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json simulations charges confirm-payment ID --dry-run

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for confirm-payment
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations charges fail-payment

Simulate a failed payment

Shell
raims simulations charges fail-payment ID [flags]

OAuth environments: Sandbox. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json simulations charges fail-payment ID --dry-run

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for fail-payment
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations charges issue-payment

Issue a simulated payment for a charge

Shell
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

Shell
raims --profile PROFILE --output json simulations charges issue-payment ID --data-file request.json --dry-run

Example 2

Shell
raims simulations charges issue-payment ID --payment-method=2 --dry-run

Body fields

  • --payment-method integer required 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-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for issue-payment
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations charges refunds

Simulate pending refunds for a charge

Shell
raims simulations charges refunds [flags]

Execution options

  • --help, -h bool default: false
    • help for refunds

See global options.

Subcommands: raims simulations charges refunds create.

raims simulations charges refunds create

Create a pending simulated refund

Shell
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

Shell
raims --profile PROFILE --output json simulations charges refunds create ID --data-file request.json --dry-run

Example 2

Shell
raims simulations charges refunds create ID --amount-cents=2500 --dry-run

Body fields

  • --amount-cents integer required 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.
  • --description string accepts null sent only when supplied
    • Refund request description. You can leave this field empty.

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --body-null stringArray default: []
    • Set a nullable JSON body field to null by its JSON name (repeat for each field; cannot be combined with --data-file)
  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for create
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations charges resolve-scenario

Resolve a pending simulated operation

Shell
raims simulations charges resolve-scenario ID [flags]

OAuth environments: Sandbox. Success responses: 200.

Example 1

Shell
raims --profile PROFILE --output json simulations charges resolve-scenario ID --data-file request.json --dry-run

Example 2

Shell
raims simulations charges resolve-scenario ID --action="boleto_issuance" --outcome="failed" --dry-run

Body fields

  • --action string required in the body sent only when supplied
    • Action to test: pix_issuance for Pix issuance, boleto_issuance for boleto issuance or cancellation for cancellation.
  • --outcome string required in the body sent only when supplied
    • Result for the pending action: completed completes the action; failed confirms failure.

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for resolve-scenario
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations refunds

Complete or fail simulated refunds

Shell
raims simulations refunds [flags]

Execution options

  • --help, -h bool default: false
    • help for refunds

See global options.

Subcommands: raims simulations refunds complete, raims simulations refunds fail.

raims simulations refunds complete

Complete a simulated refund

Shell
raims simulations refunds complete ID [flags]

OAuth environments: Sandbox. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json simulations refunds complete ID --dry-run

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for complete
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.

raims simulations refunds fail

Simulate a failed refund

Shell
raims simulations refunds fail ID [flags]

OAuth environments: Sandbox. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json simulations refunds fail ID --dry-run

Request headers

  • --idempotency-key string sent only when supplied
    • Reuse this optional idempotency key when retrying the same request

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for fail
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

See global options.