Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.91 KB

TierablePayApi.md

File metadata and controls

70 lines (48 loc) · 1.91 KB

SynergiTech\Staffology\TierablePayApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
getTierablePay() GET /employers/{employerId}/tierablepay/{payrunEntryId} Calculate tierable pay

getTierablePay()

getTierablePay($employerId, $payrunEntryId): float

Calculate tierable pay

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new SynergiTech\Staffology\Api\TierablePayApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$employerId = 'employerId_example'; // string | Employer ID
$payrunEntryId = 'payrunEntryId_example'; // string | Payrun entry ID

try {
    $result = $apiInstance->getTierablePay($employerId, $payrunEntryId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TierablePayApi->getTierablePay: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string Employer ID
payrunEntryId string Payrun entry ID

Return type

float

Authorization

Basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]