# "Download Invoice PDF" is not working in invoice got in email using Square Sandbox

**URL:** <https://developer.squareup.com/forums/t/download-invoice-pdf-is-not-working-in-invoice-got-in-email-using-square-sandbox/11780>\
**Category:** Questions\
**Tags:** orders-api, invoices-api\
**Created:** [January 10, 2024, 6:04am UTC](https://developer.squareup.com/forums/t/download-invoice-pdf-is-not-working-in-invoice-got-in-email-using-square-sandbox/11780 "2024-01-10T06:04:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ketan\_Chavda](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@Ketan\_Chavda](https://developer.squareup.com/forums/u/Ketan_Chavda)\
**Post date:** [January 10, 2024, 6:04am UTC](https://developer.squareup.com/forums/t/download-invoice-pdf-is-not-working-in-invoice-got-in-email-using-square-sandbox/11780/1 "2024-01-10T06:04:53Z")

</div>

Hi,

We have generated and published invoice using Square Invoice API in Square Sandbox environment.

We got invoice in email and there is “Download Invoice PDF” link in it BUT clicking on it not downloading PDF for square invoice.

 ![image](https://global.discourse-cdn.com/square/original/2X/4/45908b279d5193a8b9276619425d030c0f4785b9.png)

In above image, “Download Invoice PDF” is not working in invoice generated through Invoice API in Square Sandbox environment.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [January 10, 2024, 6:05am UTC](https://developer.squareup.com/forums/t/download-invoice-pdf-is-not-working-in-invoice-got-in-email-using-square-sandbox/11780/2 "2024-01-10T06:05:05Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Invoices API Overview](https://developer.squareup.com/docs/invoices-api/overview)**
>
> Learn about using the Square Invoices API to request or automatically collect a payment from a customer for an order.

> **[Create and Publish Invoices](https://developer.squareup.com/docs/invoices-api/walkthrough)**
>
> Learn how to use the Invoices API to send an invoice to a customer and to automatically charge a card on file.

> **Additional Documentation**
>
> [Pay or Refund Invoices](https://developer.squareup.com/docs/invoices-api/pay-refund-invoices)  
> [Square Sandbox](https://developer.squareup.com/docs/devtools/sandbox/overview)  
> [Create and Publish Invoices](https://developer.squareup.com/docs/invoices-api/create-publish-invoices)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [January 10, 2024, 4:47pm UTC](https://developer.squareup.com/forums/t/download-invoice-pdf-is-not-working-in-invoice-got-in-email-using-square-sandbox/11780/3 "2024-01-10T16:47:07Z")

</div>

The “Download Invoice PDF” feature is not supported in the Square Sandbox environment. The Sandbox environment is primarily for testing API integrations and does not support all features available in the production environment. This includes the generation of PDF versions of invoices. You would need to test this feature in the production environment.

_This answer was reviewed by @Bryan-Square._
