Skip to main content

inventorySupplierCreate Mutation

Description

Creates a new supplier with the specified name.

mutation inventorySupplierCreate($name: String!) {
inventorySupplierCreate(name: $name) {
_id
createdAt
modifiedAt
name
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": "5aa52a1d2ea17c5624bd0601",
"createdAt": 1740467825119,
"modifiedAt": 1733259765720,
"name": "example",
"addresses": [
{
"_id": "28e8f0b120677fb9e8bd2125",
"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

NameTypeDescription
nameString!Name of the supplier to create.

Returns

Supplier!