SetVariantPrice
SetVariantPriceSets or updates a variant price for a specific priceable entity (Customer, Supplier, or PriceLevel).
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | VariantPriceInput | Price data. |
Example Query:
mutation SetVariantPrice($input: VariantPriceInput!) {
SetVariantPrice(input: $input)
}Input Data Types
VariantPriceInput
VariantPriceInput| Field | Type | Description |
|---|---|---|
amount | Float | Price amount. |
currency | CurrencyInput! | Currency (required). |
variant | VariantInput | Linked variant. |
priceable | PriceableInput | Target entity. |
PriceableInput
PriceableInput| Field | Type | Description |
|---|---|---|
id | Int | Entity ID. |
type | VariantPriceType | Entity type. |
Enums
VariantPriceType
VariantPriceType| Value | Description |
|---|---|
Customer | Customer entity. |
Supplier | Supplier entity. |
PriceLevel | Price level entity. |
