All URIs are relative to /
| Method | HTTP request | Description |
|---|---|---|
| completeInvoicePaymentTransaction | PUT /1.0/kb/invoicePayments/{paymentId} | Complete an existing transaction |
| createChargeback | POST /1.0/kb/invoicePayments/{paymentId}/chargebacks | Record a chargeback |
| createChargebackReversal | POST /1.0/kb/invoicePayments/{paymentId}/chargebackReversals | Record a chargebackReversal |
| createInvoicePaymentCustomFields | POST /1.0/kb/invoicePayments/{paymentId}/customFields | Add custom fields to payment |
| createInvoicePaymentTags | POST /1.0/kb/invoicePayments/{paymentId}/tags | Add tags to payment |
| createRefundWithAdjustments | POST /1.0/kb/invoicePayments/{paymentId}/refunds | Refund a payment, and adjust the invoice if needed |
| deleteInvoicePaymentCustomFields | DELETE /1.0/kb/invoicePayments/{paymentId}/customFields | Remove custom fields from payment |
| deleteInvoicePaymentTags | DELETE /1.0/kb/invoicePayments/{paymentId}/tags | Remove tags from payment |
| getInvoicePayment | GET /1.0/kb/invoicePayments/{paymentId} | Retrieve a payment by id |
| getInvoicePaymentAuditLogsWithHistory | GET /1.0/kb/invoicePayments/{invoicePaymentId}/auditLogsWithHistory | Retrieve invoice payment audit logs with history by id |
| getInvoicePaymentCustomFields | GET /1.0/kb/invoicePayments/{paymentId}/customFields | Retrieve payment custom fields |
| getInvoicePaymentTags | GET /1.0/kb/invoicePayments/{paymentId}/tags | Retrieve payment tags |
| modifyInvoicePaymentCustomFields | PUT /1.0/kb/invoicePayments/{paymentId}/customFields | Modify custom fields to payment |
completeInvoicePaymentTransaction($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $controlPluginName, $pluginProperty)
Complete an existing transaction
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$body = new \Killbill\Client\Swagger\Model\PaymentTransaction(); // \Killbill\Client\Swagger\Model\PaymentTransaction |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
$controlPluginName = array("controlPluginName_example"); // string[] |
$pluginProperty = array("pluginProperty_example"); // string[] |
try {
$apiInstance->completeInvoicePaymentTransaction($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $controlPluginName, $pluginProperty);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->completeInvoicePaymentTransaction: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Killbill\Client\Swagger\Model\PaymentTransaction | ||
| xKillbillCreatedBy | string | ||
| paymentId | string | ||
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] | |
| controlPluginName | string[] | [optional] | |
| pluginProperty | string[] | [optional] |
void (empty response body)
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\InvoicePayment createChargeback($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $pluginProperty)
Record a chargeback
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$body = new \Killbill\Client\Swagger\Model\InvoicePaymentTransaction(); // \Killbill\Client\Swagger\Model\InvoicePaymentTransaction |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
$pluginProperty = array("pluginProperty_example"); // string[] |
try {
$result = $apiInstance->createChargeback($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $pluginProperty);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->createChargeback: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Killbill\Client\Swagger\Model\InvoicePaymentTransaction | ||
| xKillbillCreatedBy | string | ||
| paymentId | string | ||
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] | |
| pluginProperty | string[] | [optional] |
\Killbill\Client\Swagger\Model\InvoicePayment
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\InvoicePayment createChargebackReversal($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $pluginProperty)
Record a chargebackReversal
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$body = new \Killbill\Client\Swagger\Model\InvoicePaymentTransaction(); // \Killbill\Client\Swagger\Model\InvoicePaymentTransaction |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
$pluginProperty = array("pluginProperty_example"); // string[] |
try {
$result = $apiInstance->createChargebackReversal($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $pluginProperty);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->createChargebackReversal: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Killbill\Client\Swagger\Model\InvoicePaymentTransaction | ||
| xKillbillCreatedBy | string | ||
| paymentId | string | ||
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] | |
| pluginProperty | string[] | [optional] |
\Killbill\Client\Swagger\Model\InvoicePayment
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\CustomField[] createInvoicePaymentCustomFields($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment)
Add custom fields to payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$body = array(new \Killbill\Client\Swagger\Model\CustomField()); // \Killbill\Client\Swagger\Model\CustomField[] |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
try {
$result = $apiInstance->createInvoicePaymentCustomFields($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->createInvoicePaymentCustomFields: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Killbill\Client\Swagger\Model\CustomField[] | ||
| xKillbillCreatedBy | string | ||
| paymentId | string | ||
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] |
\Killbill\Client\Swagger\Model\CustomField[]
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\Tag[] createInvoicePaymentTags($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment)
Add tags to payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$body = array("body_example"); // string[] |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
try {
$result = $apiInstance->createInvoicePaymentTags($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->createInvoicePaymentTags: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | string[] | ||
| xKillbillCreatedBy | string | ||
| paymentId | string | ||
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] |
\Killbill\Client\Swagger\Model\Tag[]
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\InvoicePayment createRefundWithAdjustments($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $externalPayment, $paymentMethodId, $pluginProperty)
Refund a payment, and adjust the invoice if needed
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$body = new \Killbill\Client\Swagger\Model\InvoicePaymentTransaction(); // \Killbill\Client\Swagger\Model\InvoicePaymentTransaction |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
$externalPayment = false; // bool |
$paymentMethodId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$pluginProperty = array("pluginProperty_example"); // string[] |
try {
$result = $apiInstance->createRefundWithAdjustments($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment, $externalPayment, $paymentMethodId, $pluginProperty);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->createRefundWithAdjustments: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Killbill\Client\Swagger\Model\InvoicePaymentTransaction | ||
| xKillbillCreatedBy | string | ||
| paymentId | string | ||
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] | |
| externalPayment | bool | [optional] [default to false] | |
| paymentMethodId | string | [optional] | |
| pluginProperty | string[] | [optional] |
\Killbill\Client\Swagger\Model\InvoicePayment
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteInvoicePaymentCustomFields($paymentId, $xKillbillCreatedBy, $customField, $xKillbillReason, $xKillbillComment)
Remove custom fields from payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$customField = array("customField_example"); // string[] |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
try {
$apiInstance->deleteInvoicePaymentCustomFields($paymentId, $xKillbillCreatedBy, $customField, $xKillbillReason, $xKillbillComment);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->deleteInvoicePaymentCustomFields: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| paymentId | string | ||
| xKillbillCreatedBy | string | ||
| customField | string[] | [optional] | |
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] |
void (empty response body)
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteInvoicePaymentTags($paymentId, $xKillbillCreatedBy, $tagDef, $xKillbillReason, $xKillbillComment)
Remove tags from payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$tagDef = array("tagDef_example"); // string[] |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
try {
$apiInstance->deleteInvoicePaymentTags($paymentId, $xKillbillCreatedBy, $tagDef, $xKillbillReason, $xKillbillComment);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->deleteInvoicePaymentTags: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| paymentId | string | ||
| xKillbillCreatedBy | string | ||
| tagDef | string[] | [optional] | |
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] |
void (empty response body)
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\InvoicePayment getInvoicePayment($paymentId, $withPluginInfo, $withAttempts, $pluginProperty, $audit)
Retrieve a payment by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$withPluginInfo = false; // bool |
$withAttempts = false; // bool |
$pluginProperty = array("pluginProperty_example"); // string[] |
$audit = "NONE"; // string |
try {
$result = $apiInstance->getInvoicePayment($paymentId, $withPluginInfo, $withAttempts, $pluginProperty, $audit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->getInvoicePayment: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| paymentId | string | ||
| withPluginInfo | bool | [optional] [default to false] | |
| withAttempts | bool | [optional] [default to false] | |
| pluginProperty | string[] | [optional] | |
| audit | string | [optional] [default to NONE] |
\Killbill\Client\Swagger\Model\InvoicePayment
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\AuditLog[] getInvoicePaymentAuditLogsWithHistory($invoicePaymentId)
Retrieve invoice payment audit logs with history by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$invoicePaymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
try {
$result = $apiInstance->getInvoicePaymentAuditLogsWithHistory($invoicePaymentId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->getInvoicePaymentAuditLogsWithHistory: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| invoicePaymentId | string |
\Killbill\Client\Swagger\Model\AuditLog[]
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\CustomField[] getInvoicePaymentCustomFields($paymentId, $audit)
Retrieve payment custom fields
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$audit = "NONE"; // string |
try {
$result = $apiInstance->getInvoicePaymentCustomFields($paymentId, $audit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->getInvoicePaymentCustomFields: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| paymentId | string | ||
| audit | string | [optional] [default to NONE] |
\Killbill\Client\Swagger\Model\CustomField[]
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Killbill\Client\Swagger\Model\Tag[] getInvoicePaymentTags($paymentId, $includedDeleted, $pluginProperty, $audit)
Retrieve payment tags
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$includedDeleted = false; // bool |
$pluginProperty = array("pluginProperty_example"); // string[] |
$audit = "NONE"; // string |
try {
$result = $apiInstance->getInvoicePaymentTags($paymentId, $includedDeleted, $pluginProperty, $audit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->getInvoicePaymentTags: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| paymentId | string | ||
| includedDeleted | bool | [optional] [default to false] | |
| pluginProperty | string[] | [optional] | |
| audit | string | [optional] [default to NONE] |
\Killbill\Client\Swagger\Model\Tag[]
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
modifyInvoicePaymentCustomFields($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment)
Modify custom fields to payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Killbill Api Key
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiKey', 'Bearer');// Configure API key authorization: Killbill Api Secret
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKey('X-Killbill-ApiSecret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Killbill-ApiSecret', 'Bearer');// Configure HTTP basic authorization: basicAuth
$config = Killbill\Client\Swagger\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Killbill\Client\Swagger\Api\InvoicePaymentApi(
// 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
);
$body = array(new \Killbill\Client\Swagger\Model\CustomField()); // \Killbill\Client\Swagger\Model\CustomField[] |
$xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string |
$paymentId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string |
$xKillbillReason = "xKillbillReason_example"; // string |
$xKillbillComment = "xKillbillComment_example"; // string |
try {
$apiInstance->modifyInvoicePaymentCustomFields($body, $xKillbillCreatedBy, $paymentId, $xKillbillReason, $xKillbillComment);
} catch (Exception $e) {
echo 'Exception when calling InvoicePaymentApi->modifyInvoicePaymentCustomFields: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Killbill\Client\Swagger\Model\CustomField[] | ||
| xKillbillCreatedBy | string | ||
| paymentId | string | ||
| xKillbillReason | string | [optional] | |
| xKillbillComment | string | [optional] |
void (empty response body)
[Killbill Api Key](../../README.md#Killbill Api Key), [Killbill Api Secret](../../README.md#Killbill Api Secret), basicAuth
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]