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": "e528a91369f40bdc925103c8",
"reportingRef": "732413c6b6c2a20376760dde"
}

Response

{
"inventorySupplierDeleteReporting": {
"_id": "8844b7ad62ca268f77f1a58b",
"createdAt": 1723215759343,
"modifiedAt": 1754255925255,
"name": "example",
"addresses": [
{
"_id": "f7a885604ff7e3517e97baae",
"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!