Real Time GRN Notifications API (Order) (Beta)
Outbound | POST | {Client’s URL}
Summary
This API sends near real-time GRN Notifications to ERP. The feature will help to keep the ERP systems notified about all the GRN’s happening for a client.
Description
This API sends all the GRN notifications order-wise for the orders for which items have been GRN’ed since the time the job last ran and synced notifications successfully to ERP. Frequency of this job is configurable.
Request
{
"orderCode": "po123",
"partnerCode": "partner1",
"partnerLocationCode": "partnerLoc1",
"locationCode": "l123",
"messageId": 12345,
"parentOrderCode": "pOrder123",
"asnCode": "asn1",
"generatedAsnId": "genAsn1",
"items": [{
"orderItemCode": null,
"channelSkuCode": "100005734",
"qcPassAbsoluteQuantity": 500,
"qcFailAbsoluteQuantity": 2,
"qcFailDeltaQuantity": 1,
"qcPassDeltaQuantity": 1,
"orderItemCustomAttributes": {
"attribute1": "Value1",
"attribute2": "Value2",
"attribute3": "Value3",
"attribute4": "Value4",
"attribute5": "Value5",
"attribute6": "Value6",
"attribute7": "Value7",
"attribute8": "Value8",
"attribute9": "Value9",
"attribute10": "Value10",
"channelMetadata": {
"totalCashOnDeliveryFee": 0.0,
"department": "HR",
"paymentMethod": "ccavenue",
"status": "processing"
}
}
},
{
"orderItemCode": "oc1",
"channelSkuCode": "100005736",
"qcPassAbsoluteQuantity": 400,
"qcFailAbsoluteQuantity": 2,
"qcFailDeltaQuantity": 2,
"qcPassDeltaQuantity": 2,
"orderItemCustomAttributes": null
}
],
"orderCustomAttributes": {
"attribute1": "Value1",
"attribute2": "Value2",
"attribute3": "Value3",
"attribute4": "Value4",
"attribute5": "Value5",
"attribute6": "Value6",
"attribute7": "Value7",
"attribute8": "Value8",
"attribute9": "Value9",
"attribute10": "Value10",
"channelMetadata": {
"totalCashOnDeliveryFee": 0.0,
"department": "HR",
"paymentMethod": "ccavenue",
"status": "processing"
},
"currency": "INR"
}
}
Â
Parameter Name | Data Type | Description | Mandatory |
| String | Unique code used by the channel to identify the order | Yes |
| String | This represents the partner from which order will come. If Order is of type PO/STO, this field represents vendor's code If Order is of type RO, this field represents customer’s code | Yes |
| String | This represents the partner’s location from which order will come. If Order is of type PO/STO, this field represents vendor location’s code If Order is of type RO, this field represents customer location’s code | Yes |
| String | Code used by channels to identify a warehouse | Yes |
| Long | Unique Identifier of a notification ( for de-duplication ) | Yes |
| String | Parent order code | yes |
| String | Code to identify an ASN created | no |
| String | Code to identify the generated ASN | no |
| Object[] | List of items GRNed | Yes |
| String | Code to identify an item in a particular order | no |
| String | SKU code of order item | Yes |
| Integer | Total Qc pass quantity GRNed in order for the SKU | Yes |
 | Integer | Total Qc fail quantity GRNed in order for the SKU | Yes |
| Integer | Qc pass quantity GRNed in order for the SKU since the last notification to ERP for the order. | Yes |
| Integer | Qc fail quantity GRNed in order for the SKU since the last notification to ERP for the order. | Yes |
| Object | Custom attributes for order items | No |
| String | Custom attribute 1 | No |
| String | Custom attribute 2 | No |
| String | Custom attribute 3 | No |
| String | Custom attribute 4 | No |
| String | Custom attribute 5 | No |
| String | Custom attribute 6 | No |
| String | Custom attribute 7 | No |
| String | Custom attribute 8 | No |
| String | Custom attribute 9 | No |
| String | Custom attribute 10 | No |
| Object | These are additonal fields which can be sent to Increff system and can be used in subsequent Posting workflows | No |
| Object | Custom attributes for an order | No |
| Object | These are additonal fields which can be sent to Increff system and can be used in subsequent Posting workflows | No |
| String | Currency | No |
| String | Custom attribute 1 | No |
| String | Custom attribute 2 | No |
| String | Custom attribute 3 | No |
| String | Custom attribute 4 | No |
| String | Custom attribute 5 | No |
| String | Custom attribute 6 | No |
| String | Custom attribute 7 | No |
| String | Custom attribute 8 | No |
| String | Custom attribute 9 | No |
| String | Custom attribute 10 | No |
Response
HttpStatus Code
200
{
"hasError":false,
"errorMessage":"message"
}
Â