Skip to main content
POST
Create Sales Order Line Item

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesOrderId
integer<int32>
required

Body

application/json

The line items to create.

Quantity
number<decimal>
required

The quantity of the line item.

Required range: 0 <= x <= 2147483647
Example:

2

ItemId
integer<int32>
Name
string
Example:

"Awesome Binoculars"

SKU
string
Example:

"ART2394871"

SalesUnit
string
Example:

"stk"

SalesPriceNet
number<decimal>
Example:

16.8

SalesPriceGross
number<decimal>
Example:

19.99

Discount
number<decimal>
Example:

5

PurchasePriceNet
number<decimal>
Example:

13.46

TaxRate
number<decimal>
Example:

19

Notice
string
Example:

"Without sugar"

Response

The created line items.

Id
integer<int32>
required
SalesOrderId
integer<int32>
required
ItemId
integer<int32>
required
Name
string
required

Name of the position.

Example:

"Awesome Binoculars"

SKU
string
required

SKU of the sales order line item.

Example:

"ART2394871"

Type
enum<integer>
required

0 = Blank, 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

Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21
Quantity
number<decimal>
required

The quantity of the line item.

Example:

2

QuantityDelivered
number<decimal>
required

The quantity of the line item that has been delivered.

Example:

2

QuantityReturned
number<decimal>
required

The quantity of the line item that has been returned.

Example:

1

SalesUnit
string
required

The sales unit of the line item.

Example:

"stk"

SalesPriceNet
number<decimal>
required

The net sales price of the item. Only net or gross price can be entered. The other price will then be calculated.

Example:

16.8

SalesPriceGross
number<decimal>
required

The gross sales price of the item. Only net or gross price can be entered. The other price will then be calculated.

Example:

19.99

Discount
number<decimal>
required

The discount of the line item.

Example:

5

PurchasePriceNet
number<decimal>
required

The purchase price of the item.

Example:

13.46

TaxRate
number<decimal>
required

The tax rate of the line item.

Example:

19

Notice
string
required

Notice for the line item.

Example:

"Without sugar"