---
title: "Download a purchase order PDF"
method: GET
path: "/v1/erp/payouts/purchase_orders/{id}/pdf"
tags: ["Purchase Order"]
---

# Download a purchase order PDF

`GET /v1/erp/payouts/purchase_orders/{id}/pdf`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/erp/payouts/purchase_orders/{id}/pdf`
- Auth: HTTP bearer

Generates and returns the purchase order as a PDF attachment. Only approved purchase
orders can be downloaded; otherwise a `422` is returned.

## Parameters

- `#/paths/~1v1~1erp~1payouts~1rules/get/parameters/0` (unresolved $ref)
- `#/paths/~1v1~1erp~1payouts~1rules~1%7Bid%7D/get/parameters/1` (unresolved $ref)

## Response `200`

The purchase order PDF.

## Other responses

- `401`: Unauthorized
- `404`: Purchase order not found
- `422`: Unprocessable Entity — the purchase order is not approved.
- `500`: Internal Server Error — PDF generation failed.

---

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