Raims CLIComandos da API
raims customers
Gerencie os clientes.
Consulte a sintaxe, os argumentos e as opções de cada comando. Use raims COMANDO --help para ler a ajuda no terminal.
raims customers
Gerencie os clientes.
Shell
raims customers [flags]--help,-hboolpadrão: false- Exibe a ajuda de customers.
--colorstringpadrão: auto- Cores no terminal: auto, on ou off. JSON e scripts de autocompletar continuam sem cores.
--debugboolpadrão: false- Envia eventos de diagnóstico em JSON para stderr, sem credenciais nem argumentos do comando.
--environmentstringpadrão: vazio- Selecione sandbox ou production para OAuth ou uma prévia OAuth; a chave de API define o próprio ambiente.
--mapstringpadrão: vazio- Liste a árvore de comandos sem executar uma ação: tree, compact, paths ou json.
--no-inputboolpadrão: false- Desativa perguntas durante a execução; também se aplica em CI e quando não há um terminal.
--output,-ostringpadrão: text- Formato da saída: text ou json.
--profilestringpadrão: vazio- Usa um perfil neste comando, com prioridade sobre RAIMS_PROFILE e o padrão salvo.
Subcomandos: raims customers create, raims customers delete, raims customers delete-batch, raims customers get, raims customers list, raims customers update.
raims customers create
Cadastre ou atualize um cliente pelo CPF ou CNPJ.
Shell
raims customers create [flags]--body-nullstringArraypadrão: []- Envie null em um campo do corpo que aceite esse valor, usando o nome JSON; repita para outros campos e não combine com --data-file.
--citystringpadrão: vazio- Defina city no corpo JSON: texto que aceita null.
--complementstringpadrão: vazio- Defina complement no corpo JSON: texto que aceita null.
--data-filestringpadrão: vazio- Leia o corpo JSON de um arquivo UTF-8 ou use '-' para stdin.
--dial-codestringpadrão: vazio- Defina dial_code no corpo JSON: texto que aceita null.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--emailstringpadrão: vazio- Defina email no corpo JSON: texto que aceita null.
--external-referencestringpadrão: vazio- Defina external_reference no corpo JSON: texto que aceita null.
--full-namestringpadrão: vazio- Defina full_name no corpo JSON: texto que aceita null.
--help,-hboolpadrão: false- Exibe a ajuda de create.
--idempotency-keystringpadrão: vazio- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
--metadatastringArraypadrão: vazio- Defina um texto de metadata como CHAVE=VALOR; repita para outras chaves. Pontos nas chaves são literais.
--metadata-emptyboolpadrão: false- Envie metadata vazio; na atualização, as chaves existentes são preservadas.
--metadata-nullstringArraypadrão: []- Envie null para uma chave de metadata; repita para outras chaves. Na atualização, a chave é removida.
--neighstringpadrão: vazio- Defina neigh no corpo JSON: texto que aceita null.
--phone-localstringpadrão: vazio- Defina phone_local no corpo JSON: texto que aceita null.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--streetstringpadrão: vazio- Defina street no corpo JSON: texto que aceita null.
--street-numberstringpadrão: vazio- Defina street_number no corpo JSON: texto que aceita null.
--tax-idstringpadrão: vazio- Defina tax_id no corpo JSON: texto obrigatório.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
--ufstringpadrão: vazio- Defina uf no corpo JSON: texto que aceita null.
--zip-codestringpadrão: vazio- Defina zip_code no corpo JSON: texto que aceita null.
--colorstringpadrão: auto- Cores no terminal: auto, on ou off. JSON e scripts de autocompletar continuam sem cores.
--debugboolpadrão: false- Envia eventos de diagnóstico em JSON para stderr, sem credenciais nem argumentos do comando.
--environmentstringpadrão: vazio- Selecione sandbox ou production para OAuth ou uma prévia OAuth; a chave de API define o próprio ambiente.
--mapstringpadrão: vazio- Liste a árvore de comandos sem executar uma ação: tree, compact, paths ou json.
--no-inputboolpadrão: false- Desativa perguntas durante a execução; também se aplica em CI e quando não há um terminal.
--output,-ostringpadrão: text- Formato da saída: text ou json.
--profilestringpadrão: vazio- Usa um perfil neste comando, com prioridade sobre RAIMS_PROFILE e o padrão salvo.
Create or update a customer by tax ID.
POST /v1/customers
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, Production.
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:
city string optional, nullable
complement string optional, nullable
dial_code string optional, nullable
email string optional, nullable
external_reference string optional, nullable
full_name string optional, nullable
metadata object optional, nullable
neigh string optional, nullable
phone_local string optional, nullable
street string optional, nullable
street_number string optional, nullable
tax_id string required
uf string optional, nullable
zip_code 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):
{
"full_name": "Cliente de teste",
"tax_id": "12345678909",
"email": "cliente@example.invalid",
"dial_code": "55",
"phone_local": "11987654321",
"zip_code": "01310000",
"street": "Avenida de exemplo",
"street_number": "100",
"complement": "Sala 1",
"neigh": "Centro",
"city": "São Paulo",
"uf": "SP"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.
Metadata options send a text map: repeat --metadata KEY=VALUE for values, use --metadata-null KEY for a null value, or --metadata-empty for an empty object. Empty text, numeric-looking values and the text null remain strings. Omitted metadata and an empty object preserve existing keys when updating; null values remove individual keys, and --body-null metadata clears the entire map. Do not combine these options with --data-file, or use multiple values for the same key.Exemplo do comando
Shell
raims --profile PROFILE --output json customers create --data-file request.json --dry-run
raims customers create --tax-id="12345678909" --dry-runraims customers delete
Exclua um cliente.
Shell
raims customers delete ID [flags]--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de delete.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
--colorstringpadrão: auto- Cores no terminal: auto, on ou off. JSON e scripts de autocompletar continuam sem cores.
--debugboolpadrão: false- Envia eventos de diagnóstico em JSON para stderr, sem credenciais nem argumentos do comando.
--environmentstringpadrão: vazio- Selecione sandbox ou production para OAuth ou uma prévia OAuth; a chave de API define o próprio ambiente.
--mapstringpadrão: vazio- Liste a árvore de comandos sem executar uma ação: tree, compact, paths ou json.
--no-inputboolpadrão: false- Desativa perguntas durante a execução; também se aplica em CI e quando não há um terminal.
--output,-ostringpadrão: text- Formato da saída: text ou json.
--profilestringpadrão: vazio- Usa um perfil neste comando, com prioridade sobre RAIMS_PROFILE e o padrão salvo.
Delete a customer.
DELETE /v1/customers/{id}
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, Production.Exemplo do comando
Shell
raims --profile PROFILE --output json customers delete ID --dry-runraims customers delete-batch
Exclua os clientes informados no corpo da requisição.
Shell
raims customers delete-batch [flags]--data-filestringpadrão: vazio- Leia o corpo JSON de um arquivo UTF-8 ou use '-' para stdin.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de delete-batch.
--idempotency-keystringpadrão: vazio- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
--identifiersstringArraypadrão: vazio- Defina identifiers no corpo JSON: lista obrigatória de textos; repita a opção para cada item.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
--colorstringpadrão: auto- Cores no terminal: auto, on ou off. JSON e scripts de autocompletar continuam sem cores.
--debugboolpadrão: false- Envia eventos de diagnóstico em JSON para stderr, sem credenciais nem argumentos do comando.
--environmentstringpadrão: vazio- Selecione sandbox ou production para OAuth ou uma prévia OAuth; a chave de API define o próprio ambiente.
--mapstringpadrão: vazio- Liste a árvore de comandos sem executar uma ação: tree, compact, paths ou json.
--no-inputboolpadrão: false- Desativa perguntas durante a execução; também se aplica em CI e quando não há um terminal.
--output,-ostringpadrão: text- Formato da saída: text ou json.
--profilestringpadrão: vazio- Usa um perfil neste comando, com prioridade sobre RAIMS_PROFILE e o padrão salvo.
Delete the customers listed in the request body.
DELETE /v1/customers
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, Production.
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:
identifiers array<string | null> 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):
{
"identifiers": [
"cus_3AbHiWSrsZBoaTg47OcMzC",
"cus_1szWVIyZES2MJoAMUmjwW"
]
}
Example values are illustrative. Replace resource IDs and review the request before sending it.Exemplo do comando
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-runraims customers get
Consulte um cliente.
Shell
raims customers get ID [flags]--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de get.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
--colorstringpadrão: auto- Cores no terminal: auto, on ou off. JSON e scripts de autocompletar continuam sem cores.
--debugboolpadrão: false- Envia eventos de diagnóstico em JSON para stderr, sem credenciais nem argumentos do comando.
--environmentstringpadrão: vazio- Selecione sandbox ou production para OAuth ou uma prévia OAuth; a chave de API define o próprio ambiente.
--mapstringpadrão: vazio- Liste a árvore de comandos sem executar uma ação: tree, compact, paths ou json.
--no-inputboolpadrão: false- Desativa perguntas durante a execução; também se aplica em CI e quando não há um terminal.
--output,-ostringpadrão: text- Formato da saída: text ou json.
--profilestringpadrão: vazio- Usa um perfil neste comando, com prioridade sobre RAIMS_PROFILE e o padrão salvo.
Get a customer.
GET /v1/customers/{id}
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, Production.Exemplo do comando
Shell
raims --profile PROFILE --output json customers get ID --dry-runraims customers list
Liste os clientes.
Shell
raims customers list [flags]--afterstringpadrão: vazio- Consulte após este cursor opaco. Não combine com --before.
--allboolpadrão: false- Leia todas as páginas como resultados separados. Com --output json, a saída usa JSON Lines.
--beforestringpadrão: vazio- Consulte antes deste cursor opaco. Não combine com --after.
--documentstringpadrão: vazio- Filtre pelo CPF ou CNPJ do cliente.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--emailstringpadrão: vazio- Filtre pelo endereço de e-mail.
--external-referencestringpadrão: vazio- Filtre pela referência externa.
--help,-hboolpadrão: false- Exibe a ajuda de list.
--identifierstringpadrão: vazio- Filtre pelo identificador público do recurso.
--max-pagesintpadrão: 100- Limite de páginas com --all, entre 1 e 10000.
--namestringpadrão: vazio- Filtre pelo nome do cliente.
--page-sizeint64padrão: 10- Quantidade de resultados por página. A API ajusta o tamanho solicitado.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
--colorstringpadrão: auto- Cores no terminal: auto, on ou off. JSON e scripts de autocompletar continuam sem cores.
--debugboolpadrão: false- Envia eventos de diagnóstico em JSON para stderr, sem credenciais nem argumentos do comando.
--environmentstringpadrão: vazio- Selecione sandbox ou production para OAuth ou uma prévia OAuth; a chave de API define o próprio ambiente.
--mapstringpadrão: vazio- Liste a árvore de comandos sem executar uma ação: tree, compact, paths ou json.
--no-inputboolpadrão: false- Desativa perguntas durante a execução; também se aplica em CI e quando não há um terminal.
--output,-ostringpadrão: text- Formato da saída: text ou json.
--profilestringpadrão: vazio- Usa um perfil neste comando, com prioridade sobre RAIMS_PROFILE e o padrão salvo.
List customers.
GET /v1/customers
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, Production.Exemplo do comando
Shell
raims --profile PROFILE --output json customers list --dry-runraims customers update
Atualize um cliente.
Shell
raims customers update ID [flags]--body-nullstringArraypadrão: []- Envie null em um campo do corpo que aceite esse valor, usando o nome JSON; repita para outros campos e não combine com --data-file.
--citystringpadrão: vazio- Defina city no corpo JSON: texto que aceita null.
--complementstringpadrão: vazio- Defina complement no corpo JSON: texto que aceita null.
--data-filestringpadrão: vazio- Leia o corpo JSON de um arquivo UTF-8 ou use '-' para stdin.
--dial-codestringpadrão: vazio- Defina dial_code no corpo JSON: texto que aceita null.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--emailstringpadrão: vazio- Defina email no corpo JSON: texto que aceita null.
--external-referencestringpadrão: vazio- Defina external_reference no corpo JSON: texto que aceita null.
--full-namestringpadrão: vazio- Defina full_name no corpo JSON: texto que aceita null.
--help,-hboolpadrão: false- Exibe a ajuda de update.
--idempotency-keystringpadrão: vazio- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
--metadatastringArraypadrão: vazio- Defina um texto de metadata como CHAVE=VALOR; repita para outras chaves. Pontos nas chaves são literais.
--metadata-emptyboolpadrão: false- Envie metadata vazio; na atualização, as chaves existentes são preservadas.
--metadata-nullstringArraypadrão: []- Envie null para uma chave de metadata; repita para outras chaves. Na atualização, a chave é removida.
--neighstringpadrão: vazio- Defina neigh no corpo JSON: texto que aceita null.
--phone-localstringpadrão: vazio- Defina phone_local no corpo JSON: texto que aceita null.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--streetstringpadrão: vazio- Defina street no corpo JSON: texto que aceita null.
--street-numberstringpadrão: vazio- Defina street_number no corpo JSON: texto que aceita null.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
--ufstringpadrão: vazio- Defina uf no corpo JSON: texto que aceita null.
--zip-codestringpadrão: vazio- Defina zip_code no corpo JSON: texto que aceita null.
--colorstringpadrão: auto- Cores no terminal: auto, on ou off. JSON e scripts de autocompletar continuam sem cores.
--debugboolpadrão: false- Envia eventos de diagnóstico em JSON para stderr, sem credenciais nem argumentos do comando.
--environmentstringpadrão: vazio- Selecione sandbox ou production para OAuth ou uma prévia OAuth; a chave de API define o próprio ambiente.
--mapstringpadrão: vazio- Liste a árvore de comandos sem executar uma ação: tree, compact, paths ou json.
--no-inputboolpadrão: false- Desativa perguntas durante a execução; também se aplica em CI e quando não há um terminal.
--output,-ostringpadrão: text- Formato da saída: text ou json.
--profilestringpadrão: vazio- Usa um perfil neste comando, com prioridade sobre RAIMS_PROFILE e o padrão salvo.
Update a customer.
PATCH /v1/customers/{id}
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, Production.
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:
city string optional, nullable
complement string optional, nullable
dial_code string optional, nullable
email string optional, nullable
external_reference string optional, nullable
full_name string optional, nullable
metadata object optional, nullable
neigh string optional, nullable
phone_local string optional, nullable
street string optional, nullable
street_number string optional, nullable
uf string optional, nullable
zip_code 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):
{
"full_name": "Cliente atualizado",
"email": "atualizado@example.invalid"
}
Example values are illustrative. Replace resource IDs and review the request before sending it.
Metadata options send a text map: repeat --metadata KEY=VALUE for values, use --metadata-null KEY for a null value, or --metadata-empty for an empty object. Empty text, numeric-looking values and the text null remain strings. Omitted metadata and an empty object preserve existing keys when updating; null values remove individual keys, and --body-null metadata clears the entire map. Do not combine these options with --data-file, or use multiple values for the same key.Exemplo do comando
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