All URIs are relative to https://api.iplicit.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createPurchaseOrder() | POST /api/PurchaseOrder | Create a purchase order. |
getPurchaseOrder() | GET /api/PurchaseOrder/{id} | Get a purchase order. |
getPurchaseOrders() | GET /api/PurchaseOrder | Get a list of purchase orders with a search filter |
submitPurchaseOrder() | POST /api/PurchaseOrder/{id}/submit | Submit a purchase order for authorisation. |
updatePurchaseOrder() | PATCH /api/PurchaseOrder/{idOrDocNo} | Update a purchase order. |
createPurchaseOrder($docCreate): string
Create a purchase order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\PurchaseOrderApi(
// 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->createPurchaseOrder($docCreate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->createPurchaseOrder: ', $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]
getPurchaseOrder($id, $include): \SynergiTech\Iplicit\Model\Doc
Get a purchase order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\PurchaseOrderApi(
// 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 purchase order
$include = 'include_example'; // string
try {
$result = $apiInstance->getPurchaseOrder($id, $include);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->getPurchaseOrder: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id or document number of the purchase order | |
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]
getPurchaseOrders($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 purchase orders with a search filter
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\PurchaseOrderApi(
// 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->getPurchaseOrders($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 PurchaseOrderApi->getPurchaseOrders: ', $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]
submitPurchaseOrder($id)
Submit a purchase order for authorisation.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\PurchaseOrderApi(
// 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 purchase order
try {
$apiInstance->submitPurchaseOrder($id);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->submitPurchaseOrder: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the purchase order |
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]
updatePurchaseOrder($idOrDocNo, $docUpdate)
Update a purchase order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new SynergiTech\Iplicit\Api\PurchaseOrderApi(
// 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 purchase order
$docUpdate = new \SynergiTech\Iplicit\Model\DocUpdate(); // \SynergiTech\Iplicit\Model\DocUpdate
try {
$apiInstance->updatePurchaseOrder($idOrDocNo, $docUpdate);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->updatePurchaseOrder: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
idOrDocNo | string | Id or document number of the purchase order | |
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]