---
title: "Fetch an accounting invoice PDF"
method: PUT
path: "/external-syncs/invoices/{merchant_invoice_id}/pdf"
tags: ["External Sync"]
---

# Fetch an accounting invoice PDF

`PUT /external-syncs/invoices/{merchant_invoice_id}/pdf`

## Request

- Base URL: `https://app-sandbox.resolvepay.com/api`
- URL: `https://app-sandbox.resolvepay.com/api/external-syncs/invoices/{merchant_invoice_id}/pdf`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
- TypeScript: <https://skmtc.dev/resolvepay/apis/resolve-api-reference/docs/external-syncs/invoices/:merchant_invoice_id/pdf/put.ts> (a function with typed inputs; its response is checked against the schema)

Fetches the linked invoice PDF from the connected accounting platform and attaches it to the Resolve invoice.

The invoice must already be linked to a record on the connected accounting platform. Once attached, the PDF is served with the invoice like any other invoice attachment.

## Path parameters

- `merchant_invoice_id` string, required

## Response `200`

The request was accepted.

- ExternalSyncSuccess
  - `success` true, required: Always `true` when the request was accepted.

## Other responses

- `400`: The request cannot be completed.
- `401`: Unauthorized error
- `403`: The access key lacks the permission required for this request.
- `404`: The invoice does not exist for the authenticated merchant.

---

[API](https://skmtc.dev/resolvepay/apis/resolve-api-reference.md) - [All operations](https://skmtc.dev/resolvepay/apis/resolve-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/resolvepay/apis/resolve-api-reference/revisions/c62edc454aaa?raw)
