getCardImportErrors
getCardImportErrors
Overview
This method downloads a CSV report of every row in an import batch that was classified as invalid, duplicate or unauthorized during validation. Rows classified as create or update are not included.
The error report is available as soon as the upload step is complete.
This API is part of the card import process:
createCardImport – upload and validate the CSV file.
getCardImportErrors – download the rows that failed validation (optional).
processCardImport – create and update the valid cards.
getCardImportResult – download the final outcome for every row.
This method requires the Cards:Get permission to be associated with your role.
Permissions
The permission for this api is stored in [gb_api_permissions]permission as 'Cards:Get'.
Only roles with a stored link to this permission in [gb_role_api_permissions] can run this api.
HTTP Method
Use the HTTP Method 'GET' for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/cards/imports/{import_batch_id}/errors https://api.{{environment}}.catch-e.com/fm/cards/imports/{import_batch_id}/errors https://api.test.catch-e.com/fm/cards/imports/{import_batch_id}/errors Path Parameters
Response Details
Success
200 - OK
Returns a CSV file (text/csv) with a header row and one row per failed or skipped row. The Content-Disposition header is set to attachment; filename="card-import-{import_batch_id}-errors.csv".
row_number,card_number,action,status,error_message 4,[CARD-NUMBER],create,invalid,[ERROR-MESSAGE] 204 - No Content
No error rows exist for this batch. All rows passed validation.
Error Response Details
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Found", "status": 404, "detail": "Not Found" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Acceptable", "status": 406, "detail": "Not Acceptable" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" }