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": "0e2de6098fc7197ebdeb98ee"
}

Response

{
"inventorySupplierCreateReporting": {
"_id": "3636b2a28a42d1891da9eb29",
"createdAt": 1745056810512,
"modifiedAt": 1768112322432,
"name": "example",
"addresses": [
{
"_id": "74ecb6908a77b67bebdbfd00",
"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!