Docs
Checking Raims account
Raims CLIAPI commands

raims customers

Manage customers

Look up syntax, arguments, and options for each command. Use raims COMMAND --help to read the help in your terminal.

raims customers

Manage customers

Shell
raims customers [flags]
  • --help, -h bool default: false
    • help for customers

Subcommands: raims customers create, raims customers delete, raims customers delete-batch, raims customers get, raims customers list, raims customers update.

raims customers create

Create or update a customer by tax ID

Shell
raims customers create [flags]
  • --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)
  • --city string default: empty
    • Set JSON body field city (string, nullable)
  • --complement string default: empty
    • Set JSON body field complement (string, nullable)
  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dial-code string default: empty
    • Set JSON body field dial_code (string, nullable)
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --email string default: empty
    • Set JSON body field email (string, nullable)
  • --external-reference string default: empty
    • Set JSON body field external_reference (string, nullable)
  • --full-name string default: empty
    • Set JSON body field full_name (string, nullable)
  • --help, -h bool default: false
    • help for create
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --metadata stringArray default: empty
    • Set a metadata text value as KEY=VALUE (repeat for each key; dots in keys are literal)
  • --metadata-empty bool default: false
    • Send an empty metadata object; an update preserves existing keys
  • --metadata-null stringArray default: []
    • Send null for a metadata key (repeat for each key; removes it when updating)
  • --neigh string default: empty
    • Set JSON body field neigh (string, nullable)
  • --phone-local string default: empty
    • Set JSON body field phone_local (string, nullable)
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --street string default: empty
    • Set JSON body field street (string, nullable)
  • --street-number string default: empty
    • Set JSON body field street_number (string, nullable)
  • --tax-id string default: empty
    • Set JSON body field tax_id (string, required in the body)
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)
  • --uf string default: empty
    • Set JSON body field uf (string, nullable)
  • --zip-code string default: empty
    • Set JSON body field zip_code (string, nullable)

Command example

Shell
raims --profile PROFILE --output json customers create --data-file request.json --dry-run
raims customers create --tax-id="12345678909" --dry-run

raims customers delete

Delete a customer

Shell
raims customers delete ID [flags]
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for delete
  • --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)

Command example

Shell
raims --profile PROFILE --output json customers delete ID --dry-run

raims customers delete-batch

Delete the customers listed in the request body

Shell
raims customers delete-batch [flags]
  • --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 delete-batch
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --identifiers stringArray default: empty
    • Set JSON body field identifiers (array<string>, repeat the option for each item, required in the body)
  • --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)

Command example

Shell
raims --profile PROFILE --output json customers delete-batch --data-file request.json --dry-run
raims customers delete-batch --identifiers="cus_3AbHiWSrsZBoaTg47OcMzC" --identifiers="cus_1szWVIyZES2MJoAMUmjwW" --dry-run

raims customers get

Get a customer

Shell
raims customers get ID [flags]
  • --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)

Command example

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

raims customers list

List customers

Shell
raims customers list [flags]
  • --after string default: empty
    • Read after this opaque cursor (cannot be combined with --before)
  • --all bool default: false
    • Read all pages as separate results (JSON Lines with --output json)
  • --before string default: empty
    • Read before this opaque cursor (cannot be combined with --after)
  • --document string default: empty
    • Filter by customer tax ID
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --email string default: empty
    • Filter by email address
  • --external-reference string default: empty
    • Filter by external reference
  • --help, -h bool default: false
    • help for list
  • --identifier string default: empty
    • Filter by public resource identifier
  • --max-pages int default: 100
    • Maximum pages to read with --all (1-10000)
  • --name string default: empty
    • Filter by customer name
  • --page-size int64 default: 10
    • Results per page (the API normalizes the requested size)
  • --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)

Command example

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

raims customers update

Update a customer

Shell
raims customers update ID [flags]
  • --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)
  • --city string default: empty
    • Set JSON body field city (string, nullable)
  • --complement string default: empty
    • Set JSON body field complement (string, nullable)
  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dial-code string default: empty
    • Set JSON body field dial_code (string, nullable)
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --email string default: empty
    • Set JSON body field email (string, nullable)
  • --external-reference string default: empty
    • Set JSON body field external_reference (string, nullable)
  • --full-name string default: empty
    • Set JSON body field full_name (string, nullable)
  • --help, -h bool default: false
    • help for update
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --metadata stringArray default: empty
    • Set a metadata text value as KEY=VALUE (repeat for each key; dots in keys are literal)
  • --metadata-empty bool default: false
    • Send an empty metadata object; an update preserves existing keys
  • --metadata-null stringArray default: []
    • Send null for a metadata key (repeat for each key; removes it when updating)
  • --neigh string default: empty
    • Set JSON body field neigh (string, nullable)
  • --phone-local string default: empty
    • Set JSON body field phone_local (string, nullable)
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --street string default: empty
    • Set JSON body field street (string, nullable)
  • --street-number string default: empty
    • Set JSON body field street_number (string, nullable)
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)
  • --uf string default: empty
    • Set JSON body field uf (string, nullable)
  • --zip-code string default: empty
    • Set JSON body field zip_code (string, nullable)

Command example

Shell
raims --profile PROFILE --output json customers update ID --data-file request.json --dry-run
raims customers update ID --email="atualizado@example.invalid" --dry-run