Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1328

Issue with Viewing Invoice PDFs in Square Without Authentication

$
0
0

I am implementing a “View Invoice PDF” feature on my webpage, allowing users to access their invoice PDFs via the following Square Sandbox URL:

https://app.squareupsandbox.com/invoices/{invoiceId}/attachments/pdf?inline=true

Currently, this functionality works if I am logged into the Square Dashboard on the same browser. However, when accessed from a different browser or by an unauthenticated user, the following authentication error occurs:

{ “errors”: [ { “category”: “AUTHENTICATION_ERROR”, “code”: “UNAUTHORIZED”, “detail”: “This request could not be authorized.” } ] }

This prevents users from viewing and downloading their invoice PDFs unless they are logged into Square. Is there a way to resolve this issue, or is authentication a strict requirement for accessing invoice attachments?

Best regards,

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1328

Trending Articles