Skip to main content

removeGRN

Requires permission purchase:grn:delete.

Deletes a goods receipt. A GRN that has posted stock cannot be deleted, because a posted receipt cannot be reversed: correct it with an inventory adjustment or a purchase return. A GRN with lines already billed on a purchase invoice cannot be deleted either. Needs the goods receipt (GRN) feature on your plan.

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 RemoveGRN($id: ID!) {
removeGRN(id: $id) {
id
grnNumber
vehicleNumber
driverName
status
createdAt
inspector {
id
firstName
lastName
email
}
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"removeGRN": {
"id": "id",
"grnNumber": "string",
"vehicleNumber": "string",
"driverName": "string",
"status": "string",
"createdAt": "2025-01-15T00:00:00Z",
"inspector": {
"id": "id",
"firstName": "string",
"lastName": "string",
"email": "string"
}
}
}
}
removeGRN(
id: ID!
): GRN!

Arguments​

removeGRN.id ● ID! non-null scalar​

The ID of the goods receipt note.

Type​

GRN object​

A goods receipt note: goods received from a vendor into a warehouse, usually against a purchase order.