Suppliers
Example Mutation
mutation AssignSupplier($id: ID!) {
assignSupplier(id: $id) {
id,
name,
parent,
deleted,
mdbId
}
}
# Example variables
{
"id": "<ID>"
}Mutation
createOrFindSupplier — Returns CreateOrFindSupplierResponse
Scopes Required: see_suppliers create_suppliers
Create or Find a Supplier
| Arguments | Type | Description |
|---|---|---|
|
matchDetails |
The Supplier values to search for |
Example Mutation
mutation CreateOrFindSupplier($matchDetails: SupplierInput!) {
createOrFindSupplier(matchDetails: $matchDetails) {
created
}
}
# Example variables
{
"matchDetails": []
}Mutation
createSupplier — Returns Supplier
Scopes Required: create_suppliers
Create a new supplier
| Arguments | Type | Description |
|---|---|---|
|
mdbId |
Int |
The master database reference of the supplier |
|
name |
String! |
The name of the supplier |
|
status |
The status for the supplier, if inactive new orders cannot be created |
|
|
contact |
The contact details for the supplier |
|
|
businessNumber |
String |
The business number (ABN) of the supplier |
|
accountNumber |
String |
The account number assigned to this vendor |
|
orderNotes |
String |
Notes to display when ordering stock (presume this is visible by the supplier) |
|
internalOrderNotes |
String |
Internal notes to display when ordering stock (not displayed outside Shopfront) |
|
orderAutomaticEmail |
Boolean |
Whether to automatically email the supplier when ordering stock |
|
defaultOrderTax |
The default tax type to use when receiving stock |
|
|
emailFormat |
The email format to use when sending orders to the supplier |
|
|
comments |
String |
Any internal comments to make about the supplier |
|
feeAmount |
Float |
The default payment fee amount when receiving supplier invoices |
|
distributeFees |
The method used to distribute fees when receiving invoices |
|
|
distributeFreight |
The method used to distribute freight when receiving invoices |
|
|
authentication |
The authentication details used for the supplier (internal only) |
|
|
freightIncludedOnInvoices |
Boolean |
Whether freight is included on this supplier's invoices by default |
|
freightTax |
The tax rate used when receiving freight on orders |
|
|
feesTax |
The tax rate used when receiving fees on orders |
|
|
allowOrderBelowMinimum |
Boolean |
Whether to allow orders to be sent with a value less than the minimumOrderValue |
|
minimumOrderValue |
Float |
The minimum value an order can be to this supplier |
|
maximumOrderValue |
Float |
The maximum value an order can be to this supplier |
|
defaultDaysUntilDue |
Int |
The default number of days until a new order is due |
|
freightFixedCostPerCase |
Float |
The cost of freight to apply to each cost through Shopfront's UI when editing an invoice |
|
additionalContacts |
The additional contacts of the suppliers |
Example Mutation
mutation CreateSupplier($name: String!) {
createSupplier(name: $name) {
id,
name,
parent,
deleted,
mdbId
}
}
# Example variables
{
"name": "<NAME>"
}Mutation
deleteSupplier — Returns Supplier
Scopes Required: delete_suppliers
| Arguments | Type | Description |
|---|---|---|
|
id |
The ID of the supplier to delete |
Example Mutation
mutation DeleteSupplier($id: ID!) {
deleteSupplier(id: $id) {
id,
name,
parent,
deleted,
mdbId
}
}
# Example variables
{
"id": "<ID>"
}Mutation
mergeSuppliers — Returns Supplier
Scopes Required: create_suppliers delete_suppliers
Merge suppliers into a new supplier
| Arguments | Type | Description |
|---|---|---|
|
mdbId |
Int |
The master database reference of the supplier |
|
name |
String! |
The name of the supplier |
|
status |
The status for the supplier, if inactive new orders cannot be created |
|
|
contact |
The contact details for the supplier |
|
|
businessNumber |
String |
The business number (ABN) of the suppleir |
|
accountNumber |
String |
The account number assigned to this vendor |
|
orderNotes |
String |
Notes to display when ordering stock (presume this is visible by the supplier) |
|
internalOrderNotes |
String |
Internal notes to display when ordering stock (not displayed outside Shopfront) |
|
orderAutomaticEmail |
Boolean |
Whether to automatically email the supplier when ordering stock |
|
defaultOrderTax |
The default tax type to use when receiving stock |
|
|
emailFormat |
The email format to use when sending orders to the supplier |
|
|
comments |
String |
Any internal comments to make about the supplier |
|
feeAmount |
Float |
The default payment fee amount when receiving supplier invoices |
|
distributeFees |
The method used to distribute fees when receiving invoices |
|
|
distributeFreight |
The method used to distribute freight when receiving invoices |
|
|
authentication |
The authentication details used for the supplier (internal only) |
|
|
freightIncludedOnInvoices |
Boolean |
Whether freight is included on this supplier's invoices by default |
|
freightTax |
The tax rate used when receiving freight on orders |
|
|
feesTax |
The tax rate used when receiving fees on orders |
|
|
allowOrderBelowMinimum |
Boolean |
Whether to allow orders to be sent with a value less than the minimumOrderValue |
|
minimumOrderValue |
Float |
The minimum value an order can be to this supplier |
|
maximumOrderValue |
Float |
The maximum value an order can be to this supplier |
|
defaultDaysUntilDue |
Int |
The default number of days until a new order is due |
|
freightFixedCostPerCase |
Float |
The cost of freight to apply to each cost through Shopfront's UI when editing an invoice |
|
additionalContacts |
The additional contacts of the suppliers |
|
|
merge |
The list of supplier IDs to merge into the new supplier |
Example Mutation
mutation MergeSuppliers($name: String!) {
mergeSuppliers(name: $name) {
id,
name,
parent,
deleted,
mdbId
}
}
# Example variables
{
"name": "<NAME>"
}Mutation
updateSupplier — Returns Supplier
Scopes Required: edit_suppliers
| Arguments | Type | Description |
|---|---|---|
|
id |
The ID of the supplier |
|
|
mdbId |
Int |
The master database reference of the supplier |
|
name |
String! |
The name of the supplier |
|
status |
The status for the supplier, if inactive new orders cannot be created |
|
|
contact |
The contact details for the supplier |
|
|
businessNumber |
String |
The business number (ABN) of the suppleir |
|
accountNumber |
String |
The account number assigned to this vendor |
|
orderNotes |
String |
Notes to display when ordering stock (presume this is visible by the supplier) |
|
internalOrderNotes |
String |
Internal notes to display when ordering stock (not displayed outside Shopfront) |
|
orderAutomaticEmail |
Boolean |
Whether to automatically email the supplier when ordering stock |
|
defaultOrderTax |
The default tax type to use when receiving stock |
|
|
emailFormat |
The email format to use when sending orders to the supplier |
|
|
comments |
String |
Any internal comments to make about the supplier |
|
feeAmount |
Float |
The default payment fee amount when receiving supplier invoices |
|
distributeFees |
The method used to distribute fees when receiving invoices |
|
|
distributeFreight |
The method used to distribute freight when receiving invoices |
|
|
authentication |
The authentication details used for the supplier (internal only) |
|
|
freightIncludedOnInvoices |
Boolean |
Whether freight is included on this supplier's invoices by default |
|
freightTax |
The tax rate used when receiving freight on orders |
|
|
feesTax |
The tax rate used when receiving fees on orders |
|
|
allowOrderBelowMinimum |
Boolean |
Whether to allow orders to be sent with a value less than the minimumOrderValue |
|
minimumOrderValue |
Float |
The minimum value an order can be to this supplier |
|
maximumOrderValue |
Float |
The maximum value an order can be to this supplier |
|
defaultDaysUntilDue |
Int |
The default number of days until a new order is due() |
|
freightFixedCostPerCase |
Float |
The cost of freight to apply to each cost through Shopfront's UI when editing an invoice |
|
additionalContacts |
The additional contacts of the suppliers |
Example Mutation
mutation UpdateSupplier($id: ID!, $name: String!) {
updateSupplier(id: $id, name: $name) {
id,
name,
parent,
deleted,
mdbId
}
}
# Example variables
{
"id": "<ID>",
"name": "<NAME>"
}