Create Supplier
Create Supplier Mutation
Creates a new supplier entity in the system.
Arguments
input
CreateSupplierInput!
Input data for creating the supplier
Return Type
Supplier - The created supplier object.
Input Fields
CreateSupplierInput:
dataTypeID
UUID
Optional data type ID
dataTypeSlug
String
Optional data type slug
data
Map
Custom data for the supplier
Usage Example
mutation {
createSupplier(
input: {
dataTypeSlug: "domestic_supplier",
data: {
"name": "ACME Supply Co.",
"code": "SUP-001",
"email": "[email protected]",
"phone": "+1-555-0123",
"address": {
"street": "123 Industrial Way",
"city": "Manufacturing City",
"state": "CA",
"zip": "90210",
"country": "USA"
},
"contactPerson": "John Doe",
"paymentTerms": "NET30",
"leadTimeDays": 7,
"minimumOrderValue": 500.00,
"preferredDeliveryDays": ["Monday", "Wednesday", "Friday"],
"certifications": ["ISO9001", "ISO14001"],
"vendorRating": 4.5
}
}
) {
id
dataTypeSlug
data
createdAt
}
}Common Data Fields
While the data field is flexible, common supplier attributes include:
name- Supplier company namecode- Unique supplier codeemail- Primary contact emailphone- Contact phone numberaddress- Supplier address objectcontactPerson- Primary contact namepaymentTerms- Payment terms (NET30, COD, etc.)leadTimeDays- Standard lead timeminimumOrderValue- Minimum order amountcertifications- Quality certificationsvendorRating- Supplier rating
Notes
The
datafield is completely flexible for custom attributesUse
dataTypeSlugto categorize suppliersConsider creating virtual repositories named after suppliers for receiving
Supplier codes should be unique within your system
Last updated
Was this helpful?
