---
title: "Get invoice PDF access"
method: GET
path: "/payment-methods/invoices/{invoiceId}/pdf-access"
tags: ["PaymentMethods"]
---

# Get invoice PDF access

`GET /payment-methods/invoices/{invoiceId}/pdf-access`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access`
- Auth: HTTP bearer

Creates a short-lived, secure URL that lets the current organization view or download a private Stripe invoice PDF without exposing a permanent file link.

## Path parameters

- `invoiceId` string, required

## Query parameters

- `download` boolean

## Response `200`

A temporary URL for downloading the accessible invoice PDF.

- InvoicePdfAccessResponse: Short-lived access details for a private Leadping invoice PDF.
  - `url` string, uri: Short-lived URL that can be used to download the invoice PDF.
  - `expiresAt` string, date-time: Date and time after which the download URL is no longer valid.

## Other responses

- `400`: The request contains invalid values or fails validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The requested resource or required account context was not found.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected error prevented the server from completing the request.

## Changes

- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/payment-methods/invoices/:invoiceId/pdf-access/get.md)

---

[API](https://skmtc.dev/leadping/apis/leadping-api.md) - [All operations](https://skmtc.dev/leadping/apis/leadping-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadping/apis/leadping-api/revisions/bf1852acaf45?raw)
