---
title: "Get Document UBL"
method: GET
path: "/api/documents/{document_id}/ubl"
tags: ["Documents"]
---

# Get Document UBL

`GET /api/documents/{document_id}/ubl`

Get the UBL for an invoice or credit note

## Path parameters

- `document_id` string, required

## Response `200`

Successful Response

- DocumentUBL
  - `file_name` string, required
  - `file_size` integer
  - `signed_url` string, nullable
  - `sender_peppol_id` string, nullable
  - `sender_peppol_scheme` string, nullable
  - `receiver_peppol_id` string, nullable
  - `receiver_peppol_scheme` string, nullable
  - `file_hash` string, nullable
  - `validated_at` string, date-time, nullable
  - `id` string, required

## Other responses

- `401` — Unauthorized: API key is missing, invalid, or inactive
- `404` — Not Found: Document with the specified ID doesn't exist
- `422` — Unprocessable Entity: Invalid response data
- `500` — Internal Server Error: Unexpected server error

---

[API](https://skmtc.net/e-invoice-be/apis/e-invoice-be-peppol-access-point-api.md) · [All operations](https://skmtc.net/e-invoice-be/apis/e-invoice-be-peppol-access-point-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/e-invoice-be/e-invoice-be-peppol-access-point-api/revisions/a5b8396effe8/schema)
