Versions Compared

Key

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

Inbound | POST  | /orders/inward

...

Code Block
languagejson
{
   "parentOrderCode":"132",
   "orderTime":"2020-10-16T20:22:28.000+05:30",
   "orderType":"PO/STO/RO/OPEN_PO/OPEN_RO",
   "orderCode":"sap123",
   "locationCode":"locationCode",
   "partnerCode":"partnerCode",
   "partnerLocationCode":"partnerLocationCode",
   "taxBreakupForms":[
      {
         "channelSkuId":"sky1",
         "baseSellingPricePerUnit":100.8,
         "taxItemForms":[
            {
                "type":"",
                 "rate":1.2,
                 "taxPerUnit":27.5
            }
         ]
      }
    ],
   "orderItems":[
      {
         "channelSkuCode":"tshirt134",
         "quantity":500,
         "sellingPricePerUnit":230.00
      },
      {
         "channelSkuCode":"jeans123",
         "quantity":500,
         "sellingPricePerUnit":230
      }
   ]
}

Parameter Name

Data Type

Description

Mandatory

parentOrderCode

String

Represents code of parent order of the order

no

orderTime

String

Time at which order got placed by customer

yes

orderType

String

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

OPEN_PO, OPEN_RO

yes

orderCode

String

Unique code used by channel to identify the order

yes

locationCode

String

Location code of the warehouse from where the order will get fulfilled

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

taxBreakupForms

Object[ ]

Tax break up for the items(if this is sent, al the fields of the object should be sent)

no

taxBreakupForms.channelSkuId

String

Channel Sku id

yes

taxBreakupForms.baseSellingPricePerUnit

Double

Base selling price per unit of the Sku

yes

taxBreakupForms.taxItemForms

Object[ ]

Distribution of tax with tax type

yes

taxItemForms.type

String

Type of tax applicable

yes

taxItemForms.rate

Double

Tax rate for this tax type

yes

taxItemForms.taxPerUnit

Double

Tax applicable for this type of tax per unit

yes

...

Empty Body

HttpStatus Code

200

Steps to create Inward Order

...