Supplier SKU Variant Price Mutations

SetSupplierSkuVariantPrice

Creates or updates a supplier-specific SKU and purchase price for a product variant.

Parameters:

ParameterTypeDescription
inputSupplierSkuVariantPriceInput!Price and SKU data.

Example Query:

mutation SetSupplierSkuVariantPrice($input: SupplierSkuVariantPriceInput!) {
  SetSupplierSkuVariantPrice(input: $input)
}

Example Variables:

{
  "input": {
    "variant_id": 10001,
    "supplier_id": 5001,
    "sku": "SUP-XYZ-123",
    "amount": 15.50,
    "currency": { "label": "USD" }
  }
}

Example Result:

{
  "data": {
    "SetSupplierSkuVariantPrice": true
  }
}

Input Data Types

SupplierSkuVariantPriceInput

FieldTypeDescription
variant_idInt!ID of the product variant.
supplier_idInt!ID of the supplier.
skuStringThe supplier's SKU for this product.
minimum_quantityFloatMinimum quantity for this price tier.
amountFloatThe purchase price from this supplier.
currencyCurrencyInputCurrency of the purchase price.
price_tiers[SupplierVariantPriceTierInput]Volume-based price tiers.
price_tiers[SupplierVariantPriceTierInput]Price tiers for quantity-based pricing.