---
title: "Export receiving inventory document as PDF"
method: POST
path: "/purchases/{id}/export-pdf/base64"
tags: ["Receiving Inventory"]
---

# Export receiving inventory document as PDF

`POST /purchases/{id}/export-pdf/base64`

## Request

- Base URL: `https://openapi.flowaccount.com/v1`
- URL: `https://openapi.flowaccount.com/v1/purchases/{id}/export-pdf/base64`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/flowaccount/apis/flowaccount-open-api/docs/purchases/:id/export-pdf/base64/post.ts> (a function with typed inputs; its response is checked against the schema)

ส่งออกเอกสารใบรับสินค้าเป็นไฟล์ PDF ตามเลขที่เอกสารที่ต้องการ

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Request body

- ExportPdfRequest
  - `culture` string: รูปแบบภาษาสำหรับการสร้าง PDF รองรับ 'th' (ภาษาไทย) หรือ 'en' (ภาษาอังกฤษ)
  - `document` object: กำหนดเอกสารที่ต้องการรวมในไฟล์ PDF ที่ส่งออก
    - `original` boolean: เอกสารต้นฉบับ
    - `copy` boolean: เอกสารสำเนา

## Response `200`

PDF content encoded as base64 string

- ExportPdfResponse
  - `data` string, byte: เนื้อหาไฟล์ PDF ที่เข้ารหัสด้วย base64
  - `status` boolean
  - `message` string
  - `code` integer

## Other responses

- `400`: 400 response
- `401`: 401 response
- `500`: 500 response

---

[API](https://skmtc.dev/flowaccount/apis/flowaccount-open-api.md) - [All operations](https://skmtc.dev/flowaccount/apis/flowaccount-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowaccount/apis/flowaccount-open-api/revisions/4ba3d3ca5bd5?raw)
