---
title: "ingestByProductIDs Trade in"
method: POST
path: "/ops/trade-ins/ingest-by-product-ids"
tags: ["ops"]
---

# ingestByProductIDs Trade in

`POST /ops/trade-ins/ingest-by-product-ids`

Ingest by product IDs from a CSV file

## Request body

- IngestByProductIDsPayload — Payload ingesting trade in product IDs
  - `csv_import` string, required — Base64 encoded CSV containing asset IDs and trade in product IDs
  - `provider_id` string, required — Trade-in provider ID

## Response `200`

OK response.

- IngestByProductIDsResult
  - `failed_count` integer, required — how many items are failed to ingest
  - `failed_items` UnsuccessfulProductIDIngestion[], required — A list of failed product ID ingestions
    - `line_number` integer, required — The line number of the CSV where it has failed
    - `reason` string, required — The reason why it has failed
  - `skipped_count` integer, required — how many items are skipped to ingest
  - `skipped_items` UnsuccessfulProductIDIngestion[], required — A list of skipped product ID ingestions
    - `line_number` integer, required — The line number of the CSV where it has failed
    - `reason` string, required — The reason why it has failed
  - `succeeded_count` integer, required — how many items are successfully ingested
  - `total_count` integer, required — how many items are in the CSV

---

[API](https://skmtc.net/topi/apis/topi-public-api.md) · [All operations](https://skmtc.net/topi/apis/topi-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/topi/topi-public-api/revisions/f4208dbc3eb3/schema)
