> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ReleaseScxSalesOrderForInvoicingCommandRequestInput

> Releases a locked sales order of an SCX order for invoicing, so that the sales order can get its own invoice. The same rules apply as for the release in the user interface: the sales order is released only if it is locked, has no external document, and the marketplace has accepted the order. A sales order that is not locked is not changed and the call succeeds as well. To see whether a sales order is locked, read its "readOnlyType" and "externalInvoiceType" with "GetSalesOrderById" (GET /v2/sales-orders/{salesOrderId}). External documents are delivered by "QueryMarketplaceExternalDocument" (GET /v2/marketplace/orders/external-documents). - Request



**Kind**: `input`

## Fields

**`salesOrderId`**: `ID!` (required)

ID of the sales order to release, as delivered by "QuerySalesOrders" (GET /v2/sales-orders).

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

