Create quote
Create a draft quote for a client with line items.
POST https://cotlet.dev/api/v1/jobber/clients/{client_id}/quotes
write
Creates a quote in Draft status with the line items you give. Nothing is sent: Jobber keeps a draft until a quote is sent or marked Awaiting Response, so create_quote reaches no one and runs without asking first. Send it with send_quote.
Parameters
| Name | Type | Description |
|---|---|---|
| client_id string required | string | Client ID from list_clients. |
| title string required | string | Quote title. |
| line_items array required | array | Items with name, quantity and unit_price. |
| message string | string | Message shown to the client with the quote. |
Request
curl -X POST https://cotlet.dev/api/v1/jobber/clients/client_8c41d2/quotes \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"title","line_items":"line items"}' result = client.call("jobber", "create_quote", {"client_id":"client_8c41d2","title":"title","line_items":"line items"}) const result = await cotlet.call('jobber', 'create_quote', {"client_id":"client_8c41d2","title":"title","line_items":"line items"}); cotlet call jobber create_quote --data '{"client_id":"client_8c41d2","title":"title","line_items":"line items"}' Example response
{
"quote_id": "q_5540",
"number": "Q-5540",
"status": "draft",
"total": 1200,
"currency": "USD"
}