---
title: "Import a products file"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Import a products file

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/data-files/products/imports</code>
</div>
</div>

Saves what the preview of the same file said: every new and changed product, all in one step. Invalid rows are not imported; the answer names them again. Refused with 409 `list_changed` when a product was added, changed or deleted since the preview. Preview the file again. Any credential may call this, as for `POST /v1/products`.

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | What was saved. |
| `400` | The body was refused, or the file is no products file (`invalid_data_file`, `invalid_json`). Nothing was saved. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `409` | The products changed since the preview (`list_changed`). Nothing was saved. |
| `502` | The engine could not run, so nothing was saved (`engine_unavailable`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/import-a-products-file/index.mdx
