Quotes
Create a quote, get it approved, send it for signature and follow the signature.
Create a quote
curl -s "$FLITO_URL/api/cap/quote.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {
"companyId": "cmp_…",
"contactId": "con_…",
"name": "Acme, first order",
"paymentTerms": "Net 30",
"lineItems": [
{"productId": "prd_…", "quantity": 10, "unitPrice": 129.5},
{"name": "Installation", "quantity": 1, "unitPrice": 800}
],
"discountAmount": 100,
"taxAmount": 172.84
}}'- Each line is a catalog product (
productId) or a free line (name), withquantityandunitPrice.lineTotaldefaults to quantity times price. - The total is the line subtotal plus
freightCost,additionalFeesandtaxAmount, lessdiscountAmount. These are amounts, not rates.taxExempt: truedrops the tax. - With a
companyIdand nodealId, Flito opens a deal for the quote. - The quote number is the next
QT-0001-style number unless you passquoteNumber. - The quote is dated today in the workspace's time zone and expires 30 days later unless the workspace sets otherwise or you pass
quoteExpirationDate.
quote.update changes it: send the whole lineItems list, or add, change and remove lines by id, not both.
Approval
A quote waits for approval (quoteReviewStatus: "pending_review") when:
- the person who made it does not hold the
quotes:reviewscope, or - the workspace requires approval for every quote, or
- someone without
quotes:reviewchanges its lines, prices, terms, dates or addresses after it was approved.
Someone with quotes:review approves or rejects it:
curl -s "$FLITO_URL/api/cap/quote.review" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "status": "approved", "reviewer": "Jane Doe"}, "approved": true}'A rejected quote moves to needs_revision. quote.request_approval puts a quote back in the queue. quote.overview lists what waits on you: quotes to approve, quotes out for signature, drafts.
Send it for signature
curl -s "$FLITO_URL/api/cap/quote.send" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "recipientEmails": ["ada@acme.com"], "signerName": "Ada Lovelace"}, "approved": true}'- It needs
"approved": trueand bothquotes:writeandesign:send. - It is refused while the quote waits for approval, unless the sender holds
quotes:review, in which case it counts as approved by them. - It moves the deal to its Quote Sent stage where the pipeline has one, and emails each signer a link to sign. The answer includes
signingInvites: each signer's email, signing link and whether the email went out. - Up to two signers;
ccRecipientsget a copy.
Follow the signature
The signer opens /sign/…, reads the quote and signs it in the browser. When the last signer signs, the quote becomes signed and its deal moves to its Quote Signed stage.
esign.listwith{"quoteId": "qte_…"}lists the quote's envelopes. An envelope issent,viewed,signed,completed,declinedorvoided.esign.getshows one envelope, its signers and each step of its audit trail.esign.document_accesswith{"envelopeId": "…"}returns links to the signed PDF and its certificate once the envelope iscompleted. The links last up to 15 minutes; ask again for fresh ones.esign.envelope_voidcancels an envelope; its signing links stop working.
To keep a quote's status in your own system without polling, have an automation watch for quote updates and call your system with an HTTP request.
Share links
People can share a quote or an invoice from the app as a link that opens it on its own page, with Download PDF. document.revoke_share with {"token": "shr_…"} turns a link off; it then answers 410.
Capabilities
| Capability | What it does | Kind |
|---|---|---|
| document.revoke_share | Revoke share link | write |
| esign.document_access | Access signed document | write |
| esign.email_quote | Send for signature | write, needs approval |
| esign.envelope_create | Send for signature | write, needs approval |
| esign.envelope_void | Void envelope | write |
| esign.get | Get envelope | read |
| esign.list | List envelopes | read |
| esign.quote_email_draft | Signature email draft | read |
| product.create | Create product | write |
| product.get | Get product | read |
| product.list | List products | read |
| product.resolve | Resolve | read |
| product.update | Update product | write |
| quote.attach_document | Attach document to quote | write |
| quote.create | Create quote | write |
| quote.delete | Delete quote | write, needs approval |
| quote.detach_document | Detach document from quote | write |
| quote.get | Get quote | read |
| quote.list | List quotes | read |
| quote.overview | Overview | read |
| quote.pdf_generate | Generate quote PDF | write |
| quote.prepare | Prepare | read |
| quote.request_approval | Ask for approval | write |
| quote.review | Review quote | write |
| quote.send | Send quote for signature | write, needs approval |
| quote.update | Update quote | write |
Was this page useful?