inventorySupplierDeleteReporting Mutation
Description
Deletes a reporting relationship for a supplier.
mutation inventorySupplierDeleteReporting(
$supplierRef: ID!
$reportingRef: ID!
) {
inventorySupplierDeleteReporting(
supplierRef: $supplierRef
reportingRef: $reportingRef
) {
_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": "5c0a419b182effc3adbff207",
"reportingRef": "ac3dae6f1f480ccafb2efe81"
}
Response
{
"inventorySupplierDeleteReporting": {
"_id": "b6424774baf290aef4c22b5a",
"id": "example",
"createdAt": 1746842062394,
"modifiedAt": 1788164088160,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "2688e70ba56911657f118447"
},
"addresses": [
{
"_id": "ab0548fee0afb1ac03cff29f",
"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 delete reporting for. |
reportingRef | ID! | Reference ID of the specific reporting relationship to delete. |