POST api/Deductions
Posts the specified deduction.
Request Information
Parameters
| Name | Description |
|---|---|
|
deduction
(param in the body) |
The deduction. |
Request body formats
application/json, text/json
Sample:
{
"DeductionCode": "",
"EmployeeId": 0,
"CompanyCode": "",
"StatusCode": "",
"EmployeeDeductionPerPayrollAmount": 0.0,
"EmployerDeductionPerPayrollAmount": 0.0,
"EmployeeMaximumAnnualDeductionAmount": 0.0,
"EmployerMaximumAnnualDeductionAmount": 0.0,
"StartDate": "2000-01-01T00:00:00",
"EndDate": "2000-01-01T00:00:00",
"PayeeCode": "",
"Petitioner": "",
"CaseId": "",
"IsEmployerContributionCalculated": false
}
application/xml, text/xml
Sample:
<Deduction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netchex.API.External.Areas.Deductions.Models.External"> <CaseId></CaseId> <CompanyCode></CompanyCode> <DeductionCode></DeductionCode> <EmployeeDeductionPerPayrollAmount>0</EmployeeDeductionPerPayrollAmount> <EmployeeId>0</EmployeeId> <EmployeeMaximumAnnualDeductionAmount>0</EmployeeMaximumAnnualDeductionAmount> <EmployerDeductionPerPayrollAmount>0</EmployerDeductionPerPayrollAmount> <EmployerMaximumAnnualDeductionAmount>0</EmployerMaximumAnnualDeductionAmount> <EndDate>2000-01-01T00:00:00</EndDate> <IsEmployerContributionCalculated>false</IsEmployerContributionCalculated> <PayeeCode></PayeeCode> <Petitioner></Petitioner> <StartDate>2000-01-01T00:00:00</StartDate> <StatusCode></StatusCode> </Deduction>
Response Information
APIResult.
Response body formats
application/json, text/json
Sample:
{
"Success": false,
"Messages": [
"",
"",
""
]
}
application/xml, text/xml
Sample:
<APIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netchex.External.API.Models.Simple">
<Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string></d2p1:string>
<d2p1:string></d2p1:string>
<d2p1:string></d2p1:string>
</Messages>
<Success>false</Success>
</APIResult>