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
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": "62b6e9ac2283f7a6076c51e4",
"reportingRef": "66e585684307ae9e9b879860"
}

Response

{
"inventorySupplierDeleteReporting": {
"_id": "0ecd4d76c838e5a5d2744987",
"createdAt": 1725330927939,
"modifiedAt": 1725768419873,
"name": "example",
"addresses": [
{
"_id": "74b5d34a733bf4c78d21b677",
"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!