Received Notes (GRN)
Goods Received Notes (GRN) API.
GRN is used to received products in a purchase order or a stock transfer.
The GRN API is common for both purchase orders and stock transfers.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
Conditions applicable to Goods Received Notes
- A GRN can be created when the PO is marked
INCOMING. - GRN needs to be
RECEIVEDto increase the stock levels.
List GRN
List of Received Notes (GRN)
GRN is used to received products in a purchase order or a stock transfer.
The GRN API is common for both purchase orders and stock transfers.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
path Parameters
document_type^orders|stock-transf… · requiredpo_idquery Parameters
is_task_in_progresslimitNumber of results to return per page.
oOrdering
id- Id-id- Id (descending)updated- Updated-updated- Updated (descending)
offsetThe initial index from which to return the results.
orderingWhich field to use when ordering the results.
statusList GRN › Responses
countnextpreviousCreate GRN
Goods Receive Note (GRN) Create API.
GRN is used to received products in a purchase order or a stock transfer.
The GRN API is common for both purchase orders and stock transfers.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
GRN creation raises:
- ValidationError if the PO is not in INCOMING status.
- ValidationError if the PO already has 200 receive notes.
path Parameters
document_type^orders|stock-transf… · requiredpo_idCreate GRN › Request Body
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
extra_charges^-?\d{0,10}(?:\.\d{0… · requiredextra_shipping^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredpurchase_order_idis_stock_transferdelivery_timewarehouse_idIf GRN is created for ST then:
- warehouse_id cannot be same as from_warehouse_id
- warehouse_id cannot be updated once GRN is created
statusCurrent status: DRAFT (editable) → RECEIVED (stock updated) → FINAL (costs applied) or CANCELLED
DRAFT- DRAFTRECEIVED- RECEIVEDFINAL- FINALCANCELLED- CANCELLED
notesreferenceOptional reference number or notes for this GRN.
receive_by_timeUser defines the expected delivery time.
Create GRN › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
extra_charges^-?\d{0,10}(?:\.\d{0… · requiredextra_shipping^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredpurchase_order_idis_stock_transferdelivery_timewarehouse_idIf GRN is created for ST then:
- warehouse_id cannot be same as from_warehouse_id
- warehouse_id cannot be updated once GRN is created
statusCurrent status: DRAFT (editable) → RECEIVED (stock updated) → FINAL (costs applied) or CANCELLED
DRAFT- DRAFTRECEIVED- RECEIVEDFINAL- FINALCANCELLED- CANCELLED
notesreferenceOptional reference number or notes for this GRN.
receive_by_timeUser defines the expected delivery time.
Get GRN
Gets the data of a GRN object.
GRN is used to received products in a purchase order or a stock transfer.
The GRN API is common for both purchase orders and stock transfers.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
path Parameters
document_type^orders|stock-transf… · requiredidpo_idGet GRN › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
extra_charges^-?\d{0,10}(?:\.\d{0… · requiredextra_shipping^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredpurchase_order_idis_stock_transferdelivery_timewarehouse_idIf GRN is created for ST then:
- warehouse_id cannot be same as from_warehouse_id
- warehouse_id cannot be updated once GRN is created
statusCurrent status: DRAFT (editable) → RECEIVED (stock updated) → FINAL (costs applied) or CANCELLED
DRAFT- DRAFTRECEIVED- RECEIVEDFINAL- FINALCANCELLED- CANCELLED
notesreferenceOptional reference number or notes for this GRN.
receive_by_timeUser defines the expected delivery time.
Update GRN
GRN Update API.
- GRN can only be updated if it is in draft status.
- In case of stock transfer,
warehousein GRN can not be updated.
path Parameters
document_type^orders|stock-transf… · requiredidpo_idUpdate GRN › Request Body
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
extra_charges^-?\d{0,10}(?:\.\d{0… · requiredextra_shipping^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredpurchase_order_idis_stock_transferdelivery_timewarehouse_idIf GRN is created for ST then:
- warehouse_id cannot be same as from_warehouse_id
- warehouse_id cannot be updated once GRN is created
statusCurrent status: DRAFT (editable) → RECEIVED (stock updated) → FINAL (costs applied) or CANCELLED
DRAFT- DRAFTRECEIVED- RECEIVEDFINAL- FINALCANCELLED- CANCELLED
notesreferenceOptional reference number or notes for this GRN.
receive_by_timeUser defines the expected delivery time.
Update GRN › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
extra_charges^-?\d{0,10}(?:\.\d{0… · requiredextra_shipping^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredpurchase_order_idis_stock_transferdelivery_timewarehouse_idIf GRN is created for ST then:
- warehouse_id cannot be same as from_warehouse_id
- warehouse_id cannot be updated once GRN is created
statusCurrent status: DRAFT (editable) → RECEIVED (stock updated) → FINAL (costs applied) or CANCELLED
DRAFT- DRAFTRECEIVED- RECEIVEDFINAL- FINALCANCELLED- CANCELLED
notesreferenceOptional reference number or notes for this GRN.
receive_by_timeUser defines the expected delivery time.
Performs Action on GRN
Perform an action on a GRN.
mark-receivedmark the grn as received.undo-receiveundo themark-receivedaction.mark-finalfinalize the wavg_landed_cost of the product. This action is only available for the PO GRNs.mark-received-and-finalmarks the GRN as received and final in a single step. Equivalent to performingmark-receivedfollowed bymark-final. Only available for PO GRNs (not Stock Transfers).undo-finalundo themark-finalaction. This action is only available for the PO GRNs.add-due-quantityadds all the due quantity from purchase order to grn.cancelcancels the GRN. This action is only available when GRN is marked received. The above actions are async. You will get the task status using the fieldis_task_in_progress.
path Parameters
actiondocument_type^orders|stock-transf… · requiredidpo_idPerforms Action on GRN › Responses
idcreatedupdatednumberis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
extra_charges^-?\d{0,10}(?:\.\d{0… · requiredextra_shipping^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredpurchase_order_idis_stock_transferdelivery_timewarehouse_idIf GRN is created for ST then:
- warehouse_id cannot be same as from_warehouse_id
- warehouse_id cannot be updated once GRN is created
statusCurrent status: DRAFT (editable) → RECEIVED (stock updated) → FINAL (costs applied) or CANCELLED
DRAFT- DRAFTRECEIVED- RECEIVEDFINAL- FINALCANCELLED- CANCELLED
notesreferenceOptional reference number or notes for this GRN.
receive_by_timeUser defines the expected delivery time.