get_pipeline
Get the deals pipeline
Read this account’s deals pipeline: its stages (id, label, kind open/won/lost, milestone) and the fields a deal carries (key, label, type, options). Read it first: move_deal takes a stage id from here and create_deal and update_deal take field keys from here. pipeline is null when the account has not created one; creating it is done in the dashboard.
Solo lectura · Idempotente: Sí
Sin entradas.
search_deals
Search deals
Search the deals of this account: by stage, by kind of stage (open, won, lost), by contact, by days stuck in their stage (minDaysInStage), by text in the title (q, 2 to 80 characters) or by days since they closed. With no filter it lists the deals of every stage that is not archived. Paged: pass nextCursor back as cursor. count and totals (money per currency) cover everything the filter reaches, not only the page.
Solo lectura · Idempotente: Sí
Entradas
get_deal
Get a deal
Read one deal and its history: the stage it is in and since when, its value, expected date and fields, and the last 20 changes of stage (newest first) with who made each, through which door, and why. A change made through a connection names it in grant.clientName.
Solo lectura · Idempotente: Sí
Entradas
create_deal
Create a deal
Create a deal for a contact, in the first open stage unless stageId says another. Name the contact with contactId, or declare a person with contact {email, phone, name} (at least an email or a phone) when they are not in the account yet. fields are by the keys get_pipeline shows, each of the type it declares. reason (1 to 500 characters) is recorded in the deal history. idempotencyKey (8 to 128 characters, yours to choose) makes a retry safe: the same key answers the deal the first call made instead of a second one. What you write is recorded as written by this person through this connection.
Escritura · Idempotente: Sí
Entradas
Entradas anidadas, como JSON Schema:
update_deal
Edit a deal
Edit a deal: its title, value (amountMinor with currency), expected date (YYYY-MM-DD) and fields by the keys get_pipeline shows. Only what you name is written; null clears an optional value. It does not change the stage: that is move_deal. Pass expectedUpdatedAt (the deal updatedAt you read) to refuse the edit if someone changed the deal since. What you write is recorded as written by this person through this connection.
Escritura · Idempotente: No
Entradas
Entradas anidadas, como JSON Schema: