POST api/PurchaseRequisition/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
DTOPR| Name | Description | Type | Additional information |
|---|---|---|---|
| AccNo | integer |
None. |
|
| AccName | string |
None. |
|
| Executiveid | integer |
None. |
|
| ExecutiveName | string |
None. |
|
| EntryType | string |
None. |
|
| EntryDate | string |
None. |
|
| NetAmount | decimal number |
None. |
|
| DivisioNo | integer |
None. |
|
| ScreenNo | integer |
None. |
|
| convRate | decimal number |
None. |
|
| CreatedBy | string |
None. |
|
| Remarks | string |
None. |
|
| RefNo | string |
None. |
|
| DTOPR_Item | Collection of DTOPR_Item |
None. |
|
| DTOPR_tax | Collection of DTOPR_tax |
None. |
Request Formats
application/json, text/json
Sample:
{
"AccNo": 1,
"AccName": "sample string 2",
"Executiveid": 3,
"ExecutiveName": "sample string 4",
"EntryType": "sample string 5",
"EntryDate": "sample string 6",
"NetAmount": 7.0,
"DivisioNo": 8,
"ScreenNo": 9,
"convRate": 10.0,
"CreatedBy": "sample string 11",
"Remarks": "sample string 12",
"RefNo": "sample string 13",
"DTOPR_Item": [
{
"ItemId": 1,
"ItemCode": "sample string 2",
"ItemName": "sample string 3",
"Qty": 4.0,
"Qty2": 5.0,
"Qty3": 6.0,
"Rate": 7.0,
"Rate2": 8.0,
"Rate3": 9.0,
"DiscAmount": 10.0,
"DiscPercentage": 11.0,
"Igstid": 12,
"Cgstid": 13,
"Sgstid": 14,
"Igst": "sample string 15",
"Cgst": "sample string 16",
"Sgst": "sample string 17",
"IgstPer": 18.1,
"CgstPer": 19.1,
"SgstPer": 20.1,
"Igst_amt": 21.0,
"Cgst_amt": 22.0,
"Sgst_amt": 23.0,
"UomID": 24,
"UomName": "sample string 25",
"UomConversion": 26.0
},
{
"ItemId": 1,
"ItemCode": "sample string 2",
"ItemName": "sample string 3",
"Qty": 4.0,
"Qty2": 5.0,
"Qty3": 6.0,
"Rate": 7.0,
"Rate2": 8.0,
"Rate3": 9.0,
"DiscAmount": 10.0,
"DiscPercentage": 11.0,
"Igstid": 12,
"Cgstid": 13,
"Sgstid": 14,
"Igst": "sample string 15",
"Cgst": "sample string 16",
"Sgst": "sample string 17",
"IgstPer": 18.1,
"CgstPer": 19.1,
"SgstPer": 20.1,
"Igst_amt": 21.0,
"Cgst_amt": 22.0,
"Sgst_amt": 23.0,
"UomID": 24,
"UomName": "sample string 25",
"UomConversion": 26.0
}
],
"DTOPR_tax": [
{
"TaxType": "sample string 1",
"TaxID": 2,
"TaxName": "sample string 3",
"TaxAmount": 4.0,
"TaxPercentage": 5.0
},
{
"TaxType": "sample string 1",
"TaxID": 2,
"TaxName": "sample string 3",
"TaxAmount": 4.0,
"TaxPercentage": 5.0
}
]
}
application/xml, text/xml
Sample:
<DTOPR xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers">
<AccName>sample string 2</AccName>
<AccNo>1</AccNo>
<CreatedBy>sample string 11</CreatedBy>
<DTOPR_Item>
<DTOPR_Item>
<Cgst>sample string 16</Cgst>
<CgstPer>19.1</CgstPer>
<Cgst_amt>22</Cgst_amt>
<Cgstid>13</Cgstid>
<DiscAmount>10</DiscAmount>
<DiscPercentage>11</DiscPercentage>
<Igst>sample string 15</Igst>
<IgstPer>18.1</IgstPer>
<Igst_amt>21</Igst_amt>
<Igstid>12</Igstid>
<ItemCode>sample string 2</ItemCode>
<ItemId>1</ItemId>
<ItemName>sample string 3</ItemName>
<Qty>4</Qty>
<Qty2>5</Qty2>
<Qty3>6</Qty3>
<Rate>7</Rate>
<Rate2>8</Rate2>
<Rate3>9</Rate3>
<Sgst>sample string 17</Sgst>
<SgstPer>20.1</SgstPer>
<Sgst_amt>23</Sgst_amt>
<Sgstid>14</Sgstid>
<UomConversion>26</UomConversion>
<UomID>24</UomID>
<UomName>sample string 25</UomName>
</DTOPR_Item>
<DTOPR_Item>
<Cgst>sample string 16</Cgst>
<CgstPer>19.1</CgstPer>
<Cgst_amt>22</Cgst_amt>
<Cgstid>13</Cgstid>
<DiscAmount>10</DiscAmount>
<DiscPercentage>11</DiscPercentage>
<Igst>sample string 15</Igst>
<IgstPer>18.1</IgstPer>
<Igst_amt>21</Igst_amt>
<Igstid>12</Igstid>
<ItemCode>sample string 2</ItemCode>
<ItemId>1</ItemId>
<ItemName>sample string 3</ItemName>
<Qty>4</Qty>
<Qty2>5</Qty2>
<Qty3>6</Qty3>
<Rate>7</Rate>
<Rate2>8</Rate2>
<Rate3>9</Rate3>
<Sgst>sample string 17</Sgst>
<SgstPer>20.1</SgstPer>
<Sgst_amt>23</Sgst_amt>
<Sgstid>14</Sgstid>
<UomConversion>26</UomConversion>
<UomID>24</UomID>
<UomName>sample string 25</UomName>
</DTOPR_Item>
</DTOPR_Item>
<DTOPR_tax>
<DTOPR_tax>
<TaxAmount>4</TaxAmount>
<TaxID>2</TaxID>
<TaxName>sample string 3</TaxName>
<TaxPercentage>5</TaxPercentage>
<TaxType>sample string 1</TaxType>
</DTOPR_tax>
<DTOPR_tax>
<TaxAmount>4</TaxAmount>
<TaxID>2</TaxID>
<TaxName>sample string 3</TaxName>
<TaxPercentage>5</TaxPercentage>
<TaxType>sample string 1</TaxType>
</DTOPR_tax>
</DTOPR_tax>
<DivisioNo>8</DivisioNo>
<EntryDate>sample string 6</EntryDate>
<EntryType>sample string 5</EntryType>
<ExecutiveName>sample string 4</ExecutiveName>
<Executiveid>3</Executiveid>
<NetAmount>7</NetAmount>
<RefNo>sample string 13</RefNo>
<Remarks>sample string 12</Remarks>
<ScreenNo>9</ScreenNo>
<convRate>10</convRate>
</DTOPR>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
rtnMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| result | boolean |
None. |
|
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": true,
"message": "sample string 2"
}
application/xml, text/xml
Sample:
<rtnMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers"> <message>sample string 2</message> <result>true</result> </rtnMessage>