Payroll API V1.0 Methods

Below is a list of the currently supported API methods within the Payroll API. The Payroll API will integrate with the BrightPay Cloud application.

Note there is also a swagger interface available that supports testing of Authentication and Integration: https://external.brightpay.com/index.htmlarrow-up-right

Get Current User Summary

Returns limited details of the user that the current access token belongs to. As customers may have more than one account on BrightPay it can be useful to display who is logged in.

get
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Responses
chevron-right
200

Success

application/json

The UserSummaryResponse contains basic user details.

isSuccessbooleanOptional

The IsSuccess field indicates if the request was successful or not. This field will always be populated.

namestring · nullableOptional

The user's name. This field will always be populated.

Example: Jane Doe
emailAddressstring · nullableOptional

The user's email address. This field will always be populated.

Example: [email protected]
get
/api/v1/Payroll/GetCurrentUserSummary

Get Organisations\Employers

Gets the Organisations\Employers that a user has access to.

get
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Responses
chevron-right
200

Success

application/json

EmployersResponse contains a list of Employers.

isSuccessbooleanOptional

The IsSuccess field indicates if the request was successful or not. This field will always be populated.

get
/api/v1/Payroll/GetEmployers

Get Hourly Rates

Gets the Hourly Rates connected to an Organisations\Employer combination.

get
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Query parameters
organisationIdstring · uuidOptional

The OrganisationId of the Organisation

employerIdstring · uuidOptional

The EmployerId of the Employer

Responses
chevron-right
200

Success

application/json

HourlyRatesResponse contains a list of Hourly Payment Rates.

isSuccessbooleanOptional

The IsSuccess field indicates if the request was successful or not. This field will always be populated.

get
/api/v1/Payroll/GetEmployerHourlyRates

Get Employees

Gets the Employees connected to an Organisations\Employer combination.

get
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Query parameters
organisationIdstring · uuidOptional

The OrganisationId of the Organisation

employerIdstring · uuidOptional

The EmployerId of the Employer

Responses
chevron-right
200

Success

application/json

EmployeesResponse contains a list of Employees.

isSuccessbooleanOptional

The IsSuccess field indicates if the request was successful or not. This field will always be populated.

get
/api/v1/Payroll/GetEmployees

Create Employee Hourly Payments

Creates hourly payments on the current open payslip of an Employee.

post
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Body

EmployeeHourlyPaymentsRequest contains employee information, validation settings and details of payments.

organisationIdstring · uuidRequired

The Organisation's Id. This field is mandatory

Example: a45272c5-14e0-42a3-833d-c30804dec81b
employerIdstring · uuidRequired

The Employer's Id. This field is mandatory.

Example: ad8dbe0e-3023-49a2-9fdc-0703a408c445
employeeIdstring · uuidRequired

The Employee's Id. This field is mandatory

Example: d41eadf5-ac9b-47bd-8384-e0fd62cfd32d
isRunValidationOnlybooleanRequired

The field IsRunValidationOnly controls if the system should just run validation (if set to true) or validate and load (if set to false). This field is mandatory.

Example: true
isRemoveExistingHourlyPaymentsbooleanRequired

The field IsRemoveExistingHourlyPayments controls if the system should remove existing hourly payments in the current open payslip (if set to true) or add the hourly payments into the current open payslip alongside existing hourly payments (if set to false). This field is mandatory.

Example: true
Responses
chevron-right
200

Success

application/json

EmployeeHourlyPaymentsResponse is a basic success/failure response.

isSuccessbooleanOptional

The IsSuccess field indicates if the request was successful or not. This field will always be populated.

post
/api/v1/Payroll/CreateEmployeeHourlyPayments

Last updated