Skip to main content

kobana billing pix-keys

Commands of kobana billing pix-keys. Every global option (Global options) applies here.

CommandHTTPDescription
pix-keys listGET /v1/pix_keysList Pix keys
pix-keys createPOST /v1/pix_keysCreate a Pix key
pix-keys getGET /v1/pix_keys/{id}Get a Pix key
pix-keys updatePATCH /v1/pix_keys/{id}Update a Pix key
pix-keys deleteDELETE /v1/pix_keys/{id}Delete a Pix key

pix-keys list​

List Pix keys

kobana billing pix-keys list [OPTIONS]

GET /v1/pix_keys

The organization Pix keys customers transfer to on a bank_transfer charge (POST /invoices/{id}/pay).

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
activestringnoFilter by active (true) or inactive (false) keys. Values: true, false.
key_typestringnoFilter by key type. Values: cpf, cnpj, email, phone, random.

Responses

HTTPDescription
200Paginated list of Pix keys.
404Resource not found in the current organization.

pix-keys create​

Create a Pix key

kobana billing pix-keys create [OPTIONS]

POST /v1/pix_keys

The type is detected from the key itself (CPF, CNPJ, email, phone with +55 or random); key_type, when sent, must match. The key is stored unmasked and is unique in the organization.

Request body

NameTypeRequiredDescription
keystringyesThe key, unmasked (documents as digits only, phone with +55, email and random key lowercased).
key_typestringnoKey type: cpf, cnpj, email, phone or random. Values: cpf, cnpj, email, phone, random.
descriptionstringnoFree description for the operator (e.g. "Main Pix").
holder_namestringnoHolder shown to the customer. Empty uses the legal name of the invoice issuing company (or the organization).
holder_documentstringnoHolder CPF/CNPJ, digits only. Empty uses the document of the issuing company (or the organization).
company_idstring (uuid)noIssuing company it belongs to (optional).
activebooleannoOnly active destinations can be chosen for a new charge.

More fields and nested objects: kobana schema billing.pix-keys.create.

Responses

HTTPDescription
201Pix key created.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

pix-keys get​

Get a Pix key

kobana billing pix-keys get [ID] [OPTIONS]

GET /v1/pix_keys/{id}

Path arguments: id

Responses

HTTPDescription
200Pix key found.
404Resource not found in the current organization.

pix-keys update​

Update a Pix key

kobana billing pix-keys update [ID] [OPTIONS]

PATCH /v1/pix_keys/{id}

Path arguments: id

Request body

NameTypeRequiredDescription
keystringnoThe key, unmasked (documents as digits only, phone with +55, email and random key lowercased).
key_typestringnoKey type: cpf, cnpj, email, phone or random. Values: cpf, cnpj, email, phone, random.
descriptionstringnoFree description for the operator (e.g. "Main Pix").
holder_namestringnoHolder shown to the customer. Empty uses the legal name of the invoice issuing company (or the organization).
holder_documentstringnoHolder CPF/CNPJ, digits only. Empty uses the document of the issuing company (or the organization).
company_idstring (uuid)noIssuing company it belongs to (optional).
activebooleannoOnly active destinations can be chosen for a new charge.

More fields and nested objects: kobana schema billing.pix-keys.update.

Responses

HTTPDescription
200Pix key updated.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

pix-keys delete​

Delete a Pix key

kobana billing pix-keys delete [ID] [OPTIONS]

DELETE /v1/pix_keys/{id}

Soft delete. Charges already sent keep showing the details the customer received, and the key can be registered again.

Path arguments: id

Responses

HTTPDescription
200Pix key deleted.
404Resource not found in the current organization.