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_typeset toassets_denial, theexternal_idof the batch to change and afilenameending in.csvor.xlsx. Do not send a disbursement account (TRF000092).
Format
| Item | Rule |
|---|---|
| Extension | .csv or .xlsx. Any other extension rejects the file with TRF000071 |
| Columns | Only the first column is read. In .xlsx, the first column of the first sheet |
| CSV separator | Comma. In a single-column file, it makes no difference |
| CSV encoding | UTF-8, with or without BOM |
| First line | Header. Use external_id, or contract_number to deny a CCB by its contract number. Any other text is treated as external_id |
| Empty lines | Ignored |
Which identifier to use
| Header | Each line contains | Applies to |
|---|---|---|
external_id | The asset identifier in the batch, the same one shown on the batch screen | Any asset type |
contract_number | The CCB contract number | CCB 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 file | Asset identifier |
|---|---|
| Any CSV | The external_id column |
| Receivables titles CNAB (444) and discounted contract CNAB | The 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
Errors
| Code | When it happens | How to fix |
|---|---|---|
TRF000042 | The batch is not in a status that accepts a denial | Deny before the batch is approved |
TRF000071 | The file is not a valid .csv or .xlsx | Save it as CSV or XLSX |
TRF000072 | contract_number header outside a CCB configuration | Use the external_id header |
TRF000073 | The file has no identifier | Include at least one identifier after the header |
TRF000092 | Disbursement account provided for the denial file | Remove the account from the creation request |