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": "14411d838a0858511ad75e60",
"reportingRef": "056162f93f52d02858354aed"
}

Response

{
"inventorySupplierDeleteReporting": {
"_id": "1cd1c18ac384af0ca44e9c09",
"id": "example",
"createdAt": 1774554308600,
"modifiedAt": 1736847863813,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "c6f32504eff88d0dabfaa001"
},
"addresses": [
{
"_id": "bd46d20ba0ba6d51fb72fb86",
"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!