Homologation roadmap - CCB issuance
This roadmap lists every API call and webhook you must exercise in the QI Tech sandbox before going live. It covers the scope agreed for the first phase: debt simulation, issuance of a CCB for a natural person with a contract signed in your own app, disbursement to a retail store, assignment of the CCB to the fund, and cancellation. Collection and repayment of the installments stay on your side and are out of scope.
*: mandatory steps before going live
All steps must be run in the QI Tech sandbox. Money movements in sandbox are fictitious and exist only to test the API behaviour. Never use real personal data (CPF, CNPJ, identity documents, selfies) in sandbox.
Steps whose documentation column reads "provided by the QI Tech integration team" are delivered directly in the shared integration channel, together with the sandbox credentials.
1 - Sandbox registration and authentication
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| CAB0001* | Sandbox registration | Register on the QI Tech sandbox platform (sandbox.qitech.app) | Register | |
| CAB0002* | Token validation | Validate the QI Token in sandbox | Token manual (PDF) | CAB0001 |
| CAB0003* | Public key exchange | Exchange public keys on the sandbox platform | Documentation | CAB0001 and CAB0002 |
| CAB0004* | Authentication test | Sign a request and call the test endpoints | Step by step Test endpoints | CAB0003 |
| CAB0005* | Webhook configuration | Register the URL that receives QI Tech webhooks on the sandbox platform. If more than one backend will call the API, send the list of source IPs to the integration team | Documentation | CAB0001 and CAB0002 |
| CAB0006* | Webhook signature validation | Validate the signature of an incoming webhook before processing it | Documentation | CAB0005 |
2 - Debt simulation
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| SID0001* | Debt simulation | Simulate the debt with the amount to disburse, interest rate, number of installments and first due date. Call it as many times as needed to offer the borrower several installment options. The same engine computes the final CCB, so there is no gap between simulation and issuance. The response returns IOF, fees and the full installment schedule | POST /v2/credit_operation/simulation | CAB0004 |
3 - Document upload
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| UDD0001* | Upload borrower documents | Upload the identity document (front and back) and the borrower's selfie. Each upload returns a document_key that is referenced in the issuance | POST /upload | CAB0004 |
| UDD0002 | Fetch a document URL | Retrieve the download URL of a previously uploaded document | GET /document/{document_key}/url | UDD0001 |
4 - Debt issuance with pre-signed contract
QI Tech runs the regulatory KYC checks on the borrower at issuance (restriction and fraud lists, minimum age of 18 based on the birth date in the CCB). There is no credit decision on QI Tech's side; credit policy remains yours. A rejected borrower returns a KYC error from the error catalogue.
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| EMD0001* | Issue a signed debt (natural person) | Create the CCB in a single call with the borrower data, the financial conditions, the disbursement account and the signature evidence collected in your app. Disbursement follows automatically | POST /signed_debt | SID0001 and UDD0001 |
| EMD0002* | Signature evidence | Fill additional_data.contract.signatures[].signature with ip_address, timestamp, geolocation (latitude and longitude), fingerprint_device and signature_file (the agreement shown to the borrower). Send the borrower's selfie document_key in borrower.attached_documents_list[].selfie. QI Tech appends this evidence to the end of the CCB as the digital signature. The selfie is mandatory because several borrowers may share the IP address of a store | Signature object Attached documents | EMD0001 |
| EMD0003 | Custom contract fields | Send the additional data to be printed on the CCB, such as the identification of the purchased item | Payload agreed with the QI Tech integration team | EMD0001 |
| EMD0004* | Idempotency | Generate a unique requester_identifier_key (UUID) per operation and persist it before calling the API. Re-sending the same key, or the same contract_number, returns COP000118 or COP000186 instead of creating a second debt. After a timeout, query the debt (CON0001) before retrying | Error catalogue | EMD0001 |
| EMD0005* | Disbursement to the store | Point disbursement_bank_accounts to the retail store (or to your own account) and confirm the funds reach it | Disbursement payload examples | EMD0001 |
5 - Contract generation and debt webhooks
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| FOR0001* | issued webhook | Receive the webhook confirming the debt was created, with the installment schedule (amortization and interest broken down per installment) | Webhooks Debt webhooks reference | EMD0001 |
| FOR0002* | generated_document webhook | Receive the URL of the signed CCB PDF in data.contract.urls. The PDF is generated asynchronously a few seconds after issuance, so the issuance response does not wait for it | Webhooks | FOR0001 |
| FOR0003* | Duplicate and out-of-order webhooks | Webhooks may be delivered more than once (after a timeout) and out of order. Process them idempotently, keyed by key and status, and answer HTTP 200 within the timeout | Webhook delivery | CAB0005 |
| FOR0004 | Re-send missed events | List the events whose delivery failed and request a new delivery (up to 14 days after the event) | Notification re-send | CAB0005 |
| FOR0005 | Debt status reference | Map every status your system may receive during the debt lifecycle | Debt statuses | FOR0001 |
6 - Disbursement
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| DES0001* | disbursed webhook | Receive the confirmation that the funds were sent to the store (or to you), with the payment receipt | Webhooks Disbursement | EMD0005 |
| DES0002 | Disbursement mode | Agree with QI Tech whether disbursement is instant (24/7, right after issuance) or consolidated in a daily batch. Both modes are automatic; only the timing of the disbursed webhook changes | Configuration on the QI Tech side, no endpoint | DES0001 |
| DES0003 | Resubmit bank details | When a disbursement fails, update the bank account or the disbursement date so the debt is reprocessed | Resubmit bank account | DES0001 |
| DES0004 | Simulate a failed disbursement | Use the sandbox fixtures to force a disbursement failure and exercise DES0003 | Simulating errors in sandbox | DES0003 |
7 - Debt inquiry
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| CON0001* | Query by requester_identifier_key | Confirm whether a debt exists after a timeout, before retrying the issuance | GET /v2/credit_operation/requester_identifier_key/{key} | EMD0001 |
| CON0002 | Query by credit_operation_key | Retrieve a debt with the key returned at issuance | GET /v2/credit_operation/{key} | EMD0001 |
| CON0003 | List debts | Filter debts by status and period, with pagination | GET /debt | EMD0001 |
8 - Assignment to the fund
Assignment of the CCBs to the fund (FIDC) is fully operated by QI Tech. No call is required on your side; you only consume the webhooks. QI Tech's operational responsibility over the debt ends at assignment, except for the 7-day withdrawal described in section 9.
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| CES0001* | assignment.status_change webhook | Receive the notification that the CCB was included in an assignment and track its status | Assignment inquiry | DES0001 |
| CES0002 | Query an assignment | Retrieve the assignment and the debts it contains with the assignment_key from the webhook | GET /v2/assignment/{assignment_key} | CES0001 |
9 - Cancellation
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| CAN0001* | Cancel before disbursement | Cancel a debt that was issued but not yet disbursed | PATCH /debt/{debt_key}/cancel | EMD0001 |
| CAN0002* | canceled webhook | Receive the cancellation confirmation with its reason | Debt webhooks reference | CAN0001 |
| CAN0003* | Withdrawal within 7 days via Pix refund | Brazilian consumer law lets the borrower cancel the debt up to 7 days after disbursement. Generate the refund Pix QR code; once the borrower pays it, the debt is cancelled automatically and, if it was already assigned, the amount is returned to the fund. This endpoint must be enabled by QI Tech support before use | Overview POST /debt/reversal | DES0001 |
| CAN0004 | Withdrawal within 7 days via QI account | Alternative to CAN0003 when you refund the borrower yourself: the reversal amount is debited from your QI Tech account, with no action from the borrower. One of CAN0003 or CAN0004 is mandatory | PUT /credit_operation/{key}/reversal | DES0001 |
10 - Error handling
| Code | Step | Description | Documentation | Prerequisite |
|---|---|---|---|---|
| ERR0001* | Error catalogue | Map the error codes your integration must handle: validation, KYC, duplicate keys and disbursement failures | Error catalogue | CAB0004 |