---
title: "Get invoice download URL"
method: GET
path: "/subscriptions/invoices/{invoiceId}/url"
tags: ["Subscriptions"]
---

# Get invoice download URL

`GET /subscriptions/invoices/{invoiceId}/url`

## Request

- Base URL: `https://api.smokeball.com`
- URL: `https://api.smokeball.com/subscriptions/invoices/{invoiceId}/url`
- Auth: API key in header `x-api-key` and API key in header `Authorization`

Returns a URL that can be used to download the invoice PDF directly from the payment provider.

## Path parameters

- `invoiceId` string, uuid, required

## Response `200`

When request is successful. Returns an 'InvoiceDownloadUrl' object.

- InvoiceDownloadUrl
  - `url` string, nullable: A URL to a downloadable PDF of the invoice from the payment provider.

## Other responses

- `404`: When the subscription or invoice does not exist, or the invoice has no PDF available (for example, draft invoices).
- `500`: When an error occurs while retrieving the invoice URL.

---

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