---
title: "Generate a PDF document"
method: POST
path: "/v1/postbox/documents"
tags: ["Testing endpoints for Postbox API"]
---

# Generate a PDF document

`POST /v1/postbox/documents`

Generates an empty PDF document on Solaris' servers for use as a Postbox item. Please note the following: <ul><li>The `Content-Type` header for this request must be `application/json`.</li><li>This endpoint can only be used for testing purposes on the testing, staging, and sandbox environments.</li></ul>

## Request body

- UploadDocumentSimulationData
  - `document_type` 'ACCOUNT_STATEMENT' | 'BALANCE_CONFIRMATION' | 'CUSTOMER_INFORMATION' | 'DUNNING_INFORMATION' | 'LOAN_SCHEDULE' | 'SECURITIES_INVOICE' | 'SECURITIES_EVENT' | 'SECURITIES_EVENT_NOTIFICATION' | 'DEPOT_STATEMENT_MIFID' | 'EX_POST_COST_INFORMATION' | 'DEPOT_STATEMENT' | 'ASSETS_ACQUISITION' | 'ASSETS_ACQUISITION_COSTS' | 'PROFIT_TAX_STATEMENT' | 'YEARLY_TAX_STATEMENT' | 'TAX_SETTLEMENT_CALCULATION' | 'CREDIT_CARD_STATEMENT' | 'RELATIONSHIP_TERMINATION' | 'CREDIT_CARD_SECCI' | 'CREDIT_CARD_CONTRACT' | 'CREDIT_CARD_CONTRACT_SIGNED' | 'FEE_SUMMARY_STATEMENT' | 'SINGLE_FEE_STATEMENT' | 'SINGLE_TRANSACTION_STATEMENT', required — The type of document.
  - `document_date` string, required — The date of the document.
  - `sign_document` boolean — (Optional) If set to true, then the document will be signed.

## Response `200`

The document was created successfully.

- IdResponse
  - `id` string

## Other responses

- `400` — The request was invalid due to one of the following cases: <ul> <li>the provided content type is not supported,</li> <li>the request lacks the required properties, or</li> <li>the file size exceeds the maximum upload size.</li> </ul>
- `403` — You are not authorized to perform this action.
- `500` — Internal server error.

---

[API](https://skmtc.net/solarisgroup/apis/compliance-features.md) · [All operations](https://skmtc.net/solarisgroup/apis/compliance-features/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solarisgroup/compliance-features/revisions/61701b027c74/schema)
