Skip to main content

removePartner

Requires at least one of the permissions customers:customer:delete or suppliers:supplier:delete.

Deletes a partner. A customer needs the customers delete permission, a supplier the suppliers delete permission, and a partner with both roles needs both. Refused while the partner has open orders.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RemovePartner($id: ID!) {
removePartner(id: $id) {
id
code
registrationNumber
name
displayName
legalName
addresses {
id
postalCode
contactName
type
createdAt
city
}
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"removePartner": {
"id": "id",
"code": "string",
"registrationNumber": "string",
"name": "string",
"displayName": "string",
"legalName": "string",
"addresses": [
{
"id": "id",
"postalCode": "string",
"contactName": "string",
"type": "string",
"createdAt": "2025-01-15T00:00:00Z",
"city": "string"
}
]
}
}
}
removePartner(
id: ID!
): Partner!

Arguments​

removePartner.id ● ID! non-null scalar​

The ID of the partner.

Type​

Partner object​

A partner: the one master record for customers and vendors, with its roles, addresses, contacts and account details.