Documentação da API

API de Formas de pagamento do fornecedor

Cadastro de destinos de pagamento por fornecedor

4 endpoints · base https://api.comando.one/v1 · autenticação por chave cmd_live_…

GET/suppliers/{id}/payment-methods

Listar formas de pagamento do fornecedor

suppliers:read

Parâmetros, corpo, resposta e exemplo

Parâmetros

idobrigatório(path)string (uuid)

Resposta 200 — Formas de pagamento

idstring (uuid)
supplier_idstring (uuid)
labelstring
type"pix" | "transfer" | "boleto" | "other"
is_defaultboolean
notesstring | null
pix_key_type"cpf" | "cnpj" | "email" | "phone" | "random" | null
pix_keystring | null
bank_codestring | null
bank_namestring | null
agencystring | null
account_numberstring | null
account_type"corrente" | "poupanca" | null
holder_namestring | null
holder_documentstring | null
created_atstring (date-time)
updated_atstring (date-time)

Exemplo

curl -X GET "https://api.comando.one/v1/suppliers/{id}/payment-methods" \
  -H "Authorization: Bearer cmd_live_SUA_CHAVE"
POST/suppliers/{id}/payment-methods

Cadastrar forma de pagamento

suppliers:write

Parâmetros, corpo, resposta e exemplo

Parâmetros

idobrigatório(path)string (uuid)

Corpo (JSON)

typeobrigatório"pix" | "transfer" | "boleto" | "other"
labelstring
is_defaultboolean
notesstring
pix_key_type"cpf" | "cnpj" | "email" | "phone" | "random"
pix_keystringObrigatório para type=pix
bank_codestring
bank_namestring
agencystring
account_numberstring
account_type"corrente" | "poupanca"
holder_namestring
holder_documentstring

Resposta 201 — Criada

idstring (uuid)
supplier_idstring (uuid)
labelstring
type"pix" | "transfer" | "boleto" | "other"
is_defaultboolean
notesstring | null
pix_key_type"cpf" | "cnpj" | "email" | "phone" | "random" | null
pix_keystring | null
bank_codestring | null
bank_namestring | null
agencystring | null
account_numberstring | null
account_type"corrente" | "poupanca" | null
holder_namestring | null
holder_documentstring | null
created_atstring (date-time)
updated_atstring (date-time)

Exemplo

curl -X POST "https://api.comando.one/v1/suppliers/{id}/payment-methods" \
  -H "Authorization: Bearer cmd_live_SUA_CHAVE" \
  -H "Content-Type: application/json" \
  -d '{"type":"<\"pix\" | \"transfer\" | \"boleto\" | \"other\">"}'
DELETE/suppliers/{id}/payment-methods/{methodId}

Excluir forma de pagamento

suppliers:delete

Parâmetros, corpo, resposta e exemplo

Parâmetros

idobrigatório(path)string (uuid)
methodIdobrigatório(path)string (uuid)

Resposta 204 — Excluída

Sem corpo.

Exemplo

curl -X DELETE "https://api.comando.one/v1/suppliers/{id}/payment-methods/{methodId}" \
  -H "Authorization: Bearer cmd_live_SUA_CHAVE"
PATCH/suppliers/{id}/payment-methods/{methodId}

Atualizar forma de pagamento

suppliers:write

Parâmetros, corpo, resposta e exemplo

Parâmetros

idobrigatório(path)string (uuid)
methodIdobrigatório(path)string (uuid)

Corpo (JSON)

typeobrigatório"pix" | "transfer" | "boleto" | "other"
labelstring
is_defaultboolean
notesstring
pix_key_type"cpf" | "cnpj" | "email" | "phone" | "random"
pix_keystringObrigatório para type=pix
bank_codestring
bank_namestring
agencystring
account_numberstring
account_type"corrente" | "poupanca"
holder_namestring
holder_documentstring

Resposta 200 — Atualizada

idstring (uuid)
supplier_idstring (uuid)
labelstring
type"pix" | "transfer" | "boleto" | "other"
is_defaultboolean
notesstring | null
pix_key_type"cpf" | "cnpj" | "email" | "phone" | "random" | null
pix_keystring | null
bank_codestring | null
bank_namestring | null
agencystring | null
account_numberstring | null
account_type"corrente" | "poupanca" | null
holder_namestring | null
holder_documentstring | null
created_atstring (date-time)
updated_atstring (date-time)

Exemplo

curl -X PATCH "https://api.comando.one/v1/suppliers/{id}/payment-methods/{methodId}" \
  -H "Authorization: Bearer cmd_live_SUA_CHAVE" \
  -H "Content-Type: application/json" \
  -d '{"type":"<\"pix\" | \"transfer\" | \"boleto\" | \"other\">"}'

Início rápido, autenticação, SDK, servidor MCP e o playground para testar sem escrever código estão na documentação completa. A especificação em OpenAPI está em api.comando.one/openapi.json.

Outros recursos da API

Ou deixe a IA usar a API por você

O servidor MCP expõe estes mesmos recursos ao ChatGPT, Claude ou Gemini — com OAuth, sem chave de API.

Conectar um assistente