Skip to main content

Transfer between fund accounts

This resource allows transferring amounts between two accounts belonging to the same fund, debiting the source account and crediting the target account.

Available on
ProfileHostRequired permission
Managermanager-apiWrite

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/transfer/fund_class/{fund_class_key}/internal_transfer
METHOD
POST

Path Params​

FieldTypeDescription
fund_class_keystringUnique identifier key of the fund at QI DTVM
Request Body
{
"amount": 15000,
"description": "Transferência para a conta de cobrança",
"origin_key": "3f2b8c1d-4e5a-4b6c-8d7e-9f0a1b2c3d4e",
"origin_type": "manual_transfer",
"source_account_key": "9c1d0c18-01ea-4c32-a878-1c6391f9aa44",
"target_account_key": "6b5335ed-1380-4348-9520-8998ca6e388b",
"transfer_type": "pix"
}

Body Params​

FieldTypeRequiredDescription
amountintegerrequiredAmount to be transferred, in cents (e.g., 15000 = R$ 150.00). Must be greater than zero.
descriptionstringrequiredTransfer description. Up to 255 characters.
origin_keystringrequiredYour identifier (UUID) for this transfer. A second transfer with the same origin_key is refused (TSF000022) while the first one is not canceled.
origin_typestringrequiredSend manual_transfer.
target_account_keystringrequiredKey of the account to be credited (target).
source_account_keystringoptionalKey of the account to be debited (source). When omitted, the fund's main account is used.
transfer_typestringoptionalpix or wire_transfer (TED), limited to what the source account supports (see account_configuration in Retrieving Account Information). Default: wire_transfer.

Both accounts must belong to the fund, be open and be different from each other.

Response​

STATUS
201
Response Body
{
"internal_transfer_key": "1d4c2b7a-8e9f-4a0b-b1c2-d3e4f5a6b7c8",
"internal_transfer_status": "pending_validation"
}
FieldTypeDescription
internal_transfer_keystringIdentifier of the transfer at QI Tech.
internal_transfer_statusstringStatus of the transfer at creation time: pending_validation.

How to confirm the transfer​

This transfer does not send a webhook and there is no endpoint to query its status. To confirm it was completed, check the account statements in Retrieving Account Transactions: the debit appears in the source account and the credit in the target account, with the description you sent.

In case of error, resend the request: a transfer that was already created is refused with TSF000022, so you do not transfer twice. See Retry and duplicates.

Errors​

StatusCodeWhen it happens
409TSF000022A transfer with this origin_key already exists. Do not resend.
400TSF000008amount equal to or less than zero.
400TSF000012Invalid origin_type.
400TSF000030Invalid transfer_type.
400TSF000035The source account does not accept this transfer_type.
400TSF000049The fund's cash has already been closed for the day.
400TSF000020One of the accounts does not belong to the fund.
400TSF000018One of the accounts is not open.
400TSF000036Source account is the same as the target account.
404TSF000005The fund_class_key does not exist.
403TSF000034The fund does not belong to your manager.
400QIT000001Invalid body (required field missing, wrong type or field not accepted).

Authentication, permission and host errors: see API Errors.