Skip to main content
POST
/
items
/
{itemId}
/
suppliers
Create Item Supplier
curl --request POST \
  --url https://api.jtl-cloud.com/erp/items/{itemId}/suppliers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-appid: <x-appid>' \
  --header 'x-appversion: <x-appversion>' \
  --header 'x-tenant-id: <x-tenant-id>' \
  --data '
{
  "SupplierId": 123,
  "Sku": "ART2394871",
  "ItemName": "Interdimensional Goggles",
  "IsStandard": false,
  "PurchasePriceNet": 97.23,
  "TaxRate": 19,
  "MinimumPurchaseQuantity": 1,
  "PermissibleOrderQuantity": 2,
  "DeliveryTime": 2,
  "UseSupplierDeliveryTime": false,
  "Stocklevel": 34,
  "IsDropshipping": false,
  "MergeStockLevel": false,
  "Comment": "A custom comment",
  "PackagingUnit": "box",
  "AmountPackagingUnit": 1,
  "ScalePrices": [
    {
      "FromQuantity": 0,
      "PurchasePriceNet": 94.21,
      "ReduceStandardPriceByPercent": 5
    }
  ]
}
'
{
  "ItemId": 123,
  "SupplierId": 123,
  "Sku": "ART2394871",
  "ItemName": "Interdimensional Goggles",
  "IsStandard": false,
  "PurchasePriceNet": 97.23,
  "TaxRate": 19,
  "MinimumPurchaseQuantity": 1,
  "PermissibleOrderQuantity": 2,
  "DeliveryTime": 2,
  "UseSupplierDeliveryTime": false,
  "Stocklevel": 34,
  "IsDropshipping": false,
  "MergeStockLevel": false,
  "Comment": "A custom comment",
  "PackagingUnit": "box",
  "AmountPackagingUnit": 1,
  "PackagingUnitPurchasePriceNet": 94.21,
  "ScalePrices": [
    {
      "FromQuantity": 0,
      "PurchasePriceNet": 94.21,
      "ReduceStandardPriceByPercent": 5
    }
  ]
}

Authorizations

Authorization
string
header
required

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

x-api-key
string
header
required

Optional: If no token is present, the API Gateway injects it.

Headers

api-version
string

Specify the desired API version, e.g. '1.0'. If not provided, the last available version is set.

x-appid
string
required

This is the name of your application, e.g. "MyApp/1.0.0". It is used to identify your application.

x-appversion
string
required

This is where the version number of your application is entered, e.g. "1.0.0".

x-runas
string

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

X-SessionId
string<uuid>

The id of a session in which the call will be executed.

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

itemId
integer<int32>
required

Body

application/json

The itemSupplier to create.

Model Class: CreateItemSupplier

SupplierId
integer<int32>
required
Sku
string
Example:

"ART2394871"

ItemName
string
Example:

"Interdimensional Goggles"

IsStandard
boolean
Example:

false

PurchasePriceNet
number<decimal>
Example:

97.23

TaxRate
number<decimal>
Example:

19

MinimumPurchaseQuantity
number<decimal>
Example:

1

PermissibleOrderQuantity
number<decimal>
Example:

2

DeliveryTime
integer<int32>
Example:

2

UseSupplierDeliveryTime
boolean
Example:

false

Stocklevel
number<decimal>
Example:

34

IsDropshipping
boolean
Example:

false

MergeStockLevel
boolean
Example:

false

Comment
string
Example:

"A custom comment"

PackagingUnit
string
Example:

"box"

AmountPackagingUnit
number<decimal>
Example:

1

ScalePrices
object[]

Response

The created itemSupplier.

Model Class: ItemSupplier

ItemId
integer<int32>
required
SupplierId
integer<int32>
required
Sku
string
required

Item SKU from the supplier.

Example:

"ART2394871"

ItemName
string
required

Item name from the supplier.

Example:

"Interdimensional Goggles"

IsStandard
boolean
required

Defines the main supplier for the given item.

Example:

false

PurchasePriceNet
number<decimal>
required

Net purchase price from the supplier.

Example:

97.23

TaxRate
number<decimal>
required

Percent of VAT tax rate.

Example:

19

MinimumPurchaseQuantity
number<decimal>
required

The minimum purchase quantity from the supplier.

Example:

1

PermissibleOrderQuantity
number<decimal>
required

The permissible order quantity for the item from the supplier. The increments in which the item can be sold.

Example:

2

DeliveryTime
integer<int32>
required

Delivery time in days.

Example:

2

UseSupplierDeliveryTime
boolean
required

If set to true, Wawi will use the delivery time provided by the supplier and not by the item information. DeliveryTime will then be ignored.

Example:

false

Stocklevel
number<decimal>
required

Stock level of the item at the supplier.

Example:

34

IsDropshipping
boolean
required

Activates drop shipping for a given item and supplier.

Example:

false

MergeStockLevel
boolean
required

Forces Wawi to add the supplier's stock to your own stock.

Example:

false

Comment
string
required

Comment for the supplier.

Example:

"A custom comment"

PackagingUnit
string
required

Name of the packaging unit.

Example:

"box"

AmountPackagingUnit
number<decimal>
required

Quantity in a packaging unit.

Example:

1

PackagingUnitPurchasePriceNet
number<decimal>
required

Net purchase price from the supplier for a packaging unit.

Example:

94.21

ScalePrices
object[]
required

Scale prices from this supplier for the item.