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": "9e146ebda75c6bcc6cc6505e"
}
Response
{
"inventorySupplierCreateReporting": {
"_id": "5e4b61e809f56e39378ce9b3",
"createdAt": 1755857054176,
"modifiedAt": 1733519998956,
"name": "example",
"addresses": [
{
"_id": "32a15dd4ffc78749e1687074",
"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 |
|---|---|---|
supplierRef | ID! | Reference ID of the supplier to create reporting for. |