Creates the payslip configuration for the specified business ID.

ShowLineNotes field must be enabled in order to enable the ShowLocationInLineNotes field.

An example of what you would populate the EmailBodyMessage field with would be:

Hi {{FirstName}},

{{BusinessName}} has just processed your pay and a new pay slip is available.

Regards {{BusinessName}}

Request

POST https://api.yourpayroll.co.uk/api/v2/business/{businessId}/payslip

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

The request body takes a complete UkEditBusinessPaySlipApiModel resource, containing the following writable properties:

{
    "alphabetisePayCategories": "boolean",
    "emailBodyMessage": "string",
    "emailFrom": "string",
    "employeesMustLoginToDownloadPayslips": "boolean",
    "id": "int32",
    "paySlipFormat": "string",
    "showCrnNumber": "boolean",
    "showEmployeeAddress": "boolean",
    "showEmployeeExternalId": "boolean",
    "showLeaveAccruals": "boolean",
    "showLineNotes": "boolean",
    "showLocationInLineNotes": "boolean",
    "showPayeReference": "boolean"
}

Properties

Name Type Description
alphabetisePayCategories boolean Boolean
emailBodyMessage string String
emailFrom string String
employeesMustLoginToDownloadPayslips boolean Boolean
id int32 Int32
paySlipFormat string PaySlipFormat

Possible values are:

  • Web
  • ZFold
showCrnNumber boolean Boolean
showEmployeeAddress boolean Boolean
showEmployeeExternalId boolean Boolean
showLeaveAccruals boolean Boolean
showLineNotes boolean Boolean
showLocationInLineNotes boolean Boolean
showPayeReference boolean Boolean

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK