CreateSupplier
CreateSupplierCreates a new supplier record.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | SupplierInput! | Supplier information. |
Example Query:
mutation CreateSupplier($input: SupplierInput!) {
CreateSupplier(input: $input) {
id
label
email
active
}
}UpdateSupplier
UpdateSupplierUpdates an existing supplier record.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the supplier. |
input | SupplierInput! | Fields to update. |
DeleteSupplier
DeleteSupplierDeletes a single supplier.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Supplier ID. |
DeleteSuppliers
DeleteSuppliersDeletes multiple suppliers.
Parameters:
| Parameter | Type | Description |
|---|---|---|
ids | [ID!]! | List of supplier IDs. |
DisableSupplier
DisableSupplierDeactivates a single supplier.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Supplier ID. |
DisableSuppliers
DisableSuppliersDeactivates multiple suppliers.
Parameters:
| Parameter | Type | Description |
|---|---|---|
ids | [ID!]! | List of supplier IDs. |
EnableSupplier
EnableSupplierRe-activates a single supplier.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Supplier ID. |
EnableSuppliers
EnableSuppliersRe-activates multiple suppliers.
Parameters:
| Parameter | Type | Description |
|---|---|---|
ids | [ID!]! | List of supplier IDs. |
DuplicateSupplier
DuplicateSupplierCreates a copy of an existing supplier.
GenerateSupplierNumber
GenerateSupplierNumberGenerates the next available sequence number for a new supplier.
Input Data Types
SupplierInput
SupplierInput| Field | Type | Description |
|---|---|---|
id | Int | ID for updates. |
label | String | Supplier or company name. |
phone | String | Primary contact phone. |
email | String | Primary contact email. |
currency | CurrencyInput | Procurement currency. |
address | AddressInput | Primary business address. |
supplier_number | String | Reference number. |
website | String | Website URL. |
notes | String | Public notes for documents. |
price_level_id | Int | Price level ID. |
price_level | PriceLevelInput | Price level data. |
discount | Float | Default discount rate. |
language | String | Preferred language. |
tax_codes | [TaxCodeInput] | Applied tax codes. |
supplier_tags | [SupplierTagInput] | Categorization tags. |
files | [FileInput] | Attachments. |
purchase_template | PdfTemplateInput | Purchase Order design. |
purchase_receipt_template | PdfTemplateInput | Purchase Receipt design. |
default | Boolean | Set as default supplier. |
custom_fields | [EntityCustomFieldInput] | Custom fields for this entity. |
SupplierIDInput
SupplierIDInput| Field | Type | Description |
|---|---|---|
id | ID! | Supplier ID (required). |
