> ## 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.

# MarkSalesOrderAsPaid

> Marks a given sales order as completely paid by creating a payment with the open amount of the sales order.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `MarkSalesOrderAsPaid(request: MarkSalesOrderAsPaidCommandRequestInput!): MarkSalesOrderAsPaidCommandResponse!`

## Arguments

**`request`**: `MarkSalesOrderAsPaidCommandRequestInput!` (required)

## Returns

`MarkSalesOrderAsPaidCommandResponse!`

**`paymentIds`**: `[ID!]!`

List of the created payment Ids.

