Skip to main content

inventorySupplierCreateReporting Mutation

Description​

Creates a reporting relationship for a supplier, allowing the supplier to access reporting features.

mutation inventorySupplierCreateReporting($supplierRef: ID!) {
inventorySupplierCreateReporting(supplierRef: $supplierRef) {
_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​

{
"supplierRef": "ac03a3dbd1aa1b3d77e38e99"
}

Response​

{
"inventorySupplierCreateReporting": {
"_id": "166d1facacce34129cd45e6e",
"id": "example",
"createdAt": 1772664749868,
"modifiedAt": 1768177968183,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "22888155d5acc4c7e6d71693"
},
"addresses": [
{
"_id": "b510968846f5814108b742c7",
"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
supplierRefID!Reference ID of the supplier to create reporting for.

Returns​

Supplier!