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": "3b12d7cd193d85f067309ccf",
"reportingRef": "d1a4ce26496bf3d2eb5c3ffd"
}

Response

{
"inventorySupplierDeleteReporting": {
"_id": "3fb2e9b02f499cba750e2ad1",
"createdAt": 1750365787058,
"modifiedAt": 1724090777163,
"name": "example",
"addresses": [
{
"_id": "65a6523a36d2aa7227b60f2f",
"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!