Skip to main content

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

Sandbox only

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​

CodeStepDescriptionDocumentationPrerequisite
CAB0001*Sandbox registrationRegister on the QI Tech sandbox platform (sandbox.qitech.app)Register
CAB0002*Token validationValidate the QI Token in sandboxToken manual (PDF)CAB0001
CAB0003*Public key exchangeExchange public keys on the sandbox platformDocumentationCAB0001 and CAB0002
CAB0004*Authentication testSign a request and call the test endpointsStep by step
Test endpoints
CAB0003
CAB0005*Webhook configurationRegister 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 teamDocumentationCAB0001 and CAB0002
CAB0006*Webhook signature validationValidate the signature of an incoming webhook before processing itDocumentationCAB0005

2 - Debt simulation​

CodeStepDescriptionDocumentationPrerequisite
SID0001*Debt simulationSimulate 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 schedulePOST /v2/credit_operation/simulationCAB0004

3 - Document upload​

CodeStepDescriptionDocumentationPrerequisite
UDD0001*Upload borrower documentsUpload the identity document (front and back) and the borrower's selfie. Each upload returns a document_key that is referenced in the issuancePOST /uploadCAB0004
UDD0002Fetch a document URLRetrieve the download URL of a previously uploaded documentGET /document/{document_key}/urlUDD0001

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.

CodeStepDescriptionDocumentationPrerequisite
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 automaticallyPOST /signed_debtSID0001 and UDD0001
EMD0002*Signature evidenceFill 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 storeSignature object
Attached documents
EMD0001
EMD0003Custom contract fieldsSend the additional data to be printed on the CCB, such as the identification of the purchased itemPayload agreed with the QI Tech integration teamEMD0001
EMD0004*IdempotencyGenerate 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 retryingError catalogueEMD0001
EMD0005*Disbursement to the storePoint disbursement_bank_accounts to the retail store (or to your own account) and confirm the funds reach itDisbursement payload examplesEMD0001

5 - Contract generation and debt webhooks​

CodeStepDescriptionDocumentationPrerequisite
FOR0001*issued webhookReceive 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 webhookReceive 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 itWebhooksFOR0001
FOR0003*Duplicate and out-of-order webhooksWebhooks 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 timeoutWebhook deliveryCAB0005
FOR0004Re-send missed eventsList the events whose delivery failed and request a new delivery (up to 14 days after the event)Notification re-sendCAB0005
FOR0005Debt status referenceMap every status your system may receive during the debt lifecycleDebt statusesFOR0001

6 - Disbursement​

CodeStepDescriptionDocumentationPrerequisite
DES0001*disbursed webhookReceive the confirmation that the funds were sent to the store (or to you), with the payment receiptWebhooks
Disbursement
EMD0005
DES0002Disbursement modeAgree 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 changesConfiguration on the QI Tech side, no endpointDES0001
DES0003Resubmit bank detailsWhen a disbursement fails, update the bank account or the disbursement date so the debt is reprocessedResubmit bank accountDES0001
DES0004Simulate a failed disbursementUse the sandbox fixtures to force a disbursement failure and exercise DES0003Simulating errors in sandboxDES0003

7 - Debt inquiry​

CodeStepDescriptionDocumentationPrerequisite
CON0001*Query by requester_identifier_keyConfirm whether a debt exists after a timeout, before retrying the issuanceGET /v2/credit_operation/requester_identifier_key/{key}EMD0001
CON0002Query by credit_operation_keyRetrieve a debt with the key returned at issuanceGET /v2/credit_operation/{key}EMD0001
CON0003List debtsFilter debts by status and period, with paginationGET /debtEMD0001

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.

CodeStepDescriptionDocumentationPrerequisite
CES0001*assignment.status_change webhookReceive the notification that the CCB was included in an assignment and track its statusAssignment inquiryDES0001
CES0002Query an assignmentRetrieve the assignment and the debts it contains with the assignment_key from the webhookGET /v2/assignment/{assignment_key}CES0001

9 - Cancellation​

CodeStepDescriptionDocumentationPrerequisite
CAN0001*Cancel before disbursementCancel a debt that was issued but not yet disbursedPATCH /debt/{debt_key}/cancelEMD0001
CAN0002*canceled webhookReceive the cancellation confirmation with its reasonDebt webhooks referenceCAN0001
CAN0003*Withdrawal within 7 days via Pix refundBrazilian 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 useOverview
POST /debt/reversal
DES0001
CAN0004Withdrawal within 7 days via QI accountAlternative 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 mandatoryPUT /credit_operation/{key}/reversalDES0001

10 - Error handling​

CodeStepDescriptionDocumentationPrerequisite
ERR0001*Error catalogueMap the error codes your integration must handle: validation, KYC, duplicate keys and disbursement failuresError catalogueCAB0004