POST api/Payment/{employeeNo}/{payElement}/{startDate}/{recordID}

Update a payment for an employee. Uses the record ID along with the Pay Element and Start Date for the key.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
recordID

Employee Pay Record ID

string

Required

employeeNo

Employee Number

string

Required

payElement

Pay Element

string

Required

startDate

Start Date

date

Required

Body Parameters

In the request Body: Employee Payment Details

PaymentDetail
NameDescriptionTypeAdditional information
RecordID

integer

None.

PayElement

Must not be archived

string

Required

StartDate

date

Required

EndDate

date

None.

AnnualAmount

AmountAmount OR PeriodAmount is required

decimal number

None.

PeriodAmount

AmountAmount OR PeriodAmount is required

decimal number

None.

Balance

decimal number

None.

RateEffectiveDate

date

None.

Applied

boolean

None.

Request Formats

application/json, text/json

Sample:
{
    "RecordID": 2035,
    "PayElement": "Basic",
    "StartDate": "2021-11-08T00:00:00",
    "EndDate": null,
    "AnnualAmount": 144000.0,
    "Balance": null,
    "RateEffectiveDate": null,
    "Applied": false
}

application/xml, text/xml

Sample:
<PaymentDetail>
    <AnnualAmount>144000.0</AnnualAmount>
    <Applied>false</Applied>
    <Balance>null</Balance>
    <EndDate>null</EndDate>
    <PayElement>Basic</PayElement>
    <RateEffectiveDate>null</RateEffectiveDate>
    <RecordID>2035</RecordID>
    <StartDate>2021-11-08T00:00:00</StartDate>    
</PaymentDetail>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultWithMessage
NameDescriptionTypeAdditional information
result

'OK', 'Error'

string

None.

message

Returns if result is Error

string

None.

returnValue

string

None.

Response Formats

application/json, text/json

Sample:
{
    "result": "OK"
}

{
    "result": "Error",
    "message": "Unable to save: the..."
}

application/xml, text/xml

Sample:
<ResultWithMessage>
    <result>OK</result>
</ResultWithMessage>

<ResultWithMessage>  
    <result>Error</result>
    <message>Unable to save: the...</message>
</ResultWithMessage>