CreatePriceLevel
CreatePriceLevelCreates a new price level.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | PriceLevelInput! | Price level data. |
Example Query:
mutation CreatePriceLevel($input: PriceLevelInput!) {
CreatePriceLevel(input: $input) {
id
label
type
}
}Example Variables:
{
"input": {
"label": "Wholesale Price",
"type": "selling"
}
}UpdatePriceLevel
UpdatePriceLevelUpdates an existing price level.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the price level. |
input | PriceLevelInput! | Updated data. |
Example Query:
mutation UpdatePriceLevel($id: ID!, $input: PriceLevelInput!) {
UpdatePriceLevel(id: $id, input: $input) {
id
active
}
}DeletePriceLevel
DeletePriceLevelDeletes a price level.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the price level. |
DisablePriceLevel
DisablePriceLevelDeactivates a price level so it can no longer be used in new documents.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the price level to disable. |
EnablePriceLevel
EnablePriceLevelRe-activates a previously disabled price level.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the price level to enable. |
Input Data Types
PriceLevelInput
PriceLevelInput| Field | Type | Description |
|---|---|---|
id | Int | ID. |
label | String | Name of the price level. |
type | PriceLevelType | Defines if it is rules for purchasing or selling. |
Enums
PriceLevelType
PriceLevelType| Value | Description |
|---|---|
selling | Applies to sales documents (Quotes, Invoices, etc.). |
purchasing | Applies to purchase documents (Purchase Orders, etc.). |
