Price Levels Mutations

CreatePriceLevel

Creates a new price level.

Parameters:

ParameterTypeDescription
inputPriceLevelInput!Price level data.

Example Query:

mutation CreatePriceLevel($input: PriceLevelInput!) {
  CreatePriceLevel(input: $input) {
    id
    label
    type
  }
}

Example Variables:

{
  "input": {
    "label": "Wholesale Price",
    "type": "selling"
  }
}

UpdatePriceLevel

Updates an existing price level.

Parameters:

ParameterTypeDescription
idInt!ID of the price level.
inputPriceLevelInput!Updated data.

Example Query:

mutation UpdatePriceLevel($id: ID!, $input: PriceLevelInput!) {
  UpdatePriceLevel(id: $id, input: $input) {
    id
    active
  }
}

DeletePriceLevel

Deletes a price level.

Parameters:

ParameterTypeDescription
idInt!ID of the price level.

DisablePriceLevel

Deactivates a price level so it can no longer be used in new documents.

Parameters:

ParameterTypeDescription
idInt!ID of the price level to disable.

EnablePriceLevel

Re-activates a previously disabled price level.

Parameters:

ParameterTypeDescription
idInt!ID of the price level to enable.

Input Data Types

PriceLevelInput

FieldTypeDescription
idIntID.
labelStringName of the price level.
typePriceLevelTypeDefines if it is rules for purchasing or selling.

Enums

PriceLevelType

ValueDescription
sellingApplies to sales documents (Quotes, Invoices, etc.).
purchasingApplies to purchase documents (Purchase Orders, etc.).