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

# Modifies an existing sales order.



## OpenAPI

````yaml /openapi/2.1.json patch /v2/salesorder/update
openapi: 3.0.0
info:
  title: JTL-WAWI API (Cloud)
  description: "JTL-Wawi-Version: 2.2.0-alpha.7351+Sha.7529201\r\n# Introduction\r\n\r\nWelcome to the JTL-WAWI technical API documentation. This guide is here to help developers understand how our REST API works and how it can be integrated into your existing systems. We'll delve into the details of authentication and data manipulation processes, providing clear examples along the way. Whether you're a developer or an IT professional, this documentation aims to give you a practical understanding, laying the groundwork for effectively using the JTL-WAWI API to enhance your processes.\r\n\r\n# Authentication\r\n\r\nYou register your application with the API by sending a POST request with the required information and corresponding keys. You can find the exact request details at https://developer.jtl-software.com/products/erp/swagger/appregistration. This information has to include the following:\r\n\r\n* AppId\r\n* DisplayName\r\n* Description\r\n* Version\r\n* ProviderName\r\n* ProviderWebsite\r\n* MandatoryApiScopes\r\n\r\nThis data is crucial for identifying and registering your application with the API. The API uses it to generate a temporary authentication ID that allows your application to access the necessary resources. After successful validation of this information, you will receive the API key required for future authentication and API requests.\r\n\r\nBefore you can begin the registration process, you must open JTL-Wawi (new interface) and start the registration process under 'Admin->App registration'. Only at this point are you authorised to send the first API call. This step in JTL-Wawi ensures that your application is properly registered and has permission to use the API.\r\n\r\nThe API will send you an authentication ID in the form of a token. Once you have received this token and successfully completed the registration in JTL-Wawi, you will send another request to the API by including this authentication ID in the URL path.\r\n\r\nAfter successful validation of this second request by the API and confirmation of the correct information, you will be provided with the actual API key. It is important to note that this API key will not be displayed again!\r\n\r\nThis API key will be used in the future to authenticate requests to the API. It is of utmost importance that you securely store the API key upon receipt, as it cannot be retrieved from any other location in the system."
  contact:
    name: JTL-Software-GmbH
    url: https://developer.jtl-software.com/
    email: partner@jtl-software.com
  version: '2.1'
  x-application-version: 2.2.0.0
servers:
  - url: https://api.jtl-cloud.com/erp
    description: Production Environment Cloud API Gateway
security: []
tags:
  - name: wms
    description: >-
      <p data-section-id='tag/wms' class='stable_summary'></p>Query all pick
      lists for a specific wms warehouse that are not completed.
  - name: WawiApp
    description: Development
  - name: warehouse
    description: >-
      <p data-section-id='tag/warehouse' class='stable_summary'></p>Query all
      warehouses
  - name: transactionStatus
    description: >-
      <p data-section-id='tag/transactionStatus'
      class='stable_summary'></p>Query all transaction status for sales order
  - name: tax
    description: >-
      <p data-section-id='tag/tax' class='stable_summary'></p>Returns the
      Taxrate for the given Item
  - name: item
    description: >-
      <p data-section-id='tag/item' class='stable_summary'></p>Query all tax
      classes
  - name: supplier
    description: >-
      <p data-section-id='tag/supplier' class='stable_summary'></p>Query all
      suppliers
  - name: stock
    description: >-
      <p data-section-id='tag/stock' class='stable_summary'></p>Query stocks for
      a specific item, warehouse or storage location
  - name: shippingmethod
    description: >-
      <p data-section-id='tag/shippingmethod' class='stable_summary'></p>Query
      all shipping methods
  - name: shipment
    description: >-
      <p data-section-id='tag/shipment' class='stable_summary'></p>Download a
      PDF Shipping Label from database by ID
  - name: salesorder
    description: >-
      <p data-section-id='tag/salesorder' class='stable_summary'></p>Query all
      sales orders
  - name: cancellationreason
    description: Planned
  - name: salesinvoicecorrection
    description: Development
  - name: return
    description: >-
      <p data-section-id='tag/return' class='beta_summary'></p>Create a new
      return with associated items and packages.
  - name: returnstate
    description: Planned
  - name: returnreason
    description: Planned
  - name: property
    description: >-
      <p data-section-id='tag/property' class='stable_summary'></p>Query all
      properties for items
  - name: printer
    description: >-
      <p data-section-id='tag/printer' class='beta_summary'></p>Returns all
      Installed Printers
  - name: paymentmethod
    description: >-
      <p data-section-id='tag/paymentmethod' class='stable_summary'></p>Query
      all payment methods
  - name: onholdreason
    description: >-
      <p data-section-id='tag/onholdreason' class='stable_summary'></p>Query all
      on hold reasons for sales orders
  - name: offer
    description: >-
      <p data-section-id='tag/offer' class='beta_summary'></p>Execute the
      printing of a Offer
  - name: Configuration
    description: Planned
  - name: manufacturer
    description: Development
  - name: label
    description: Development
  - name: invoice
    description: Planned
  - name: info
    description: >-
      <p data-section-id='tag/info' class='stable_summary'></p>Returns the
      status of the API
  - name: features
    description: >-
      <p data-section-id='tag/features' class='stable_summary'></p>Returns the
      available feature sets with release state and API version
  - name: Extensibility
    description: Planned
  - name: shipping
    description: Development
  - name: deliverynote
    description: Planned
  - name: customfields
    description: Development
  - name: customfield
    description: Development
  - name: customer
    description: >-
      <p data-section-id='tag/customer' class='stable_summary'></p>Query all
      customers
  - name: customerGroup
    description: >-
      <p data-section-id='tag/customerGroup' class='stable_summary'></p>Query
      all customer groups
  - name: customerCategory
    description: >-
      <p data-section-id='tag/customerCategory' class='stable_summary'></p>Query
      all customer categories
  - name: creditnote
    description: >-
      <p data-section-id='tag/creditnote' class='beta_summary'></p>Execute the
      printing of a CreditNote
  - name: company
    description: >-
      <p data-section-id='tag/company' class='stable_summary'></p>Query all
      companies
  - name: colorcodes
    description: >-
      <p data-section-id='tag/colorcodes' class='stable_summary'></p>Query all
      color codes for sales orders
  - name: category
    description: Development
  - name: appRegistration
    description: >-
      <p data-section-id='tag/appRegistration'
      class='deprecated_summary'></p>DEPRECATED seit Wawi 2.2.0: No-Op. Seit
      Wawi 2.1.0 registriert sich die Wawi selbst per JWT.
  - name: login
    description: >-
      <p data-section-id='tag/login' class='beta_summary'></p>Sends a request to
      log in the user / dynamically assign the WAWI user. Only use this request
      if your API uses SSL.
  - name: logout
    description: >-
      <p data-section-id='tag/logout' class='beta_summary'></p>Sends a request
      to log out the user
  - name: attribute
    description: Development
  - name: accountingData
    description: Planned
paths:
  /v2/salesorder/update:
    patch:
      tags:
        - SalesOrderDomainCommand
      summary: Modifies an existing sales order.
      operationId: SalesOrderDomain_UpdateSalesOrder
      parameters:
        - name: x-tenant-id
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: The tenant ID for the target ERP instance.
        - name: x-runas
          in: header
          description: >-
            The User-Id (int or uuid) on whose behalf the request is executed.
            Requires scope 'Application.RunAs'.
          schema:
            type: string
        - name: x-companyid
          in: header
          description: >-
            The Company-Id (int or uuid) of the company on whose behalf the
            request is executed.
          schema:
            type: string
      requestBody:
        x-name: request
        description: Request parameters
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateSalesOrderCommandRequest
        required: true
        x-position: 1
      responses:
        '200':
          description: SalesOrder was successfully modified.
          content:
            application/json: {}
      security:
        - oauth2-authorization-code:
            - salesorders.write
        - oauth2-client-credentials:
            - salesorders.write
components:
  schemas:
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateSalesOrderCommandRequest:
      type: object
      description: Modifies an existing sales order. - Request
      additionalProperties: false
      required:
        - SalesOrderId
      properties:
        salesOrderId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.VerkaufAuftragKey'
          description: Unique ID of the sales order to be modified.
        disableAutomaticWorkflows:
          type: boolean
          description: >-
            Indicates whether automatic workflows should be disabled for this
            sales order.
        useBillingAddressAsShipmentAddress:
          type: boolean
          description: >-
            Indicates whether the billing address should be used as the shipment
            address.
        cartonItemId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.ArtikelKey'
          description: The SalesOrder CartonItemId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        companyId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.FirmaKey'
          description: Unique ID of the company.
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        customerId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.KundeKey'
          description: The ID of the customer associated with the sales order.
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        onHoldReasonId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.RueckhaltegrundKey'
          description: The SalesOrder OnHoldReasonId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        paymentMethodId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.ZahlungsartKey'
          description: The ID of the payment method for the sales order.
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        processColourId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.FarbeKey'
          description: The SalesOrder ProcessColourId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        processStatusId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.VorgangsstatusKey'
          description: The SalesOrder ProcessStatusId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        shippingMethodId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.VersandartKey'
          description: The ID of the shipping method for the sales order.
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        billingAddress:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderAddress
          description: SalesOrderBillingAddress
        shipmentAddress:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderAddress
          description: SalesOrderShipmentAddress
        departureCountry:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderDepartureCountry
          description: DepartureCountry
        externalDetails:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderExternalDetails
          description: ExternalDetails
        lineItems:
          type: array
          description: The line items included in the sales order.
          items:
            $ref: >-
              #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderLineItem
        paymentDetails:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderPaymentDetails
          description: PaymentDetails
        paymentInfo:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderPaymentInfo
          description: SalesOrderPaymentInfo
        shippingDetails:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderShippingDetails
          description: ShippingDetails
        taxDetails:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderTaxDetails
          description: TaxDetails
        text:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderText
          description: SalesOrderText
        customerSalesOrderNumber:
          type: string
          description: The SalesOrder CustomerSalesOrderNumber
        itemDescriptionType:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ItemDescriptionType
          type: integer
          description: The SalesOrder ItemDescriptionType
          format: int32
        languageIso:
          type: string
          description: The SalesOrder LanguageISO
        readOnlyType:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ReadOnlyType
          type: integer
          description: The SalesOrder ReadOnlyType
          format: int32
        salesOrderDate:
          type: string
          description: The SalesOrder Date
          format: date-time
        vatId:
          type: string
          description: The SalesOrder VATId
    JTL.Data.Contracts.Keys.VerkaufAuftragKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.ArtikelKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.FirmaKey:
      type: string
      description: Represents a key for identifying a firm within the application.
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.KundeKey:
      type: string
      description: Represents a unique key for identifying a customer in the JTL system.
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.RueckhaltegrundKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.ZahlungsartKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.FarbeKey:
      type: string
      description: Represents a key for identifying a color entity in the system.
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.VorgangsstatusKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.VersandartKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderAddress:
      type: object
      description: address details for the sales order.
      additionalProperties: false
      properties:
        salutation:
          type: string
          description: The SalesOrderAddress Salutation
        title:
          type: string
          description: The SalesOrderAddress Title
        firstName:
          type: string
          description: The SalesOrderAddress FirstName
        lastName:
          type: string
          description: The SalesOrderAddress LastName
        company:
          type: string
          description: The SalesOrderAddress Company
        additionalCompanyLine:
          type: string
          description: The SalesOrderAddress AdditionalCompanyLine
        street:
          type: string
          description: The SalesOrderAddress Street
        additionalAddressLine:
          type: string
          description: The SalesOrderAddress AdditionalAddressLine
        city:
          type: string
          description: The SalesOrderAddress City
        postalCode:
          type: string
          description: The SalesOrderAddress PostalCode
        state:
          type: string
          description: The SalesOrderAddress State
        countryIso:
          type: string
          description: The SalesOrderAddress CountryISO
        postId:
          type: string
          description: The SalesOrderAddress PostId
        emailAddress:
          type: string
          description: The SalesOrderAddress EmailAddress
        phoneNumber:
          type: string
          description: The SalesOrderAddress PhoneNumber
        mobilePhoneNumber:
          type: string
          description: The SalesOrderAddress MobilePhoneNumber
        fax:
          type: string
          description: The SalesOrderAddress Fax
        vatId:
          type: string
          description: The SalesOrderAddress VAT ID
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderDepartureCountry:
      type: object
      description: Departure country information for the sales order to be modified.
      additionalProperties: false
      properties:
        countryIso:
          type: string
          description: The ISO code of the departure country.
        currencyIso:
          type: string
          description: The sales order departure country currency iso
        currencyFactor:
          type: number
          description: The sales order departure country currency factor
          format: decimal
        stateCode:
          type: string
          description: The SalesOrder StateCode
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderExternalDetails:
      type: object
      description: External details for the sales order to be modified.
      additionalProperties: false
      properties:
        externalCreatedDate:
          type: string
          description: The SalesOrder ExternalCreatedDate
          format: date-time
        externalInvoiceType:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ExternalSalesInvoiceType
          type: integer
          description: The SalesOrder ExternalInvoiceType
          format: int32
        externalSalesOrderNumber:
          type: string
          description: The SalesOrder ExternalSalesOrderNumber
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderLineItem:
      type: object
      description: Line item details for the sales order line item to be modified.
      additionalProperties: false
      properties:
        salesOrderLineItemId:
          $ref: >-
            #/components/schemas/JTL.Data.Contracts.Keys.VerkaufAuftragPositionKey
          description: Unique ID of the sales order line item to be modified.
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        itemId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.ArtikelKey'
          description: Unique ID to identify an item.
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        parentSalesOrderLineItemId:
          $ref: >-
            #/components/schemas/JTL.Data.Contracts.Keys.VerkaufAuftragPositionKey
          description: The SalesOrderLineItem ParentSalesOrderLineItemId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        taxClassId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.SteuerklasseKey'
          description: The SalesOrderLineItem TaxClassId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        taxCodeId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.SteuerschluesselKey'
          description: The SalesOrderLineItem TaxCodeId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
        billOfMaterialsType:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.BillOfMaterialsType
          type: integer
          description: The SalesOrderLineItem BillOfMaterialsType
          format: int32
        configurationItemType:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ConfigurationItemType
          type: integer
          description: The SalesOrderLineItem ConfigurationItemType
          format: int32
        discountPercent:
          type: number
          description: The discount of the line item.
          format: decimal
        fnSku:
          type: string
          description: The SalesOrderLineItem FNSKU
        name:
          type: string
          description: Name of the position.
        note:
          type: string
          description: The SalesOrderLineItem Note
        purchasePriceNet:
          type: number
          description: The purchase price of the item.
          format: decimal
        quantity:
          type: number
          description: The quantity of the line item.
          format: decimal
        salesPriceGross:
          type: number
          description: 'DEPRECATED: do not use; use SalesPriceNet instead.'
          format: decimal
        salesPriceNet:
          type: number
          description: The net sales price of the item.
          format: decimal
        salesUnit:
          type: string
          description: The sales unit of the line item.
        sku:
          type: string
          description: SKU of the sales order line item.
        taxRate:
          type: number
          description: The tax rate of the line item.
          format: decimal
        type:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.LineItemType
          type: integer
          description: The SalesOrderLineItem LineItemType
          format: int32
        variants:
          type: array
          description: List of SalesOrderLineItemVariant
          items:
            $ref: >-
              #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderLineItemVariant
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderPaymentDetails:
      type: object
      description: Payment details for the sales order to be modified.
      additionalProperties: false
      properties:
        cashDiscount:
          type: number
          description: The SalesOrder CashDiscount
          format: decimal
        cashDiscountDays:
          type: integer
          description: The SalesOrder CashDiscountDays
          format: int32
        paymentDueDateInDays:
          type: integer
          description: The SalesOrder PaymentDueDateInDays
          format: int32
        currencyIso:
          type: string
          description: The sales order currency iso
        currencyFactor:
          type: number
          description: The sales order currency factor
          format: decimal
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderPaymentInfo:
      type: object
      description: Payment info for the sales order to be modified.
      additionalProperties: false
      properties:
        accountHolder:
          type: string
          description: The SalesOrderPaymentInfo AccountHolder
        bankName:
          type: string
          description: The SalesOrderPaymentInfo BankName
        bIC:
          type: string
          description: The SalesOrderPaymentInfo BIC
        creditorId:
          type: string
          description: The SalesOrderPaymentInfo CreditorId
        dueDate:
          type: string
          description: The SalesOrderPaymentInfo DueDate
          format: date-time
        endToEndId:
          type: string
          description: The SalesOrderPaymentInfo EndToEndId
        iBAN:
          type: string
          description: The SalesOrderPaymentInfo IBAN
        mandateReference:
          type: string
          description: The SalesOrderPaymentInfo MandateReference
        paymentInfo:
          type: string
          description: The SalesOrderPaymentInfo PaymentInfo
        paymentInfoType:
          type: integer
          description: The SalesOrderPaymentInfo PaymentInfoType
          format: int32
        paymentReference:
          type: string
          description: The SalesOrderPaymentInfo PaymentReference
        referenceEmail:
          type: string
          description: The SalesOrderPaymentInfo ReferenceEmail
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderShippingDetails:
      type: object
      description: Shipping details for the sales order to be modified.
      additionalProperties: false
      properties:
        deliveryFromDate:
          type: string
          description: The SalesOrder DeliveryFromDate
          format: date-time
        estimatedDeliveryDate:
          type: string
          description: The SalesOrder EstimatedDeliveryDate
          format: date-time
        extraWeight:
          type: number
          description: The SalesOrder ExtraWeight
          format: decimal
        maxDeliveryDays:
          type: integer
          description: The SalesOrder MaxDeliveryDays
          format: int32
        shippingDate:
          type: string
          description: The SalesOrder ShippingDate
          format: date-time
        shippingPriority:
          type: integer
          description: The SalesOrder ShippingPriority
          format: int32
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderTaxDetails:
      type: object
      description: Tax details for the sales order to be modified.
      additionalProperties: false
      properties:
        taxReference:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.TaxReference
          type: integer
          description: >-
            The SalesOrder TaxReference. This setting controls which data is
            used during tax calculation.
          format: int32
        specialTaxTreatment:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.SpecialTaxTreatment
          type: integer
          description: The SalesOrder SpecialTaxTreatment
          format: int32
        taxSetting:
          $ref: >-
            #/components/schemas/JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.TaxSetting
          type: integer
          description: The SalesOrder TaxSetting
          format: int32
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderText:
      type: object
      description: Text details for the sales order to be modified.
      additionalProperties: false
      properties:
        comment:
          type: string
          description: The SalesOrderText Comment
        customerComment:
          type: string
          description: The SalesOrderText CustomerComment
        printText:
          type: string
          description: The SalesOrderText PrintText
        processStatus:
          type: string
          description: The SalesOrderText ProcessStatus
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ItemDescriptionType:
      type: integer
      description: 0 = None, 1 = Brief, 2 = Long
      format: int32
      x-enumNames:
        - None
        - Brief
        - Long
      enum:
        - 0
        - 1
        - 2
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ReadOnlyType:
      type: integer
      description: 0 = ChangesAllowed, 1 = InvoicedExternally, 2 = ChangesForbidden
      format: int32
      x-enumNames:
        - ChangesAllowed
        - InvoicedExternally
        - ChangesForbidden
      enum:
        - 0
        - 1
        - 2
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ExternalSalesInvoiceType:
      type: integer
      description: 0 = None, 1 = NoInvoiceNoOutput, 2 = NoInvoice
      format: int32
      x-enumNames:
        - None
        - NoInvoiceNoOutput
        - NoInvoice
      enum:
        - 0
        - 1
        - 2
    JTL.Data.Contracts.Keys.VerkaufAuftragPositionKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.SteuerklasseKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.SteuerschluesselKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.BillOfMaterialsType:
      type: integer
      description: 0 = None, 1 = BillOfMaterials, 2 = Component
      format: int32
      x-enumNames:
        - None
        - BillOfMaterials
        - Component
      enum:
        - 0
        - 1
        - 2
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.ConfigurationItemType:
      type: integer
      description: 0 = None, 1 = ConfigurationItem, 2 = Component
      format: int32
      x-enumNames:
        - None
        - ConfigurationItem
        - Component
      enum:
        - 0
        - 1
        - 2
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.LineItemType:
      type: integer
      description: >-
        0 = Custom, 1 = Item, 2 = Shipping, 3 = Coupon, 4 = Voucher, 5 =
        Payment, 6 = ShippingSurcharge, 7 = NewCustomerCoupon, 8 =
        CashOnDelivery, 9 = ShippingSurchargeItem, 10 = Packing, 11 =
        GiftForFree, 12 = TrustedShops, 13 = InterestPremium, 14 =
        ProcessingFee, 15 = Carton, 16 = ReturnDelivery, 17 =
        MultiPurposeVoucher, 18 = MultiPurposeVoucherDigital, 19 =
        SinglePurposeVoucher, 20 = SinglePurposeVoucherDigital, 21 =
        SinglePurposeVoucherRedemption
      format: int32
      x-enumNames:
        - Custom
        - Item
        - Shipping
        - Coupon
        - Voucher
        - Payment
        - ShippingSurcharge
        - NewCustomerCoupon
        - CashOnDelivery
        - ShippingSurchargeItem
        - Packing
        - GiftForFree
        - TrustedShops
        - InterestPremium
        - ProcessingFee
        - Carton
        - ReturnDelivery
        - MultiPurposeVoucher
        - MultiPurposeVoucherDigital
        - SinglePurposeVoucher
        - SinglePurposeVoucherDigital
        - SinglePurposeVoucherRedemption
      enum:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.SalesOrderDomain.UpdateUpdateSalesOrderLineItemVariant:
      type: object
      description: >-
        Sales order line item variant details for the sales order to be
        modified.
      additionalProperties: false
      required:
        - Name
        - ItemVariantId
      properties:
        extraWeight:
          type: number
          description: The SalesOrderLineItemVariant ExtraWeight
          format: decimal
        name:
          type: string
          description: The SalesOrderLineItemVariant Name
        surchargeNet:
          type: number
          description: The SalesOrderLineItemVariant SurchargeNet
          format: decimal
        value:
          type: string
          description: The SalesOrderLineItemVariant Value
        itemVariantId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.VariationKey'
          description: The SalesOrderLineItemVariant ItemVariantId
        itemVariantValueId:
          $ref: '#/components/schemas/JTL.Data.Contracts.Keys.VariationWertKey'
          description: The SalesOrderLineItemVariant ItemVariantValueId
          example: b45f6432-2462-4c6f-b00f-1d9d01000000
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.TaxReference:
      type: integer
      description: 0 = ShipmentAddress, 1 = BillingAddress
      format: int32
      x-enumNames:
        - ShipmentAddress
        - BillingAddress
      enum:
        - 0
        - 1
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.SpecialTaxTreatment:
      type: integer
      description: 0 = None, 1 = ReverseCharge, 2 = ExemptFromVat, 3 = SubjectToVat
      format: int32
      x-enumNames:
        - None
        - ReverseCharge
        - ExemptFromVat
        - SubjectToVat
      enum:
        - 0
        - 1
        - 2
        - 3
    JTL.Wawi.Verkaufsverwaltung.PublicApi.DataTransferObjects.V2.Shared.TaxSetting:
      type: integer
      description: >-
        0 = DeliveryWithVat, 10 = IntraCommunityDelivery, 15 =
        ExemptFromVatReverseCharge, 20 = ExemptFromVat
      format: int32
      x-enumNames:
        - DeliveryWithVat
        - IntraCommunityDelivery
        - ExemptFromVatReverseCharge
        - ExemptFromVat
      enum:
        - 0
        - 10
        - 15
        - 20
    JTL.Data.Contracts.Keys.VariationKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
    JTL.Data.Contracts.Keys.VariationWertKey:
      type: string
      format: uuid
      example: b45f6432-2462-4c6f-b00f-1d9d01000000
      additionalProperties: false
  securitySchemes:
    oauth2-authorization-code:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://auth.jtl-cloud.com/oauth2/auth
          tokenUrl: https://auth.jtl-cloud.com/oauth2/token
          scopes:
            items.read: Artikel lesen
            items.write: Artikel schreiben
            saleschannels.read: Verkaufskanäle lesen
            accountings.read: TbD
            all.read: Erlaubt der Anwendung, alle Daten zu lesen.
            cusomters.read: TbD
            customers.read: TbD
            customers.write: TbD
            customfields.read: TbD
            customfields.write: TbD
            deliveries.read: TbD
            deliveries.write: TbD
            deliverynotes.print: TbD
            deliverynotes.read: TbD
            deliverynotes.write: TbD
            extensibility.integration: TbD
            inventories.read: TbD
            inventories.write: TbD
            invoices.print: TbD
            invoices.read: TbD
            invoices.write: TbD
            labels.read: TbD
            labels.write: TbD
            offers.print: TbD
            offers.read: TbD
            orders.read: TbD
            picklists.read: TbD
            picklists.write: TbD
            returns.read: TbD
            returns.write: TbD
            salesinvoicecorrections.print: TbD
            salesinvoicecorrections.read: TbD
            salesinvoicecorrections.write: TbD
            salesorders.print: TbD
            salesorders.read: TbD
            salesorders.write: TbD
            suppliers.read: TbD
            system.config.read: TbD
            system.config.write: TbD
            system.read: TbD
            taxes.read: TbD
            warehouse.read: TbD
            wawiapp.all: Ermöglicht den Zugriff auf Wawi-App bezogene Opperationen.
            currencies.read: Ermöglicht den Lesezugriff auf Währungen.
            jera.read: Ermöglicht den Lesezugriff auf JERA-interne Endpunkte.
            paymentmethods.read: Ermöglicht den Lesezugriff auf Zahlungsarten.
            payments.write: Ermöglicht den Schreibzugriff auf Zahlungen.
            salesinvoices.read: Ermöglicht den Lesezugriff auf Verkaufsrechnungen.
            salesinvoices.write: Ermöglicht den Schreibzugriff auf Verkaufsrechnungen.
            salesquotations.read: Ermöglicht den Lesezugriff auf Verkaufsangebote.
            salesquotations.write: Ermöglicht den Schreibzugriff auf Verkaufsangebote.
            system.worker.read: Worker-Synchronisationen lesen
            system.worker.write: Worker-Synchronisationen schreiben
            resources.read: Ressourcen lesen
            resources.write: Ressourcen schreiben
            pps.read: Produktionsdaten lesen
            pps.write: Produktionsdaten schreiben
            inventory.read: Lagerbestand lesen
            inventory.write: Lagerbestand schreiben
            taxes.write: Steuern schreiben
            application.runas: >-
              Ermöglicht der Anwendung, Anfragen im Namen eines anderen
              Benutzers auszuführen.
    oauth2-client-credentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://auth.jtl-cloud.com/oauth2/token
          scopes:
            items.read: Artikel lesen
            items.write: Artikel schreiben
            saleschannels.read: Verkaufskanäle lesen
            accountings.read: TbD
            all.read: Erlaubt der Anwendung, alle Daten zu lesen.
            cusomters.read: TbD
            customers.read: TbD
            customers.write: TbD
            customfields.read: TbD
            customfields.write: TbD
            deliveries.read: TbD
            deliveries.write: TbD
            deliverynotes.print: TbD
            deliverynotes.read: TbD
            deliverynotes.write: TbD
            extensibility.integration: TbD
            inventories.read: TbD
            inventories.write: TbD
            invoices.print: TbD
            invoices.read: TbD
            invoices.write: TbD
            labels.read: TbD
            labels.write: TbD
            offers.print: TbD
            offers.read: TbD
            orders.read: TbD
            picklists.read: TbD
            picklists.write: TbD
            returns.read: TbD
            returns.write: TbD
            salesinvoicecorrections.print: TbD
            salesinvoicecorrections.read: TbD
            salesinvoicecorrections.write: TbD
            salesorders.print: TbD
            salesorders.read: TbD
            salesorders.write: TbD
            suppliers.read: TbD
            system.config.read: TbD
            system.config.write: TbD
            system.read: TbD
            taxes.read: TbD
            warehouse.read: TbD
            wawiapp.all: Ermöglicht den Zugriff auf Wawi-App bezogene Opperationen.
            currencies.read: Ermöglicht den Lesezugriff auf Währungen.
            jera.read: Ermöglicht den Lesezugriff auf JERA-interne Endpunkte.
            paymentmethods.read: Ermöglicht den Lesezugriff auf Zahlungsarten.
            payments.write: Ermöglicht den Schreibzugriff auf Zahlungen.
            salesinvoices.read: Ermöglicht den Lesezugriff auf Verkaufsrechnungen.
            salesinvoices.write: Ermöglicht den Schreibzugriff auf Verkaufsrechnungen.
            salesquotations.read: Ermöglicht den Lesezugriff auf Verkaufsangebote.
            salesquotations.write: Ermöglicht den Schreibzugriff auf Verkaufsangebote.
            system.worker.read: Worker-Synchronisationen lesen
            system.worker.write: Worker-Synchronisationen schreiben
            resources.read: Ressourcen lesen
            resources.write: Ressourcen schreiben
            pps.read: Produktionsdaten lesen
            pps.write: Produktionsdaten schreiben
            inventory.read: Lagerbestand lesen
            inventory.write: Lagerbestand schreiben
            taxes.write: Steuern schreiben
            application.runas: >-
              Ermöglicht der Anwendung, Anfragen im Namen eines anderen
              Benutzers auszuführen.

````