Skip to main content

kobana banking customers

Commands of kobana banking customers. Every global option (Global options) applies here.

CommandHTTPDescription
customers cnpj-cpfGET /v1/customers/cnpj_cpfSearch Customer by CNPJ/CPF
customers emailGET /v1/customers/emailSearch Customer by Email
customers people-syncPUT /v1/customers/people_syncEnable or disable the Customer <-> Person mirror
customers listGET /v1/customersList Customers
customers createPOST /v1/customersCreate a Customer
customers getGET /v1/customers/{id}View Customer
customers updatePUT /v1/customers/{id}Update Customer

customers cnpj-cpf​

Search Customer by CNPJ/CPF

kobana banking customers cnpj-cpf [OPTIONS]

GET /v1/customers/cnpj_cpf

View a customer by searching for cnpj or cpf.

Query parameters

NameTypeRequiredDescription
qstringyesCustomer CNPJ/CPF

Responses

HTTPDescription
200Customer found
404Customer not found

customers email​

Search Customer by Email

kobana banking customers email [OPTIONS]

GET /v1/customers/email

View a customer by searching for email.

Query parameters

NameTypeRequiredDescription
qstringyesCustomer email

Responses

HTTPDescription
200Customer found
404Customer not found

customers people-sync​

Enable or disable the Customer <-> Person mirror

kobana banking customers people-sync [OPTIONS]

PUT /v1/customers/people_sync

Turns on or off, for the account, the automatic mirror between Customers and People (each Customer gets an equivalent Person and changes propagate both ways). It only changes the setting: existing Customers do not get a Person until the backfill runs. In a sub-account, enabled in the response also reflects inheritance from the main account.

Request body

NameTypeRequiredDescription
enabledbooleanyestrue turns the mirror on; false turns it off.

More fields and nested objects: kobana schema banking.customers.people-sync.

Responses

HTTPDescription
200Configuration updated
422Missing or invalid enabled parameter

customers list​

List Customers

kobana banking customers list [OPTIONS]

GET /v1/customers

List customers.

Responses

HTTPDescription
200Success in listing customers

customers create​

Create a Customer

kobana banking customers create [OPTIONS]

POST /v1/customers

Creates a new customer for association with collections, billets and subscriptions.

Request body

NameTypeRequiredDescription
person_namestringyesName or Legal Name
addressstringyesAddress
neighborhoodstringyesNeighborhood
zipcodestringyesZIP Code (format 99999999)
city_namestringyesCity (Name must be correct and complete)
idintegernoID
external_codestringnoExternal code
cnpj_cpfstringnoCPF/CNPJ
contact_personstringnoContact person (when company)
nicknamestringnoNickname or trade name of the payer
birthdaystring (date)noDate of Birth
emailstring (email)noMain email
email_ccstring (email)noAlternative email
address_complementstringnoAddress complement
address_numberstringnoNumber
statestringnoState
phone_numberstringnoPhone (with area code, international code is optional)
mobile_local_codestringnoMobile area code
mobile_numberstringnoMobile phone
ignore_emailbooleannoNever send email to this customer
ignore_smsbooleannoNever send SMS to this customer
ignore_whatsappbooleannoNever send WhatsApp to this customer
notesstringnoNotes
tagsarray<string>noTags associated with the record
tag_liststringnoTags associated with the record
custom_dataobjectnoHash with key and value in JSON format.
created_via_apibooleannoIndicates if the record was created by API
created_atstring (date-time)noDate and time of record creation
updated_atstring (date-time)noDate and time of last record update

More fields and nested objects: kobana schema banking.customers.create.

Responses

HTTPDescription
201Customer created
422Invalid customer

customers get​

View Customer

kobana banking customers get [ID] [OPTIONS]

GET /v1/customers/{id}

Query specific information from a Customer.

Path arguments: id

Responses

HTTPDescription
200Customer found
404Customer not found

customers update​

Update Customer

kobana banking customers update [ID] [OPTIONS]

PUT /v1/customers/{id}

Updates specific information of a Customer.

Path arguments: id

Request body

NameTypeRequiredDescription
person_namestringyesName or Legal Name
addressstringyesAddress
neighborhoodstringyesNeighborhood
zipcodestringyesZIP Code (format 99999999)
city_namestringyesCity (Name must be correct and complete)
idintegernoID
external_codestringnoExternal code
contact_personstringnoContact person (when company)
nicknamestringnoNickname or trade name of the payer
birthdaystring (date)noDate of Birth
emailstring (email)noMain email
email_ccstring (email)noAlternative email
address_complementstringnoAddress complement
address_numberstringnoNumber
statestringnoState
phone_numberstringnoPhone (with area code, international code is optional)
mobile_local_codestringnoMobile area code
mobile_numberstringnoMobile phone
ignore_emailbooleannoNever send email to this customer
ignore_smsbooleannoNever send SMS to this customer
ignore_whatsappbooleannoNever send WhatsApp to this customer
notesstringnoNotes
tagsarray<string>noTags associated with the record
tag_liststringnoTags associated with the record
custom_dataobjectnoHash with key and value in JSON format.
created_via_apibooleannoIndicates if the record was created by API
created_atstring (date-time)noDate and time of record creation
updated_atstring (date-time)noDate and time of last record update

More fields and nested objects: kobana schema banking.customers.update.

Responses

HTTPDescription
204Customer updated
404Customer not found