Kill Bill Api API

Kill Bill is an open-source billing and payments platform

GitHub OpenAPI

Operations 264

Showing the first 250 of 264. The full set is in the contract, and via get_provider_operations.

GET /1.0/kb/accounts/{accountId}/tags Retrieve account tags #
POST /1.0/kb/accounts/{accountId}/tags Add tags to account #
DELETE /1.0/kb/accounts/{accountId}/tags Remove tags from account #
GET /1.0/kb/accounts/{accountId} Retrieve an account by id #
PUT /1.0/kb/accounts/{accountId} Update account #
DELETE /1.0/kb/accounts/{accountId} Close account #
GET /1.0/kb/accounts/{accountId}/bundles Retrieve bundles for account #
GET /1.0/kb/accounts/{accountId}/invoicePayments Retrieve account invoice payments #
POST /1.0/kb/accounts/{accountId}/invoicePayments Trigger a payment for all unpaid invoices #
GET /1.0/kb/accounts/{accountId}/customFields Retrieve account custom fields #
POST /1.0/kb/accounts/{accountId}/customFields Add custom fields to account #
PUT /1.0/kb/accounts/{accountId}/customFields Modify custom fields to account #
DELETE /1.0/kb/accounts/{accountId}/customFields Remove custom fields from account #
GET /1.0/kb/accounts/{accountId}/block Retrieve blocking states for account #
POST /1.0/kb/accounts/{accountId}/block Block an account #
GET /1.0/kb/accounts/{accountId}/auditLogs Retrieve audit logs by account id #
GET /1.0/kb/accounts/{accountId}/timeline Retrieve account timeline #
PUT /1.0/kb/accounts/{accountId}/cbaRebalancing Rebalance account CBA #
GET /1.0/kb/accounts/{accountId}/invoices Retrieve account invoices #
GET /1.0/kb/accounts/{accountId}/invoices/pagination Retrieve paginated invoices for account #
GET /1.0/kb/accounts/{accountId}/paymentMethods Retrieve account payment methods #
POST /1.0/kb/accounts/{accountId}/paymentMethods Add a payment method #
GET /1.0/kb/accounts/pagination List accounts #
GET /1.0/kb/accounts/search/{searchKey} Search accounts #
GET /1.0/kb/accounts/{accountId}/bundles/pagination Retrieve paginated bundles for account #
GET /1.0/kb/accounts Retrieve an account by external key #
POST /1.0/kb/accounts Create account #
PUT /1.0/kb/accounts/{accountId}/paymentMethods/refresh Refresh account payment methods #
PUT /1.0/kb/accounts/{accountId}/paymentMethods/{paymentMethodId}/setDefault Set the default payment method #
GET /1.0/kb/accounts/{accountId}/payments Retrieve account payments #
POST /1.0/kb/accounts/{accountId}/payments Trigger a payment (authorization, purchase or credit) #
POST /1.0/kb/accounts/payments Trigger a payment using the account external key (authorization, purchase or credit) #
GET /1.0/kb/accounts/{accountId}/overdue Retrieve overdue state for account #
GET /1.0/kb/accounts/block/{blockingId}/auditLogsWithHistory Retrieve blocking state audit logs with history by id #
GET /1.0/kb/accounts/{accountId}/allCustomFields Retrieve account customFields #
GET /1.0/kb/accounts/{accountId}/allTags Retrieve account tags #
GET /1.0/kb/accounts/{accountId}/emails Retrieve an account emails #
POST /1.0/kb/accounts/{accountId}/emails Add account email #
DELETE /1.0/kb/accounts/{accountId}/emails/{email} Delete email from account #
GET /1.0/kb/accounts/{accountId}/emails/{accountEmailId}/auditLogsWithHistory Retrieve account email audit logs with history by id #
GET /1.0/kb/accounts/{accountId}/children List children accounts #
PUT /1.0/kb/accounts/{childAccountId}/transferCredit Move a given child credit to the parent level #
GET /1.0/kb/accounts/{accountId}/auditLogsWithHistory Retrieve account audit logs with history by account id #
PUT /1.0/kb/admin/healthcheck Put the host back into rotation #
DELETE /1.0/kb/admin/healthcheck Put the host out of rotation #
GET /1.0/kb/admin/queues Get queues entries #
PUT /1.0/kb/admin/payments/{paymentId}/transactions/{paymentTransactionId} Update existing paymentTransaction and associated payment state #
POST /1.0/kb/admin/invoices Trigger an invoice generation for all parked accounts #
DELETE /1.0/kb/admin/cache Invalidates the given Cache if specified, otherwise invalidates all caches #
DELETE /1.0/kb/admin/cache/accounts/{accountId} Invalidates Caches per account level #
DELETE /1.0/kb/admin/cache/tenants Invalidates Caches per tenant level #
GET /1.0/kb/bundles/{bundleId} Retrieve a bundle by id #
POST /1.0/kb/bundles/{bundleId} Transfer a bundle to another account #
GET /1.0/kb/bundles/{bundleId}/tags Retrieve bundle tags #
POST /1.0/kb/bundles/{bundleId}/tags Add tags to bundle #
DELETE /1.0/kb/bundles/{bundleId}/tags Remove tags from bundle #
GET /1.0/kb/bundles/pagination List bundles #
GET /1.0/kb/bundles/{bundleId}/customFields Retrieve bundle custom fields #
POST /1.0/kb/bundles/{bundleId}/customFields Add custom fields to bundle #
PUT /1.0/kb/bundles/{bundleId}/customFields Modify custom fields to bundle #
DELETE /1.0/kb/bundles/{bundleId}/customFields Remove custom fields from bundle #
GET /1.0/kb/bundles Retrieve a bundle by external key #
GET /1.0/kb/bundles/{bundleId}/auditLogsWithHistory Retrieve bundle audit logs with history by id #
GET /1.0/kb/bundles/search/{searchKey} Search bundles #
PUT /1.0/kb/bundles/{bundleId}/pause Pause a bundle #
PUT /1.0/kb/bundles/{bundleId}/resume Resume a bundle #
POST /1.0/kb/bundles/{bundleId}/block Block a bundle #
PUT /1.0/kb/bundles/{bundleId}/renameKey Update a bundle externalKey #
GET /1.0/kb/catalog/xml Retrieve the full catalog as XML #
POST /1.0/kb/catalog/xml Upload the full catalog as XML #
POST /1.0/kb/catalog/xml/validate Validate a XML catalog #
GET /1.0/kb/catalog/versions Retrieve a list of catalog versions #
GET /1.0/kb/catalog/availableAddons Retrieve available add-ons for a given product #
GET /1.0/kb/catalog/availableBasePlans Retrieve available base plans #
GET /1.0/kb/catalog/plan Retrieve plan for a given subscription and date #
GET /1.0/kb/catalog/phase Retrieve phase for a given subscription and date #
GET /1.0/kb/catalog/product Retrieve product for a given subscription and date #
GET /1.0/kb/catalog/priceList Retrieve priceList for a given subscription and date #
POST /1.0/kb/catalog/simplePlan Add a simple plan entry in the current version of the catalog #
GET /1.0/kb/catalog Retrieve the catalog as JSON #
DELETE /1.0/kb/catalog Delete all versions for a per tenant catalog #
GET /1.0/kb/credits/{creditId} Retrieve a credit by id #
POST /1.0/kb/credits Create a credit #
GET /1.0/kb/customFields/pagination List custom fields #
GET /1.0/kb/customFields/search Search custom fields by type, name and optional value #
GET /1.0/kb/customFields/search/{searchKey} Search custom fields #
GET /1.0/kb/customFields/{customFieldId}/auditLogsWithHistory Retrieve custom field audit logs with history by id #
GET /1.0/kb/export/{accountId} Export account data #
GET /1.0/kb/invoiceItems/{invoiceItemId}/tags Retrieve invoice item tags #
POST /1.0/kb/invoiceItems/{invoiceItemId}/tags Add tags to invoice item #
DELETE /1.0/kb/invoiceItems/{invoiceItemId}/tags Remove tags from invoice item #
GET /1.0/kb/invoiceItems/{invoiceItemId}/customFields Retrieve invoice item custom fields #
POST /1.0/kb/invoiceItems/{invoiceItemId}/customFields Add custom fields to invoice item #
PUT /1.0/kb/invoiceItems/{invoiceItemId}/customFields Modify custom fields to invoice item #
DELETE /1.0/kb/invoiceItems/{invoiceItemId}/customFields Remove custom fields from invoice item #
GET /1.0/kb/invoiceItems/{invoiceItemId}/auditLogsWithHistory Retrieve invoice item audit logs with history by id #
GET /1.0/kb/invoicePayments/{paymentId}/tags Retrieve payment tags #
POST /1.0/kb/invoicePayments/{paymentId}/tags Add tags to payment #
DELETE /1.0/kb/invoicePayments/{paymentId}/tags Remove tags from payment #
GET /1.0/kb/invoicePayments/{paymentId} Retrieve a payment by id #
PUT /1.0/kb/invoicePayments/{paymentId} Complete an existing transaction #
GET /1.0/kb/invoicePayments/{invoicePaymentId}/auditLogsWithHistory Retrieve invoice payment audit logs with history by id #
POST /1.0/kb/invoicePayments/{paymentId}/refunds Refund a payment, and adjust the invoice if needed #
POST /1.0/kb/invoicePayments/{paymentId}/chargebacks Record a chargeback #
POST /1.0/kb/invoicePayments/{paymentId}/chargebackReversals Record a chargebackReversal #
GET /1.0/kb/invoicePayments/{paymentId}/customFields Retrieve payment custom fields #
POST /1.0/kb/invoicePayments/{paymentId}/customFields Add custom fields to payment #
PUT /1.0/kb/invoicePayments/{paymentId}/customFields Modify custom fields to payment #
DELETE /1.0/kb/invoicePayments/{paymentId}/customFields Remove custom fields from payment #
GET /1.0/kb/invoices/{invoiceId}/tags Retrieve invoice tags #
POST /1.0/kb/invoices/{invoiceId}/tags Add tags to invoice #
DELETE /1.0/kb/invoices/{invoiceId}/tags Remove tags from invoice #
GET /1.0/kb/invoices/pagination List invoices #
GET /1.0/kb/invoices/{invoiceId}/customFields Retrieve invoice custom fields #
POST /1.0/kb/invoices/{invoiceId}/customFields Add custom fields to invoice #
PUT /1.0/kb/invoices/{invoiceId}/customFields Modify custom fields to invoice #
DELETE /1.0/kb/invoices/{invoiceId}/customFields Remove custom fields from invoice #
PUT /1.0/kb/invoices/{invoiceId}/commitInvoice Perform the invoice status transition from DRAFT to COMMITTED #
PUT /1.0/kb/invoices/{invoiceId}/voidInvoice Perform the action of voiding an invoice #
POST /1.0/kb/invoices/group Trigger an invoice generation #
POST /1.0/kb/invoices/migration/{accountId} Create a migration invoice #
POST /1.0/kb/invoices/dryRun Generate a dryRun invoice #
DELETE /1.0/kb/invoices/{invoiceId}/{invoiceItemId}/cba Delete a CBA item #
GET /1.0/kb/invoices/{invoiceId} Retrieve an invoice by id #
POST /1.0/kb/invoices/{invoiceId} Adjust an invoice item #
POST /1.0/kb/invoices/charges/{accountId} Create external charge(s) #
GET /1.0/kb/invoices/{groupId}/group Retrieve a set of invoices by group id #
GET /1.0/kb/invoices/{invoiceId}/auditLogsWithHistory Retrieve invoice audit logs with history by id #
GET /1.0/kb/invoices/byNumber/{invoiceNumber} Retrieve an invoice by number #
GET /1.0/kb/invoices/byItemId/{itemId} Retrieve an invoice by invoice item id #
GET /1.0/kb/invoices/{invoiceId}/html Render an invoice as HTML #
GET /1.0/kb/invoices/search/{searchKey} Search invoices #
POST /1.0/kb/invoices Trigger an invoice generation #
POST /1.0/kb/invoices/taxes/{accountId} Create tax items #
GET /1.0/kb/invoices/{invoiceId}/payments Retrieve payments associated with an invoice #
POST /1.0/kb/invoices/{invoiceId}/payments Trigger a payment for invoice #
GET /1.0/kb/invoices/translation/{locale} Retrieves the invoice translation for the tenant #
POST /1.0/kb/invoices/translation/{locale} Upload the invoice translation for the tenant #
GET /1.0/kb/invoices/catalogTranslation/{locale} Retrieves the catalog translation for the tenant #
POST /1.0/kb/invoices/catalogTranslation/{locale} Upload the catalog translation for the tenant #
GET /1.0/kb/invoices/template Retrieves the invoice template for the tenant #
POST /1.0/kb/invoices/template Upload the invoice template for the tenant #
GET /1.0/kb/invoices/manualPayTemplate/{locale} Retrieves the manualPay invoice template for the tenant #
POST /1.0/kb/invoices/manualPayTemplate Upload the manualPay invoice template for the tenant #
GET /1.0/kb/nodesInfo Retrieve all the nodes infos #
POST /1.0/kb/nodesInfo Trigger a node command #
GET /1.0/kb/overdue/xml Retrieve the overdue config as XML #
POST /1.0/kb/overdue/xml Upload the full overdue config as XML #
GET /1.0/kb/overdue Retrieve the overdue config as JSON #
POST /1.0/kb/overdue Upload the full overdue config as JSON #
POST /1.0/kb/paymentGateways/hosted/form Combo API to generate form data to redirect the customer to the gateway #
POST /1.0/kb/paymentGateways/hosted/form/{accountId} Generate form data to redirect the customer to the gateway #
POST /1.0/kb/paymentGateways/notification/{pluginName} Process a gateway notification #
GET /1.0/kb/paymentMethods/{paymentMethodId} Retrieve a payment method by id #
DELETE /1.0/kb/paymentMethods/{paymentMethodId} Delete a payment method #
GET /1.0/kb/paymentMethods/pagination List payment methods #
GET /1.0/kb/paymentMethods/search/{searchKey} Search payment methods #
GET /1.0/kb/paymentMethods/{paymentMethodId}/customFields Retrieve payment method custom fields #
POST /1.0/kb/paymentMethods/{paymentMethodId}/customFields Add custom fields to payment method #
PUT /1.0/kb/paymentMethods/{paymentMethodId}/customFields Modify custom fields to payment method #
DELETE /1.0/kb/paymentMethods/{paymentMethodId}/customFields Remove custom fields from payment method #
GET /1.0/kb/paymentMethods/{paymentMethodId}/auditLogsWithHistory Retrieve payment method audit logs with history by id #
GET /1.0/kb/paymentMethods Retrieve a payment method by external key #
GET /1.0/kb/payments/{paymentId}/tags Retrieve payment payment tags #
POST /1.0/kb/payments/{paymentId}/tags Add tags to payment payment #
DELETE /1.0/kb/payments/{paymentId}/tags Remove tags from payment payment #
GET /1.0/kb/payments/pagination Get payments #
GET /1.0/kb/payments/{paymentId} Retrieve a payment by id #
POST /1.0/kb/payments/{paymentId} Capture an existing authorization #
PUT /1.0/kb/payments/{paymentId} Complete an existing transaction #
DELETE /1.0/kb/payments/{paymentId} Void an existing payment #
GET /1.0/kb/payments/{paymentId}/customFields Retrieve payment custom fields #
POST /1.0/kb/payments/{paymentId}/customFields Add custom fields to payment #
PUT /1.0/kb/payments/{paymentId}/customFields Modify custom fields to payment #
DELETE /1.0/kb/payments/{paymentId}/customFields Remove custom fields from payment payment #
GET /1.0/kb/payments Retrieve a payment by external key #
POST /1.0/kb/payments Capture an existing authorization #
PUT /1.0/kb/payments Complete an existing transaction #
DELETE /1.0/kb/payments Void an existing payment #
POST /1.0/kb/payments/{paymentId}/refunds Refund an existing payment #
POST /1.0/kb/payments/refunds Refund an existing payment #
POST /1.0/kb/payments/{paymentId}/chargebacks Record a chargeback #
POST /1.0/kb/payments/chargebacks Record a chargeback #
POST /1.0/kb/payments/{paymentId}/chargebackReversals Record a chargeback reversal #
POST /1.0/kb/payments/chargebackReversals Record a chargeback reversal #
POST /1.0/kb/payments/combo Combo api to create a new payment transaction on a existing (or not) account #
DELETE /1.0/kb/payments/{paymentTransactionId}/cancelScheduledPaymentTransaction Cancels a scheduled payment attempt retry #
DELETE /1.0/kb/payments/cancelScheduledPaymentTransaction Cancels a scheduled payment attempt retry #
GET /1.0/kb/payments/{paymentId}/auditLogsWithHistory Retrieve payment audit logs with history by id #
GET /1.0/kb/payments/attempts/{paymentAttemptId}/auditLogsWithHistory Retrieve payment attempt audit logs with history by id #
GET /1.0/kb/payments/search/{searchKey} Search payments #
GET /1.0/kb/pluginsInfo Retrieve the list of registered plugins #
GET /1.0/kb/security/permissions List user permissions #
GET /1.0/kb/security/subject Get user information #
POST /1.0/kb/security/users Add a new user with roles (to make api requests) #
PUT /1.0/kb/security/users/{username}/password Update a user password #
GET /1.0/kb/security/users/{username}/roles Get roles associated to a user #
PUT /1.0/kb/security/users/{username}/roles Update roles associated to a user #
DELETE /1.0/kb/security/users/{username} Invalidate an existing user #
GET /1.0/kb/security/roles/{role} Get role definition #
POST /1.0/kb/security/roles Add a new role definition) #
PUT /1.0/kb/security/roles Update a new role definition) #
GET /1.0/kb/subscriptions/{subscriptionId}/tags Retrieve subscription tags #
POST /1.0/kb/subscriptions/{subscriptionId}/tags #
DELETE /1.0/kb/subscriptions/{subscriptionId}/tags Remove tags from subscription #
GET /1.0/kb/subscriptions/{subscriptionId} Retrieve a subscription by id #
PUT /1.0/kb/subscriptions/{subscriptionId} Change entitlement plan #
DELETE /1.0/kb/subscriptions/{subscriptionId} Cancel an entitlement plan #
POST /1.0/kb/subscriptions/createSubscriptionWithAddOns Create an entitlement with addOn products #
POST /1.0/kb/subscriptions/createSubscriptionsWithAddOns Create multiple entitlements with addOn products #
PUT /1.0/kb/subscriptions/{subscriptionId}/uncancel Un-cancel an entitlement #
PUT /1.0/kb/subscriptions/{subscriptionId}/undoChangePlan Undo a pending change plan on an entitlement #
POST /1.0/kb/subscriptions/{subscriptionId}/block Block a subscription #
PUT /1.0/kb/subscriptions/{subscriptionId}/bcd Update the BCD associated to a subscription #
PUT /1.0/kb/subscriptions/{subscriptionId}/quantity Update the quantity associated to a subscription #
GET /1.0/kb/subscriptions/{subscriptionId}/customFields Retrieve subscription custom fields #
POST /1.0/kb/subscriptions/{subscriptionId}/customFields Add custom fields to subscription #
PUT /1.0/kb/subscriptions/{subscriptionId}/customFields Modify custom fields to subscription #
DELETE /1.0/kb/subscriptions/{subscriptionId}/customFields Remove custom fields from subscription #
GET /1.0/kb/subscriptions Retrieve a subscription by external key #
POST /1.0/kb/subscriptions Create a subscription #
GET /1.0/kb/subscriptions/{subscriptionId}/auditLogsWithHistory Retrieve subscription audit logs with history by id #
GET /1.0/kb/subscriptions/events/{eventId}/auditLogsWithHistory Retrieve subscription event audit logs with history by id #
GET /1.0/kb/tagDefinitions/{tagDefinitionId} Retrieve a tag definition #
DELETE /1.0/kb/tagDefinitions/{tagDefinitionId} Delete a tag definition #
GET /1.0/kb/tagDefinitions List tag definitions #
POST /1.0/kb/tagDefinitions Create a tag definition #
GET /1.0/kb/tagDefinitions/{tagDefinitionId}/auditLogsWithHistory Retrieve tag definition audit logs with history by id #
GET /1.0/kb/tags/pagination List tags #
GET /1.0/kb/tags/search/{searchKey} Search tags #
GET /1.0/kb/tags/{tagId}/auditLogsWithHistory Retrieve tag audit logs with history by id #
GET /1.0/kb/tenants Retrieve a tenant by its API key #
POST /1.0/kb/tenants Create a tenant #
GET /1.0/kb/tenants/uploadPluginConfig/{pluginName} Retrieve a per tenant configuration for a plugin #
POST /1.0/kb/tenants/uploadPluginConfig/{pluginName} Add a per tenant configuration for a plugin #
DELETE /1.0/kb/tenants/uploadPluginConfig/{pluginName} Delete a per tenant configuration for a plugin #
GET /1.0/kb/tenants/uploadPerTenantConfig/{keyPrefix}/search Retrieve a per tenant key value based on key prefix #
GET /1.0/kb/tenants/uploadPerTenantConfig Retrieve a per tenant configuration (system properties) #
POST /1.0/kb/tenants/uploadPerTenantConfig Add a per tenant configuration (system properties) #
DELETE /1.0/kb/tenants/uploadPerTenantConfig Delete a per tenant configuration (system properties) #
GET /1.0/kb/tenants/uploadPluginPaymentStateMachineConfig/{pluginName} Retrieve a per tenant payment state machine for a plugin #
POST /1.0/kb/tenants/uploadPluginPaymentStateMachineConfig/{pluginName} Add a per tenant payment state machine for a plugin #
DELETE /1.0/kb/tenants/uploadPluginPaymentStateMachineConfig/{pluginName} Delete a per tenant payment state machine for a plugin #
GET /1.0/kb/tenants/userKeyValue/{keyName} Retrieve a per tenant user key/value #
POST /1.0/kb/tenants/userKeyValue/{keyName} Add a per tenant user key/value #
DELETE /1.0/kb/tenants/userKeyValue/{keyName} Delete a per tenant user key/value #
GET /1.0/kb/tenants/{tenantId} Retrieve a tenant by id #
GET /1.0/kb/tenants/registerNotificationCallback Retrieve a push notification #
POST /1.0/kb/tenants/registerNotificationCallback Create a push notification #
DELETE /1.0/kb/tenants/registerNotificationCallback Delete a push notification #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/killbill:kill-bill-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

killbill-api-openapi.json Raw ↑
{"swagger":"2.0","info":{"description":"Kill Bill is an open-source billing and payments platform","version":"0.24.22","title":"Kill Bill","contact":{"name":"killbilling-users@googlegroups.com"},"license":{"name":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"Account"},{"name":"Admin"},{"name":"Bundle"},{"name":"Catalog"},{"name":"Credit"},{"name":"CustomField"},{"name":"Export"},{"name":"InvoiceItem"},{"name":"InvoicePayment"},{"name":"Invoice"},{"name":"NodesInfo"},{"name":"Overdue"},{"name":"PaymentGateway"},{"name":"PaymentMethod"},{"name":"Payment"},{"name":"PluginInfo"},{"name":"Security"},{"name":"Subscription"},{"name":"TagDefinition"},{"name":"Tag"},{"name":"Tenant"},{"name":"PaymentTransaction"},{"name":"Usage"}],"paths":{"/1.0/kb/accounts/{accountId}/tags":{"get":{"tags":["Account"],"summary":"Retrieve account tags","description":"","operationId":"getAccountTags","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"includedDeleted","in":"query","required":false,"type":"boolean","default":false},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Tag"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"post":{"tags":["Account"],"summary":"Add tags to account","description":"","operationId":"createAccountTags","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"in":"body","name":"body","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"}}},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Tag created successfully","schema":{"type":"array","items":{"$ref":"#/definitions/Tag"}}},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"delete":{"tags":["Account"],"summary":"Remove tags from account","description":"","operationId":"deleteAccountTags","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"tagDef","in":"query","required":false,"type":"array","items":{"type":"string","format":"uuid"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account id supplied or account does not have a default payment method (AUTO_PAY_OFF tag only)"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}":{"get":{"tags":["Account"],"summary":"Retrieve an account by id","description":"","operationId":"getAccount","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"accountWithBalance","in":"query","required":false,"type":"boolean","default":false},{"name":"accountWithBalanceAndCBA","in":"query","required":false,"type":"boolean","default":false},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/Account"}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"put":{"tags":["Account"],"summary":"Update account","description":"","operationId":"updateAccount","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/Account"}},{"name":"treatNullAsReset","in":"query","required":false,"type":"boolean","default":false},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account data supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"delete":{"tags":["Account"],"summary":"Close account","description":"","operationId":"closeAccount","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"cancelAllSubscriptions","in":"query","required":false,"type":"boolean","default":false},{"name":"writeOffUnpaidInvoices","in":"query","required":false,"type":"boolean","default":false},{"name":"itemAdjustUnpaidInvoices","in":"query","required":false,"type":"boolean","default":false},{"name":"removeFutureNotifications","in":"query","required":false,"type":"boolean","default":true},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/bundles":{"get":{"tags":["Account"],"summary":"Retrieve bundles for account","description":"","operationId":"getAccountBundles","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"externalKey","in":"query","required":false,"type":"string"},{"name":"bundlesFilter","in":"query","required":false,"type":"string"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Bundle"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/invoicePayments":{"get":{"tags":["Account"],"summary":"Retrieve account invoice payments","description":"","operationId":"getInvoicePayments","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"withPluginInfo","in":"query","required":false,"type":"boolean","default":false},{"name":"withAttempts","in":"query","required":false,"type":"boolean","default":false},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/InvoicePayment"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"post":{"tags":["Account"],"summary":"Trigger a payment for all unpaid invoices","description":"","operationId":"payAllInvoices","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"paymentMethodId","in":"query","required":false,"type":"string","format":"uuid"},{"name":"externalPayment","in":"query","required":false,"type":"boolean","default":false},{"name":"paymentAmount","in":"query","required":false,"type":"number"},{"name":"targetDate","in":"query","required":false,"type":"string","format":"date"},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Invoice"}}},"204":{"description":"Nothing to pay"},"404":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/customFields":{"get":{"tags":["Account"],"summary":"Retrieve account custom fields","description":"","operationId":"getAccountCustomFields","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/CustomField"}}},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"post":{"tags":["Account"],"summary":"Add custom fields to account","description":"","operationId":"createAccountCustomFields","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"in":"body","name":"body","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/CustomField"}}},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Custom field created successfully","schema":{"type":"array","items":{"$ref":"#/definitions/CustomField"}}},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"put":{"tags":["Account"],"summary":"Modify custom fields to account","description":"","operationId":"modifyAccountCustomFields","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"in":"body","name":"body","required":true,"schema":{"type":"array","items":{"$ref":"#/definitions/CustomField"}}},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"delete":{"tags":["Account"],"summary":"Remove custom fields from account","description":"","operationId":"deleteAccountCustomFields","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"customField","in":"query","required":false,"type":"array","items":{"type":"string","format":"uuid"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/block":{"get":{"tags":["Account"],"summary":"Retrieve blocking states for account","description":"","operationId":"getBlockingStates","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"blockingStateTypes","in":"query","required":false,"type":"array","items":{"type":"string","enum":["SUBSCRIPTION","SUBSCRIPTION_BUNDLE","ACCOUNT"]},"collectionFormat":"multi"},{"name":"blockingStateSvcs","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/BlockingState"}}},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"post":{"tags":["Account"],"summary":"Block an account","description":"","operationId":"addAccountBlockingState","consumes":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/BlockingState"}},{"name":"requestedDate","in":"query","required":false,"type":"string","format":"date"},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Blocking state created successfully","schema":{"type":"array","items":{"$ref":"#/definitions/BlockingState"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/auditLogs":{"get":{"tags":["Account"],"summary":"Retrieve audit logs by account id","description":"","operationId":"getAccountAuditLogs","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/AuditLog"}}},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/timeline":{"get":{"tags":["Account"],"summary":"Retrieve account timeline","description":"","operationId":"getAccountTimeline","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"parallel","in":"query","required":false,"type":"boolean","default":false},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/AccountTimeline"}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/cbaRebalancing":{"put":{"tags":["Account"],"summary":"Rebalance account CBA","description":"","operationId":"rebalanceExistingCBAOnAccount","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/invoices":{"get":{"tags":["Account"],"summary":"Retrieve account invoices","description":"","operationId":"getInvoicesForAccount","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"startDate","in":"query","required":false,"type":"string","format":"date"},{"name":"endDate","in":"query","required":false,"type":"string","format":"date"},{"name":"withMigrationInvoices","in":"query","required":false,"type":"boolean","default":false},{"name":"unpaidInvoicesOnly","in":"query","required":false,"type":"boolean","default":false},{"name":"includeVoidedInvoices","in":"query","required":false,"type":"boolean","default":false},{"name":"includeInvoiceComponents","in":"query","required":false,"type":"boolean","default":false},{"name":"invoicesFilter","in":"query","required":false,"type":"string"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Invoice"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/invoices/pagination":{"get":{"tags":["Account"],"summary":"Retrieve paginated invoices for account","description":"","operationId":"getInvoicesForAccountPaginated","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"offset","in":"query","required":false,"type":"integer","default":0,"format":"int64"},{"name":"limit","in":"query","required":false,"type":"integer","default":100,"format":"int64"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Invoice"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/paymentMethods":{"get":{"tags":["Account"],"summary":"Retrieve account payment methods","description":"","operationId":"getPaymentMethodsForAccount","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"withPluginInfo","in":"query","required":false,"type":"boolean","default":false},{"name":"includedDeleted","in":"query","required":false,"type":"boolean","default":false},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/PaymentMethod"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"post":{"tags":["Account"],"summary":"Add a payment method","description":"","operationId":"createPaymentMethod","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PaymentMethod"}},{"name":"isDefault","in":"query","required":false,"type":"boolean","default":false},{"name":"payAllUnpaidInvoices","in":"query","required":false,"type":"boolean","default":false},{"name":"controlPluginName","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Payment method created","schema":{"$ref":"#/definitions/PaymentMethod"}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/pagination":{"get":{"tags":["Account"],"summary":"List accounts","description":"","operationId":"getAccounts","produces":["application/json"],"parameters":[{"name":"offset","in":"query","required":false,"type":"integer","default":0,"format":"int64"},{"name":"limit","in":"query","required":false,"type":"integer","default":100,"format":"int64"},{"name":"accountWithBalance","in":"query","required":false,"type":"boolean","default":false},{"name":"accountWithBalanceAndCBA","in":"query","required":false,"type":"boolean","default":false},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/search/{searchKey}":{"get":{"tags":["Account"],"summary":"Search accounts","description":"","operationId":"searchAccounts","produces":["application/json"],"parameters":[{"name":"searchKey","in":"path","required":true,"type":"string","pattern":".*"},{"name":"offset","in":"query","required":false,"type":"integer","default":0,"format":"int64"},{"name":"limit","in":"query","required":false,"type":"integer","default":100,"format":"int64"},{"name":"accountWithBalance","in":"query","required":false,"type":"boolean","default":false},{"name":"accountWithBalanceAndCBA","in":"query","required":false,"type":"boolean","default":false},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/bundles/pagination":{"get":{"tags":["Account"],"summary":"Retrieve paginated bundles for account","description":"","operationId":"getAccountBundlesPaginated","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"offset","in":"query","required":false,"type":"integer","default":0,"format":"int64"},{"name":"limit","in":"query","required":false,"type":"integer","default":100,"format":"int64"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Bundle"}}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts":{"get":{"tags":["Account"],"summary":"Retrieve an account by external key","description":"","operationId":"getAccountByKey","produces":["application/json"],"parameters":[{"name":"externalKey","in":"query","required":true,"type":"string"},{"name":"accountWithBalance","in":"query","required":false,"type":"boolean","default":false},{"name":"accountWithBalanceAndCBA","in":"query","required":false,"type":"boolean","default":false},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/Account"}},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"post":{"tags":["Account"],"summary":"Create account","description":"","operationId":"createAccount","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/Account"}},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Account created successfully","schema":{"$ref":"#/definitions/Account"}},"400":{"description":"Invalid account data supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/paymentMethods/refresh":{"put":{"tags":["Account"],"summary":"Refresh account payment methods","description":"","operationId":"refreshPaymentMethods","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"pluginName","in":"query","required":false,"type":"string"},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/paymentMethods/{paymentMethodId}/setDefault":{"put":{"tags":["Account"],"summary":"Set the default payment method","description":"","operationId":"setDefaultPaymentMethod","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"paymentMethodId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"payAllUnpaidInvoices","in":"query","required":false,"type":"boolean","default":false},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"204":{"description":"Successful operation"},"400":{"description":"Invalid account id or payment method id supplied"},"404":{"description":"Account not found"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/{accountId}/payments":{"get":{"tags":["Account"],"summary":"Retrieve account payments","description":"","operationId":"getPaymentsForAccount","produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"name":"withAttempts","in":"query","required":false,"type":"boolean","default":false},{"name":"withPluginInfo","in":"query","required":false,"type":"boolean","default":false},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"audit","in":"query","required":false,"type":"string","default":"NONE","enum":["FULL","MINIMAL","NONE"]}],"responses":{"200":{"description":"successful operation","schema":{"type":"array","items":{"$ref":"#/definitions/Payment"}}},"400":{"description":"Invalid account id supplied"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]},"post":{"tags":["Account"],"summary":"Trigger a payment (authorization, purchase or credit)","description":"","operationId":"processPayment","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"accountId","in":"path","required":true,"type":"string","pattern":"\\w+-\\w+-\\w+-\\w+-\\w+","format":"uuid"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PaymentTransaction"}},{"name":"paymentMethodId","in":"query","required":false,"type":"string","format":"uuid"},{"name":"controlPluginName","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Payment transaction created successfully","schema":{"$ref":"#/definitions/Payment"}},"400":{"description":"Invalid account id supplied"},"404":{"description":"Account not found"},"402":{"description":"Transaction declined by gateway"},"422":{"description":"Payment is aborted by a control plugin"},"502":{"description":"Failed to submit payment transaction"},"503":{"description":"Payment in unknown status, failed to receive gateway response"},"504":{"description":"Payment operation timeout"}},"security":[{"basicAuth":[]},{"Killbill Api Key":[]},{"Killbill Api Secret":[]}]}},"/1.0/kb/accounts/payments":{"post":{"tags":["Account"],"summary":"Trigger a payment using the account external key (authorization, purchase or credit)","description":"","operationId":"processPaymentByExternalKey","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PaymentTransaction"}},{"name":"externalKey","in":"query","required":true,"type":"string"},{"name":"paymentMethodId","in":"query","required":false,"type":"string","format":"uuid"},{"name":"controlPluginName","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"pluginProperty","in":"query","required":false,"type":"array","items":{"type":"string"},"collectionFormat":"multi"},{"name":"X-Killbill-CreatedBy","in":"header","required":true,"type":"string"},{"name":"X-Killbill-Reason","in":"header","required":false,"type":"string"},{"name":"X-Killbill-Comment","in":"header","required":false,"type":"string"}],"responses":{"201":{"description":"Payment transaction created successfully","schema":{"$ref":"#/definitions/Payment"}},"400":{"description":"Invalid account external key supplied"},"404":{"description":"Account not found"},"402":{"description":"Transaction declined by gateway"},"422":{"description":"Payment is aborted by a control plugin"},"502":{"description":"Failed to submit payment transaction"},"503":{"description":"Payment in unknown status, failed to recei

# --- truncated at 32 KB (267 KB total) ---
# Full source: https://artifacts.apis.io/killbill/openapi/_original/killbill-api-openapi.json