Optibus Payroll API

The Payroll API from Optibus — 1 operation(s) for payroll.

Operations 1

GET /v2/payroll Fetch payroll #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/optibus-payroll-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

optibus-payroll-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Optibus Operations Driver Absences Payroll API
  version: 2.8.17
  description: '**Welcome to the Optibus Operations API documentation!**


    Optibus Operations is a cloud-based software solution that enables public transport providers to optimize their operations, planning, and scheduling. Our API provides programmatic access to Optibus Operations'' functionality, allowing you to integrate it with your own applications and systems.



    '
  license:
    name: Optibus Ltd, All rights reserved
  contact: {}
servers:
- url: https://YOUR-OPTIBUS-ACCOUNT.api.ops.optibus.co
  description: Contact your Optibus Customer Success Manager for the actual baseURL and API credentials to use.
tags:
- name: Payroll
paths:
  /v2/payroll:
    get:
      operationId: GetPayroll
      responses:
        '200':
          description: Payroll information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPayrollV2Response'
        '413':
          description: The request is too long. Please reduce the number of drivers or days.
      description: 'Retrieves payroll values for depots within a specified date range and for specified driver IDs or by depotId.

        There is a limit of 204k work-entities calculation per request to avoid timeouts. This limit enables, for example,

        a calculation of 100 drivers for 30 days with 100 daily work-entities defined. In case the limit is exceeded, a 413 error code will be returned, together with the allowed amount of drivers for the existing configuration.


        This endpoint is only available if the `Use Payroll V2` feature flag is enabled and work-entity as well as payroll rules have been properly setup.'
      summary: Fetch payroll
      tags:
      - Payroll
      security:
      - api_key: []
      parameters:
      - description: '- Optional. The ID of a specific depot for which payroll is to be retrieved.'
        in: query
        name: depotId
        required: false
        schema:
          type: string
      - description: '- Optional. An array of driver IDs for whom payroll is to be retrieved.'
        in: query
        name: driverIds
        required: false
        schema:
          type: array
          items:
            type: string
      - description: '- The start date of the payroll period'
        in: query
        name: startDate
        required: false
        schema:
          $ref: '#/components/schemas/StringifyDate'
      - description: '- The end date of the payroll period'
        in: query
        name: endDate
        required: false
        schema:
          $ref: '#/components/schemas/StringifyDate'
      - description: '- Optional. An array of paycodes to filter the payroll values by. If not provided, all paycodes are returned.'
        in: query
        name: paycodes
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/CodeId'
      - description: '- Optional. Will attempt to retreive the data from the cache if true. If false, will always calculate the data.'
        in: query
        name: shouldUseCache
        required: false
        schema:
          type: boolean
components:
  schemas:
    ISOWithTimeDate:
      type: string
      format: date
      description: Stringified ISO8601 date in the form of 2017-07-21T23:59:00+03:00
    CodeId:
      type: string
    DepotId:
      $ref: '#/components/schemas/UUID'
      description: The depot unique identifier in the Ops system.
    GetPayrollV2Response:
      items:
        $ref: '#/components/schemas/PayrollV2External'
      type: array
    ApiTimeInterval:
      items:
        properties:
          end:
            $ref: '#/components/schemas/ISOWithTimeDate'
          start:
            $ref: '#/components/schemas/ISOWithTimeDate'
        required:
        - end
        - start
        type: object
      type: array
    WorkEntityId:
      type: string
    TimeUnit:
      enum:
      - Minutes
      - Hours
      - Days
      - Number
      type: string
    UUID:
      type: string
      description: Stringified ID for a resource. Cannot exceed 36 characters.
    PayrollV2External:
      properties:
        occurrenceDates:
          properties:
            endDate:
              $ref: '#/components/schemas/StringifyDate'
            startDate:
              $ref: '#/components/schemas/StringifyDate'
          required:
          - endDate
          - startDate
          type: object
        result:
          properties:
            timeIntervals:
              $ref: '#/components/schemas/ApiTimeInterval'
            value:
              type: number
              format: double
            rate:
              type: number
              format: double
            unit:
              $ref: '#/components/schemas/TimeUnit'
          required:
          - value
          - rate
          - unit
          type: object
        periodType:
          $ref: '#/components/schemas/CycleTypeWithDaily'
        workEntityIdReference:
          $ref: '#/components/schemas/WorkEntityId'
        codeId:
          $ref: '#/components/schemas/CodeId'
        workingDriver:
          $ref: '#/components/schemas/WorkingDriver'
        depotId:
          $ref: '#/components/schemas/DepotId'
      required:
      - occurrenceDates
      - result
      - periodType
      - workEntityIdReference
      - codeId
      - workingDriver
      - depotId
      type: object
    CycleType:
      enum:
      - weekly
      - biWeekly
      - monthly
      type: string
    CycleTypeWithDaily:
      anyOf:
      - $ref: '#/components/schemas/CycleType'
      - type: string
        enum:
        - daily
    DriverUuid:
      $ref: '#/components/schemas/UUID'
      description: The driver unique identifier in the Ops system (not the driver personal id)
    WorkingDriver:
      properties:
        driverExternalId:
          type: string
        driverUuid:
          $ref: '#/components/schemas/DriverUuid'
      required:
      - driverExternalId
      - driverUuid
      type: object
    StringifyDate:
      type: string
      format: date
      description: Stringified ISO8601 date in the form of `YYYY-MM-dd`, for example `2017-07-21`
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header
x-tagGroups:
- name: General API Info
  tags:
  - Authentication
  - Versioning
- name: Use case guides
  tags:
  - HR System Integration Guides
  - Fleet Management System Integration Guides
  - Operational Plan Query Guides
  - Custom Driver App Notification Action Guide
- name: Client preferences
  tags:
  - Preferences
- name: Resource Management
  tags:
  - Regions
  - Drivers
  - Driver Absences
  - Driver Employment Periods
  - Driver Custom Attributes
  - Driver Groups
  - Vehicles
  - Vehicle Downtimes
  - Vehicle Custom Attributes
- name: Operations Management
  tags:
  - Roster
  - Operational Plan
  - Tasks
  - Stops
  - Signing Times
- name: Work & Payroll
  tags:
  - Work Entities
  - Payroll
  - Statistics
- name: Private Hires
  tags:
  - Private Hires
- name: Driver App Integration
  tags:
  - Driver App Notifications
- name: Event Webhooks
  tags:
  - Event Webhooks
- name: Data Ingestion
  tags:
  - Tacho Ingestion
- name: Deprecated API Endpoints
  tags:
  - Drivers (Deprecated)
  - Vehicles (Deprecated)
  - Operational Plan (Deprecated)
- name: Changelog
  tags:
  - Changelog