All URIs are relative to https://api.iplicit.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| abandonDocument() | POST /api/Document/{idOrDocNo}/abandon | Abandon a draft document. |
| addAllocationToDocument() | POST /api/Document/{docIdOrCode}/allocation | Add an allocation to the document |
| addDocumentDetailLine() | POST /api/Document/{docRef}/detail | Add a document detail line |
| amendDocument() | PATCH /api/Document/{idOrDocNo}/amend | Amend a document |
| convertDocumentType() | POST /api/Document/{fromDocId}/convert/{toDocType} | Convert a document to another type |
| createDocument() | POST /api/Document | Create a document |
| deleteDocumentDetailLine() | DELETE /api/Document/{docRef}/detail/{docDetailRef} | Delete a document detail line |
| disputeDocument() | POST /api/Document/{idOrDocNo}/dispute | Dispute a document |
| getDocument() | GET /api/Document/{idOrDocNo} | Get a document by id or document number |
| getDocumentByIntRef() | GET /api/Document/intref/{intRef} | Get a document by the <a href="https://docs.iplicit.com/dev/guide/identifiers/index.html\">internal reference</a> |
| getDocumentMatchDetails() | GET /api/Document/{idOrDocNo}/match/details | Get document match details. |
| getDocumentMatchReverse() | GET /api/Document/{idOrDocNo}/match/reverse | Get document match reverse details. |
| getDocumentMatchSummary() | GET /api/Document/{idOrDocNo}/match/outstanding/amount | Get document match summary (amount only). |
| getDocuments() | GET /api/Document | Get a list of documents with a search filter |
| submitDocument() | POST /api/Document/{docId}/submit | Submit the document for authorisation and posting. |
| unauthoriseDocument() | POST /api/Document/{idOrDocNo}/unauthorise | Unauthorise an approved document (non GL documents only). |
| unpostDocument() | POST /api/Document/{idOrDocNo}/unpost | Unpost a document |
| updateDocument() | PATCH /api/Document/{idOrDocNo} | Update a document |
| updateDocumentDetailLine() | PATCH /api/Document/{docRef}/detail/{docDetailRef} | Update a document detail line |
| updateDocumentDetailLineObsolete() | PATCH /api/Document/detail/{docDetailId} | Update a document detail line |
abandonDocument($idOrDocNo, $docClassArg): intAbandon a draft document.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Id or document number of the document.
$docClassArg = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
try {
$result = $apiInstance->abandonDocument($idOrDocNo, $docClassArg);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->abandonDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Id or document number of the document. | |
| docClassArg | DocClass | The document class | [optional] |
int
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]
addAllocationToDocument($docIdOrCode, $docId, $docClass, $docAllocationCreate): stringAdd an allocation to the document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
$docId = 'docId_example'; // string | The document id
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
$docAllocationCreate = new \SynergiTech\Iplicit\Model\DocAllocationCreate(); // \SynergiTech\Iplicit\Model\DocAllocationCreate
try {
$result = $apiInstance->addAllocationToDocument($docIdOrCode, $docId, $docClass, $docAllocationCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->addAllocationToDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docIdOrCode | string | ||
| docId | string | The document id | [optional] |
| docClass | DocClass | The document class | [optional] |
| 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]
addDocumentDetailLine($docRef, $docClass, $docDetailUpdate)Add a document detail line
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$docRef = 'docRef_example'; // string | The document reference
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
$docDetailUpdate = new \SynergiTech\Iplicit\Model\DocDetailUpdate(); // \SynergiTech\Iplicit\Model\DocDetailUpdate
try {
$apiInstance->addDocumentDetailLine($docRef, $docClass, $docDetailUpdate);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->addDocumentDetailLine: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docRef | string | The document reference | |
| docClass | DocClass | The document class | [optional] |
| docDetailUpdate | \SynergiTech\Iplicit\Model\DocDetailUpdate | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
amendDocument($idOrDocNo, $documentAmend): stringAmend a document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Document id or number.
$documentAmend = new \SynergiTech\Iplicit\Model\DocumentAmend(); // \SynergiTech\Iplicit\Model\DocumentAmend
try {
$result = $apiInstance->amendDocument($idOrDocNo, $documentAmend);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->amendDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Document id or number. | |
| documentAmend | \SynergiTech\Iplicit\Model\DocumentAmend | [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]
convertDocumentType($fromDocId, $toDocType): stringConvert a document to another type
The document must be authorised / posted. The created document will fully match the source document.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$fromDocId = 'fromDocId_example'; // string
$toDocType = 'toDocType_example'; // string
try {
$result = $apiInstance->convertDocumentType($fromDocId, $toDocType);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->convertDocumentType: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| fromDocId | string | ||
| toDocType | string |
string
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]
createDocument($docClass, $docCreate): stringCreate a document
docClass parameter is no longer used
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
$docCreate = new \SynergiTech\Iplicit\Model\DocCreate(); // \SynergiTech\Iplicit\Model\DocCreate
try {
$result = $apiInstance->createDocument($docClass, $docCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->createDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docClass | DocClass | The document class | [optional] |
| 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]
deleteDocumentDetailLine($docRef, $docDetailRef, $docClass)Delete a document detail line
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$docRef = 'docRef_example'; // string | The document reference
$docDetailRef = 'docDetailRef_example'; // string | The document detail reference
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
try {
$apiInstance->deleteDocumentDetailLine($docRef, $docDetailRef, $docClass);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->deleteDocumentDetailLine: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docRef | string | The document reference | |
| docDetailRef | string | The document detail reference | |
| docClass | DocClass | The document class | [optional] |
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]
disputeDocument($idOrDocNo, $documentDispute): stringDispute a document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Document id or number.
$documentDispute = new \SynergiTech\Iplicit\Model\DocumentDispute(); // \SynergiTech\Iplicit\Model\DocumentDispute
try {
$result = $apiInstance->disputeDocument($idOrDocNo, $documentDispute);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->disputeDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Document id or number. | |
| documentDispute | \SynergiTech\Iplicit\Model\DocumentDispute | [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]
getDocument($idOrDocNo, $docClass, $include): \SynergiTech\Iplicit\Model\DocGet a document by id or document number
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Id for document number of the document.
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | Document class, optional
$include = 'include_example'; // string | Comma separated list of details to include: `details`, `payments`, `tax`, `allocations`.
try {
$result = $apiInstance->getDocument($idOrDocNo, $docClass, $include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->getDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Id for document number of the document. | |
| docClass | DocClass | Document class, optional | [optional] |
| include | string | Comma separated list of details to include: `details`, `payments`, `tax`, `allocations`. | [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]
getDocumentByIntRef($intRef, $docClass, $include): \SynergiTech\Iplicit\Model\DocGet a document by the <a href="https://docs.iplicit.com/dev/guide/identifiers/index.html\">internal reference
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$intRef = 'intRef_example'; // string | Internal reference of the document.
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | Document class, optional
$include = 'include_example'; // string | Comma separated list of details to include: `details`, `payments`, `tax`, `allocations`.
try {
$result = $apiInstance->getDocumentByIntRef($intRef, $docClass, $include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->getDocumentByIntRef: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| intRef | string | Internal reference of the document. | |
| docClass | DocClass | Document class, optional | [optional] |
| include | string | Comma separated list of details to include: `details`, `payments`, `tax`, `allocations`. | [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]
getDocumentMatchDetails($idOrDocNo, $docClass)Get document match details.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Id or document number of the document.
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | Document class
try {
$apiInstance->getDocumentMatchDetails($idOrDocNo, $docClass);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->getDocumentMatchDetails: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Id or document number of the document. | |
| docClass | DocClass | Document class | [optional] |
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]
getDocumentMatchReverse($idOrDocNo, $docClass)Get document match reverse details.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Id or document number of the document.
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | Document class
try {
$apiInstance->getDocumentMatchReverse($idOrDocNo, $docClass);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->getDocumentMatchReverse: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Id or document number of the document. | |
| docClass | DocClass | Document class | [optional] |
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]
getDocumentMatchSummary($idOrDocNo, $docClass)Get document match summary (amount only).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Id or document number of the document.
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | Document class
try {
$apiInstance->getDocumentMatchSummary($idOrDocNo, $docClass);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->getDocumentMatchSummary: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Id or document number of the document. | |
| docClass | DocClass | Document class | [optional] |
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]
getDocuments($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 documents with a search filter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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->getDocuments($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 DocumentApi->getDocuments: ', $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]
submitDocument($docId, $docClass)Submit the document for authorisation and posting.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$docId = 'docId_example'; // string | Id of the document.
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | Document class
try {
$apiInstance->submitDocument($docId, $docClass);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->submitDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docId | string | Id of the document. | |
| docClass | DocClass | Document class | [optional] |
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]
unauthoriseDocument($idOrDocNo, $docClassArg): intUnauthorise an approved document (non GL documents only).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Id or document number of the document.
$docClassArg = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
try {
$result = $apiInstance->unauthoriseDocument($idOrDocNo, $docClassArg);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->unauthoriseDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Id or document number of the document. | |
| docClassArg | DocClass | The document class | [optional] |
int
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]
unpostDocument($idOrDocNo)Unpost a document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Document id or number.
try {
$apiInstance->unpostDocument($idOrDocNo);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->unpostDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Document id or number. |
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]
updateDocument($idOrDocNo, $docClass, $docUpdate)Update a document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$idOrDocNo = 'idOrDocNo_example'; // string | Id or document number of the document
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
$docUpdate = new \SynergiTech\Iplicit\Model\DocUpdate(); // \SynergiTech\Iplicit\Model\DocUpdate
try {
$apiInstance->updateDocument($idOrDocNo, $docClass, $docUpdate);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->updateDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| idOrDocNo | string | Id or document number of the document | |
| docClass | DocClass | The document class | [optional] |
| docUpdate | \SynergiTech\Iplicit\Model\DocUpdate | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateDocumentDetailLine($docRef, $docDetailRef, $docClass, $docDetailUpdate)Update a document detail line
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$docRef = 'docRef_example'; // string | The document reference
$docDetailRef = 'docDetailRef_example'; // string | The document detail reference
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
$docDetailUpdate = new \SynergiTech\Iplicit\Model\DocDetailUpdate(); // \SynergiTech\Iplicit\Model\DocDetailUpdate
try {
$apiInstance->updateDocumentDetailLine($docRef, $docDetailRef, $docClass, $docDetailUpdate);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->updateDocumentDetailLine: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docRef | string | The document reference | |
| docDetailRef | string | The document detail reference | |
| docClass | DocClass | The document class | [optional] |
| docDetailUpdate | \SynergiTech\Iplicit\Model\DocDetailUpdate | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateDocumentDetailLineObsolete($docDetailId, $docClass, $docDetailUpdate)Update a document detail line
Use PATCH /doc/{docRef}/detail/{docDetailRef} instead
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\DocumentApi(
// 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
);
$docDetailId = 'docDetailId_example'; // string | The document detail id
$docClass = new \SynergiTech\Iplicit\Model\DocClass(); // DocClass | The document class
$docDetailUpdate = new \SynergiTech\Iplicit\Model\DocDetailUpdate(); // \SynergiTech\Iplicit\Model\DocDetailUpdate
try {
$apiInstance->updateDocumentDetailLineObsolete($docDetailId, $docClass, $docDetailUpdate);
} catch (Exception $e) {
echo 'Exception when calling DocumentApi->updateDocumentDetailLineObsolete: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| docDetailId | string | The document detail id | |
| docClass | DocClass | The document class | [optional] |
| docDetailUpdate | \SynergiTech\Iplicit\Model\DocDetailUpdate | [optional] |
void (empty response body)
No authorization required
- Content-Type:
application/json,text/json,application/*+json - Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]