Skip to main content

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": "83c93e51b5796a1a654a71cb",
"reportingRef": "c154c20358e3e59fb5d18692"
}

Response

{
"inventorySupplierDeleteReporting": {
"_id": "2a7251aacc6979551d962f6e",
"id": "example",
"createdAt": 1754737658468,
"modifiedAt": 1745143319212,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "fc2c02d6a0222a26d770900c"
},
"addresses": [
{
"_id": "2e5b2572c38e1e44850cda3e",
"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 delete reporting for.
reportingRefID!Reference ID of the specific reporting relationship to delete.

Returns

Supplier!