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": "413507265234b41d9eb45810"
}

Response

{
"inventorySupplierCreateReporting": {
"_id": "7e2242cfe64dcbb9955f3e30",
"id": "example",
"createdAt": 1726506763974,
"modifiedAt": 1764949826568,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "dc1735d149cce4dc3d415e99"
},
"addresses": [
{
"_id": "80362ad25cf1df31a6994e3c",
"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!