Versions Compared

Key

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

...

Request

Code Block
languagejson
{
     "locationCode": "IN132",
     "messageId": 12345,
     "orderCode": "flipkart1234",
     "parentOrderCode": "flipkart1221",
     "orderTime": "2020-10-16T20:22:28.000+00:00",
     "orderType": "SO/STO/RTV",    
     "paymentMethod": "COD",   
     "isPriority": false,
     "channelName": "flipkart",
     "channelType": "ERP/MARKETPLACE", 
     "eventType": "OUTWARD_ORDER_COMPLETE",
     "eventTime": "2020-10-16T20:22:28.000+00:00",
    “shippingCharges” "shippingCharges": 20.0,
    “virtualSkuDefinitions” "virtualSkuDefinitions": [
        {
             “virtualParentChannelSkuId”:”abc1”,

  “virtualParentBarcode”:”barcode1”,

       “childSkus”:[

              {

                “channelSkuCode”:”xyz”,

                “qty”:2,

    “barcode”:”bar1”

               },

               {

                “channelSkuCode”:”xyz1”,

                “qty”:1,

“barcode”:”bar2”

  }

            ]

    }     

  ],

   "orderItems":[

     {"virtualParentChannelSkuId": "abc1",
      "virtualParentBarcode": "barcode1",
      "childSkus": [
        {
          "channelSkuCode": "xyz",
          "qty": 2,
          "barcode": "bar1"
        },
        {
          "channelSkuCode": "xyz1",
          "qty": 1,
          "barcode": "bar2"
        }
      ]
    }
  ],
  "orderItems": [
    {
      "orderItemCode": "item123",
      "channelSkuCode": "1000889888",
      "orderedQuantity": 2,
      "cancelledQuantity": 1,                  
      "channelDiscount": 50.00,
      "sellingPricePerUnit": 500.00,
      "giftChargePerUnit": 10.0,
 “sellerDiscount”:5.0,

“shippingCharge”:0.0

     }

   ],

        "sellerDiscount": 5,
      "shippingCharge": 0
    }
  ],
  "shippingAddress": {
          "name": "Customer's Name",
          "line1": "Line Address 1",
          "line2": "Line Address 2",
          "line3": "Line Address 3",
          "city": "city",
          "state": "state",
          "zip": "zip",
          "country": "country",
          "email": "abc@gmail.com",
          "phone": "9999999999"
     },
     "billingAddress": {
          "name": "customer",
          "line1": "address line 1",
          "line2": "address line 2",
          "line3": "address line 3",
          "city": "Bengaluru",
          "state": "Karnataka",
          "zip": "560076",
          "country": "INDIA",
          "email": "abc@gmail.com",
          "phone": "9999999999"
     }

}

Parameter Name

Data Type

Description

Mandatory

locationCode

String

Location from which order was fulfilled

Yes

orderCode

String

Unique code used by the channel to identify order

yes

parentOrderCode

String

Parent order code  which can be null or empty or some duplicate value across orders. 

no

channelName

String

Channel name of the marketplace.

yes

channelType

String

Type of the channel.Possible values: ERP/MARKETPLACE

yes

orderTime

String

Time at which order was placed at the channel in UNIX (UTC)

yes

orderType

String

Can be - SO(Sales Order)/STO(Stock Transfer Order)/RTV(Return To Vendor), RPO(Replacement)

yes

messageId

Long

Unique Identifier of a notification

Yes

paymentMethod

String

Possible values - COD, NCOD

yes

isPriority

Boolean

This flag is true in case order is HIGH priority than normal orders.

yes

orderItems

Object[]

List of order items

yes

orderItems.orderItemCode

String

This is provided by the channel to uniquely identify each order item.

yes

orderItems.channelskuCode

String

SKU code of order item

yes

orderItems.orderedQuantity

int

Ordered Quantity

yes

orderItems.cancelledQuantity

int

cancelledQuantity

yes

orderItems.sellingPricePerUnit

double

sellingPricePerUnit

no

orderItems.giftChargePerUnit

Double

giftChargePerUnit

no

orderItems.channelDiscount

Double

Discount provided by channel per unit

no

orderItems.sellerDiscount

Double

Discount provided by seller per unit

no

orderItems.shippingCharge

Double

Shipping charges on item

no

eventType

String

Possible values : { SUBORDER_CREATE, SUBORDER_PARTICAL_CANCEL, SUBORDER_CANCEL, SUBORDER_COMPLETE}

yes

eventTime

String

Time of event creation

yes

shippingAddress

Object

Shipping address of the customer

yes

shippingAddress.name

String

Name of customer

yes

shippingAddress.line1

String

1st line of customer’s address

yes

shippingAddress.line2

String

2nd line of customer’s address

no

shippingAddress.line3

String

3rd line of customer’s address

no

shippingAddress.city

String

City of customer

yes

shippingAddress.state

String

State of customer

yes

shippingAddress.zip

String

ZIP/Pin code of customer

yes

shippingAddress.country

String

Country of customer

yes

shippingAddress.email

String

Email of customer

no

shippingAddress.phone

String

Phone Number of customer

no

billingAddress

Object

Billing address of the customer

yes

billingAddress.name

String

Name of customer

yes

billingAddress.line1

String

1st line of customer’s address

yes

billingAddress.line2

String

2nd line of customer’s address

no

billingAddress.line3

String

3rd line of customer’s address

no

billingAddress.city

String

City of customer

yes

billingAddress.state

String

State of customer

yes

billingAddress.zip

String

ZIP/Pin code of customer

yes

billingAddress.country

String

Country of customer

yes

billingAddress.email

String

Email of customer

no

billingAddress.phone

String

Phone Number of customer

no

...