Emissão de um bolePix
Before registering a BolePix, an active Random Pix Key must exist in the account where the boleto will be registered.
At QI Tech, it is possible to issue a boleto linked to a Pix QR Code. Thus, the payer can make the payment of the boleto through the digitable line of the registered boleto or by scanning the Pix QR Code linked to this boleto. In cases where the payer makes the payment by scanning the Pix QR Code, the financial settlement of the payment will be instantaneous, and banking returns, as well as webhooks regarding the settlement of this boleto, will be generated in the same way as a regular boleto.
Request
Request Body
{
"occurrences": [{
"amount": 1000,
"automatic_bankruptcy_protest": false,
"bank_teller_instructions": "Não pagar após vencimento.",
"beneficiary_account_key": "8a35e639-8420-4f6c-9647-c2515e5381ef",
"beneficiary_key": "3c866e34-23fe-46c2-a8b0-e39ca4348923",
"days_to_bankruptcy_protest": 0,
"document_number": "123456/01",
"expiration": "2020-06-01",
"fine_percentage": "3",
"interest_daily_value": "0.34",
"occurrence_type": "registration",
"payer_address": "Rua Carlos Sampaio, 123",
"payer_document": "41184562067",
"payer_name": "João Ninguem",
"payer_person_type": "natural",
"payer_postal_code_root": "15800",
"payer_postal_code_suffix": "020",
"printing_policy": "no_printing",
"registration_institution_enumerator": "qi_scd",
"requester_profile": "09",
"requester_profile_code": "329-09-0001-0000002",
"pix_key": "1684629c-d52a-4941-92f5-410907316129"
}]
}
Query params
Field | Type | Description | Characters |
---|---|---|---|
use_multi_process | boolean | Indicates if the registration occurrence processing will be sent to the queue or processed sequentially. If this parameter is set to true , it is mandatory to send our banking number our_number in the registration occurrence payload. | - |
Body params
Field | Type | Description | Characters |
---|---|---|---|
occurrences * | array of objects | List of occurrences to be processed. | Object occurrences |
Object occurrences
Field | Type | Description | Characters |
---|---|---|---|
amount * | double | Boleto amount. | - |
automatic_bankruptcy_protest | boolean | Automatic protest configuration. | - |
bank_teller_instructions | string | Instructions to the cashier (Slip notes/comments). | - |
beneficiary_account_key | string | Beneficiary account key. | - |
beneficiary_key | string | Beneficiary key. | - |
days_to_bankruptcy_protest | int | Number of days for automatic bankruptcy protest. | - |
document_number | string | Document number. | - |
expiration * | string | Due date. | - |
fine_percentage | string | Fine percentage. | - |
interest_daily_value | string | Daily interest in reais. | - |
occurrence_type * | string | Type of occurrence. | - |
payer_address | string | Payer address. | - |
payer_document * | string | Payer document (CPF or CNPJ). | - |
payer_name * | string | Payer name. | - |
payer_person_type * | string | Payer person type. | - |
payer_postal_code_root | string | First five digits of the postal code. | - |
payer_postal_code_suffix | string | Last three digits of the postal code. | - |
printing_policy | string | Slip printing policy. | - |
registration_institution_enumerator * | string | It will always be qi_scd . | qi_scd |
requester_profile * | string | Wallet number. | 02 |
requester_profile_code * | string | Wallet code composed as follows: "329-wallet-agency-7_digit_account". NOTE: The default QI Tech billing wallet is number "09". | - |
notification | object | Wallet number. | Object notification |
discounts | object | List of discount information objects. | Object discounts |
guarantor_name | string | Guarantor name. | - |
guarantor_document_root | string | Base of the guarantor's CNPJ. | - |
guarantor_document_subsidiary | string | Head office or branch information of the guarantor's CNPJ. | - |
guarantor_document_digit | string | Verification digit of the guarantor's CNPJ. | - |
pix_key * | string | Pix key where the Pix QR Code linked to the BolePix will be registered. | 100 |
The “pix_key” can be a CPF, CNPJ, Email, Cellphone, or a Random Key (UUID), following these formats: CPF: Integer number with 11 digits. CNPJ: Integer number with 14 digits. Email: Text containing at least one “@”. Cellphone: Text containing the following values: “+55” + “Cellphone DDD” + “Integer Cellphone Number with a minimum of 8 and a maximum of 9 digits”. E.g., “+5511987654321“. Random Key: UUID.
Object notification
Field | Type | Description | Characters |
---|---|---|---|
document_number * | string | Document number of the user who will receive the notification. | - |
email * | string | Email of the user who will receive the notification. | - |
name * | string | Name of the user who will receive the notification. | - |
phone * | object | Object containing information about the user's phone who will receive the notification. | Object phone |
send_2_way * | boolean | Send issuance notifications of the second copy. | true/false |
send_after_due_date * | boolean | Send notifications after the due date of the boleto. | true/false |
send_before_due_date * | boolean | Send notifications before the due date of the boleto. | true/false |
send_on_protest * | boolean | Send protest notifications. | true/false |
Object phone
Field | Description | Example | Max. Characters |
---|---|---|---|
country_code | string | Phone's country code (https://ddi.guiamais.com.br/) | 3 |
area_code | string | Phone's area code (https://ddd.guiamais.com.br/) | 2 |
number | string | Phone number (numbers only) | 10 |
Object discounts
Field | Description | Example | Max. Characters |
---|---|---|---|
discount_value | float | Discount value. | 3 |
discount_number | int32 | Order in which the discount should be applied. | 2 |
discount_limit_date | date | Limit date for the discount. | 10 |
Response
Response Body
{
"bank_slips": [
{
"amount": "649.73",
"bank_slip_key": "4bc636d0-1e41-4ce6-801c-475814bf4dcf",
"bank_slip_status": "accepted",
"barcode": "32991916500000649730001090000699935200347340",
"beneficiary_account_key": "1c977186-9167-4ef1-b27d-08483429f74c",
"beneficiary_key": "f01d4877-b1cc-4f4a-a8f9-952c2cef9ca8",
"digitable_line": "32990001039000069993552003473403191650000064973",
"expiration": "2022-11-10",
"nfe_key": null,
"nfe_url": null,
"our_number": 6999352,
"participant_control_number": null,
"payer_postal_code": "38050000",
"protest_status": "not_protested",
"qr_code": {
"pix_key": "9de04466-0b02-4263-9c28-9cdc0fb638bb",
"qr_code_key": "881979cb-1c15-4dea-a05e-316caae22f5e",
"qr_code_url": "00020126970014br.gov.bcb.pix2575qrcode-h.sandbox.qitech.app/bacen/cobv/881979cb-1c15-4dea-a05e-316caae22f5e5204000053039865802BR5925LOTEAMENTO RESIDENCIAL PO6014PORTO NACIONAL61087750000062070503***630414B8"
}
}
],
"file_info": {
"beneficiary_code": null,
"beneficiary_name": null,
"file_sequence_id": null,
"file_type_identifier": null,
"file_type_literal": null,
"service_code": null,
"service_literal": null,
"wrote_at": null
},
"occurrence_stats": {
"bank_slip_edit": 0,
"bankruptcy_protest_request": 0,
"cancel_rebate": 0,
"extension": 0,
"notary_office_entry": 0,
"notary_office_exit": 0,
"notary_office_payment": 0,
"notification": 0,
"payment": 0,
"payment_notice": 0,
"payment_write_off": 0,
"protest_cancel_and_write_off_request": 0,
"protest_cancel_request": 0,
"protest_remove_request": 0,
"protest_request": 0,
"rebate": 0,
"registration": 1,
"write_off": 0
},
"semantic_errors": []
}
Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Invalid request body.\", \"translation\": \"Corpo da requisição inválido.\", \"extra_fields\": {}, \"code\": \"LEG000069\"}"
}
Response Params
Field | Type | Description | Characters |
---|---|---|---|
bank_slips | list | List with information of the registered boletos if the use_multi_process parameter is set to false . | Object Bank Slip |
file_info | list | Information about the file. | Object File Info |
occurrence_stats | object | Information about the file. | Object File Info |
semantic_errors | list | List of errors in processing each boleto. It will be returned if there is any processing error and if the use_multi_process parameter is set to false . | Object Semantic Error |
Object bank_slip
Field | Type | Description | Characters |
---|---|---|---|
amount | float | Boleto amount. | - |
bank_slip_key | uuid | Unique identification key of the boleto in QI Tech. | 36 |
bank_slip_status | enum | Unique identification key of the boleto in QI Tech. | Bank Slip Status Enumerators |
barcode | string | Barcode of the boleto. | 44 |
beneficiary_account_key | uuid | Unique identification key of the account in which the boleto was registered. | 36 |
beneficiary_key | uuid | Unique identification key of the account holder in which the boleto was registered. | 36 |
digitable_line | uuid | Digitable line of the boleto. | 47 |
expiration | string | Boleto due date. | 10 |
nfe_key | string | Unique identification key of the electronic invoice. | - |
nfe_url | string | URL of the electronic invoice. | - |
our_number | int | Our banking number. It is a sequential identification number of this boleto in relation to the account (billing wallet) in which it was registered. Its value can be provided in the boleto registration request. If not provided, QI Tech will generate a value for this field (incremental value, e.g., the 1st boleto registered on the account will have our_number with a value of 1, the 16th boleto registered on the account will have our_number with a value of 16). | - |
participant_control_number | string | Participant control number. | 10 |
payer_postal_code | string | Payer's postal code. | 8 |
protest_status | string | Protest status of the boleto, if the protest was requested. | Protest Status Enumerators |
qr_code | object | Object with information about the Pix QR Code linked to the boleto. | Object qr_code |
Object qr_code
Field | Type | Description | Characters |
---|---|---|---|
pix_key | string | Pix key where the Pix QR Code linked to the boleto was registered. | 100 |
qr_code_key | uuid | Unique identification key of the Pix QR Code linked to the boleto. | 36 |
qr_code_url | uuid | Pix Copy and Paste URL of the Pix QR Code linked to the boleto. | 36 |
Enumerators Bank Slip Status Enumerators
Enumerator | Description |
---|---|
accepted | Boleto accepted for processing |
registered | Boleto registration was completed in the boleto registration chamber |
paid | Boleto payment amount was credited to the beneficiary's account |
written_off | Boleto written off (boleto is no longer payable) |
rejected | Boleto registration rejected by the boleto registration chamber |
payment_notice | Notice that the boleto payment has been processed at the paying bank (but settlement in the beneficiary's account has not yet occurred) |
notary_office_payment_notice | Notice that the payment of a protested boleto has been processed at the paying bank (but the notary office has not yet transferred the payment, and settlement in the beneficiary's account has not yet occurred) |
Enumerators protest_status
Enumerator | Description |
---|---|
not_protested | Boleto does not have a protest request. |
protest_requested | Boleto with a protest request being processed by QI Tech. |
notary_office_entry | Boleto protest request was accepted by the notary office. |
protest_cancel_requested | Protest cancellation request being processed by QI Tech. |
notary_office_exit | Boleto protest was removed from the notary office. |
protested | Protest was confirmed by the notary office, and the Boleto is currently protested. |
paid_at_notary_office | Notary office identified the payment of the protested Boleto and is processing the payment transfer to QI Tech. |
judicially_suspended | Judicially suspended protest. |
protest_remove_requested | Protest removal request was accepted by the notary office. |