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": "cc4e24c71fa3a747da0e21f8",
"reportingRef": "d136e7c06ee9f0bc4ad97f3e"
}
Response
{
"inventorySupplierDeleteReporting": {
"_id": "67ffbcb10f31a7288d778c7f",
"id": "example",
"createdAt": 1781074407073,
"modifiedAt": 1762718050874,
"name": "example",
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "a2199e0e71e1ef56ed28b172"
},
"addresses": [
{
"_id": "2616fb0a8d5c5383228afe74",
"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
| Name | Type | Description |
|---|---|---|
supplierRef | ID! | Reference ID of the supplier to delete reporting for. |
reportingRef | ID! | Reference ID of the specific reporting relationship to delete. |