ops
ops-trade-ins

Import trade-ins by product IDs

Changed on

Ingest by product IDs from a CSV file

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

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/trade-ins/ingest-by-product-ids
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-trade-in:edit

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
}

Changes

    • info

      api operation id Trade in.ingestByProductIDs removed and replaced with Trade in#ingestByProductIDs

    • info

      api operation id Trade in#ingestByProductIDs removed and replaced with Trade in.ingestByProductIDs

    • info

      api tag ops-trade-ins added