---
title: "Generate PDF for Customer Invoice"
method: POST
path: "/provider/customer_invoices/{customer_invoice_id}/pdf"
tags: ["CustomerInvoice"]
---

# Generate PDF for Customer Invoice

`POST /provider/customer_invoices/{customer_invoice_id}/pdf`

## Usage Instructions and Security Best Practices
 - **Link Expiration:** Links expire after 15 minutes.
 - **Authenticate Users:** Only generate pdf links for authenticated users.
 - **On-Demand Links:** Generate the link only when a user requests to view or download a pdf.
 - **New Windows/Tabs:** Automatically redirect users to the URL provided, instead of showing them the link
 directly.
 - **Avoid Caching:** Do not cache or store pdf links in your application.
 - **Avoid Email Transmission:** Never send pdf links via email due to link expiry and security concerns.
## Example Workflow
 1. **Request Access:** User logs into your system and requests to view a pdf.
 2. **Generate Link:** Your system makes a POST request to the pdf endpoint.
 3. **Provide Link:** Your application receives the URL and automatically redirects the user to the URL in a new
 window or tab.

## Path parameters

- `customer_invoice_id` string, required

## Response `200`

Successful response

- PublicPdfBlueprintOne
  - `url` string

---

[API](https://skmtc.net/hint/apis/partner-endpoints.md) · [All operations](https://skmtc.net/hint/apis/partner-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hint/partner-endpoints/versions/a92ae2a6fa90/schema)
