---
title: "Create sales order document"
method: POST
path: "/api/v1/salesOrders/{id}/documents"
tags: ["Sales Order"]
---

# Create sales order document

`POST /api/v1/salesOrders/{id}/documents`

Creates new sales order document

## Path parameters

- `id` string, required — Resource identifier.

## Request body

- object
  - `title` string, nullable
  - `description` string, nullable
  - `keyword` 'otherFile' | 'coverPage' | 'attachment'
  - `fileName` string
  - `fileContent` string, byte — A base64 encoded document. Supported formats PDF

## Response `201`

Resource successfully created response

## Other responses

- `400` — IETF RFC 9457 Problem API compliant response
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `415` — Resource representation send in the request is not supported.
- `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)
