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
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

{
"supplierRef": "cac9e5b45ad165006871ec8a"
}

Response

{
"inventorySupplierCreateReporting": {
"_id": "f5d1ab0631405612dce3bd5c",
"createdAt": 1732364489031,
"modifiedAt": 1730691645058,
"name": "example",
"addresses": [
{
"_id": "7f3f182e1d24046fc9e26b1f",
"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!