Skip to main content

kobana banking charge

Charges (Pix, bank slips, automatic Pix)

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

CommandHTTPDescription
charge automatic-pix accounts listGET /v2/charge/automatic_pix/accountsLists all automatic PIX accounts
charge automatic-pix accounts createPOST /v2/charge/automatic_pix/accountsCreate new automatic PIX account
charge automatic-pix accounts getGET /v2/charge/automatic_pix/accounts/{uid}View automatic PIX account
charge automatic-pix accounts updatePATCH /v2/charge/automatic_pix/accounts/{uid}Update automatic PIX account
charge automatic-pix accounts deleteDELETE /v2/charge/automatic_pix/accounts/{uid}Delete automatic PIX account
charge automatic-pix locations listGET /v2/charge/automatic_pix/locationsLists all automatic Pix Locations
charge automatic-pix locations createPOST /v2/charge/automatic_pix/locationsCreate new automatic PIX Location
charge automatic-pix locations getGET /v2/charge/automatic_pix/locations/{uid}Query a specific automatic PIX Location
charge automatic-pix pix listGET /v2/charge/automatic_pix/pixLists all automatic PIX charges
charge automatic-pix pix getGET /v2/charge/automatic_pix/pix/{uid}Information of automatic PIX charge
charge automatic-pix pix updatePATCH /v2/charge/automatic_pix/pix/{uid}Update automatic PIX charge
charge automatic-pix pix cancelPUT /v2/charge/automatic_pix/pix/{uid}/cancelCancel automatic PIX charge
charge automatic-pix pix retryPUT /v2/charge/automatic_pix/pix/{uid}/retryRetry automatic PIX charge
charge automatic-pix recurrences listGET /v2/charge/automatic_pix/recurrencesLists all automatic PIX recurrences
charge automatic-pix recurrences createPOST /v2/charge/automatic_pix/recurrencesCreate new automatic PIX recurrence
charge automatic-pix recurrences pixPOST /v2/charge/automatic_pix/recurrences/{recurrence_uid}/pixCreate new automatic PIX charge
charge automatic-pix recurrences requestsPOST /v2/charge/automatic_pix/recurrences/{recurrence_uid}/requestsCreate new automatic PIX request
charge automatic-pix recurrences getGET /v2/charge/automatic_pix/recurrences/{uid}Information of automatic PIX recurrence
charge automatic-pix recurrences updatePATCH /v2/charge/automatic_pix/recurrences/{uid}Update automatic PIX recurrence
charge automatic-pix recurrences cancelPUT /v2/charge/automatic_pix/recurrences/{uid}/cancelCancel automatic PIX recurrence
charge automatic-pix requests listGET /v2/charge/automatic_pix/requestsLists all automatic PIX requests
charge automatic-pix requests getGET /v2/charge/automatic_pix/requests/{uid}Information of automatic PIX request
charge automatic-pix requests updatePATCH /v2/charge/automatic_pix/requests/{uid}Update automatic PIX request
charge automatic-pix requests cancelPUT /v2/charge/automatic_pix/requests/{uid}/cancelCancel automatic PIX request
charge payments listGET /v2/charge/paymentsList Receipts
charge payments createPOST /v2/charge/paymentsReport Receipt
charge payments getGET /v2/charge/payments/{uid}Receipt Information
charge payments deleteDELETE /v2/charge/payments/{uid}Delete Receipt
charge pix commands getGET /v2/charge/pix/{pix_uid}/commands/{uid}View a Command
charge pix commands listGET /v2/charge/pix/{pix_uid}/commandsList Pix Commands
charge pix listGET /v2/charge/pixList Pix
charge pix createPOST /v2/charge/pixCreate a Pix
charge pix cancelPUT /v2/charge/pix/{pix_uid}/cancelCancel a Pix
charge pix updatePUT /v2/charge/pix/{pix_uid}/updateUpdate a Pix
charge pix getGET /v2/charge/pix/{uid}View a Pix
charge pix deleteDELETE /v2/charge/pix/{uid}Delete a Pix
charge pix-accounts listGET /v2/charge/pix_accountsList Pix Accounts
charge pix-accounts createPOST /v2/charge/pix_accountsCreate Pix Account
charge pix-accounts getGET /v2/charge/pix_accounts/{uid}View a Pix account
charge pix-accounts updatePUT /v2/charge/pix_accounts/{uid}Update Pix Account
charge pix-accounts deleteDELETE /v2/charge/pix_accounts/{uid}Delete Pix Account

charge automatic-pix accounts list​

Lists all automatic PIX accounts

kobana banking charge automatic-pix accounts list [OPTIONS]

GET /v2/charge/automatic_pix/accounts

Lists all user's automatic PIX accounts with pagination.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number for pagination
per_pageintegernoNumber of items per page (default: 50, maximum: 50)
external_idstringnoFilter by external ID
financial_account_uidstringnoFilter by financial account UID

Responses

HTTPDescription
200List of automatic PIX accounts filtered by financial_account_uid

charge automatic-pix accounts create​

Create new automatic PIX account

kobana banking charge automatic-pix accounts create [OPTIONS]

POST /v2/charge/automatic_pix/accounts

Creates a new automatic PIX account.

Important

After creating the account, it is necessary to associate a connection to it for automatic PIX to work.

Request body

NameTypeRequiredDescription
financial_account_uidstringyesUID of the associated financial account
custom_namestringnoCustom name of the account
external_idstringnoExternal ID for integration
enabledbooleannoDefines whether the account is enabled.
custom_dataobjectnoCustom data
tagsarray<string>noTags of the account

More fields and nested objects: kobana schema banking.charge.automatic-pix.accounts.create.

Responses

HTTPDescription
201Automatic PIX account created successfully
422Invalid data

charge automatic-pix accounts get​

View automatic PIX account

kobana banking charge automatic-pix accounts get [UID] [OPTIONS]

GET /v2/charge/automatic_pix/accounts/{uid}

Path arguments: uid

Responses

HTTPDescription
200Details of automatic PIX account
404Automatic PIX account not found

charge automatic-pix accounts update​

Update automatic PIX account

kobana banking charge automatic-pix accounts update [UID] [OPTIONS]

PATCH /v2/charge/automatic_pix/accounts/{uid}

Path arguments: uid

Request body

NameTypeRequiredDescription
custom_namestringnoCustom name of the account
external_idstringnoExternal ID for integration
enabledbooleannoDefines whether the account is enabled.
custom_dataobjectnoCustom data
tagsarray<string>noTags of the account

More fields and nested objects: kobana schema banking.charge.automatic-pix.accounts.update.

Responses

HTTPDescription
200Automatic PIX account updated

charge automatic-pix accounts delete​

Delete automatic PIX account

kobana banking charge automatic-pix accounts delete [UID] [OPTIONS]

DELETE /v2/charge/automatic_pix/accounts/{uid}

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX account deleted
422Automatic PIX account has associated records (e.g: recurrence)

charge automatic-pix locations list​

Lists all automatic Pix Locations

kobana banking charge automatic-pix locations list [OPTIONS]

GET /v2/charge/automatic_pix/locations

Lists all user's automatic Pix Locations with pagination.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number for pagination
per_pageintegernoNumber of items per page (default: 50, maximum: 50)
external_idstringnoFilter by external ID
charge_automatic_pix_account_uidstringnoFilter by automatic Pix account UID
financial_provider_external_idstringnoFilter by external ID of financial provider

Responses

HTTPDescription
200List of automatic Pix Locations

charge automatic-pix locations create​

Create new automatic PIX Location

kobana banking charge automatic-pix locations create [OPTIONS]

POST /v2/charge/automatic_pix/locations

Creates a new automatic PIX Location.

Request body

NameTypeRequiredDescription
charge_automatic_pix_account_uidstringyesUID of the Automatic Pix account
external_idstringnoExternal ID of the location
tagsarray<string>noTags for organization
custom_dataobjectnoCustom data

More fields and nested objects: kobana schema banking.charge.automatic-pix.locations.create.

Responses

HTTPDescription
201Automatic PIX Location created successfully
422Invalid data for creation

charge automatic-pix locations get​

Query a specific automatic PIX Location

kobana banking charge automatic-pix locations get [UID] [OPTIONS]

GET /v2/charge/automatic_pix/locations/{uid}

Returns details of a specific automatic PIX Location.

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX Location found
404Automatic PIX Location not found

charge automatic-pix pix list​

Lists all automatic PIX charges

kobana banking charge automatic-pix pix list [OPTIONS]

GET /v2/charge/automatic_pix/pix

Lists all automatic PIX charges with pagination.

Query parameters

NameTypeRequiredDescription
automatic_pix_recurrence_uidstringnoFilter by automatic PIX recurrence UID
external_idstringnoFilter by external ID
pageintegernoPage number for pagination
per_pageintegernoNumber of items per page (default: 50, maximum: 50)

Responses

HTTPDescription
200List of automatic PIX charges

charge automatic-pix pix get​

Information of automatic PIX charge

kobana banking charge automatic-pix pix get [UID] [OPTIONS]

GET /v2/charge/automatic_pix/pix/{uid}

Query specific information of an automatic PIX charge.

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX charge found
404Automatic PIX charge not found

charge automatic-pix pix update​

Update automatic PIX charge

kobana banking charge automatic-pix pix update [UID] [OPTIONS]

PATCH /v2/charge/automatic_pix/pix/{uid}

Updates information of an existing automatic PIX charge.

Path arguments: uid

Request body

NameTypeRequiredDescription
external_idstringnoExternal ID of the charge.
tagsarray<string>noTags.
custom_dataobjectnoCustom data.

More fields and nested objects: kobana schema banking.charge.automatic-pix.pix.update.

Responses

HTTPDescription
200Automatic PIX charge updated successfully
404Automatic PIX charge not found
422Duplicate external ID when updating

charge automatic-pix pix cancel​

Cancel automatic PIX charge

kobana banking charge automatic-pix pix cancel [UID] [OPTIONS]

PUT /v2/charge/automatic_pix/pix/{uid}/cancel

Cancels an existing automatic PIX charge.

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX charge cancelled successfully
404Automatic PIX charge not found
422Error when cancelling

charge automatic-pix pix retry​

Retry automatic PIX charge

kobana banking charge automatic-pix pix retry [UID] [OPTIONS]

PUT /v2/charge/automatic_pix/pix/{uid}/retry

Retry an automatic PIX charge that failed or expired.

Path arguments: uid

Request body

NameTypeRequiredDescription
datestring (date)yesDate to retry the charge.

More fields and nested objects: kobana schema banking.charge.automatic-pix.pix.retry.

Responses

HTTPDescription
200Automatic PIX charge scheduled for retry successfully
404Automatic PIX charge not found
422Invalid date

charge automatic-pix recurrences list​

Lists all automatic PIX recurrences

kobana banking charge automatic-pix recurrences list [OPTIONS]

GET /v2/charge/automatic_pix/recurrences

Lists all user's automatic PIX recurrences with pagination.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number for pagination
per_pageintegernoNumber of items per page (default: 50, maximum: 50)
external_idstringnoFilter by external ID
charge_automatic_pix_account_uidstringnoFilter by automatic Pix account UID

Responses

HTTPDescription
200List of automatic PIX recurrences

charge automatic-pix recurrences create​

Create new automatic PIX recurrence

kobana banking charge automatic-pix recurrences create [OPTIONS]

POST /v2/charge/automatic_pix/recurrences

Creates a new automatic PIX recurrence.

Request body

NameTypeRequiredDescription
charge_automatic_pix_account_uidstringyesUID of the Automatic Pix account. The financial account and the connection are inherited from this account.
documentstringyesNumber, identifier, or code that represents the object of the authorization (contract, order, etc.).
start_atstring (date_time)yesStart date of the recurrence.
recurrence_termstringyesTerm of the recurrence. Values: indefinite, fixed.
cyclestringyesCycle of the recurrence. Values: weekly, monthly, quarterly, semiannual, annual.
amount_termstringyesType of value of the recurrence. Values: fixed, variable.
retry_policystringyesRetry policy. Values: disallow, allow_3r7d.
debtorobjectyesInformation of the debtor person
pix_uidstringnoUID of the Pix (optional). When provided along with location_uid: the generated QR code will be from the instant journey (Journey 3) for instant Pix or offer (Journey 4) for Pix with expiration.
location_uidstringnoUID of the location. When provided, the QR Code will be generated according to the journey (recurrent / instant / offer).
descriptionstringnoDescription of the recurrence.
finish_atstring (date_time)noEnd date of the recurrence.
amountnumbernoAmount (when amount_term is fixed).
minimum_amountnumbernoMinimum amount (when amount_term is variable).
agreement_codestringnoNumber of the Payment Agreement.
external_idstringnoExternal ID of the recurrence.
custom_dataobjectnoCustom data.
tagsarray<string>noTags.

More fields and nested objects: kobana schema banking.charge.automatic-pix.recurrences.create.

Responses

HTTPDescription
201Automatic PIX recurrence created with pix_uid and location_uid (JORNADA_3)
422External ID already exists

charge automatic-pix recurrences pix​

Create new automatic PIX charge

kobana banking charge automatic-pix recurrences pix [RECURRENCE_UID] [OPTIONS]

POST /v2/charge/automatic_pix/recurrences/{recurrence_uid}/pix

Creates a new automatic PIX charge for a recurrence.

Path arguments: recurrence_uid

Request body

NameTypeRequiredDescription
amountnumberyesAmount of the charge.
retry_policystringyesRetry policy. Values: disallow, allow_3r7d.
next_business_daybooleanyesWhether to consider the next business day.
expire_atstring (date_time)yesExpiration date of the charge.
additional_infostringnoAdditional information about the charge.
txidstringnoTransaction identifier (optional; generated automatically if omitted).
external_idstringnoExternal ID of the charge.
tagsarray<string>noTags.
custom_dataobjectnoCustom data.
debtorobjectnoAdditional debtor data

More fields and nested objects: kobana schema banking.charge.automatic-pix.recurrences.pix.

Responses

HTTPDescription
201Automatic PIX charge created with custom txid
422Duplicate external ID

charge automatic-pix recurrences requests​

Create new automatic PIX request

kobana banking charge automatic-pix recurrences requests [RECURRENCE_UID] [OPTIONS]

POST /v2/charge/automatic_pix/recurrences/{recurrence_uid}/requests

Creates a new automatic PIX request for a recurrence.

Path arguments: recurrence_uid

Request body

NameTypeRequiredDescription
expire_atstring (date_time)yesExpiration date of the request.
addressee_financial_accountobjectyesFinancial Account of the Recipient (payer user)
external_idstringnoExternal ID of the request.
custom_dataobjectnoCustom data.
tagsarray<string>noTags.

More fields and nested objects: kobana schema banking.charge.automatic-pix.recurrences.requests.

Responses

HTTPDescription
201Automatic PIX request created successfully
422Duplicate external ID

charge automatic-pix recurrences get​

Information of automatic PIX recurrence

kobana banking charge automatic-pix recurrences get [UID] [OPTIONS]

GET /v2/charge/automatic_pix/recurrences/{uid}

Query specific information of an automatic PIX recurrence.

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX recurrence found
404Automatic PIX recurrence not found

charge automatic-pix recurrences update​

Update automatic PIX recurrence

kobana banking charge automatic-pix recurrences update [UID] [OPTIONS]

PATCH /v2/charge/automatic_pix/recurrences/{uid}

Updates information of an existing automatic PIX recurrence.

Path arguments: uid

Request body

NameTypeRequiredDescription
external_idstringnoExternal ID of the recurrence.
tagsarray<string>noTags.
custom_dataobjectnoCustom data.

More fields and nested objects: kobana schema banking.charge.automatic-pix.recurrences.update.

Responses

HTTPDescription
200Automatic PIX recurrence updated successfully
404Automatic PIX recurrence not found
422External ID already exists when updating

charge automatic-pix recurrences cancel​

Cancel automatic PIX recurrence

kobana banking charge automatic-pix recurrences cancel [UID] [OPTIONS]

PUT /v2/charge/automatic_pix/recurrences/{uid}/cancel

Cancels an existing automatic PIX recurrence.

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX recurrence cancelled successfully
422Error when cancelling

charge automatic-pix requests list​

Lists all automatic PIX requests

kobana banking charge automatic-pix requests list [OPTIONS]

GET /v2/charge/automatic_pix/requests

Lists all automatic PIX requests with pagination.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number for pagination
per_pageintegernoNumber of items per page (default: 50, maximum: 50)
automatic_pix_recurrence_uidstringnoFilter by automatic PIX recurrence UID
charge_automatic_pix_account_uidstringnoFilter by automatic Pix account UID
external_idstringnoFilter by external ID

Responses

HTTPDescription
200List of automatic PIX requests

charge automatic-pix requests get​

Information of automatic PIX request

kobana banking charge automatic-pix requests get [UID] [OPTIONS]

GET /v2/charge/automatic_pix/requests/{uid}

Query specific information of an automatic PIX request.

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX request found
404Automatic PIX request not found

charge automatic-pix requests update​

Update automatic PIX request

kobana banking charge automatic-pix requests update [UID] [OPTIONS]

PATCH /v2/charge/automatic_pix/requests/{uid}

Updates information of an existing automatic PIX request.

Path arguments: uid

Request body

NameTypeRequiredDescription
external_idstringnoExternal ID of the request.
tagsarray<string>noTags.
custom_dataobjectnoCustom data.

More fields and nested objects: kobana schema banking.charge.automatic-pix.requests.update.

Responses

HTTPDescription
200Automatic PIX request updated successfully
404Automatic PIX request not found
422Duplicate external ID when updating

charge automatic-pix requests cancel​

Cancel automatic PIX request

kobana banking charge automatic-pix requests cancel [UID] [OPTIONS]

PUT /v2/charge/automatic_pix/requests/{uid}/cancel

Cancels an existing automatic PIX request.

Path arguments: uid

Responses

HTTPDescription
200Automatic PIX request cancelled successfully
404Automatic PIX request not found
422Error when cancelling

charge payments list​

List Receipts

kobana banking charge payments list [OPTIONS]

GET /v2/charge/payments

List Receipts.

Query parameters

NameTypeRequiredDescription
pageintegernoPage Number.
per_pageintegernoNumber of records per page.
paid_fromstringnoFrom the Receipt Date.
paid_tostringnoUntil the Receipt Date.
amount_fromnumbernoFrom the Receipt Value.
amount_tonumbernoUntil the Receipt Value.
kindstringnoType of Receipt. Direct to beneficiary/In hand, boleto (Confirmed by bank via return file or API) or PIX (Confirmed by bank). Values: direct, bank_billet, pix.
payable_typestringnoType of Payable Resource. Values: BankBillet, Pix.
payable_public_idstringnoUID of Payable Resource.

Responses

HTTPDescription
200Searching by receipt type

charge payments create​

Report Receipt

kobana banking charge payments create [OPTIONS]

POST /v2/charge/payments

Reports a Receipt.

Request body

NameTypeRequiredDescription
amountnumberyesAmount of the Receipt.
kindstringyesType of Receipt. Values: direct, bank_billet, pix.
paid_atstring (date)yesReceipt Date.
payableobjectyesResource associated with the payment (Boleto or Pix).
uidstring (uuid)noUID of the Receipt.
debtorobjectnoInformation of the debtor (drawee) of the boleto.
payerobjectnoInformation of who actually made the payment (payer). Automatically filled via daily bank query, available D+2 business days after payment. Null when the query has not yet been made or the bank did not return the payer's data.
bankobjectnoBanking information.
receivingobjectnoReceipt information.
credit_atstring (date)noCredit date.
created_via_apibooleannoSent by API.
transaction_identifierstringnoTransaction Identifier.
statusstringnoStatus.
duplicatedobjectnoPresent when the receipt is a duplicate. Contains the UID of the original receipt.
created_atstring (date)noDate and time of creation.
updated_atstring (date)noDate and time of change.

More fields and nested objects: kobana schema banking.charge.payments.create.

Responses

HTTPDescription
201PIX receipt reported successfully
422Validation error

charge payments get​

Receipt Information

kobana banking charge payments get [UID] [OPTIONS]

GET /v2/charge/payments/{uid}

Query specific information of a Receipt.

Path arguments: uid

Responses

HTTPDescription
200Receipt found
404Receipt not found

charge payments delete​

Delete Receipt

kobana banking charge payments delete [UID] [OPTIONS]

DELETE /v2/charge/payments/{uid}

Deletes a Receipt.

Path arguments: uid

Responses

HTTPDescription
204Receipt deleted
404Receipt not found

charge pix commands get​

View a Command

kobana banking charge pix commands get [PIX_UID] [UID] [OPTIONS]

GET /v2/charge/pix/{pix_uid}/commands/{uid}

Query detailed information of a specific command executed on a Pix charge.

Path arguments: pix_uid, uid

Responses

HTTPDescription
200Pix update found
404Pix update not found

charge pix commands list​

List Pix Commands

kobana banking charge pix commands list [PIX_UID] [OPTIONS]

GET /v2/charge/pix/{pix_uid}/commands

Lists all commands (operations) executed on a specific Pix charge, including updates, cancellations, and other operations.

Path arguments: pix_uid

Responses

HTTPDescription
200Pix found
404Pix not found

charge pix list​

List Pix

kobana banking charge pix list [OPTIONS]

GET /v2/charge/pix

Lists all registered Pix charges. Allows filtering by status, TXID, due date, payment date, CNPJ/CPF of payer and tags.

Query parameters

NameTypeRequiredDescription
pageintegernoPage Number
per_pageintegernoNumber of records per page
txidstringnoFilter by Pix TXID
statusstringnoFilter by Pix status
pix_account_idintegernoFilter by Pix account ID
pix_account_uidstringnoFilter by Pix account UID
expire_fromstringnoStart date of the Pix due date filter
expire_tostringnoEnd date of the Pix due date filter
paid_fromstringnoStart date of the Pix payment date filter
paid_tostringnoEnd date of the Pix payment date filter
created_fromstringnoStart date of the Pix creation date filter
created_tostringnoEnd date of the Pix creation date filter
cnpj_cpfstringnoFilter by payer CNPJ/CPF
tagsstringnoFilter by pix tags

Responses

HTTPDescription
200Searching Pix by tags
422Invalid cnpj_cpf

charge pix create​

Create a Pix

kobana banking charge pix create [OPTIONS]

POST /v2/charge/pix

This endpoint is used for generating a Pix charge.

Pix creation is synchronous, but registration with the financial institution is performed in the background. Therefore, the request response will not contain the qrcode field.

To receive the qrcode, it is necessary to sign a webhook to receive the complete Pix payload when the registration is confirmed.

Prerequisite

To issue a Pix charge, it is necessary to have a Pix Account registered in your account. Every Pix belongs to a Pix Account that represents the payment institution and the key that will be used to issue the Pix. The Pix Account creation must be done through the system's web interface or through the endpoint POST /api/v2/charge/pix_accounts.

Webhook Events

When registering a Pix, the system creates a command to register the PIX with the financial institution and the pix.register.requested event is triggered. After the Pix registration is confirmed at the institution, the pix.register.confirmed event is triggered.

The pix.db.created event is also triggered in this operation.

Request body

NameTypeRequiredDescription
amountnumberyesAmount in reals
pix_account_uidstring (uuid)yesUID of Pix Account
expire_atstring (date-time)yesDate and time of expiration. ISO8601 format
idintegernoID of Pix (DEPRECATED: use uid)
uidstring (uuid)noUID of Pix
payerobjectnoPayer data
statusstringnoPix status. * opened: Open Pix charge (unpaid). [Initial State] * paid: Pix charge paid. * overdue: Overdue Pix charge. * canceled: Pix charge canceled. * generation_failed: Pix charge created, but was not registered with the bank. Values: opened, paid, overdue, canceled, generation_failed.
pix_account_idintegernoID of Pix Account (DEPRECATED: use pix_account_uid)
txidanyOfnoPix TXID - Unique identifier of the transaction
canceled_atstring (date-time)noDate and time of Pix cancellation
registered_atstring (date-time)noDate and time of registration with the provider
paid_atstring (date-time)noDate and time of payment
paid_amountnumbernoAmount actually paid
registration_statusstringnoProvider registration status Values: pending, skipped, requested, confirmed, rejected, failed.
revoke_daysanyOfnoNumber of days active after expiration. REQUIRED and must be greater than zero when Pix has interest or fine configured.
messageanyOfnoRequest message to the payer
message_payeranyOfnoMessage for the payer (read-only field)
beneficiaryobjectnoPix beneficiary data
urlstringnoURL for Pix viewing
formatsobjectnoURLs with formats available for Pix
additional_infoanyOfnoAdditional information for the payer (maximum 10 key-value pairs)
qrcodeobjectnoPix QR Code
registration_kindstringnoPix type. * instant: Immediate (default) * billing: Billing Values: instant, billing.
kindstringnoPix type. * instant: Immediate (default) * billing: Billing Values: instant, billing.
command_idsarray<integer>no
paymentsarray<string (uuid)>noList of UIDs of Receipts linked to Pix
end_to_end_idanyOfnoEnd To End Id of Pix - Unique identifier of the transfer
custom_dataanyOfnoHash with key and value in JSON format.
external_idstringnoExternal identifier for Pix
virtual_pix_uidstringnoUID of Pix generated by BackOffice member. (BackOffice must be enabled).
fine_typeintegernoType of fine: * 0 No fine (none) * 1 By amount (amount) * 2 By percentage (percentage) On return the data come in the fine object. Values: 0, 1, 2.
fine_amountnumbernoFine amount in reals. Required when fine_type = amount.
fine_percentagenumbernoFine percentage (0.0 to 100.0). Required when fine_type = percentage.
interest_typeintegernoType of interest: * 0 Does not apply / exempt (none) * 1 Daily amount β€” calendar days (daily_amount_calendar) * 2 Daily percentage β€” calendar days (daily_percentage_calendar) * 3 Monthly percentage β€” calendar days (monthly_percentage_calendar) * 4 Annual percentage β€” calendar days (yearly_percentage_calendar) * 5 Daily amount β€” business days (daily_amount_business) * 6 Daily percentage β€” business days (daily_percentage_business) * 7 Monthly percentage β€” business days (monthly_percentage_business) * 8 Annual percentage β€” business days (yearly_percentage_business) On return the data come in the interest object. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8.
interest_amountnumbernoDaily interest amount in reals. Required when interest_type is by amount (daily_amount_*).
interest_percentagenumbernoInterest percentage. Required when interest_type is by percentage.
reduction_typeintegernoType of reduction: * 1 By amount (amount) * 2 By percentage (percentage) * 3 Does not apply β€” removes the reduction (none) On return the data come in the reduction object. Values: 1, 2, 3.
reduction_amountnumbernoReduction amount in reals. Required when reduction_type = amount.
reduction_percentagenumbernoReduction percentage. Required when reduction_type = percentage.
discount_typeintegernoType of discount applied to the discount_* fields (null/absent = no discount): * 1 Fixed amount (fixed_amount) * 2 Fixed percentage (fixed_percentage) * 3 Early payment by amount β€” calendar days (advance_amount_calendar) * 4 Early payment by amount β€” business days (advance_amount_business) * 5 Early payment by percentage β€” calendar days (advance_percentage_calendar) * 6 Early payment by percentage β€” business days (advance_percentage_business) Early payment modes (3–6) accept only one range. On return the type comes in discounts.type. Values: 1, 2, 3, 4, 5, 6.
discount_amountnumbernoValue of 1st discount in reals. Required when discount_type is by amount.
discount_percentagenumbernoPercentage of 1st discount. Required when discount_type is by percentage.
discount_daysintegernoDays before expiration when the 1st discount is valid.
discount_second_amountnumbernoValue of 2nd discount in reals.
discount_second_percentagenumbernoPercentage of 2nd discount.
discount_second_daysintegernoDays before expiration when the 2nd discount is valid.
discount_third_amountnumbernoValue of 3rd discount in reals.
discount_third_percentagenumbernoPercentage of 3rd discount.
discount_third_daysintegernoDays before expiration when the 3rd discount is valid.
fineobjectnoFine configuration (RETURN/response as nested object). On SEND/request use the flat fields fine_type, fine_amount and fine_percentage.
reductionobjectnoReduction configuration (RETURN/response as nested object). On SEND/request use the flat fields reduction_type, reduction_amount and reduction_percentage.
interestobjectnoInterest configuration (RETURN/response as nested object). On SEND/request use the flat fields interest_type, interest_amount and interest_percentage.
discountsobjectnoDiscounts configuration (RETURN/response as nested object with up to 3 discounts). On SEND/request use the flat fields discount_*, discount_second_* and discount_third_*.
ignore_whatsappbooleannoNever send this Pix via WhatsApp
password_protected_modeintegernoPassword protection mode: 0=disabled, 1=last 4 digits, 2=first 5 digits Values: 0, 1, 2.
tagsarray<string>noTags associated with the pix
tag_liststringnoTags associated with the pix
created_via_apibooleannoIndicates if Pix was created by API
financial_provider_external_idstringnoID in the financial institution
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.charge.pix.create.

Responses

HTTPDescription
201Pix created with customer data
422Validation error

charge pix cancel​

Cancel a Pix

kobana banking charge pix cancel [PIX_UID] [OPTIONS]

PUT /v2/charge/pix/{pix_uid}/cancel

Asynchronous Processing: This endpoint is processed asynchronously and creates a cancellation command for the PIX. Cancellation of a PIX is done asynchronously, that is, when receiving the request, our API stores the request and creates a Command. This command is processed in the background and after confirmed, the Pix is cancelled. You receive in the response of this request the ID of the created command and can query it anytime. See more in List Pix Commands and View a Command.

Webhook Events

When the request is made, a pix.command.cancel.started event is triggered. Our server then begins attempts to send the cancellation to the financial institution. Only after it is confirmed at the financial institution, then the pix is cancelled in our database. At this moment the pix.command.cancel.confirmed event is triggered.

The pix.db.updated event is also triggered on confirmation of this operation.

⚠️ Attention to return payload: The response of a PIX cancellation call is the payload of a Command. Inside the command payload there is the pix key with the PIX data in question.

Path arguments: pix_uid

Responses

HTTPDescription
200Command created successfully
422Pix already cancelled

charge pix update​

Update a Pix

kobana banking charge pix update [PIX_UID] [OPTIONS]

PUT /v2/charge/pix/{pix_uid}/update

Asynchronous Processing: This endpoint is processed asynchronously and creates an update command for the PIX. PIX update is done asynchronously, that is, when receiving the request, our API stores the changes you are requesting and creates a Command. This command is processed in the background and after confirmed, the Pix is updated. You receive in the response of this request the ID of the created command and can query it anytime. See more in List Pix Commands and View a Command.

Webhook Events

When the request is made, a pix.update.requested event is triggered. Our server then begins attempts to send the change to the financial institution. Only after it is confirmed at the financial institution, then the pix is updated. At this moment the pix.update.confirmed event is triggered.

The pix.db.updated event is also triggered on confirmation of this operation.

⚠️ Attention to return payload: The response of a PIX update call is the payload of a Command. Inside the command payload there is the pix key with the PIX data in question.

Path arguments: pix_uid

Request body

NameTypeRequiredDescription
amountnumbernoAmount
pix_account_uidstring (uuid)noUID of the Pix Account to change the receiver's Pix key. This field is useful when you want to change the Pix key with the financial provider. Important: Only Pix accounts that are active (status active) are accepted.
payerobjectnoPayer data
statusstringnoPix status. opened: Open Pix charge (unpaid). [Initial State] paid: Pix charge paid. overdue: Overdue Pix charge. canceled: Pix charge canceled. generation_failed: Pix charge created, but was not registered with the bank.
expire_atstring (date-time)noDate and time of expiration. ISO8601 format
revoke_daysintegernoNumber of days active after expiration
messagestringnoRequest message to the payer
additional_infoobjectnoAdditional information for the payer
fine_typeintegernoType of fine: * 0 No fine (none) * 1 By amount (amount) * 2 By percentage (percentage) On return the data come in the fine object. Values: 0, 1, 2.
fine_amountnumbernoFine amount in reals. Required when fine_type = amount.
fine_percentagenumbernoFine percentage (0.0 to 100.0). Required when fine_type = percentage.
interest_typeintegernoType of interest: * 0 Does not apply / exempt (none) * 1 Daily amount β€” calendar days (daily_amount_calendar) * 2 Daily percentage β€” calendar days (daily_percentage_calendar) * 3 Monthly percentage β€” calendar days (monthly_percentage_calendar) * 4 Annual percentage β€” calendar days (yearly_percentage_calendar) * 5 Daily amount β€” business days (daily_amount_business) * 6 Daily percentage β€” business days (daily_percentage_business) * 7 Monthly percentage β€” business days (monthly_percentage_business) * 8 Annual percentage β€” business days (yearly_percentage_business) On return the data come in the interest object. Values: 0, 1, 2, 3, 4, 5, 6, 7, 8.
interest_amountnumbernoDaily interest amount in reals. Required when interest_type is by amount (daily_amount_*).
interest_percentagenumbernoInterest percentage. Required when interest_type is by percentage.
reduction_typeintegernoType of reduction: * 1 By amount (amount) * 2 By percentage (percentage) * 3 Does not apply β€” removes the reduction (none) On return the data come in the reduction object. Values: 1, 2, 3.
reduction_amountnumbernoReduction amount in reals. Required when reduction_type = amount.
reduction_percentagenumbernoReduction percentage. Required when reduction_type = percentage.
discount_typeintegernoType of discount applied to the discount_* fields (null/absent = no discount): * 1 Fixed amount (fixed_amount) * 2 Fixed percentage (fixed_percentage) * 3 Early payment by amount β€” calendar days (advance_amount_calendar) * 4 Early payment by amount β€” business days (advance_amount_business) * 5 Early payment by percentage β€” calendar days (advance_percentage_calendar) * 6 Early payment by percentage β€” business days (advance_percentage_business) Early payment modes (3–6) accept only one range. On return the type comes in discounts.type. Values: 1, 2, 3, 4, 5, 6.
discount_amountnumbernoValue of 1st discount in reals. Required when discount_type is by amount.
discount_percentagenumbernoPercentage of 1st discount. Required when discount_type is by percentage.
discount_daysintegernoDays before expiration when the 1st discount is valid.
discount_second_amountnumbernoValue of 2nd discount in reals.
discount_second_percentagenumbernoPercentage of 2nd discount.
discount_second_daysintegernoDays before expiration when the 2nd discount is valid.
discount_third_amountnumbernoValue of 3rd discount in reals.
discount_third_percentagenumbernoPercentage of 3rd discount.
discount_third_daysintegernoDays before expiration when the 3rd discount is valid.
created_via_apibooleannoIndicates if Pix was created by API
financial_provider_external_idstringnoID in the financial institution
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.charge.pix.update.

Responses

HTTPDescription
200Command created successfully - with pix_account_uid
422Pix paid

charge pix get​

View a Pix

kobana banking charge pix get [UID] [OPTIONS]

GET /v2/charge/pix/{uid}

Query specific information of a Pix.

Path arguments: uid

Responses

HTTPDescription
200Pix found
404Pix not found

charge pix delete​

Delete a Pix

kobana banking charge pix delete [UID] [OPTIONS]

DELETE /v2/charge/pix/{uid}

Deletes a cancelled Pix.

This operation permanently deletes the PIX from our database. Even after deletion, the PIX is counted in the volumetry for the contracted plan

Webhook Events

The pix.db.deleted event is triggered in this operation.

Path arguments: uid

Responses

HTTPDescription
204Pix deleted
404Pix not found
422Pix open

charge pix-accounts list​

List Pix Accounts

kobana banking charge pix-accounts list [OPTIONS]

GET /v2/charge/pix_accounts

Lists the Pix accounts registered in the account.

Query parameters

NameTypeRequiredDescription
pageintegernoPage Number
per_pageintegernoNumber of records per page

Responses

HTTPDescription
200Pix accounts found

charge pix-accounts create​

Create Pix Account

kobana banking charge pix-accounts create [OPTIONS]

POST /v2/charge/pix_accounts

This endpoint is used to register a new pix account.

Request body

NameTypeRequiredDescription
financial_account_uidstringyesUID of the financial account. The provider and beneficiary data are derived automatically.
keystringyesPix key
custom_namestringnoCustom name of the pix account
enabledbooleannoEnable Pix Account
defaultbooleannoDefault account

More fields and nested objects: kobana schema banking.charge.pix-accounts.create.

Responses

HTTPDescription
201Pix account created
422Invalid Pix account

charge pix-accounts get​

View a Pix account

kobana banking charge pix-accounts get [UID] [OPTIONS]

GET /v2/charge/pix_accounts/{uid}

Query specific information of a Pix account.

Path arguments: uid

Responses

HTTPDescription
200Pix account found
404Pix account not found

charge pix-accounts update​

Update Pix Account

kobana banking charge pix-accounts update [UID] [OPTIONS]

PUT /v2/charge/pix_accounts/{uid}

This endpoint is used to update a pix account.

Path arguments: uid

Request body

NameTypeRequiredDescription
custom_namestringnoCustom name of the pix account
keystringnoPix key
enabledbooleannoEnable Pix Account
defaultbooleannoDefault account
financial_account_uidstringnoUID of the financial account (to associate with an existing account)

More fields and nested objects: kobana schema banking.charge.pix-accounts.update.

Responses

HTTPDescription
200Pix account updated
404Pix account not found
422Invalid Pix key

charge pix-accounts delete​

Delete Pix Account

kobana banking charge pix-accounts delete [UID] [OPTIONS]

DELETE /v2/charge/pix_accounts/{uid}

Deletes a Pix account.

Path arguments: uid

Responses

HTTPDescription
202Pix account deleted
404Pix account not found