All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
billBilling() | GET /billing/bill/{id} | Get Bill |
billCsvBilling() | GET /billing/bill/{id}/csv | Get Bill CSV |
billsBilling() | GET /billing/bills | List Bills |
confirmDirectDebitMandateBilling() | GET /billing/directdebit/confirm | Confirm Direct Debit Setup |
deleteDirectDebitMandateBilling() | DELETE /billing/directdebit | Delete DirectDebitMandate |
directDebitMandateBilling() | GET /billing/directdebit | Get DirectDebitMandate |
getUsageStatsBilling() | GET /billing/usage-stats | Get UsageStats Report |
setupDirectDebitMandateBilling() | GET /billing/directdebit/setup | Setup DirectDebitMandate |
billBilling($id): \SynergiTech\Staffology\Model\UsageBill
Get Bill
Returns the specified UsageBill
<?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\BillingApi(
// 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
);
$id = 'id_example'; // string
try {
$result = $apiInstance->billBilling($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->billBilling: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\SynergiTech\Staffology\Model\UsageBill
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
billCsvBilling($id): \SynergiTech\Staffology\Model\ReportResponse
Get Bill CSV
Returns the specified UsageBill as a CSV file
<?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\BillingApi(
// 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
);
$id = 'id_example'; // string
try {
$result = $apiInstance->billCsvBilling($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->billCsvBilling: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\SynergiTech\Staffology\Model\ReportResponse
- Content-Type: Not defined
- Accept:
application/json
,text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
billsBilling(): \SynergiTech\Staffology\Model\Item[]
List Bills
Returns a list of UsageBills for the authenticated account
<?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\BillingApi(
// 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
);
try {
$result = $apiInstance->billsBilling();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->billsBilling: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SynergiTech\Staffology\Model\Item[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
confirmDirectDebitMandateBilling($redirectFlowId)
Confirm Direct Debit Setup
This endpoint is called by an external provider. You will never have to call this endpoint yourself.
<?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\BillingApi(
// 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
);
$redirectFlowId = 'redirectFlowId_example'; // string
try {
$apiInstance->confirmDirectDebitMandateBilling($redirectFlowId);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->confirmDirectDebitMandateBilling: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
redirectFlowId | string | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteDirectDebitMandateBilling()
Delete DirectDebitMandate
Cancels and deletes the Direct Debit Mandate for the account
<?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\BillingApi(
// 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
);
try {
$apiInstance->deleteDirectDebitMandateBilling();
} catch (Exception $e) {
echo 'Exception when calling BillingApi->deleteDirectDebitMandateBilling: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
directDebitMandateBilling(): \SynergiTech\Staffology\Model\DirectDebitMandate
Get DirectDebitMandate
Returns the DirectDebitMandate for the authenticated account
<?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\BillingApi(
// 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
);
try {
$result = $apiInstance->directDebitMandateBilling();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->directDebitMandateBilling: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SynergiTech\Staffology\Model\DirectDebitMandate
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getUsageStatsBilling($fromDate, $toDate, $accept): \SynergiTech\Staffology\Model\ReportResponse
Get UsageStats Report
Returns usage statistics data for all employers the logged in user has access to for the given date range. If either of the dates are not provided then the values are defaulted to the first and last date of the previous calendar month.
<?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\BillingApi(
// 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
);
$fromDate = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
$toDate = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime
$accept = 'accept_example'; // string
try {
$result = $apiInstance->getUsageStatsBilling($fromDate, $toDate, $accept);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->getUsageStatsBilling: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
fromDate | \DateTime | [optional] | |
toDate | \DateTime | [optional] | |
accept | string | [optional] |
\SynergiTech\Staffology\Model\ReportResponse
- Content-Type: Not defined
- Accept:
application/json
,text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
setupDirectDebitMandateBilling($returnUrl): string
Setup DirectDebitMandate
Returns a Url to redirect a user to in order to start the process of setting up a Direct Debit Mandate. Once the process is complete then the user is sent to the URL specified.
<?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\BillingApi(
// 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
);
$returnUrl = 'returnUrl_example'; // string
try {
$result = $apiInstance->setupDirectDebitMandateBilling($returnUrl);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->setupDirectDebitMandateBilling: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
returnUrl | string | [optional] |
string
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]