Skip to main content
Cards

Download the error report CSV for a card import batch

Download a CSV report containing all rows from the specified import batch that were classified as invalid, duplicate, or unauthorized during validation.

GET
/fm/cards/imports/{import_batch_id}/errors

The CSV file includes a header row followed by one data row per failed or skipped validation row. Rows classified as create or update are not included in this report.

Returns 404 if the specified batch does not exist.

This method requires the Cards:Get permission to be associated with your role.

CSV columns:

ColumnDescription
row_number1-based row number from the original upload file (excluding the header row)
card_numberCard number from the uploaded row
actionIntended action: create, update, or blank if action could not be determined
statusRow classification: invalid, duplicate, or unauthorized
error_messageHuman-readable description of why the row failed validation
Authorizationstringheaderrequired

For accessing the API a valid token must be passed in all the queries in the 'Authorization' header.

A valid token is generated by the API and returned by the /authenticate method by supplying a valid username and password.

The following syntax must be used in the 'Authorization' header :

Bearer aaaaaa/bbbbbb.ccccccc.dddddd
import_batch_idstringrequired

The import_batch_id returned from the upload step.

Maximum string length: 10
Pattern: ^[1-9]{1}[0-9]*$

Response

text/csv

CSV file containing all rows that failed or were skipped during validation. Content-Disposition header will be set to attachment; filename="card-import-{import_batch_id}-errors.csv".

bodystring