setProductDefaultSupplier
Makes a supplier the default supplier of a product, replacing the previous default supplier if the product has one. The supplier must already be configured for the product (see addProductSupplierConfiguration). Like changing the default supplier in the Administration, this copies the purchase price of the new default supplier to the product. Returns the configuration row of the new default supplier.
Required scopes
The token needs the product_supplier_configurations:write access scope.
setProductDefaultSupplier(
productId: ID!
supplierId: ID!
): ProductSupplierConfiguration!
Arguments
setProductDefaultSupplier.productId ● ID! non-null scalar
ID of the product.
setProductDefaultSupplier.supplierId ● ID! non-null scalar
ID of the supplier that becomes the default supplier of the product.
Type
ProductSupplierConfiguration object
Per-supplier procurement configuration for a single product. One row per (product, supplier) pair, storing the supplier-side article number, lot-size constraints, lead time and the agreed purchase price. Drives the line-item defaults used when a supplier order is opened.