/v1/postbatches/{id}/importImport status
The latest import with its status (UPLOADED, PARSING, PARSED, MAPPED, PROCESSING, DONE, FAILED, CANCELLED, EXPIRED), encoding, delimiter, headers, sample rows, row count, the proposed and confirmed mapping with its issues, the processing counts per outcome, errors, the number of rows in the error file and when the file and its rows were purged (7 days after the Postbatch was approved or cancelled; an import untouched for 30 days expires).
items.readPath parameters
idstringrequiredReturns
25 fields of the 200 answer
idstringrequiredpostbatchIdstringrequireduploadIdstringrequiredkindenumrequiredAn import is an ingestion of kind postbatch_file
postbatch_filepostflow_batchpostflow_filestatusenumrequiredUPLOADEDPARSINGPARSEDMAPPEDPROCESSINGDONEFAILEDCANCELLEDEXPIREDencodingstring or nullrequireddelimiterstring or nullrequiredheadersarray of stringrequiredsampleRowsarray of objectsrequiredrowCountinteger or nullrequiredmalformedRowsarray of integerrequiredtargetsarray of objectsrequired3 fields
namestringrequiredrequiredbooleanrequiredkindenumrequiredrecipientvariablelistFieldgroupproposedMappingobject or nullrequiredmappingSourcestring or nullrequiredmappingobject or nullrequiredissuesarray of objectsrequired5 fields
codeenumrequiredunknown_targetunknown_columnunmapped_requiredunused_columnempty_expressionseverityenumrequirederrorwarningmessagestringrequiredtargetstringcolumnstringrowCountsobjectrequiredCounts per outcome: total, processed, created, held (valid), invalid (needsAttention), suppressed, duplicates and refused (lines that could not be read)
errorsarray of objectsrequired3 fields
codestringrequiredmessagestringrequiredlineintegererrorRowsinteger or nullrequiredRows in the error file once processed; null before, and after the purge
purgedAtdate-time or nullrequiredWhen the file, its rows and its error file were deleted: 7 days after the Postbatch was approved or cancelled, or when an import untouched for 30 days expired; the counts stay
parsedAtdate-time or nullrequiredstartedAtdate-time or nullrequiredfinishedAtdate-time or nullrequiredcreatedAtdate-timerequiredupdatedAtdate-timerequired