Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Outbound | POST  | {Client’s URL}

Summary

This API will call the channel with GRN details.

Description

This API will call the channel with GRN information against an inward order.This API call will be triggered only after the inward order against a PO is closed.

Request

Code Block
{
   "orderCode":"po123",
   "orderType":"PO/STO/RO",
   "partnerCode":"partner1",
   "partnerLocationCode":"partnerLoc1",
   "locationCode":"l123",
   "messageId":12345,
   "parentOrderCode": "pOrder123",
   "orderItems":[
      {
         "channelSkuCode":"100005734",
         "qcPassQuantity":500,
         "qcFailQuantity":2
      },
      {
         "orderItemCode": "oc1",
         "channelSkuCode":"100005736",
         "qcPassQuantity":498,
         "qcFailQuantity":3
      }
   ]
}

 

...

Parameter Name

...

Data Type

...

Description

...

Mandatory

...

orderCode

...

String

...

Unique code used by the channel to identify the order

...

Yes

...

orderType

...

String

...

Possible value - STO (Stock Transfer Order), PO(Purchase Order), RO(Return Order),

SO, RPO, RTV, OPEN_PO, OPEN_RO

...

Yes

...

locationCode

...

String

...

This represents the location of the warehouse where the order will come.

...

Yes

...

partnerCode

...

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

...

partnerLocationCode

...

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

...

Long

...

Unique Identifier of a notification ( for de-duplication)

...

Yes

...

parentOrderCode

...

String

...

Parent order code

...

yes

...

orderItems

...

Object[]

...

List of items GRNed

...

Yes

...

orderItems.orderItemCode

...

String

...

Code to uniquely identify an item in a particular order

...

No

...

orderItems.channelSkuCode

...

String

...

SKU code of order item

...

Yes

...

qcPassQuantity

...

Integer

...

Qc pass quantity inwarded in order

...

Yes

...

qcFailQuantity

...

Integer

...

Qc fail quantity inwarded in order

...

Yes

Response

HttpStatus Code 200
Code Block
{
    "hasError":false,
    "errorMessage":"message"
}