SetSupplierSkuVariantPrice
SetSupplierSkuVariantPriceCreates or updates a supplier-specific SKU and purchase price for a product variant.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | SupplierSkuVariantPriceInput! | 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
SupplierSkuVariantPriceInput| Field | Type | Description |
|---|---|---|
variant_id | Int! | ID of the product variant. |
supplier_id | Int! | ID of the supplier. |
sku | String | The supplier's SKU for this product. |
minimum_quantity | Float | Minimum quantity for this price tier. |
amount | Float | The purchase price from this supplier. |
currency | CurrencyInput | Currency of the purchase price. |
price_tiers | [SupplierVariantPriceTierInput] | Volume-based price tiers. |
price_tiers | [SupplierVariantPriceTierInput] | Price tiers for quantity-based pricing. |
