getCardImportResult
getCardImportResult
Overview
This method downloads a CSV report of the final outcome for every row in an import batch, including rows that were created, updated, skipped or failed.
The result report is only available after the batch has been processed.
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}/result https://api.{{environment}}.catch-e.com/fm/cards/imports/{import_batch_id}/result https://api.test.catch-e.com/fm/cards/imports/{import_batch_id}/result Path Parameters
Response Details
Success
200 - OK
Returns a CSV file (text/csv) with a header row and one row per uploaded row. The Content-Disposition header is set to attachment; filename="card-import-{import_batch_id}-result.csv".
row_number,card_number,action,status,error_message,card_id 1,[CARD-NUMBER],create,create,,1234 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" } { "warning_messages": {}, "validation_messages": { "fieldName": { "validationExceptionCode": "A textual description of the validation exception" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" } { "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" }