Outbound | POST | {Client’s URL}
...
This API will call the channel with GRN details per gate entry wise.
Description
This API will call the channel with GRN information against an inward ordera gate entry.This API call will be triggered only after the inward order against a PO gate entry is closed.
Request
Code Block | ||
---|---|---|
| ||
{ "orderCode": "po123", "parentOrderCode": "parent123", "orderType": "PO", "invoiceId": "invoice123", "awbNumber": "awb_01", "externalInvoiceDate": "2020-10-16T20:22:28.000+00:00", "partnerCodegateEntryCreatedAt": "partner12020-09-16T20:22:28.000+00:00", "partnerLocationCodegateEntryId": "partnerLoc1""gt234", "messageId": 12345, "locationCode": "l123", "messageIdpartnerCode": "partnerCode", "partnerLocationCode": "partnerLocationCode", "asnCode": 12345"asn1", "parentOrderCodegeneratedAsnId": "pOrder123genAsn1", "orderItems": [ { "orderItemCode": null"oc1", "channelSkuCode": "100005734", "qcPassQuantity": 500, "qcFailQuantity": 2, "orderItemCustomAttributes": { "attribute1": "Value1", "attribute2": "Value2", "attribute3": "Value3", "attribute4": "Value4", "attribute5": "Value5", "attribute6": "Value6", "attribute7": "Value7", "attribute8": "Value8", "attribute9": "Value9", "attribute10": "Value10", "channelMetadata": { "totalCashOnDeliveryFee": 0, "department": "HR", "paymentMethod": "ccavenue", "status": "processing" } } }, { "orderItemCode": "oc1"null, "channelSkuCode": "100005736", "qcPassQuantity": 498, "qcFailQuantity": 332, "orderItemCustomAttributes": { "attribute1": "Value12", "attribute2": "Value22", "attribute3": "Value32", "attribute4": "Value42", "attribute5": "Value52", "attribute6": "Value62", "attribute7": "Value72", "attribute8": "Value82", "attribute9": "Value92", "attribute10": null "Value102" } } ], "orderCustomAttributes": { "attribute1": "Value1", "attribute2": "Value2", "attribute3": "Value3", "attribute4": "Value4", "attribute5": "Value5", "attribute6": "Value6", "attribute7": "Value7", "attribute8": "Value8", "attribute9": "Value9", "attribute10": "Value10", "channelMetadata": { "totalCashOnDeliveryFee": 0, "department": "HR", "paymentMethod": "ccavenue", "status": "processing" }, "currency": "INR" }, "gateEntryLevelBoxSkuDetails": { "boxSkuQtyData": [ { "boxCode": "BOX123", "purpose": "STORAGECROSS_DOCK", "skuQtyDetails": [ { "channelSkuCode": "SKU001", "qcPassQty": 10, "qcFailQty": 2 } ] } ], "missingItems": [ { "channelSkuCode": "SKU002", "itemCode": "Item123" } ], "extraItems": [ { "channelSkuCode": "SKU003", "itemCode": "Item456" } ] } } |
Parameter Name | Data Type | Description | Mandatory |
| String | Unique code used by the channel to identify the order | Yes |
| String | Parent Order Code which was passed at the time of Inward Order Creation | Yes |
| String | Possible value - STO (Stock Transfer Order), PO(Purchase Order), RO(Return Order), SO, RTV, RPO, |
OPEN_PO, OPEN_RO | Yes |
| String |
Code used by channels to identify a warehouse | Yes | ||
| String | Unique Id with which the shipment is arrived in the warehouse. | Yes |
| String | Awb Number of the shipment received in the warehouse. | Yes |
|
| Time at which order was placed at the channel in UNIX (UTC) | yes |
|
| Time at which gate entry was created at the channel in UNIX (UTC) | yes |
| String | Unique Id used to differentiate a gate entry | yes |
| Long | Unique Identifier of a message ( for de-duplication ) | Yes |
| String | This represents the partner from which this inward order |
came. 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 |
messageId
|
String | Unique |
Yes
parentOrderCode
String
Parent order code
code to identify the corresponding advanced shipment notice(ASN) | No | ||
| String | Id of the ASN generated | No |
| Object[] | List of items GRNed | Yes |
| String | Code to |
identify |
the item in a particular order | No | ||
| String | SKU code of order item | Yes |
| Integer | Qc pass quantity inwarded in order | Yes |
| Integer | Qc fail quantity inwarded in 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 | meta data fields as an object which is to be parsed at the channel’s end | No |
| Object | Custom attributes for an order | No |
| Object | meta data fields as an object which is to be parsed at the channel’s end | 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 |
| Object | Box Sku Details at gate entry level | No |
| Object | Box Sku Quantity data | No |
| Object | Missing Items | No |
| Object | Extra Items | No |
| String | Code to uniquely identify a box in a grn | No |
| String | Purpose (CROSS_DOCK/STORAGE) | No |
| Object[] | Details of all skus in a box | No |
| String | Code to uniquely identify an sku on channel | No |
|
Long | Qc pass quantity inwarded in order | No |
|
Long | Qc fail quantity inwarded in order | No | |
| String | Code to uniquely identify an sku on channel | No |
| String | Code to uniquely identify an item | No |
| String | Code to uniquely identify an sku on channel | No |
| String | Code to uniquely identify an item | No |
Response
...
Code Block | ||
---|---|---|
| ||
{ "hasError":false, "errorMessage":"message" } |
HttpStatus : 200