Skip to main content

AddProductSupplierConfigurationInput

Input for addProductSupplierConfiguration. Registers a new supplier as a procurement source for a product. Purchase prices may be passed as a single flattened gross/net pair (single-currency shortcut) or as a purchasePrices list with one entry per currency. The list takes precedence when both shapes are supplied.

input AddProductSupplierConfigurationInput {
productId: ID!
supplierId: ID!
supplierProductNumber: String
minPurchase: Int
purchaseSteps: Int
deliveryTimeDays: Int
purchasePriceGross: Float
purchasePriceNet: Float
currencyId: ID
purchasePrices: [PurchasePriceInput!]
}

Fields

AddProductSupplierConfigurationInput.productId ● ID! non-null scalar

ID of the product.

AddProductSupplierConfigurationInput.supplierId ● ID! non-null scalar

ID of the supplier.

AddProductSupplierConfigurationInput.supplierProductNumber ● String scalar

Supplier's own article number for the product (i.e. how the supplier identifies the product).

AddProductSupplierConfigurationInput.minPurchase ● Int scalar

Minimum purchasable quantity from this supplier.

AddProductSupplierConfigurationInput.purchaseSteps ● Int scalar

Step size in which the product can be ordered (e.g. multiples of 6).

AddProductSupplierConfigurationInput.deliveryTimeDays ● Int scalar

Lead time in days. Overrides the supplier-wide default when set.

AddProductSupplierConfigurationInput.purchasePriceGross ● Float scalar

Gross unit purchase price in the chosen currency. Ignored when purchasePrices is supplied.

AddProductSupplierConfigurationInput.purchasePriceNet ● Float scalar

Net unit purchase price in the chosen currency. Ignored when purchasePrices is supplied.

AddProductSupplierConfigurationInput.currencyId ● ID scalar

ID of the currency the flattened gross/net pair is denominated in. Defaults to the system default currency when omitted. Ignored when purchasePrices is supplied.

AddProductSupplierConfigurationInput.purchasePrices ● [PurchasePriceInput!] list input

Multi-currency purchase prices. When supplied, each entry is written verbatim to the underlying PriceField and the flattened purchasePriceGross / purchasePriceNet / currencyId fields are ignored. At most one entry per currencyId; an empty list is rejected. An entry for the default currency is required, omitting it causes an error.

Member Of

addProductSupplierConfiguration mutation