---
title: "View related documents for invoice"
method: GET
path: "/api/v1/invoices/{id}/documents"
tags: ["Invoice"]
---

# View related documents for invoice

`GET /api/v1/invoices/{id}/documents`

Returns details for related documents of a single invoice.

## Path parameters

- `id` string, required — Resource identifier.

## Response `200`

Operation completed successfully.

- object
  - `data` object, required
    - `salesOrder` object[]
      - `id` string — Resource identifier.
      - `status` 'created' | 'released' | 'sent' | 'canceled' | 'completed' | 'unknown'
      - `documentNumber` string
      - `documentUrl` string
      - `documentDate` string, date
    - `deliveryNotes` object[]
      - `id` string — Resource identifier.
      - `status` 'created' | 'released' | 'sent' | 'canceled' | 'completed' | 'unknown'
      - `documentNumber` string
      - `documentUrl` string
      - `documentDate` string, date
    - `creditNotes` object[]
      - `id` string — Resource identifier.
      - `status` 'approved' | 'canceled' | 'completed' | 'created' | 'unknown'
      - `documentNumber` string
      - `documentUrl` string
      - `documentDate` string, date
    - `returns` object[]
      - `id` string — Resource identifier.
      - `status` 'created' | 'released' | 'sent' | 'canceled' | 'completed' | 'unknown'
      - `documentNumber` string
      - `documentUrl` string
      - `documentDate` string, date
    - `pdfArchives` object[]
      - `id` string — Resource identifier.
      - `documentUrl` string
      - `documentDate` string, datetime
      - `documentName` string
      - `createdBy` object
        - `name` string, required

## Other responses

- `400` — IETF RFC 9457 Problem API compliant response
- `401` — Unable to authenticate the client
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `406` — Requested resource representation does not exist.
- `429` — Too many API calls made.

---

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