POST api/PO/PostPurchasrOrder
Request Information
URI Parameters
None.
Body Parameters
PurchaseOrderInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| AppId | string |
None. |
|
| AppKey | string |
None. |
|
| ShopCode | string |
None. |
|
| SupplierCode | string |
None. |
|
| PONo | integer |
None. |
|
| PODate | date |
None. |
|
| Products | Collection of PurchaseOrderProduct |
None. |
|
| IsUpdate | integer |
None. |
|
| ShopId | integer |
None. |
|
| SupplierId | integer |
None. |
|
| POId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"AppId": "sample string 1",
"AppKey": "sample string 2",
"ShopCode": "sample string 3",
"SupplierCode": "sample string 4",
"PONo": 5,
"PODate": "2026-08-31T13:34:41.0965542+05:00",
"Products": [
{
"ProductCode": "sample string 1",
"PurchaseQty": 2.1,
"PurchasePrice": 3,
"PODetailId": 4,
"ProductItemId": 5
},
{
"ProductCode": "sample string 1",
"PurchaseQty": 2.1,
"PurchasePrice": 3,
"PODetailId": 4,
"ProductItemId": 5
}
],
"IsUpdate": 7,
"ShopId": 8,
"SupplierId": 9,
"POId": 10
}
text/xml
Sample:
<PurchaseOrderInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models">
<AppId>sample string 1</AppId>
<AppKey>sample string 2</AppKey>
<IsUpdate>7</IsUpdate>
<PODate>2026-08-31T13:34:41.0965542+05:00</PODate>
<POId>10</POId>
<PONo>5</PONo>
<Products>
<PurchaseOrderProduct>
<PODetailId>4</PODetailId>
<ProductCode>sample string 1</ProductCode>
<ProductItemId>5</ProductItemId>
<PurchasePrice>3</PurchasePrice>
<PurchaseQty>2.1</PurchaseQty>
</PurchaseOrderProduct>
<PurchaseOrderProduct>
<PODetailId>4</PODetailId>
<ProductCode>sample string 1</ProductCode>
<ProductItemId>5</ProductItemId>
<PurchasePrice>3</PurchasePrice>
<PurchaseQty>2.1</PurchaseQty>
</PurchaseOrderProduct>
</Products>
<ShopCode>sample string 3</ShopCode>
<ShopId>8</ShopId>
<SupplierCode>sample string 4</SupplierCode>
<SupplierId>9</SupplierId>
</PurchaseOrderInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
StandardResponseClassOfPurchaseOrderProduct| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
None. |
|
| msg | string |
None. |
|
| data | Collection of PurchaseOrderProduct |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "sample string 1",
"msg": "sample string 2",
"data": [
{
"ProductCode": "sample string 1",
"PurchaseQty": 2.1,
"PurchasePrice": 3,
"PODetailId": 4,
"ProductItemId": 5
},
{
"ProductCode": "sample string 1",
"PurchaseQty": 2.1,
"PurchasePrice": 3,
"PODetailId": 4,
"ProductItemId": 5
}
]
}
text/xml
Sample:
<StandardResponseClassOfPurchaseOrderProductm2ATiXWe xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models">
<code>sample string 1</code>
<data>
<PurchaseOrderProduct>
<PODetailId>4</PODetailId>
<ProductCode>sample string 1</ProductCode>
<ProductItemId>5</ProductItemId>
<PurchasePrice>3</PurchasePrice>
<PurchaseQty>2.1</PurchaseQty>
</PurchaseOrderProduct>
<PurchaseOrderProduct>
<PODetailId>4</PODetailId>
<ProductCode>sample string 1</ProductCode>
<ProductItemId>5</ProductItemId>
<PurchasePrice>3</PurchasePrice>
<PurchaseQty>2.1</PurchaseQty>
</PurchaseOrderProduct>
</data>
<msg>sample string 2</msg>
</StandardResponseClassOfPurchaseOrderProductm2ATiXWe>