Suppliers Mutations

CreateSupplier

Creates a new supplier record.

Parameters:

ParameterTypeDescription
inputSupplierInput!Supplier information.

Example Query:

mutation CreateSupplier($input: SupplierInput!) {
  CreateSupplier(input: $input) {
    id
    label
    email
    active
  }
}

UpdateSupplier

Updates an existing supplier record.

Parameters:

ParameterTypeDescription
idInt!ID of the supplier.
inputSupplierInput!Fields to update.

DeleteSupplier

Deletes a single supplier.

Parameters:

ParameterTypeDescription
idID!Supplier ID.

DeleteSuppliers

Deletes multiple suppliers.

Parameters:

ParameterTypeDescription
ids[ID!]!List of supplier IDs.

DisableSupplier

Deactivates a single supplier.

Parameters:

ParameterTypeDescription
idID!Supplier ID.

DisableSuppliers

Deactivates multiple suppliers.

Parameters:

ParameterTypeDescription
ids[ID!]!List of supplier IDs.

EnableSupplier

Re-activates a single supplier.

Parameters:

ParameterTypeDescription
idID!Supplier ID.

EnableSuppliers

Re-activates multiple suppliers.

Parameters:

ParameterTypeDescription
ids[ID!]!List of supplier IDs.

DuplicateSupplier

Creates a copy of an existing supplier.


GenerateSupplierNumber

Generates the next available sequence number for a new supplier.


Input Data Types

SupplierInput

FieldTypeDescription
idIntID for updates.
labelStringSupplier or company name.
phoneStringPrimary contact phone.
emailStringPrimary contact email.
currencyCurrencyInputProcurement currency.
addressAddressInputPrimary business address.
supplier_numberStringReference number.
websiteStringWebsite URL.
notesStringPublic notes for documents.
price_level_idIntPrice level ID.
price_levelPriceLevelInputPrice level data.
discountFloatDefault discount rate.
languageStringPreferred language.
tax_codes[TaxCodeInput]Applied tax codes.
supplier_tags[SupplierTagInput]Categorization tags.
files[FileInput]Attachments.
purchase_templatePdfTemplateInputPurchase Order design.
purchase_receipt_templatePdfTemplateInputPurchase Receipt design.
defaultBooleanSet as default supplier.
custom_fields[EntityCustomFieldInput]Custom fields for this entity.

SupplierIDInput

FieldTypeDescription
idID!Supplier ID (required).