Convert quote to invoice
POST
https://app.speybooks.com/api/v1/quotes/{id}/convertConvert an accepted quote into a draft invoice. This operation:
- Validates the quote is in
acceptedstatus and not already converted - Generates a new invoice number from the standard sequence
- Creates a draft invoice copying contact, totals, notes, and terms
- Copies all line items to the new invoice
- Marks the quote as
convertedwith a link to the invoice
The entire operation runs within a savepoint. The new invoice defaults to a 30-day payment term from today.
Returns the new invoice ID and number. Returns 400 if the quote is not accepted or has already been converted.
Path parameters
id string requiredQuote ID to convert (e.g. quo_42). Must be in accepted status.
Response
200 Quote converted to a draft invoice. Returns the new invoice ID and number. Quote status is set to converted.
Show response fields
invoiceId stringinvoiceNumber stringError codes
400 Quote is not in accepted status or has already been converted.
404 Quote not found.