Docs
Checking Raims account
Raims CLIAPI commands

raims withdrawals

Inspect and request withdrawals

From command to result

A withdrawal request moves Production funds. Check the balance, limits, and destination before sending; an accepted response does not confirm credit at the destination.

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 conditions

    Shell
    raims --profile production --output json withdrawals limits

    Read minimum amounts, fees, availability, and destination configuration. Use withdrawal-destinations to review the default.

  2. Review the request

    Shell
    raims withdrawals create --amount-cents 25000 --expected-destination-id DESTINATION_ID --dry-run

    Amount and ID are illustrative. The preview neither reserves nor transfers funds. To send, use the Production credential and a stable idempotency key after review.

  3. Follow the returned ID

    Shell
    raims --profile production --output json withdrawals get WITHDRAWAL_ID

    After requesting, keep data.id and read its status. HTTP 202 remains pending; an unknown result requires follow-up before another request.

  4. Inspect the schedule separately

    Shell
    raims --profile production --output json withdrawals automatic-settings get

    To edit automatic withdrawals, read the settings, prepare automatic-settings update --time 10:00 --dry-run, and read again after the real request.

Choose a command

CommandPurpose
raims withdrawals automatic-settings getGet automatic withdrawal settings
raims withdrawals automatic-settings updateUpdate automatic withdrawal settings
raims withdrawals createRequest a withdrawal to the company's default Pix key
raims withdrawals getGet a withdrawal
raims withdrawals limitsGet withdrawal conditions and limits
raims withdrawals listList withdrawals
raims withdrawals summaryGet a summary of withdrawals in progress

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 withdrawals

Inspect and request withdrawals

Shell
raims withdrawals [flags]

Execution options

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

See global options.

Subcommands: raims withdrawals automatic-settings, raims withdrawals create, raims withdrawals get, raims withdrawals limits, raims withdrawals list, raims withdrawals summary.

raims withdrawals automatic-settings

Manage automatic withdrawal settings

Shell
raims withdrawals automatic-settings [flags]

Execution options

  • --help, -h bool default: false
    • help for automatic-settings

See global options.

Subcommands: raims withdrawals automatic-settings get, raims withdrawals automatic-settings update.

raims withdrawals automatic-settings get

Get automatic withdrawal settings

Shell
raims withdrawals automatic-settings get [flags]

OAuth environments: Production. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json withdrawals automatic-settings get --dry-run

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for get
  • --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 withdrawals automatic-settings update

Update automatic withdrawal settings

Shell
raims withdrawals automatic-settings update [flags]

OAuth environments: Production. Success responses: 200.

Example 1

Shell
raims --profile PROFILE --output json withdrawals automatic-settings update --data-file request.json --dry-run

Example 2

Shell
raims withdrawals automatic-settings update --time="10:00" --dry-run

Body fields

  • --enabled bool sent only when supplied
    • Enables or disables new withdrawal attempts. Disabling does not cancel withdrawals already requested.
  • --minimum-amount-cents integer sent only when supplied
    • Minimum balance for attempting a withdrawal, in Brazilian real cents. The withdrawn amount depends on the available balance and remaining Pix limit.
  • --time string sent only when supplied
    • Daily time in HH:mm format, in the São Paulo time zone.

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 update
  • --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 withdrawals create

Request a withdrawal to the company's default Pix key

Shell
raims withdrawals create [flags]

OAuth environments: Production. 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 withdrawals create --data-file request.json --dry-run

Example 2

Shell
raims withdrawals create --amount-cents=25000 --dry-run

Body fields

  • --amount-cents integer required in the body sent only when supplied
    • Total amount to withdraw, in Brazilian real cents, including the fee. Check the withdrawal conditions for the balance, fee, and limits before submitting a request.
  • --expected-destination-id string accepts null sent only when supplied
    • ID of the company's own destination that must remain selected as default. Copy the id returned by the destinations query. If the destination changes or becomes invalid, the withdrawal is rejected. Omitting this field or sending null uses the current default destination.

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 withdrawals get

Get a withdrawal

Shell
raims withdrawals get ID [flags]

OAuth environments: Sandbox, Production. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json withdrawals get ID --dry-run

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for get
  • --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 withdrawals limits

Get withdrawal conditions and limits

Shell
raims withdrawals limits [flags]

OAuth environments: Sandbox, Production. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json withdrawals limits --dry-run

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for limits
  • --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 withdrawals list

List withdrawals

Shell
raims withdrawals list [flags]

OAuth environments: Sandbox, Production. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json withdrawals list --dry-run

Query filters

  • --after string sent only when supplied
    • Read after this opaque cursor (cannot be combined with --before)
  • --before string sent only when supplied
    • Read before this opaque cursor (cannot be combined with --after)
  • --page-size int64 sent only when supplied
    • Results per page (the API normalizes the requested size)
  • --requested-gte int64 sent only when supplied
    • Requested at or after this Unix timestamp (seconds)
  • --requested-lte int64 sent only when supplied
    • Requested at or before this Unix timestamp (seconds)
  • --sort-order string sent only when supplied
    • Sort direction: asc or desc
  • --status string sent only when supplied
    • Filter by comma-separated withdrawal status names

Execution options

  • --all bool default: false
    • Read all pages as separate results (JSON Lines with --output json)
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for list
  • --max-pages int default: 100
    • Maximum pages to read with --all (1-10000)
  • --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 withdrawals summary

Get a summary of withdrawals in progress

Shell
raims withdrawals summary [flags]

OAuth environments: Production. Success responses: 200.

Example

Shell
raims --profile PROFILE --output json withdrawals summary --dry-run

Execution options

  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for summary
  • --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.