Skip to content

Download an import job's failed rows

Open .md

GET/v1/api/store/{team_slug}/imports/{hash_id}/artifacts/error-csv

v1Operation ID v1_public_imports_artifacts_error_csv

Downloads the CSV of rows that failed in an import job, with the reason for each row. It is a file, not JSON.

In practice it answers 404. Nothing creates this file any more. Service pricing uploads never have one: they are all or nothing, so a job exists only when every row was saved. Printavo imports don't have one either. Only jobs from the older CSV uploader, retired in September 2026, may still have a file, until it expires 90 days after it was made; after that it answers 410. To see what failed, read the job's failed_item_count.

Permission

Any member who can import at least one kind of record: customers (permission to create and to update all customers), vendors (create and update vendors), products (create and update products) or service pricing (update services). When the Printavo importer is on, members who can manage settings qualify too. Each job is visible only to members with the permissions its kind needs: the ones above, and create and update services for a service pricing job that created a service. Printavo jobs also need the Printavo importer turned on for the team; Printavo jobs for records other than customers and vendors need permission to manage settings.

Path parameters

  • team_slugstringrequired

    Your team slug, shown as Team ID next to your API key in Profile.

    • Example your-team
  • hash_idstringrequired

    The import job's id, from the import jobs list or the upload answer. A hash id; unique keys and document numbers are refused with 404.

    • Example L4wYdA6Rav79IZ

Request body

This operation takes no request body.

Response

200The failed rows, with the original columns plus the error message and row number.

The answer is a file (text/csv), not JSON. The example saves it with curl -o.

Errors

  • 401The API key is missing or wrong (unauthenticated).

  • 403You are not allowed to do this. api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only {"message": "Insufficient Permission"}. Other refusals use the error envelope, with unauthorized or user_is_not_authorized.

    When
    You lack the permissions this job's kind needs (a plain {"message": "Insufficient Permission"} body), or it is a Printavo job and the Printavo importer is off (printavo_importer_disabled).
    Fix
    Ask a team admin for the permissions.
  • 404Not found. page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's. code: null, with a message that starts "No query results for": there is no record with that id.

    When
    The job does not exist, or it has no error file (then error.code is page_not_found). Every service pricing and Printavo job you can read answers this.
    Fix
    Check error_csv_url on the job first; null means there is no file.
  • 410

    When
    The error file expired or was removed: a plain {"message": "This import artifact has expired."} or {"message": "This import artifact is no longer available."} body.
    Fix
    The file is gone for good. Read the job's counts instead.