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": "c89aecae60d34ab9f0e401cc",
"id": "example",
"createdAt": 1762445259025,
"modifiedAt": 1762064712462,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "950e2ecbcd36b1dde93f4d08"
},
"addresses": [
{
"_id": "3739ce30bd61a97faefcaf3e",
"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. |