Harri Franchisee TroncPoints API

The Franchisee TroncPoints API from Harri — 3 operation(s) for franchisee troncpoints.

OpenAPI Specification

harri-franchisee-troncpoints-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harri Employee Open Franchisee TroncPoints API
  description: 'API for managing and retrieving employee data in the Harri system. - Notice: Harri''s API enforces a rate limit of 400 requests per minute. Once you exceed this limit, an HTTP 403 error is returned with a body that informs you that the limit has been exceeded. Please examine the API returns for this error so your software can respond appropriately. After 4 June, 2026, the rate limiting error will change from 403 to 429.'
  termsOfService: https://harri.com/terms
  version: 1.0.0
servers:
- url: https://gateway.harri.com/open-api-hub
tags:
- name: Franchisee TroncPoints
paths:
  /api/v1/franchisees/{franchiseeId}/employees/{employeeId}/pay_types/{payTypeId}/tronc_points:
    get:
      tags:
      - Franchisee TroncPoints
      summary: Retrieve employee tronc points API
      description: Retrieve employee tronc points
      operationId: FranshiseesGetEmployeeTroncPoints
      parameters:
      - name: franchiseeId
        in: path
        required: true
        schema:
          type: number
      - name: employeeId
        in: path
        description: employee id
        required: true
        schema:
          type: string
      - name: payTypeId
        in: path
        description: pay type id
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  tronc_points:
                    type: array
                    items:
                      $ref: '#/components/schemas/TroncPoint'
  /api/v2/franchisees/{franchiseeId}/employees/{employeeId}/pay_types/{payTypeId}/tronc_points:
    post:
      tags:
      - Franchisee TroncPoints
      summary: Define new employee tronc point API
      description: 'use this api when u want to define new employee tronc point

        '
      operationId: FranshiseesCreateEmployeeTroncPoint
      parameters:
      - name: franchiseeId
        in: path
        required: true
        schema:
          type: number
      - name: employeeId
        in: path
        description: employee id
        required: true
        schema:
          type: string
      - name: payTypeId
        in: path
        description: pay type id
        required: true
        schema:
          type: integer
          format: int64
      requestBody:
        description: Employee tronc point
        content:
          application/json:
            schema:
              type: object
              properties:
                tronc_point:
                  type: object
                  properties:
                    value:
                      type: number
                    start_date:
                      type: string
                      format: date
              required:
              - value
              - start_date
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  tronc_point:
                    $ref: '#/components/schemas/TroncPoint'
  /api/v2/franchisees/{franchiseeId}/employees/{employeeId}/pay_types/{payTypeId}/tronc_points/{troncPointId}:
    put:
      tags:
      - Franchisee TroncPoints
      summary: Update employee tronc point API
      description: Update employee tronc point by id
      operationId: FranshiseesUpdateEmployeeTroncPoint
      parameters:
      - name: franchiseeId
        in: path
        required: true
        schema:
          type: number
      - name: employeeId
        in: path
        description: employee id
        required: true
        schema:
          type: string
      - name: payTypeId
        in: path
        description: pay type id
        required: true
        schema:
          type: integer
          format: int64
      - name: troncPointId
        in: path
        description: tronc point id
        required: true
        schema:
          type: integer
          format: int64
      requestBody:
        description: Employee tronc point
        content:
          application/json:
            schema:
              type: object
              properties:
                tronc_point:
                  type: object
                  properties:
                    value:
                      type: number
                    start_date:
                      type: string
                      format: date
      responses:
        '200':
          description: successful operation
    delete:
      tags:
      - Franchisee TroncPoints
      summary: Delete employee tronc point API
      description: Delete employee tronc point by id
      operationId: FranshiseesDeleteEmployeeTroncPoint
      parameters:
      - name: franchiseeId
        in: path
        required: true
        schema:
          type: number
      - name: employeeId
        in: path
        description: employee id
        required: true
        schema:
          type: string
      - name: payTypeId
        in: path
        description: pay type id
        required: true
        schema:
          type: integer
          format: int64
      - name: troncPointId
        in: path
        description: tronc point id
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: successful operation
components:
  schemas:
    TroncPoint:
      type: object
      properties:
        id:
          type: number
        value:
          type: number
        start_date:
          type: string
          format: date
  securitySchemes:
    oAuth2ClientCredentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://oauth.harri.com/oauth2/token
          scopes: {}