All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
create_transaction_custom_fields | POST /1.0/kb/paymentTransactions/{transactionId}/customFields | Add custom fields to payment transaction |
create_transaction_tags | POST /1.0/kb/paymentTransactions/{transactionId}/tags | Add tags to payment transaction |
delete_transaction_custom_fields | DELETE /1.0/kb/paymentTransactions/{transactionId}/customFields | Remove custom fields from payment transaction |
delete_transaction_tags | DELETE /1.0/kb/paymentTransactions/{transactionId}/tags | Remove tags from payment transaction |
get_payment_by_transaction_external_key | GET /1.0/kb/paymentTransactions | Retrieve a payment by transaction external key |
get_payment_by_transaction_id | GET /1.0/kb/paymentTransactions/{transactionId} | Retrieve a payment by transaction id |
get_transaction_audit_logs_with_history | GET /1.0/kb/paymentTransactions/{transactionId}/auditLogsWithHistory | Retrieve payment transaction audit logs with history by id |
get_transaction_custom_fields | GET /1.0/kb/paymentTransactions/{transactionId}/customFields | Retrieve payment transaction custom fields |
get_transaction_tags | GET /1.0/kb/paymentTransactions/{transactionId}/tags | Retrieve payment transaction tags |
modify_transaction_custom_fields | PUT /1.0/kb/paymentTransactions/{transactionId}/customFields | Modify custom fields to payment transaction |
notify_state_changed | POST /1.0/kb/paymentTransactions/{transactionId} | Mark a pending payment transaction as succeeded or failed |
list[CustomField] create_transaction_custom_fields(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Add custom fields to payment transaction
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.PaymentTransactionApi(killbill.ApiClient(configuration))
body = [killbill.CustomField()] # list[CustomField] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
transaction_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 payment transaction
api_response = api_instance.create_transaction_custom_fields(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->create_transaction_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[CustomField] | ||
x_killbill_created_by | str | ||
transaction_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_transaction_tags(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Add tags to payment transaction
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.PaymentTransactionApi(killbill.ApiClient(configuration))
body = ['body_example'] # list[str] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
transaction_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 payment transaction
api_response = api_instance.create_transaction_tags(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->create_transaction_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[str] | ||
x_killbill_created_by | str | ||
transaction_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]
delete_transaction_custom_fields(transaction_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 payment transaction
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.PaymentTransactionApi(killbill.ApiClient(configuration))
transaction_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 payment transaction
api_instance.delete_transaction_custom_fields(transaction_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 PaymentTransactionApi->delete_transaction_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
transaction_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_transaction_tags(transaction_id, x_killbill_created_by, tag_def=tag_def, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Remove tags from payment transaction
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.PaymentTransactionApi(killbill.ApiClient(configuration))
transaction_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 payment transaction
api_instance.delete_transaction_tags(transaction_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 PaymentTransactionApi->delete_transaction_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
transaction_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]
Payment get_payment_by_transaction_external_key(transaction_external_key, with_plugin_info=with_plugin_info, with_attempts=with_attempts, plugin_property=plugin_property, audit=audit)
Retrieve a payment by transaction external key
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.PaymentTransactionApi(killbill.ApiClient(configuration))
transaction_external_key = 'transaction_external_key_example' # str |
with_plugin_info = false # bool | (optional) (default to false)
with_attempts = false # bool | (optional) (default to false)
plugin_property = ['plugin_property_example'] # list[str] | (optional)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve a payment by transaction external key
api_response = api_instance.get_payment_by_transaction_external_key(transaction_external_key, with_plugin_info=with_plugin_info, with_attempts=with_attempts, plugin_property=plugin_property, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->get_payment_by_transaction_external_key: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
transaction_external_key | str | ||
with_plugin_info | bool | [optional] [default to false] | |
with_attempts | bool | [optional] [default to false] | |
plugin_property | list[str] | [optional] | |
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]
Payment get_payment_by_transaction_id(transaction_id, with_plugin_info=with_plugin_info, with_attempts=with_attempts, plugin_property=plugin_property, audit=audit)
Retrieve a payment by transaction 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.PaymentTransactionApi(killbill.ApiClient(configuration))
transaction_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
with_plugin_info = false # bool | (optional) (default to false)
with_attempts = false # bool | (optional) (default to false)
plugin_property = ['plugin_property_example'] # list[str] | (optional)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve a payment by transaction id
api_response = api_instance.get_payment_by_transaction_id(transaction_id, with_plugin_info=with_plugin_info, with_attempts=with_attempts, plugin_property=plugin_property, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->get_payment_by_transaction_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
transaction_id | str | ||
with_plugin_info | bool | [optional] [default to false] | |
with_attempts | bool | [optional] [default to false] | |
plugin_property | list[str] | [optional] | |
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[AuditLog] get_transaction_audit_logs_with_history(transaction_id)
Retrieve payment transaction 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.PaymentTransactionApi(killbill.ApiClient(configuration))
transaction_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
try:
# Retrieve payment transaction audit logs with history by id
api_response = api_instance.get_transaction_audit_logs_with_history(transaction_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->get_transaction_audit_logs_with_history: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
transaction_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]
list[CustomField] get_transaction_custom_fields(transaction_id, audit=audit)
Retrieve payment transaction 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.PaymentTransactionApi(killbill.ApiClient(configuration))
transaction_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve payment transaction custom fields
api_response = api_instance.get_transaction_custom_fields(transaction_id, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->get_transaction_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
transaction_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]
list[Tag] get_transaction_tags(transaction_id, included_deleted=included_deleted, audit=audit)
Retrieve payment transaction 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.PaymentTransactionApi(killbill.ApiClient(configuration))
transaction_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str |
included_deleted = false # bool | (optional) (default to false)
audit = 'NONE' # str | (optional) (default to NONE)
try:
# Retrieve payment transaction tags
api_response = api_instance.get_transaction_tags(transaction_id, included_deleted=included_deleted, audit=audit)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->get_transaction_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
transaction_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]
modify_transaction_custom_fields(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Modify custom fields to payment transaction
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.PaymentTransactionApi(killbill.ApiClient(configuration))
body = [killbill.CustomField()] # list[CustomField] |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
transaction_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 payment transaction
api_instance.modify_transaction_custom_fields(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->modify_transaction_custom_fields: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[CustomField] | ||
x_killbill_created_by | str | ||
transaction_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]
Payment notify_state_changed(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, control_plugin_name=control_plugin_name)
Mark a pending payment transaction as succeeded or failed
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.PaymentTransactionApi(killbill.ApiClient(configuration))
body = killbill.PaymentTransaction() # PaymentTransaction |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
transaction_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)
control_plugin_name = ['control_plugin_name_example'] # list[str] | (optional)
try:
# Mark a pending payment transaction as succeeded or failed
api_response = api_instance.notify_state_changed(body, x_killbill_created_by, transaction_id, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment, control_plugin_name=control_plugin_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling PaymentTransactionApi->notify_state_changed: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | PaymentTransaction | ||
x_killbill_created_by | str | ||
transaction_id | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] | |
control_plugin_name | 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]