---
title: "Get invoice link"
method: GET
path: "/organization/{organizationId}/invoice/{invoiceId}/download"
tags: ["Billing"]
---

# Get invoice link

`GET /organization/{organizationId}/invoice/{invoiceId}/download`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/organization/{organizationId}/invoice/{invoiceId}/download`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/organization/:organizationId/invoice/:invoiceId/download/get.ts> (a function with typed inputs; its response is checked against the schema)

This will return URL of the invoice PDF

## Path parameters

- `organizationId` string, uuid, required
- `invoiceId` string, uuid, required

## Response `200`

Get invoice PDF

- Link
  - `service_id` string, uuid, required: ID of the associated service
  - `service_type` 'APPLICATION' | 'DATABASE' | 'CONTAINER' | 'JOB' | 'HELM' | 'TERRAFORM', required: type of the service (application, database, job, ...)
  - `url` string, required: URL to access the service
  - `internal_port` integer, required: The port from which the service is reachable from within the cluster
  - `external_port` integer, required: The port from which the service is reachable from externally (i.e: 443 for HTTPS)
  - `is_qovery_domain` boolean, required: True if the domain is managed by Qovery, false if it belongs to the user
  - `is_default` boolean, required: Indicate if the link is using the root of the domain and not one derivated from port i.e: p8080.zxxxx.jvm.worl => is_default = false, is_qovery = true zxxxx.jvm.world => is_default = true, is_qovery = true p8080-my-super-domain.com => is_default = false, is_qovery = false my-super-domain.com => is_default = true, is_qovery = false

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

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