---
title: "Modifies an existing sales order."
method: PATCH
path: "/v2/salesorder/update"
tags: ["SalesOrderDomainCommand"]
---

# Modifies an existing sales order.

`PATCH /v2/salesorder/update`

## Headers

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

## Request body

- JTLWawiVerkaufsverwaltungPublicApiDataTransferObjectsV2SalesOrderDomainUpdateSalesOrderCommandRequest — Modifies an existing sales order. - Request
  - `salesOrderId` string, uuid
  - `companyId` string, uuid — Represents a key for identifying a firm within the application.
  - `customerId` string, uuid — Represents a unique key for identifying a customer in the JTL system.
  - `billingAddress` JTLWawiVerkaufsverwaltungPublicApiDataTransferObjectsV2SalesOrderDomainUpdateUpdateSalesOrderAddress — address details for the sales order.
    - `salutation` string — The SalesOrderAddress Salutation
    - `title` string — The SalesOrderAddress Title
    - `firstName` string — The SalesOrderAddress FirstName
    - `lastName` string — The SalesOrderAddress LastName
    - `company` string — The SalesOrderAddress Company
    - `additionalCompanyLine` string — The SalesOrderAddress AdditionalCompanyLine
    - `street` string — The SalesOrderAddress Street
    - `additionalAddressLine` string — The SalesOrderAddress AdditionalAddressLine
    - `city` string — The SalesOrderAddress City
    - `postalCode` string — The SalesOrderAddress PostalCode
    - `state` string — The SalesOrderAddress State
    - `countryIso` string — The SalesOrderAddress CountryISO
    - `postId` string — The SalesOrderAddress PostId
    - `emailAddress` string — The SalesOrderAddress EmailAddress
    - `phoneNumber` string — The SalesOrderAddress PhoneNumber
    - `mobilePhoneNumber` string — The SalesOrderAddress MobilePhoneNumber
    - `fax` string — The SalesOrderAddress Fax
    - `vatId` string — The SalesOrderAddress VAT ID
  - `shipmentAddress` JTLWawiVerkaufsverwaltungPublicApiDataTransferObjectsV2SalesOrderDomainUpdateUpdateSalesOrderAddress — address details for the sales order.
    - `salutation` string — The SalesOrderAddress Salutation
    - `title` string — The SalesOrderAddress Title
    - `firstName` string — The SalesOrderAddress FirstName
    - `lastName` string — The SalesOrderAddress LastName
    - `company` string — The SalesOrderAddress Company
    - `additionalCompanyLine` string — The SalesOrderAddress AdditionalCompanyLine
    - `street` string — The SalesOrderAddress Street
    - `additionalAddressLine` string — The SalesOrderAddress AdditionalAddressLine
    - `city` string — The SalesOrderAddress City
    - `postalCode` string — The SalesOrderAddress PostalCode
    - `state` string — The SalesOrderAddress State
    - `countryIso` string — The SalesOrderAddress CountryISO
    - `postId` string — The SalesOrderAddress PostId
    - `emailAddress` string — The SalesOrderAddress EmailAddress
    - `phoneNumber` string — The SalesOrderAddress PhoneNumber
    - `mobilePhoneNumber` string — The SalesOrderAddress MobilePhoneNumber
    - `fax` string — The SalesOrderAddress Fax
    - `vatId` string — The SalesOrderAddress VAT ID
  - `shippingMethodId` string, uuid
  - `paymentMethodId` string, uuid
  - `lineItems` JTLWawiVerkaufsverwaltungPublicApiDataTransferObjectsV2SalesOrderDomainUpdateUpdateSalesOrderLineItem[] — The line items included in the sales order.
    - `salesOrderLineItemId` string, uuid
    - `taxClassId` string, uuid
    - `taxCodeId` string, uuid
    - `discountPercent` number — The discount of the line item.
    - `itemId` string, uuid
    - `name` string — Name of the position.
    - `note` string — The SalesOrderLineItem Note
    - `quantity` number — The quantity of the line item.
    - `salesPriceNet` number — The net sales price of the item. Only net or gross price can be entered. The other price will then be calculated.
    - `salesUnit` string — The sales unit of the line item.
    - `sku` string — SKU of the sales order line item.
    - `taxRate` number — The tax rate of the line item.
    - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 — 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

## Response `200`

SalesOrder was successfully modified.

---

[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/revisions/f979b1ea6951/schema)
