Quote and Invoice Link via API

Is there a way to get the quote or invoce link via the API for {document}. I have invoicing page and sometimes we don’t capture customer emial. We then try to sms out of sm8 via api with the invioce template but it doens’t build the link even though sent via the Servicem8 sms.

Hi Jason,
The API doesn’t currently provide an endpoint to retrieve or generate the customer-facing quote or invoice link used by {document}. The SMS API accepts message content rather than sending a saved SMS template, so including {document} in message won’t generate that link. regardingJobUUID links the SMS to the Job Diary, rather than selecting a document to send.
For your no-email workflow, you can send the invoice link using ServiceM8’s built-in SMS action:

  1. Open the job and go to Quotes & Invoicing > Produce Invoice, or open an existing invoice PDF from the Job Diary.
  2. Click SMS in the invoice preview.
  3. Check the recipient and message, then click Send.
    This sends the customer a link to view the invoice without needing an email address.
    If you need a fully API-driven alternative, the Document Templates API can generate a quote or invoice PDF, which your integration could host and link to in its SMS message. That endpoint returns the document itself, not ServiceM8’s customer-facing link; storeToDiary: true optionally saves a copy to the Job Diary.
    Thanks,
    Cody