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": "1765011e41a2e700d53edadf",
"createdAt": 1736387253623,
"modifiedAt": 1737471913562,
"name": "example",
"addresses": [
{
"_id": "05f39db6856badcb35576ac2",
"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. |