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

# ExecuteOutboundStockPosting

> Executes an outbound stock posting (Warenausgang) for an item in a specific warehouse. This is a relative stock change, not a target value - the provided Quantity is removed from the item's current stock in the given warehouse. Quantity must be greater than 0 and must not exceed the available stock.

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** `ExecuteOutboundStockPosting(request: ExecuteOutboundStockPostingCommandRequestInput!): StockPostingResponse!`

## Arguments

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

## Returns

`StockPostingResponse!`

**`totalQuantity`**: `Decimal!`

The item's total physical stock (on-hand, including reserved) in the warehouse after the posting.

## Examples

```graphql Mutation
mutation ExecuteOutboundStockPosting($request: ExecuteOutboundStockPostingCommandRequestInput!) {
  ExecuteOutboundStockPosting(request: $request) {
    totalQuantity
  }
}
```

```json Variables
{
  "request": {
    "itemId": "id",
    "warehouseId": "id",
    "quantity": "value"
  }
}
```

```json Response
{
  "data": {
    "ExecuteOutboundStockPosting": {
      "totalQuantity": "value"
    }
  }
}
```
