---
title: GetInvoicePDF (Pull Method)
description: "API: Retrieves the PDF of an invoice as base64‑encoded bytes, along with the invoice number and a suggested filename. Supports Normal and Supplement invoice types."
---

[Skip to content](https://knowledge.vipsoftware.com/getinvoicepdf-pull-method#main-content)

[More support](https://knowledge.vipsoftware.com/kb-tickets/new?hsLang=en)

![](https://knowledge.vipsoftware.com/hs-fs/hubfs/rate%20iq%20(1)%20-%20June%2019%2c%202026%20at%2011.43.46-8-Artboard%208%20(1).png?width=500&height=500&name=rate%20iq%20(1)%20-%20June%2019%2c%202026%20at%2011.43.46-8-Artboard%208%20(1).png)

- [Knowledge Base](https://knowledge.vipsoftware.com/)
- [Support](https://knowledge.vipsoftware.com/tickets)

Open main navigation

Close main navigation

- [Knowledge Base](https://knowledge.vipsoftware.com/)
- [Support](https://knowledge.vipsoftware.com/tickets)
- [More support](https://knowledge.vipsoftware.com/kb-tickets/new)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://knowledge.vipsoftware.com/?hsLang=en)
2. [Integrations](https://knowledge.vipsoftware.com/integrations?hsLang=en)

# GetInvoicePDF (Pull Method)

### GetInvoicePDF

Retrieves the PDF of an invoice as **base64‑encoded bytes**, along with the invoice number and a suggested filename. Supports **Normal** and **Supplement** invoice types.

##### Request

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| Company | Varchar(250) | **Required.** Company identifier returned by **GetCompanies**. |
| InvoiceNumber | Varchar(50) | **Required.** Invoice number to fetch. |
| InvoiceType | Varchar(50) | Optional. Values: **Normal**, **Supplement**. If omitted, defaults to **Normal**. |

##### Response

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| FileName | Varchar(250) | Suggested filename of the returned file. |
| InvoiceNumber | Varchar(50) | Invoice number; pass to **GetInvoiceInfo** for full details. |
| FileBytes | NVarchar(max) | **Base64‑encoded** PDF bytes of the invoice document. |

##### Example (C#)

 

// setup request parameters

NameValueCollection getInvoicePDFParams = new NameValueCollection

{

    { "InvoiceNumber", "1317" },

    { "Company", "ABC" },

    { "InvoiceType", "Normal" } // Normal or Supplement

};

dynamic getInvoicePDFResponse = apiClient.GetInvoicePDF(getInvoicePDFParams);

// Access metadata

Console.WriteLine("Filename: " + getInvoicePDFResponse.FileName);

// Decode and save file locally

byte\[\] bytes = Convert.FromBase64String(Convert.ToString(getInvoicePDFResponse.FileBytes));

File.WriteAllBytes(@"C:\\DownloadAPIFiles\\" + Convert.ToString(getInvoicePDFResponse.FileName), bytes);

 

- [Support FAQ](https://knowledge.vipsoftware.com/support-faq?hsLang=en)
- [General Application Information](https://knowledge.vipsoftware.com/general-application-information?hsLang=en)
- [BAP](https://knowledge.vipsoftware.com/bap?hsLang=en)
- [Invision](https://knowledge.vipsoftware.com/invision?hsLang=en)
- [Integrations](https://knowledge.vipsoftware.com/integrations?hsLang=en)

- [Knowledge Base](https://knowledge.vipsoftware.com/)
- [Support](https://knowledge.vipsoftware.com/tickets)

[![](https://knowledge.vipsoftware.com/hs-fs/hubfs/rate%20iq%20(1)%20-%20June%2019%2c%202026%20at%2011.43.46-8-Artboard%208%20(1).png?width=500&height=500&name=rate%20iq%20(1)%20-%20June%2019%2c%202026%20at%2011.43.46-8-Artboard%208%20(1).png)](http://vipsoftware.com)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, vipsoftware.com