Skip to main content

CreateGRNItemInput

One line of a new goods receipt.

input CreateGRNItemInput {
acceptedQuantity: Float!
batchNumber: String
damageCount: Int!
defectCount: Int!
discountPercent: Float
expiryDate: String
metadata: JSON
notes: String
orderedQuantity: Float!
productId: String!
purchaseOrderItemId: String
qualityGrade: String
receivedQuantity: Float!
rejectedQuantity: Float!
taxRate: Float
unitCost: Float!
uomId: String
variantId: String!
vendorProductId: String
}

Fields​

CreateGRNItemInput.acceptedQuantity ● Float! non-null scalar​

The quantity accepted after inspection. Only this goes into stock.

CreateGRNItemInput.batchNumber ● String scalar​

The batch number of the stock.

CreateGRNItemInput.damageCount ● Int! non-null scalar​

How many damaged units were found. Defaults to 0.

CreateGRNItemInput.defectCount ● Int! non-null scalar​

How many defective units were found. Defaults to 0.

CreateGRNItemInput.discountPercent ● Float scalar​

The discount carried from the purchase order line, in percent. Defaults to 0.

CreateGRNItemInput.expiryDate ● String scalar​

The date the stock expires.

CreateGRNItemInput.metadata ● JSON scalar​

Additional data attached to the record, as JSON.

CreateGRNItemInput.notes ● String scalar​

Notes about the line.

CreateGRNItemInput.orderedQuantity ● Float! non-null scalar​

The quantity ordered.

CreateGRNItemInput.productId ● String! non-null scalar​

The ID of the product.

CreateGRNItemInput.purchaseOrderItemId ● String scalar​

The ID of the purchase order line the receipt line is against.

CreateGRNItemInput.qualityGrade ● String scalar​

The quality grade given to the line, for example A, B or C.

CreateGRNItemInput.receivedQuantity ● Float! non-null scalar​

The quantity that arrived.

CreateGRNItemInput.rejectedQuantity ● Float! non-null scalar​

The quantity rejected. Defaults to 0.

CreateGRNItemInput.taxRate ● Float scalar​

The tax rate carried from the purchase order line, in percent. Defaults to 0.

CreateGRNItemInput.unitCost ● Float! non-null scalar​

The cost of one unit, in the receipt currency.

CreateGRNItemInput.uomId ● String scalar​

The ID of the unit of measure.

CreateGRNItemInput.variantId ● String! non-null scalar​

The ID of the product variant.

CreateGRNItemInput.vendorProductId ● String scalar​

The ID of the vendor product the line is for.

Member Of​

CreateGRNInput input ● UpdateGRNInput input