All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createCis300() | POST /employers/{employerId}/rti/cis300/{taxYear} | Create Cis300 |
deleteCis300() | DELETE /employers/{employerId}/rti/cis300/{taxYear}/{id} | Delete Cis300 |
getCis300() | GET /employers/{employerId}/rti/cis300/{taxYear}/{id} | Get Cis300 |
getXmlRequestCis300() | GET /employers/{employerId}/rti/cis300/{taxYear}/{id}/xml/request | Get XML Request |
listCis300() | GET /employers/{employerId}/rti/cis300/{taxYear} | List Cis300 |
markAsAcceptedCis300() | POST /employers/{employerId}/rti/cis300/{taxYear}/{id}/markasaccepted | Mark as Sent |
requiringAttentionCis300() | GET /employers/{employerId}/rti/cis300/requiringattention | Cis300 Requiring Attention |
submitCis300() | POST /employers/{employerId}/rti/cis300/{taxYear}/{id}/submit | Submit Cis300 |
updateCis300() | PUT /employers/{employerId}/rti/cis300/{taxYear}/{id} | Update Cis300 |
createCis300($employerId, $taxYear, $cis300): \SynergiTech\Staffology\Model\Cis300
Create Cis300
A Cis300 is automatically created for each Tax Month that you pay a Subcontractor. You would only manually create one if you are intending to submit a nil return.
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
$cis300 = new \SynergiTech\Staffology\Model\Cis300(); // \SynergiTech\Staffology\Model\Cis300
try {
$result = $apiInstance->createCis300($employerId, $taxYear, $cis300);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->createCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear | ||
cis300 | \SynergiTech\Staffology\Model\Cis300 | [optional] |
\SynergiTech\Staffology\Model\Cis300
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteCis300($employerId, $taxYear, $id)
Delete Cis300
Not implemented, CIS300s cannot be deleted
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
$id = 'id_example'; // string
try {
$apiInstance->deleteCis300($employerId, $taxYear, $id);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->deleteCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear | ||
id | string |
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]
getCis300($employerId, $taxYear, $id): \SynergiTech\Staffology\Model\Cis300
Get Cis300
Retrieves a Cis300
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
$id = 'id_example'; // string
try {
$result = $apiInstance->getCis300($employerId, $taxYear, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->getCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear | ||
id | string |
\SynergiTech\Staffology\Model\Cis300
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getXmlRequestCis300($employerId, $taxYear, $id): string
Get XML Request
Returns the XML request that was or will be sent to HMRC for this RTI document. Although the value is XML, it is returned as a JSON string.
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
$id = 'id_example'; // string
try {
$result = $apiInstance->getXmlRequestCis300($employerId, $taxYear, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->getXmlRequestCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear | ||
id | string |
string
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listCis300($employerId, $taxYear): \SynergiTech\Staffology\Model\Item[]
List Cis300
Returns all Cis300s for the given tax year.
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
try {
$result = $apiInstance->listCis300($employerId, $taxYear);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->listCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear |
\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]
markAsAcceptedCis300($employerId, $taxYear, $id): \SynergiTech\Staffology\Model\Cis300
Mark as Sent
Marks a Cis300 as having been sent to HMRC and accepted by them You only use this method if the request has been submitted via an external system. It will automatically be updated as Sent and/or Accepted if it's submitted via this API.
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
$id = 'id_example'; // string
try {
$result = $apiInstance->markAsAcceptedCis300($employerId, $taxYear, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->markAsAcceptedCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear | ||
id | string |
\SynergiTech\Staffology\Model\Cis300
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
requiringAttentionCis300($employerId): \SynergiTech\Staffology\Model\Item[]
Cis300 Requiring Attention
Returns all Cis300 that have a Submission Status of NotSubmitted or ErrorResponse
<?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\Cis300Api(
// 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
try {
$result = $apiInstance->requiringAttentionCis300($employerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->requiringAttentionCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string |
\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]
submitCis300($employerId, $taxYear, $id, $force): \SynergiTech\Staffology\Model\Cis300
Submit Cis300
Submits an existing Cis300 to HMRC.
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
$id = 'id_example'; // string
$force = false; // bool | If the CIS300 has already been accepted then you will need to set this to true to force it to be resubmitted
try {
$result = $apiInstance->submitCis300($employerId, $taxYear, $id, $force);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->submitCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear | ||
id | string | ||
force | bool | If the CIS300 has already been accepted then you will need to set this to true to force it to be resubmitted | [optional] [default to false] |
\SynergiTech\Staffology\Model\Cis300
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCis300($employerId, $taxYear, $id, $cis300): \SynergiTech\Staffology\Model\Cis300
Update Cis300
Updates an existing Cis300.
<?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\Cis300Api(
// 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
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear
$id = 'id_example'; // string
$cis300 = new \SynergiTech\Staffology\Model\Cis300(); // \SynergiTech\Staffology\Model\Cis300
try {
$result = $apiInstance->updateCis300($employerId, $taxYear, $id, $cis300);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Cis300Api->updateCis300: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
taxYear | \SynergiTech\Staffology\Model\TaxYear | ||
id | string | ||
cis300 | \SynergiTech\Staffology\Model\Cis300 | [optional] |
\SynergiTech\Staffology\Model\Cis300
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]