Creates a Statutory Adoption Leave period for an employee
POST https://api.yourpayroll.co.uk/api/v2/business/{businessId}/employee/{employeeId}/statutoryleave/sap
Parameter name | Value | Description | Additional |
---|---|---|---|
employeeId | int32 | Required | |
businessId | string | Required |
The request body takes a complete UkSapDataApiModel resource, containing the following writable properties:
{
"averageWeeklyEarningsOverride": "double",
"babyDueDate": "date-time",
"calculationType": "string",
"doNotPayReason": "string",
"employerPensionProtection": "double",
"id": "int32",
"isSurrogacy": "boolean",
"notes": "string",
"offsetSap": "boolean",
"payLumpSum": "boolean",
"prevSapEndDate": "date-time",
"prevSapStartDate": "date-time",
"sap": [
{
"daysPaid": "int32",
"earnings": "double",
"payRunId": "int32"
}
],
"sapAdjust": "double",
"startDate": "date-time",
"weeksPaid": "double",
"weeksToPay": "double"
}
Name | Type | Description |
---|---|---|
averageWeeklyEarningsOverride | double |
Nullable |
babyDueDate | date-time | DateTime |
calculationType | string |
Nullable Possible values are:
|
doNotPayReason | string |
Nullable Possible values are:
|
employerPensionProtection | double |
Nullable |
id | int32 | Int32 |
isSurrogacy | boolean | Boolean |
notes | string | String |
offsetSap | boolean | Boolean |
payLumpSum | boolean | Boolean |
prevSapEndDate | date-time |
Nullable |
prevSapStartDate | date-time |
Nullable |
sap[] | array | |
sap[].daysPaid | int32 | Int32 |
sap[].earnings | double |
Nullable |
sap[].payRunId | int32 | Int32 |
sapAdjust | double |
Nullable |
startDate | date-time | DateTime |
weeksPaid | double | Decimal |
weeksToPay | double |
Nullable |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK OK |
UkSapDataApiResponseModel |
Powered by DapperDox