All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
adjust_invoice_item | POST /1.0/kb/invoices/{invoiceId} | Adjust an invoice item |
commit_invoice | PUT /1.0/kb/invoices/{invoiceId}/commitInvoice | Perform the invoice status transition from DRAFT to COMMITTED |
create_external_charges | POST /1.0/kb/invoices/charges/{accountId} | Create external charge(s) |
create_future_invoice | POST /1.0/kb/invoices | Trigger an invoice generation |
create_instant_payment | POST /1.0/kb/invoices/{invoiceId}/payments | Trigger a payment for invoice |
create_invoice_custom_fields | POST /1.0/kb/invoices/{invoiceId}/customFields | Add custom fields to invoice |
create_invoice_tags | POST /1.0/kb/invoices/{invoiceId}/tags | Add tags to invoice |
create_migration_invoice | POST /1.0/kb/invoices/migration/{accountId} | Create a migration invoice |
create_tax_items | POST /1.0/kb/invoices/taxes/{accountId} | Create tax items |
delete_cba | DELETE /1.0/kb/invoices/{invoiceId}/{invoiceItemId}/cba | Delete a CBA item |
delete_invoice_custom_fields | DELETE /1.0/kb/invoices/{invoiceId}/customFields | Remove custom fields from invoice |
delete_invoice_tags | DELETE /1.0/kb/invoices/{invoiceId}/tags | Remove tags from invoice |
generate_dry_run_invoice | POST /1.0/kb/invoices/dryRun | Generate a dryRun invoice |
get_catalog_translation | GET /1.0/kb/invoices/catalogTranslation/{locale} | Retrieves the catalog translation for the tenant |
get_invoice | GET /1.0/kb/invoices/{invoiceId} | Retrieve an invoice by id |
get_invoice_as_html | GET /1.0/kb/invoices/{invoiceId}/html | Render an invoice as HTML |
get_invoice_audit_logs_with_history | GET /1.0/kb/invoices/{invoiceId}/auditLogsWithHistory | Retrieve invoice audit logs with history by id |
get_invoice_by_item_id | GET /1.0/kb/invoices/byItemId/{itemId} | Retrieve an invoice by invoice item id |
get_invoice_by_number | GET /1.0/kb/invoices/byNumber/{invoiceNumber} | Retrieve an invoice by number |
get_invoice_custom_fields | GET /1.0/kb/invoices/{invoiceId}/customFields | Retrieve invoice custom fields |
get_invoice_mp_template | GET /1.0/kb/invoices/manualPayTemplate/{locale} | Retrieves the manualPay invoice template for the tenant |
get_invoice_tags | GET /1.0/kb/invoices/{invoiceId}/tags | Retrieve invoice tags |
get_invoice_template | GET /1.0/kb/invoices/template | Retrieves the invoice template for the tenant |
get_invoice_translation | GET /1.0/kb/invoices/translation/{locale} | Retrieves the invoice translation for the tenant |
get_invoices | GET /1.0/kb/invoices/pagination | List invoices |
get_payments_for_invoice | GET /1.0/kb/invoices/{invoiceId}/payments | Retrieve payments associated with an invoice |
modify_invoice_custom_fields | PUT /1.0/kb/invoices/{invoiceId}/customFields | Modify custom fields to invoice |
search_invoices | GET /1.0/kb/invoices/search/{searchKey} | Search invoices |
upload_catalog_translation | POST /1.0/kb/invoices/catalogTranslation/{locale} | Upload the catalog translation for the tenant |
upload_invoice_mp_template | POST /1.0/kb/invoices/manualPayTemplate | Upload the manualPay invoice template for the tenant |
upload_invoice_template | POST /1.0/kb/invoices/template | Upload the invoice template for the tenant |
upload_invoice_translation | POST /1.0/kb/invoices/translation/{locale} | Upload the invoice translation for the tenant |
void_invoice | PUT /1.0/kb/invoices/{invoiceId}/voidInvoice | Perform the action of voiding an invoice |
Invoice adjust_invoice_item(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, requested_date=requested_date, plugin_property=plugin_property)
Adjust an invoice item
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = killbill.InvoiceItem() # InvoiceItem |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
requested_date = '2013-10-20' # date | (optional)
plugin_property = ['plugin_property_example'] # list[str] | (optional)
try:
# Adjust an invoice item
api_response = api_instance.adjust_invoice_item(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, requested_date=requested_date, plugin_property=plugin_property)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->adjust_invoice_item: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | InvoiceItem | ||
x_killbill_created_by | str | ||
invoice_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
requested_date | date | [optional] | |
plugin_property | list[str] | [optional] |
[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]
commit_invoice(invoice_id, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Perform the invoice status transition from DRAFT to COMMITTED
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Perform the invoice status transition from DRAFT to COMMITTED
api_instance.commit_invoice(invoice_id, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling InvoiceApi->commit_invoice: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [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]
list[InvoiceItem] create_external_charges(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, requested_date=requested_date, auto_commit=auto_commit, plugin_property=plugin_property)
Create external charge(s)
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = [killbill.InvoiceItem()] # list[InvoiceItem] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
account_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
requested_date = '2013-10-20' # date | (optional)
auto_commit = false # bool | (optional) (default to false)
plugin_property = ['plugin_property_example'] # list[str] | (optional)
try:
# Create external charge(s)
api_response = api_instance.create_external_charges(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, requested_date=requested_date, auto_commit=auto_commit, plugin_property=plugin_property)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->create_external_charges: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[InvoiceItem] | ||
x_killbill_created_by | str | ||
account_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
requested_date | date | [optional] | |
auto_commit | bool | [optional] [default to false] | |
plugin_property | list[str] | [optional] |
[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]
Invoice create_future_invoice(account_id, x_killbill_created_by, target_date=target_date, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Trigger an invoice generation
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
account_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
target_date = '2013-10-20' # date | (optional)
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Trigger an invoice generation
api_response = api_instance.create_future_invoice(account_id, x_killbill_created_by, target_date=target_date, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->create_future_invoice: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
account_id | str | ||
x_killbill_created_by | str | ||
target_date | date | [optional] | |
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
[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]
InvoicePayment create_instant_payment(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, external_payment=external_payment, control_plugin_name=control_plugin_name, plugin_property=plugin_property)
Trigger a payment for invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = killbill.InvoicePayment() # InvoicePayment |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
external_payment = false # bool | (optional) (default to false)
control_plugin_name = ['control_plugin_name_example'] # list[str] | (optional)
plugin_property = ['plugin_property_example'] # list[str] | (optional)
try:
# Trigger a payment for invoice
api_response = api_instance.create_instant_payment(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, external_payment=external_payment, control_plugin_name=control_plugin_name, plugin_property=plugin_property)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->create_instant_payment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | InvoicePayment | ||
x_killbill_created_by | str | ||
invoice_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
external_payment | bool | [optional] [default to false] | |
control_plugin_name | list[str] | [optional] | |
plugin_property | list[str] | [optional] |
[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]
list[CustomField] create_invoice_custom_fields(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Add custom fields to invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = [killbill.CustomField()] # list[CustomField] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Add custom fields to invoice
api_response = api_instance.create_invoice_custom_fields(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->create_invoice_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[CustomField] | ||
x_killbill_created_by | str | ||
invoice_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
[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]
list[Tag] create_invoice_tags(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Add tags to invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = ['body_example'] # list[str] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Add tags to invoice
api_response = api_instance.create_invoice_tags(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->create_invoice_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[str] | ||
x_killbill_created_by | str | ||
invoice_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
[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]
Invoice create_migration_invoice(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, target_date=target_date)
Create a migration invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = [killbill.InvoiceItem()] # list[InvoiceItem] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
account_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
target_date = '2013-10-20' # date | (optional)
try:
# Create a migration invoice
api_response = api_instance.create_migration_invoice(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, target_date=target_date)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->create_migration_invoice: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[InvoiceItem] | ||
x_killbill_created_by | str | ||
account_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
target_date | date | [optional] |
[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]
list[InvoiceItem] create_tax_items(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, auto_commit=auto_commit, requested_date=requested_date, plugin_property=plugin_property)
Create tax items
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = [killbill.InvoiceItem()] # list[InvoiceItem] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
account_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
auto_commit = false # bool | (optional) (default to false)
requested_date = '2013-10-20' # date | (optional)
plugin_property = ['plugin_property_example'] # list[str] | (optional)
try:
# Create tax items
api_response = api_instance.create_tax_items(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, auto_commit=auto_commit, requested_date=requested_date, plugin_property=plugin_property)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->create_tax_items: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[InvoiceItem] | ||
x_killbill_created_by | str | ||
account_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
auto_commit | bool | [optional] [default to false] | |
requested_date | date | [optional] | |
plugin_property | list[str] | [optional] |
[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]
delete_cba(invoice_id, invoice_item_id, account_id, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Delete a CBA item
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
invoice_item_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
account_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Delete a CBA item
api_instance.delete_cba(invoice_id, invoice_item_id, account_id, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling InvoiceApi->delete_cba: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
invoice_item_id | str | ||
account_id | str | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [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]
delete_invoice_custom_fields(invoice_id, x_killbill_created_by, custom_field=custom_field, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Remove custom fields from invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
custom_field = ['custom_field_example'] # list[str] | (optional)
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Remove custom fields from invoice
api_instance.delete_invoice_custom_fields(invoice_id, x_killbill_created_by, custom_field=custom_field, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling InvoiceApi->delete_invoice_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
x_killbill_created_by | str | ||
custom_field | list[str] | [optional] | |
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [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]
delete_invoice_tags(invoice_id, x_killbill_created_by, tag_def=tag_def, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Remove tags from invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
tag_def = ['tag_def_example'] # list[str] | (optional)
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Remove tags from invoice
api_instance.delete_invoice_tags(invoice_id, x_killbill_created_by, tag_def=tag_def, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling InvoiceApi->delete_invoice_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
x_killbill_created_by | str | ||
tag_def | list[str] | [optional] | |
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [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]
Invoice generate_dry_run_invoice(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, target_date=target_date)
Generate a dryRun invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = killbill.InvoiceDryRun() # InvoiceDryRun |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
account_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
target_date = '2013-10-20' # date | (optional)
try:
# Generate a dryRun invoice
api_response = api_instance.generate_dry_run_invoice(body, x_killbill_created_by, account_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, target_date=target_date)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->generate_dry_run_invoice: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | InvoiceDryRun | ||
x_killbill_created_by | str | ||
account_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
target_date | date | [optional] |
[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]
str get_catalog_translation(locale)
Retrieves the catalog translation for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
locale = 'locale_example' # str |
try:
# Retrieves the catalog translation for the tenant
api_response = api_instance.get_catalog_translation(locale)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_catalog_translation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
locale | str |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Invoice get_invoice(invoice_id, with_children_items=with_children_items, audit=audit)
Retrieve an invoice by id
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
with_children_items = false # bool | (optional) (default to false)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve an invoice by id
api_response = api_instance.get_invoice(invoice_id, with_children_items=with_children_items, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
with_children_items | bool | [optional] [default to false] | |
audit | str | [optional] [default to NONE] |
[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]
str get_invoice_as_html(invoice_id)
Render an invoice as HTML
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
try:
# Render an invoice as HTML
api_response = api_instance.get_invoice_as_html(invoice_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_as_html: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[AuditLog] get_invoice_audit_logs_with_history(invoice_id)
Retrieve invoice audit logs with history by id
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
try:
# Retrieve invoice audit logs with history by id
api_response = api_instance.get_invoice_audit_logs_with_history(invoice_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_audit_logs_with_history: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str |
[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]
Invoice get_invoice_by_item_id(item_id, with_children_items=with_children_items, audit=audit)
Retrieve an invoice by invoice item id
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
item_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
with_children_items = false # bool | (optional) (default to false)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve an invoice by invoice item id
api_response = api_instance.get_invoice_by_item_id(item_id, with_children_items=with_children_items, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_by_item_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
item_id | str | ||
with_children_items | bool | [optional] [default to false] | |
audit | str | [optional] [default to NONE] |
[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]
Invoice get_invoice_by_number(invoice_number, with_children_items=with_children_items, audit=audit)
Retrieve an invoice by number
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_number = 56 # int |
with_children_items = false # bool | (optional) (default to false)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve an invoice by number
api_response = api_instance.get_invoice_by_number(invoice_number, with_children_items=with_children_items, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_by_number: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_number | int | ||
with_children_items | bool | [optional] [default to false] | |
audit | str | [optional] [default to NONE] |
[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]
list[CustomField] get_invoice_custom_fields(invoice_id, audit=audit)
Retrieve invoice custom fields
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve invoice custom fields
api_response = api_instance.get_invoice_custom_fields(invoice_id, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
audit | str | [optional] [default to NONE] |
[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]
str get_invoice_mp_template(locale)
Retrieves the manualPay invoice template for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
locale = 'locale_example' # str |
try:
# Retrieves the manualPay invoice template for the tenant
api_response = api_instance.get_invoice_mp_template(locale)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_mp_template: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
locale | str |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Tag] get_invoice_tags(invoice_id, included_deleted=included_deleted, audit=audit)
Retrieve invoice tags
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
included_deleted = false # bool | (optional) (default to false)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve invoice tags
api_response = api_instance.get_invoice_tags(invoice_id, included_deleted=included_deleted, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
included_deleted | bool | [optional] [default to false] | |
audit | str | [optional] [default to NONE] |
[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]
str get_invoice_template()
Retrieves the invoice template for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
try:
# Retrieves the invoice template for the tenant
api_response = api_instance.get_invoice_template()
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_template: %s\n" % e)
This endpoint does not need any parameter.
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str get_invoice_translation(locale)
Retrieves the invoice translation for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
locale = 'locale_example' # str |
try:
# Retrieves the invoice translation for the tenant
api_response = api_instance.get_invoice_translation(locale)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoice_translation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
locale | str |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Invoice] get_invoices(offset=offset, limit=limit, audit=audit)
List invoices
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# List invoices
api_response = api_instance.get_invoices(offset=offset, limit=limit, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_invoices: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
offset | int | [optional] [default to 0] | |
limit | int | [optional] [default to 100] | |
audit | str | [optional] [default to NONE] |
[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]
list[InvoicePayment] get_payments_for_invoice(invoice_id, with_plugin_info=with_plugin_info, with_attempts=with_attempts, audit=audit)
Retrieve payments associated with an invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
with_plugin_info = false # bool | (optional) (default to false)
with_attempts = false # bool | (optional) (default to false)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve payments associated with an invoice
api_response = api_instance.get_payments_for_invoice(invoice_id, with_plugin_info=with_plugin_info, with_attempts=with_attempts, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->get_payments_for_invoice: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
with_plugin_info | bool | [optional] [default to false] | |
with_attempts | bool | [optional] [default to false] | |
audit | str | [optional] [default to NONE] |
[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]
modify_invoice_custom_fields(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Modify custom fields to invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = [killbill.CustomField()] # list[CustomField] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Modify custom fields to invoice
api_instance.modify_invoice_custom_fields(body, x_killbill_created_by, invoice_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling InvoiceApi->modify_invoice_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[CustomField] | ||
x_killbill_created_by | str | ||
invoice_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [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]
list[Invoice] search_invoices(search_key, offset=offset, limit=limit, audit=audit)
Search invoices
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
search_key = 'search_key_example' # str |
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Search invoices
api_response = api_instance.search_invoices(search_key, offset=offset, limit=limit, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->search_invoices: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
search_key | str | ||
offset | int | [optional] [default to 0] | |
limit | int | [optional] [default to 100] | |
audit | str | [optional] [default to NONE] |
[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]
str upload_catalog_translation(body, x_killbill_created_by, locale, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
Upload the catalog translation for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = 'body_example' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
locale = 'locale_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
delete_if_exists = false # bool | (optional) (default to false)
try:
# Upload the catalog translation for the tenant
api_response = api_instance.upload_catalog_translation(body, x_killbill_created_by, locale, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->upload_catalog_translation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | str | ||
x_killbill_created_by | str | ||
locale | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
delete_if_exists | bool | [optional] [default to false] |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: text/plain
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str upload_invoice_mp_template(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
Upload the manualPay invoice template for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = 'body_example' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
delete_if_exists = false # bool | (optional) (default to false)
try:
# Upload the manualPay invoice template for the tenant
api_response = api_instance.upload_invoice_mp_template(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->upload_invoice_mp_template: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | str | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
delete_if_exists | bool | [optional] [default to false] |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: text/html
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str upload_invoice_template(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
Upload the invoice template for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = 'body_example' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
delete_if_exists = false # bool | (optional) (default to false)
try:
# Upload the invoice template for the tenant
api_response = api_instance.upload_invoice_template(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->upload_invoice_template: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | str | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
delete_if_exists | bool | [optional] [default to false] |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: text/html
- Accept: text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str upload_invoice_translation(body, x_killbill_created_by, locale, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
Upload the invoice translation for the tenant
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
body = 'body_example' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
locale = 'locale_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
delete_if_exists = false # bool | (optional) (default to false)
try:
# Upload the invoice translation for the tenant
api_response = api_instance.upload_invoice_translation(body, x_killbill_created_by, locale, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, delete_if_exists=delete_if_exists)
pprint(api_response)
except ApiException as e:
print("Exception when calling InvoiceApi->upload_invoice_translation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | str | ||
x_killbill_created_by | str | ||
locale | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
delete_if_exists | bool | [optional] [default to false] |
str
[Killbill Api Key](../README.md#Killbill Api Key), [Killbill Api Secret](../README.md#Killbill Api Secret), basicAuth
- Content-Type: text/plain
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void_invoice(invoice_id, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Perform the action of voiding an invoice
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure API key authorization: Killbill Api Key
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer'
# Configure API key authorization: Killbill Api Secret
configuration = killbill.Configuration()
configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer'# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.InvoiceApi(killbill.ApiClient(configuration))
invoice_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Perform the action of voiding an invoice
api_instance.void_invoice(invoice_id, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling InvoiceApi->void_invoice: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invoice_id | str | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [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]