Actions34
- Cliente Actions
- Catálogo Actions
- Pedido Actions
- Conversa Actions
- Contexto Actions
- Telemetria Actions
- Canal WhatsApp Actions
- Paciente Actions
- Procedimento Actions
- Agenda Actions
- Agendamento Actions
- Lembrete Odonto Actions
Pedido → Confirmar Cotação
AI-generatedSummary
Confirm the active quotation (cotação) for a client by verifying its ID, version, and client phone number, optionally including the client name, to create exactly one corresponding order transactionally. Throws an error if there is a mismatch, returning a new summary.
Inputs
- Cotação ID (required) — The quotation ID returned by a previous Cotar operation; provided via workflow expression.
- Cotação Versão (required) — The quotation version number returned by Cotar.
- Telefone do Cliente (required) — Normalized client phone number used to identify the client associated with the quotation.
- Nome do Cliente — Optional client name; used to provide name information at confirmation time.
- Token ID Dinamico — Optional dynamic token for multi-tenant systems, used with dynamic Signing Secret.
- Signing Secret Dinamico — Optional ephemeral signing secret, used along with the dynamic Token ID; should not be logged.
Output shape
a JSON object indicating the result of the confirmation, including success or detailed error (e.g., 409 on divergence) with a new summary if applicable.
The operation sends a signed POST request to /api/v1/agent/pedido/cotacao/{cotacaoId}/confirmar with body containing cotacao_version, cliente_telefone, and optionally cliente_nome. It uses a deterministic idempotency key 'quote-confirm:{cotacaoId}:{cotacaoVersion}' to avoid duplicate processing.
Examples
Example 1: Confirm a quotation for client 5511999999999 with quotation ID 'abc123' version 2, including client name 'Maria'.
Set 'Cotação ID' to 'abc123', 'Cotação Versão' to 2, 'Telefone do Cliente' to '5511999999999', and 'Nome do Cliente' to 'Maria' in the node parameters.