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": "8f8bed77eaa3ebf1a3ea9fe5"
}
Response
{
"inventorySupplierCreateReporting": {
"_id": "8c79cf1528dd114532663169",
"createdAt": 1747860570720,
"modifiedAt": 1717038377896,
"name": "example",
"addresses": [
{
"_id": "861c0456e200aad3c507ba9b",
"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. |