---
title: "Mail Sales Order"
method: POST
path: "/v2/salesOrders/{salesOrderId}/output/mail"
tags: ["salesorder"]
---

# Mail Sales Order

`POST /v2/salesOrders/{salesOrderId}/output/mail`

Execute the mailing of a SalesOrder

## Path parameters

- `salesOrderId` string, uuid, required

## Query parameters

- `formId` string, uuid — Represents a unique key for identifying a form (Formular) entity within the system.

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Response `201`

The Mailjob is created

## Other responses

- `400` — The sent data is invalid.
- `401`
- `402` — No licence available or the app has not been authorised by JTL.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/versions/f979b1ea6951/schema)
