...
...
Inbound | POST | /orders/inward
Summary
This API is used to create inward orders in Assure.
Description
This API will create inward orders in Assure. One payload will create only one order and one SKU can be present only once.
Request
Code Block | ||
---|---|---|
| ||
{ "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 |
| String | Represents code of parent order of the order | no |
| String | Time at which order got placed by customer | yes |
| String | Possible value - PO (Purchase Order), STO (Stock Transfer Order), RO(Return Order), OPEN_PO, OPEN_RO | yes |
| String | Unique code used by channel to identify the order | yes |
| String | Location code of the warehouse from where the order will get fulfilled | 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 |
| Object[ ] | Tax break up for the items(if this is sent, al the fields of the object should be sent) | no |
| String | Channel Sku id | yes |
| Double | Base selling price per unit of the Sku | yes |
| Object[ ] | Distribution of tax with tax type | yes |
| String | Type of tax applicable | yes |
| Double | Tax rate for this tax type | yes |
| Double | Tax applicable for this type of tax per unit | yes |
Response
Empty Body
HttpStatus Code
200
Steps to create Inward Order
Steps
Create Vendor Master using Create Vendor Master API
Create location of the vendor using Add Vendor Location Master API
Create article master using Create Article Master API
...