POST api/addCultivation
Request Information
URI Parameters
None.
Body Parameters
payment| Name | Description | Type | Additional information |
|---|---|---|---|
| paymentID | integer |
None. |
|
| adminID | integer |
None. |
|
| transactionType | string |
None. |
|
| paymentDate | string |
None. |
|
| farmerID | integer |
None. |
|
| farmName | string |
None. |
|
| cultivatedArea | decimal number |
None. |
|
| serviceID | integer |
None. |
|
| vehicleID | integer |
None. |
|
| serviceChargesPerAcre | decimal number |
None. |
|
| billAmount | decimal number |
None. |
|
| totalBillAmount | decimal number |
None. |
|
| driverID | integer |
None. |
|
| paidAmount | decimal number |
None. |
|
| prevBalance | decimal number |
None. |
|
| prevAdvance | decimal number |
None. |
|
| nowBalance | decimal number |
None. |
|
| nowAdvance | decimal number |
None. |
|
| isBalance | integer |
None. |
|
| isAdvance | integer |
None. |
|
| commitmentDate | string |
None. |
|
| isActive | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"paymentID": 1,
"adminID": 2,
"transactionType": "sample string 3",
"paymentDate": "sample string 4",
"farmerID": 5,
"farmName": "sample string 6",
"cultivatedArea": 7.0,
"serviceID": 8,
"vehicleID": 9,
"serviceChargesPerAcre": 10.0,
"billAmount": 11.0,
"totalBillAmount": 12.0,
"driverID": 13,
"paidAmount": 14.0,
"prevBalance": 15.0,
"prevAdvance": 16.0,
"nowBalance": 17.0,
"nowAdvance": 18.0,
"isBalance": 19,
"isAdvance": 20,
"commitmentDate": "sample string 21",
"isActive": 22
}
application/xml, text/xml
Sample:
<payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VMS_api.Models"> <adminID>2</adminID> <billAmount>11</billAmount> <commitmentDate>sample string 21</commitmentDate> <cultivatedArea>7</cultivatedArea> <driverID>13</driverID> <farmName>sample string 6</farmName> <farmerID>5</farmerID> <isActive>22</isActive> <isAdvance>20</isAdvance> <isBalance>19</isBalance> <nowAdvance>18</nowAdvance> <nowBalance>17</nowBalance> <paidAmount>14</paidAmount> <paymentDate>sample string 4</paymentDate> <paymentID>1</paymentID> <prevAdvance>16</prevAdvance> <prevBalance>15</prevBalance> <serviceChargesPerAcre>10</serviceChargesPerAcre> <serviceID>8</serviceID> <totalBillAmount>12</totalBillAmount> <transactionType>sample string 3</transactionType> <vehicleID>9</vehicleID> </payment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |