Start an import from an uploaded file

​

Starts the import of a file uploaded to the address from POST /v1/inventory/bulk/import/uploads. The import runs in the background: this call returns a job right away, and you poll GET /v1/inventory/bulk/jobs/{jobId} until status is completed; failed rows are listed in the error report.

The import always adds or updates the lines in the file and leaves every other line as it is. Rows that name a tag or a location you do not have fail with TAG_NOT_FOUND or LOCATION_NOT_FOUND in the report: an import never creates labels. A file holds up to 5,000,000 rows and 256 MiB, also once decompressed.

Starting the same upload again returns the same job. While an import, a bulk edit or a price update runs, a new start is refused with INVENTORY_BUSY.

Send an Idempotency-Key header to make retries safe: the same key returns the same response for 24 hours.

Requires the inventory:write scope.

Path Parameters

  • The uploadId from POST /v1/inventory/bulk/import/uploads. Path parameter.

Body

application/json
  • How to read the file: csv or json for the CardNexus row layout POST /v1/inventory/bulk/export produces, or eu_marketplace_stock, us_marketplace_seller or third_party_tool_export for a stock file used as downloaded. May be left out for a text/csv or application/json upload, where it follows the content type. Required for a gzip upload and for the three stock-file layouts.

    values
    csvjsoneu_marketplace_stockus_marketplace_sellerthird_party_tool_export

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/inventory/bulk/import/uploads/{uploadId}/start
curl 'https://public-api.cardnexus.com/v1/inventory/bulk/import/uploads/{uploadId}/start' \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "format": "csv"
}'
{
  "job": {
    "id": "6848a3f0c8d4e9f7a6b5c4e1",
    "kind": "import",
    "status": "pending",
    "format": "csv",
    "mode": "upsert",
    "counts": null,
    "progress": 0,
    "errorMessage": null,
    "downloadUrl": null,
    "errorReportUrl": null,
    "expiresAt": null,
    "createdAt": "2026-10-22T09:20:45.000Z"
  }
}