Skip to main content

Asset denial file

The denial file removes from an assignment batch in progress the assets you no longer want to assign. It is a single-column spreadsheet with the asset identifiers. Each listed asset is denied with the reason "Asset denied via denial file", and the others remain in the batch.

When the batch accepts a denial

The batch must be in pending_assets_insertion, completed_assets_insertion, pending_consultant_approval or pending_manager_approval. After that, the denial is rejected with TRF000042.

How to send it​

  • Through the portal: open the batch in Assets › Assignments, click Deny assets and upload the spreadsheet.
  • Through the manager API: use the same three calls as the assignment by file, with assignment_type set to assets_denial, the external_id of the batch to change and a filename ending in .csv or .xlsx. Do not send a disbursement account (TRF000092).

Format​

ItemRule
Extension.csv or .xlsx. Any other extension rejects the file with TRF000071
ColumnsOnly the first column is read. In .xlsx, the first column of the first sheet
CSV separatorComma. In a single-column file, it makes no difference
CSV encodingUTF-8, with or without BOM
First lineHeader. Use external_id, or contract_number to deny a CCB by its contract number. Any other text is treated as external_id
Empty linesIgnored

Which identifier to use​

HeaderEach line containsApplies to
external_idThe asset identifier in the batch, the same one shown on the batch screenAny asset type
contract_numberThe CCB contract numberCCB configuration only. For any other type, the file is rejected with TRF000072

The asset identifier in the batch depends on how it was assigned:

Assignment fileAsset identifier
Any CSVThe external_id column
Receivables titles CNAB (444) and discounted contract CNABThe participant control number (038–062)
CCB CNAB (500) and installment contract CNAB (400, 444 and 500)The document number (111–120)

Result​

  • Each asset found is denied. An asset that was already denied counts as denied.
  • An identifier that does not match any asset in the batch is ignored, with no warning. Check the result on the batch screen.

Examples​

recusa_por_identificador.csv
external_id
DM-000001
DM-000002
recusa_por_contrato_ccb.csv
contract_number
CCB0001

Download the example.

Errors​

CodeWhen it happensHow to fix
TRF000042The batch is not in a status that accepts a denialDeny before the batch is approved
TRF000071The file is not a valid .csv or .xlsxSave it as CSV or XLSX
TRF000072contract_number header outside a CCB configurationUse the external_id header
TRF000073The file has no identifierInclude at least one identifier after the header
TRF000092Disbursement account provided for the denial fileRemove the account from the creation request