Docs
Checking Raims account
Raims CLIAPI commands

raims refunds

Inspect refunds and receipts

From command to result

Refund requests use charges refunds create. This group reads the refund, history, and receipt when available.

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 eligibility

    Shell
    raims --profile sandbox --output json charges refund-eligibility CHARGE_ID

    The read reports what can be requested now. It does not reserve funds or create a refund.

  2. Prepare the request

    Shell
    raims charges refunds create CHARGE_ID --amount-cents 2500 --dry-run

    Review the explicit amount in cents. To request it, use the profile and an operation idempotency key after removing --dry-run; keep the returned refund ID.

  3. Follow before downloading a receipt

    Shell
    raims --profile sandbox --output json refunds get REFUND_ID

    Read the refund status. After confirming the result, use refunds receipt REFUND_ID --save estorno.pdf when a receipt is available. A read does not request another refund.

Choose a command

CommandPurpose
raims refunds getGet a refund
raims refunds listList refunds
raims refunds receiptGet the refund receipt download information

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 refunds

Inspect refunds and receipts

Shell
raims refunds [flags]

Execution options

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

See global options.

Subcommands: raims refunds get, raims refunds list, raims refunds receipt.

raims refunds get

Get a refund

Shell
raims refunds get ID [flags]

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

Example

Shell
raims --profile PROFILE --output json refunds 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 refunds list

List refunds

Shell
raims refunds list [flags]

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

Example

Shell
raims --profile PROFILE --output json refunds 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)
  • --created-gte int64 sent only when supplied
    • Created at or after this Unix timestamp (seconds)
  • --created-lte int64 sent only when supplied
    • Created at or before this Unix timestamp (seconds)
  • --page-size int64 sent only when supplied
    • Results per page (the API normalizes the requested size)

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 refunds receipt

Get the refund receipt download information

Shell
raims refunds receipt ID [flags]

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

Example

Shell
raims --profile PROFILE --output json refunds receipt 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 receipt
  • --save string default: empty
    • Save the PDF to PATH (up to 32 MiB); the parent directory must exist and the file must not exist
  • --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.