# Quote and Invoice Link via API

**URL:** <https://community.servicem8.com/t/quote-and-invoice-link-via-api/1239>\
**Category:** General\
**Created:** [October 21, 2026, 1:36am UTC](https://community.servicem8.com/t/quote-and-invoice-link-via-api/1239 "2026-10-21T01:36:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_gebert](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jason\_gebert](https://community.servicem8.com/u/jason_gebert)\
**Post date:** [October 21, 2026, 1:36am UTC](https://community.servicem8.com/t/quote-and-invoice-link-via-api/1239/1 "2026-10-21T01:36:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Cody](https://sea2.discourse-cdn.com/flex002/user_avatar/community.servicem8.com/cody/32/52_2.png) [@Cody](https://community.servicem8.com/u/Cody)\
**Post date:** [October 24, 2026, 1:38am UTC](https://community.servicem8.com/t/quote-and-invoice-link-via-api/1239/2 "2026-10-24T01:38:13Z")

</div>

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](https://developer.servicem8.com/reference/send_sms) 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](https://developer.servicem8.com/reference/produce_templated_document) 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
