---
title: "Get document PDF"
method: GET
path: "/v1/doc/pdf/{doc_hash_id}"
tags: ["Document"]
---

# Get document PDF

`GET /v1/doc/pdf/{doc_hash_id}`

## Request

- Base URL: `https://app.getswipe.in/api/partner`
- URL: `https://app.getswipe.in/api/partner/v1/doc/pdf/{doc_hash_id}`
- Auth: HTTP bearer

**v1 is deprecated — use the v2 endpoint instead.** Returns the rendered PDF file for a document. The PDF uses the invoice templates and document settings configured on your Swipe account. Pass `delivery_challan=1` to get a delivery-challan copy instead.

## Response `200`

File will be downloaded

## Other responses

- `400`: Invalid Document Hash ID
- `401`: Unauthorized
- `500`: Server Error

## Changes

- **2026-11-03** `0bcdbc62187b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getswipe/apis/swipeapi/changes/v1/doc/pdf/:doc_hash_id/get.md)

---

[API](https://skmtc.dev/getswipe/apis/swipeapi.md) - [All operations](https://skmtc.dev/getswipe/apis/swipeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/getswipe/apis/swipeapi/revisions/0bcdbc62187b?raw)
