---
title: "Get document PDF"
method: POST
path: "/accounting/documents/getpdf/"
tags: ["Accounting (Documents)"]
---

# Get document PDF

`POST /accounting/documents/getpdf/`

Documents can be located either using DocumentID, or a combination of DocumentType and DocumentNumber.

## Headers

- `Content-Language` unknown

## Request body

- AccountingDocumentsGetPDFRequest
  - `Credentials` CoreAPICredentials, required
    - `CompanyID` integer, required — Company identifier
    - `APIKey` string, required — API key secret
  - `DocumentID` integer, nullable — Document identifier The system ID number. Can be found in the url as the "c" number when document is viewed, or EntityID when document is received through a trigger. If used, DocumentID and DocumentType are not used.
  - `DocumentType` 'Invoice (0)' | 'InvoiceAndReceipt (1)' | 'Receipt (2)' | 'ProformaInvoice (3)' | 'DonationReceipt (4)' | 'CreditInvoice (5)' | 'CreditInvoiceAndReceipt (6)' | 'CreditReceipt (7)' | 'Order (8)' | 'DeliveryNote (9)' | 'GoodsReturnNote (10)' | 'PurchasingOrder (11)' | 'PriceQuotation (12)' | 'PaymentRequest (13)' | 'CreditDonationReceipt (14)' | 'ExpenseInvoiceReceipt (15)' | 'ExpenseInvoice (16)' | 'ExpenseReceipt (17)' | 'ExpenseRequest (18)' | 'CreditExpenseInvoiceReceipt (19)' | 'CreditExpenseInvoice (20)' | 'CreditExpenseReceipt (21)' | 'SupplierPayment (22)'
  - `DocumentNumber` integer, nullable — Document number This number appears in the document title. It must have a value when DocumentType is used, and not needed if DocumentID is used.
  - `Original` boolean, required — Send original document if possible

## Response `200`

OK

---

[API](https://skmtc.net/myofficeguy/apis/sumit-api-full.md) · [All operations](https://skmtc.net/myofficeguy/apis/sumit-api-full/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myofficeguy/sumit-api-full/versions/de2902289b3a/schema)
