A payment method is a stored instrument (credit card, bank account, direct debit mandate) that a customer uses to pay invoices. Payment methods are tokenized through the configured payment gateway - Kontorion never stores raw card numbers or bank details.
Each customer can have multiple payment methods. One is marked as is_default and is used automatically when invoices are finalized.
List payment methods
Returns payment methods for the org. Pass ?customer_id=
query Parameters
customer_idFilter by customer UUID
include_removedInclude soft-deleted methods (default false)
List payment methods › Responses
List in data envelope
account_last4bank_namecreated_atcustomer_iddisplay_brandDisplay fields populated by the provider sync (card brand / last4 / expiry for card methods, bank name / account_last4 for DD methods). All optional - cards leave bank_* nil and vice versa. Carried as pointers so the JSON omits the key entirely when the column is NULL.
exp_monthexp_yearidis_defaultlast4organization_idproviderprovider_idstatustypeupdated_atCreate a payment method
Creates a new payment method. customer_id is supplied in the request body.
Create a payment method › Request Body
customer_idis_defaultproviderprovider_idtypeCreate a payment method › Responses
Wrapped in data envelope
account_last4bank_namecreated_atcustomer_iddisplay_brandDisplay fields populated by the provider sync (card brand / last4 / expiry for card methods, bank name / account_last4 for DD methods). All optional - cards leave bank_* nil and vice versa. Carried as pointers so the JSON omits the key entirely when the column is NULL.
exp_monthexp_yearidis_defaultlast4organization_idproviderprovider_idstatustypeupdated_atGet a payment method
Returns a single payment method by ID
path Parameters
idPayment method UUID
Get a payment method › Responses
Wrapped in data envelope
account_last4bank_namecreated_atcustomer_iddisplay_brandDisplay fields populated by the provider sync (card brand / last4 / expiry for card methods, bank name / account_last4 for DD methods). All optional - cards leave bank_* nil and vice versa. Carried as pointers so the JSON omits the key entirely when the column is NULL.
exp_monthexp_yearidis_defaultlast4organization_idproviderprovider_idstatustypeupdated_atUpdate a payment method
Updates an existing payment method by ID
path Parameters
idPayment method UUID
Update a payment method › Request Body
is_defaultproviderprovider_idstatusUpdate a payment method › Responses
Wrapped in data envelope
account_last4bank_namecreated_atcustomer_iddisplay_brandDisplay fields populated by the provider sync (card brand / last4 / expiry for card methods, bank name / account_last4 for DD methods). All optional - cards leave bank_* nil and vice versa. Carried as pointers so the JSON omits the key entirely when the column is NULL.
exp_monthexp_yearidis_defaultlast4organization_idproviderprovider_idstatustypeupdated_at