---
title: "DEPRECATED. Get Purchase invoice data in a selectable format"
method: GET
path: "/purchase_invoices/{guid}/{packaging}"
tags: ["PurchaseInvoices"]
---

# DEPRECATED. Get Purchase invoice data in a selectable format

`GET /purchase_invoices/{guid}/{packaging}`

DEPRECATED. Use the /api/v2/received_documents endpoint. Get a specific PurchaseInvoice.

## Path parameters

- `guid` string, uuid, required
- `packaging` 'json' | 'ubl' | 'original', required

## Query parameters

- `pmv` string
- `version` string

## Response `200`

Success

- PurchaseInvoiceUbl
  - `guid` string, uuid — The GUID of the invoice
  - `tax_system` string — The tax system of the invoice. Either tax_line_percentages or tax_line_amounts. The first tax system means the invoice lines contain only the tax percentages and the tax amounts are included only in the tax subtotals at the invoice level and so are only calculated at the invoice level. The tax system tax_line_amounts means that in addition to the percentage, each invoice line also contains the tax amount. The tax subtotals at the invoice level are calculated as the sum of the tax of the invoice lines. The distinction between the two tax systems has has implications for rounding.
  - `legal_entity_id` integer — The id of the LegalEntity the invoice was received for.
  - `external_user_id` string — Used for the embedded portal retrieval service. The external_user_id you provided when the ShopAccount was created.
  - `external_key` string — Used for accountants. The id you specified for the organization.
  - `system_generated_primary_image` boolean — Whether or not the document image (PDF) was generated by Storecove. If true, it means the invoice was received without any attachments and Storecove generated one for you. If false, the invoice will contain at least one attachment, which was received from the invoice sender.
  - `ubl` string — The Base64 encoded UBL invoice.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/storecove/apis/storecove-api.md) · [All operations](https://skmtc.net/storecove/apis/storecove-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/storecove/storecove-api/revisions/7f72642d80e6/schema)
