inventorySupplierCreate Mutation
Description
Creates a new supplier with the specified name.
mutation inventorySupplierCreate($name: String!) {
inventorySupplierCreate(name: $name) {
_id
id
createdAt
modifiedAt
name
createdBy {
type
name
email
ref
}
addresses {
_id
description
firstName
lastName
addressLine1
addressLine2
streetNumber
city
state
stateCode
postCode
alpha2
country
type
}
contacts {
firstName
lastName
email
telephone
organisation
}
taxInformation
}
}
Variables
{
"name": "A name"
}
Response
{
"inventorySupplierCreate": {
"_id": "8227c1647180523198881b3c",
"id": "example",
"createdAt": 1745096064732,
"modifiedAt": 1754133794340,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "1de3a8941e1f5a5d59c43e98"
},
"addresses": [
{
"_id": "f518d4d1e145b94a87cf1026",
"description": "example",
"firstName": "example",
"lastName": "example",
"addressLine1": "example",
"addressLine2": "example",
"streetNumber": 42,
"city": "example",
"state": "example",
"stateCode": "example",
"postCode": "example",
"alpha2": "example",
"country": "example",
"type": "example"
}
],
"contacts": [
{
"firstName": "example",
"lastName": "example",
"email": "email@example.com",
"telephone": "example",
"organisation": "example"
}
],
"taxInformation": "example"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
name | String! | Name of the supplier to create. |