Zum Inhalt springen
Leadtime
Deutsch
Esc
↑↓navigieren↵öffnen⌘Jvorschau

Accept quotation

Requires express quotations to be enabled in the task’s current project. Returns 403 when disabled.

Accepts the quotation, marking it as the active quotation for billing purposes. This action automatically rejects all other Pending or Accepted quotations for the same task.

What happens when a quotation is accepted:

  • The quotation status changes to Accepted
  • All other Pending or Accepted quotations for the same task are automatically rejected
  • The task is marked with hasAcceptedQuotation = true
  • The task’s acceptedQuotationSubTotal is set to this quotation’s subtotal
  • When the task is billed, the quotation amount is used instead of time-based billing
  • Notifications are sent to task subscribers

Billing impact: Once accepted, the task will use the quotation’s subtotal for invoicing instead of calculating billing from spentTime * hourRate. The task must still be in Closed or Resolved status and not already billed to be included in invoices.

Note: Only one quotation per task can be Accepted at a time. Accepting a new quotation will automatically reject the previously accepted one.

POST/tasks/{identifier}/express-quotations/{quotationId}/accept
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
identifierstringrequired

Task UUID or numeric shortNumber

quotationIdstringrequired

Quotation UUID

Responses
200

Quotation accepted successfully

successbooleanrequired

Operation success flag

400

Invalid task identifier or quotation ID

401

Unauthorized - Invalid or missing authentication token

403

No access to task project or express quotations are disabled

404

Task or quotation not found

Try it
Server
Authorization
Parameters
Request
curl -X POST "https://leadtime.app/api/public/tasks/550e8400-e29b-41d4-a716-446655440000%20or%20123/express-quotations/550e8400-e29b-41d4-a716-446655440000/accept" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}