All URIs are relative to https://api.iplicit.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| addReceiptAllocation() | POST /api/Receipt/{docIdOrCode}/allocation | Add a receipt allocation. |
| createReceipt() | POST /api/Receipt | Create a receipt. |
| getReceipt() | GET /api/Receipt/{id} | Get a receipt |
| getReceipts() | GET /api/Receipt | Get a list of receipts with a search filter |
| submitReceipt() | POST /api/Receipt/{id}/submit | Submit a receipt for authorisation and posting. |
addReceiptAllocation($docIdOrCode, $docAllocationCreate): stringAdd a receipt allocation.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\ReceiptApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$docIdOrCode = 'docIdOrCode_example'; // string | Id or document number of the receipt
$docAllocationCreate = new \SynergiTech\Iplicit\Model\DocAllocationCreate(); // \SynergiTech\Iplicit\Model\DocAllocationCreate
try {
$result = $apiInstance->addReceiptAllocation($docIdOrCode, $docAllocationCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceiptApi->addReceiptAllocation: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docIdOrCode | string | Id or document number of the receipt | |
| docAllocationCreate | \SynergiTech\Iplicit\Model\DocAllocationCreate | [optional] |
string
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createReceipt($docCreate): stringCreate a receipt.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\ReceiptApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$docCreate = new \SynergiTech\Iplicit\Model\DocCreate(); // \SynergiTech\Iplicit\Model\DocCreate
try {
$result = $apiInstance->createReceipt($docCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceiptApi->createReceipt: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docCreate | \SynergiTech\Iplicit\Model\DocCreate | [optional] |
string
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getReceipt($id, $include): \SynergiTech\Iplicit\Model\DocGet a receipt
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\ReceiptApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$id = 'id_example'; // string | Id or document number of the receipt
$include = 'include_example'; // string
try {
$result = $apiInstance->getReceipt($id, $include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceiptApi->getReceipt: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Id or document number of the receipt | |
| include | string | [optional] |
\SynergiTech\Iplicit\Model\Doc
No authorization required
- Content-Type: Not defined
- Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getReceipts($docNo, $docType, $docTypeId, $contactAccount, $contactAccountId, $legalEntity, $legalEntityId, $currency, $project, $projectId, $description, $descriptionContains, $theirRef, $intRef, $legacyRef, $theirDocNo, $docClass, $docDateFrom, $docDateTo, $dueDateFrom, $dueDateTo, $lastModifiedFrom, $lastModifiedTo, $outstanding, $unmatched, $draft, $abandoned, $posted, $approved, $reversed, $take, $skip): \SynergiTech\Iplicit\Model\DocSummary[]Get a list of receipts with a search filter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\ReceiptApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$docNo = 'docNo_example'; // string | The document number
$docType = 'docType_example'; // string | The document type code
$docTypeId = 'docTypeId_example'; // string | The document type id
$contactAccount = 'contactAccount_example'; // string | The document contact account code
$contactAccountId = 'contactAccountId_example'; // string | The document contact account id
$legalEntity = 'legalEntity_example'; // string | The document legal entity code
$legalEntityId = 'legalEntityId_example'; // string | The document legal entity id
$currency = 'currency_example'; // string | The document currency
$project = 'project_example'; // string | The document project code
$projectId = 'projectId_example'; // string | The document project id
$description = 'description_example'; // string | The document description
$descriptionContains = 'descriptionContains_example'; // string | The document description contains
$theirRef = 'theirRef_example'; // string | An external reference code
$intRef = 'intRef_example'; // string | Optional interface reference. If provided, it must be unique. <a href=\"https://docs.iplicit.com/dev/guide/identifiers/index.html\">Learn more</a>
$legacyRef = 'legacyRef_example'; // string | Alternative / legacy reference code
$theirDocNo = 'theirDocNo_example'; // string | An external document number
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
$docDateFrom = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The document from date
$docDateTo = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The document to date
$dueDateFrom = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The document due from date
$dueDateTo = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The document due to date
$lastModifiedFrom = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The document last modified from date
$lastModifiedTo = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The document last modified to date
$outstanding = True; // bool | The document outstanding flag
$unmatched = True; // bool | The document unmatched flag
$draft = True; // bool | The document draft flag
$abandoned = True; // bool | The document abandoned flag
$posted = True; // bool | The document posted
$approved = True; // bool | The document approved flag
$reversed = True; // bool | The document reversed flag
$take = 56; // int | The number of documents to take
$skip = 56; // int | The number of documents to skip
try {
$result = $apiInstance->getReceipts($docNo, $docType, $docTypeId, $contactAccount, $contactAccountId, $legalEntity, $legalEntityId, $currency, $project, $projectId, $description, $descriptionContains, $theirRef, $intRef, $legacyRef, $theirDocNo, $docClass, $docDateFrom, $docDateTo, $dueDateFrom, $dueDateTo, $lastModifiedFrom, $lastModifiedTo, $outstanding, $unmatched, $draft, $abandoned, $posted, $approved, $reversed, $take, $skip);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceiptApi->getReceipts: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docNo | string | The document number | [optional] |
| docType | string | The document type code | [optional] |
| docTypeId | string | The document type id | [optional] |
| contactAccount | string | The document contact account code | [optional] |
| contactAccountId | string | The document contact account id | [optional] |
| legalEntity | string | The document legal entity code | [optional] |
| legalEntityId | string | The document legal entity id | [optional] |
| currency | string | The document currency | [optional] |
| project | string | The document project code | [optional] |
| projectId | string | The document project id | [optional] |
| description | string | The document description | [optional] |
| descriptionContains | string | The document description contains | [optional] |
| theirRef | string | An external reference code | [optional] |
| intRef | string | Optional interface reference. If provided, it must be unique. <a href="https://docs.iplicit.com/dev/guide/identifiers/index.html\">Learn more</a> | [optional] |
| legacyRef | string | Alternative / legacy reference code | [optional] |
| theirDocNo | string | An external document number | [optional] |
| docClass | DocClass | The document class | [optional] |
| docDateFrom | \DateTime | The document from date | [optional] |
| docDateTo | \DateTime | The document to date | [optional] |
| dueDateFrom | \DateTime | The document due from date | [optional] |
| dueDateTo | \DateTime | The document due to date | [optional] |
| lastModifiedFrom | \DateTime | The document last modified from date | [optional] |
| lastModifiedTo | \DateTime | The document last modified to date | [optional] |
| outstanding | bool | The document outstanding flag | [optional] |
| unmatched | bool | The document unmatched flag | [optional] |
| draft | bool | The document draft flag | [optional] |
| abandoned | bool | The document abandoned flag | [optional] |
| posted | bool | The document posted | [optional] |
| approved | bool | The document approved flag | [optional] |
| reversed | bool | The document reversed flag | [optional] |
| take | int | The number of documents to take | [optional] |
| skip | int | The number of documents to skip | [optional] |
\SynergiTech\Iplicit\Model\DocSummary[]
No authorization required
- Content-Type: Not defined
- Accept:
text/plain,application/json,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
submitReceipt($id)Submit a receipt for authorisation and posting.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\ReceiptApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
config: $config
);
$id = 'id_example'; // string | Id of the receipt
try {
$apiInstance->submitReceipt($id);
} catch (Exception $e) {
echo 'Exception when calling ReceiptApi->submitReceipt: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Id of the receipt |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]