API reference · version 1.0.0Fusio · public API
Loading the address list…
Addresses in this part
A short list of addresses. Click an address and we show it to you above.
- put/v1/deals/{deal}/stageMove a deal to another stageMoves the deal to the new stage and returns it. Each stage has its own chance: discovery 20, qualification 35, proposal 50, negotiation 80.
- post/v1/deals/{deal}/reopenReopen a won or lost dealOpens a won or lost deal again and returns it. The close date and the reason of the loss are cleared.
- put/v1/deals/{deal}/line-itemsSet the items of a dealReplaces all items of the deal and returns the deal with new totals. Fusio counts the totals itself, so do not send net, tax, gross or sortOrder. The items keep the order of the list.
- put/v1/deals/{deal}/contactsSet the contacts of a dealReplaces all contacts of the deal and returns the deal. You can use only contacts of the lead of the deal; otherwise you get 422 on that leadContactId.
- get/v1/deals/overviewShow the numbers of your dealsReturns the numbers of your deals for a range of days: what is open, won and lost, and what you may win. Money is always per currency. Send compare=true to also get the range just before.
- get/v1/deals/gridList deals in a tableReturns deals page by page, ready for a table. Use filter, sort, page and perPage as the shape of the list says.
- get/v1/deals/optionsList deals for a pickerReturns deals as short items for a picker.
- get/v1/deals/board/summaryCount the deals on the boardReturns how many deals are in each column (stage) of the board. Use the same filter as for the columns.
- get/v1/deals/board/{status}List the deals of one board columnReturns the deals of one stage, page by page. Send nextCursor back as cursor to load more.
- post/v1/dealsAdd a dealAdds a deal for a lead and returns it. Each stage has its own chance: discovery 20, qualification 35, proposal 50, negotiation 80. Add items with deals.line-items.replace and contacts with deals.contacts.replace.
- get/v1/deals/{deal}Show a dealReturns the deal with its items, totals, contacts, documents, tasks and notes. Money is text, like 12500.00, so no cents get lost.
- put/v1/deals/{deal}Change a dealChanges the deal and returns it. Fields you leave out keep their value, but name is always needed.
- delete/v1/deals/{deal}Delete a dealDeletes an open deal. The answer has no data.