ops

ingestByProductIDs Trade in

Ingest by product IDs from a CSV file

post/ops/trade-ins/ingest-by-product-ids

Request body

csv_importstring required

Base64 encoded CSV containing asset IDs and trade in product IDs

provider_idstring required

Trade-in provider ID

Example request

{
  "csv_import": "abc123",
  "provider_id": "abc123"
}

Response

OK response.

failed_countinteger required

how many items are failed to ingest

skipped_countinteger required

how many items are skipped to ingest

succeeded_countinteger required

how many items are successfully ingested

total_countinteger required

how many items are in the CSV

Example response

{
  "failed_count": 1,
  "failed_items": [
    {
      "line_number": 1,
      "reason": "abc123"
    }
  ],
  "skipped_count": 1,
  "skipped_items": [
    {
      "line_number": 1,
      "reason": "abc123"
    }
  ],
  "succeeded_count": 1,
  "total_count": 1
}