POST api/Amc?username={username}&div={div}&userid={userid}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
Required |
|
| div | integer |
Required |
|
| userid | integer |
Required |
Body Parameters
AmcPost| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| order_sno | integer |
None. |
|
| bank_sno | integer |
None. |
|
| resp_id | integer |
None. |
|
| bank_name | string |
None. |
|
| branch_name | string |
None. |
|
| Quarter | string |
None. |
|
| PlanDate | string |
None. |
|
| stdate | string |
None. |
|
| endate | string |
None. |
|
| status | string |
None. |
|
| preason | string |
None. |
|
| imgdata | string |
None. |
|
| imgdata1 | string |
None. |
|
| imgdata2 | string |
None. |
|
| imgdata3 | string |
None. |
|
| latitude | decimal number |
None. |
|
| logitude | decimal number |
None. |
|
| AmcExp_coll | Collection of AmcExp |
None. |
|
| Spare_coll | Collection of AmcItem |
None. |
|
| prodtl_coll | Collection of AmcProduct |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"order_sno": 2,
"bank_sno": 3,
"resp_id": 4,
"bank_name": "sample string 5",
"branch_name": "sample string 6",
"Quarter": "sample string 7",
"PlanDate": "sample string 8",
"stdate": "sample string 9",
"endate": "sample string 10",
"status": "sample string 11",
"preason": "sample string 12",
"imgdata": "sample string 13",
"imgdata1": "sample string 14",
"imgdata2": "sample string 15",
"imgdata3": "sample string 16",
"latitude": 17.0,
"logitude": 18.0,
"AmcExp_coll": [
{
"expdescription": "sample string 1",
"expamount": 2.0
},
{
"expdescription": "sample string 1",
"expamount": 2.0
}
],
"Spare_coll": [
{
"itemid": 1,
"itemcode": "sample string 2",
"itemname": "sample string 3",
"qty": 4.0,
"rate": 5.0
},
{
"itemid": 1,
"itemcode": "sample string 2",
"itemname": "sample string 3",
"qty": 4.0,
"rate": 5.0
}
],
"prodtl_coll": [
{
"productid": 1,
"productcode": "sample string 2",
"productname": "sample string 3"
},
{
"productid": 1,
"productcode": "sample string 2",
"productname": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<AmcPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers">
<AmcExp_coll>
<AmcExp>
<expamount>2</expamount>
<expdescription>sample string 1</expdescription>
</AmcExp>
<AmcExp>
<expamount>2</expamount>
<expdescription>sample string 1</expdescription>
</AmcExp>
</AmcExp_coll>
<Id>1</Id>
<PlanDate>sample string 8</PlanDate>
<Quarter>sample string 7</Quarter>
<Spare_coll>
<AmcItem>
<itemcode>sample string 2</itemcode>
<itemid>1</itemid>
<itemname>sample string 3</itemname>
<qty>4</qty>
<rate>5</rate>
</AmcItem>
<AmcItem>
<itemcode>sample string 2</itemcode>
<itemid>1</itemid>
<itemname>sample string 3</itemname>
<qty>4</qty>
<rate>5</rate>
</AmcItem>
</Spare_coll>
<bank_name>sample string 5</bank_name>
<bank_sno>3</bank_sno>
<branch_name>sample string 6</branch_name>
<endate>sample string 10</endate>
<imgdata>sample string 13</imgdata>
<imgdata1>sample string 14</imgdata1>
<imgdata2>sample string 15</imgdata2>
<imgdata3>sample string 16</imgdata3>
<latitude>17</latitude>
<logitude>18</logitude>
<order_sno>2</order_sno>
<preason>sample string 12</preason>
<prodtl_coll>
<AmcProduct>
<productcode>sample string 2</productcode>
<productid>1</productid>
<productname>sample string 3</productname>
</AmcProduct>
<AmcProduct>
<productcode>sample string 2</productcode>
<productid>1</productid>
<productname>sample string 3</productname>
</AmcProduct>
</prodtl_coll>
<resp_id>4</resp_id>
<status>sample string 11</status>
<stdate>sample string 9</stdate>
</AmcPost>
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>