Pular para o conteúdo

POST /v1/deals/{id}/fill-suggestions

POST
/v1/deals/{id}/fill-suggestions
curl --request POST \
--url https://seu-endereco-da-api/v1/deals/example/fill-suggestions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "stageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Permissão que a Chave de acesso precisa: Criar e mover negócios (deals:manage).

id
required
string
Media typeapplication/json
object
stageId
required
string format: uuid

Example generated

{
"stageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
Media typeapplication/json
object
suggestions
required

Only the required fields still blank and the expected close date the stage asks for that the conversation answers; nothing is saved

Array<object>
object
fieldId

The custom field (contact, company or deal) the value fills; absent when target is expected_close or value

string
target
required

Value only comes from data-suggestions

string
Allowed values: field expected_close value
value
required

Already valid for the field type: text, number, boolean, one option or a list of options; expected_close is AAAA-MM-DD; value is the deal value in cents

object
quote
required

The words of the conversation that show the value

string
reason

Why the AI was not asked; the list is empty and nothing was charged

string
Allowed values: disabled no_credit monthly_cap no_conversation

Example

{
"suggestions": [
{
"target": "field"
}
],
"reason": "disabled"
}

Stage of another pipeline, or the intake stage

The AI could not answer