All URIs are relative to https://api.prod.cinolla.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createPayment() | POST /v3/client/payments | Create a new Payment. |
getPayments() | GET /v3/client/payments | Fetch a collection of Payments. |
createPayment($payment2): \SynergiTech\Cinolla\Model\Payment
Create a new Payment.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new SynergiTech\Cinolla\Api\PaymentsApi(
// 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
);
$payment2 = new \SynergiTech\Cinolla\Model\Payment2(); // \SynergiTech\Cinolla\Model\Payment2 | The JSON Payload.
try {
$result = $apiInstance->createPayment($payment2);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentsApi->createPayment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
payment2 | \SynergiTech\Cinolla\Model\Payment2 | The JSON Payload. |
\SynergiTech\Cinolla\Model\Payment
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getPayments($offset, $limit, $startDate, $endDate, $dateRangeFilter, $includeRemoved): \SynergiTech\Cinolla\Model\Payment[]
Fetch a collection of Payments.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new SynergiTech\Cinolla\Api\PaymentsApi(
// 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
);
$offset = 0; // int | An offset to return a paginated list of results
$limit = 100; // int | The limit on the number of results
$startDate = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | Start date of a date range. Used in conjunction with endDate to create a date range to filter by.
$endDate = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | End date of a date range. Used in conjunction with startDate to create a date range to filter by.
$dateRangeFilter = 'datePaid'; // string | Used in conjunction with startDate and endDate to filter Invoices.
$includeRemoved = false; // bool | Whether or not to include entities flagged as removed
try {
$result = $apiInstance->getPayments($offset, $limit, $startDate, $endDate, $dateRangeFilter, $includeRemoved);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PaymentsApi->getPayments: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
offset | int | An offset to return a paginated list of results | [optional] [default to 0] |
limit | int | The limit on the number of results | [optional] [default to 100] |
startDate | \DateTime | Start date of a date range. Used in conjunction with endDate to create a date range to filter by. | [optional] |
endDate | \DateTime | End date of a date range. Used in conjunction with startDate to create a date range to filter by. | [optional] |
dateRangeFilter | string | Used in conjunction with startDate and endDate to filter Invoices. | [optional] [default to 'datePaid'] |
includeRemoved | bool | Whether or not to include entities flagged as removed | [optional] [default to false] |
\SynergiTech\Cinolla\Model\Payment[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]