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.html

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:
Available scopes:
  • : BrightPay API Access
Responses
200

Success

application/json
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:
Available scopes:
  • : BrightPay API Access
Responses
200

Success

application/json
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:
Available scopes:
  • : BrightPay API Access
Query parameters
organisationIdstring · uuidOptional

The OrganisationId of the Organisation

employerIdstring · uuidOptional

The EmployerId of the Employer

Responses
200

Success

application/json
get
/api/v1/Payroll/GetEmployerHourlyRates

Get Employees

Gets the Employees connected to an Organisations\Employer combination.

get
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Available scopes:
  • : BrightPay API Access
Query parameters
organisationIdstring · uuidOptional

The OrganisationId of the Organisation

employerIdstring · uuidOptional

The EmployerId of the Employer

Responses
200

Success

application/json
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:
Available scopes:
  • : BrightPay API Access
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
200

Success

application/json
post
/api/v1/Payroll/CreateEmployeeHourlyPayments

Last updated