Search Documentation
Search for a documentation page...
Imports API
REST API endpoints for importing catalog content from external stores.
Import products from an external store (Shopify, WooCommerce, or any product page) into your YNS store. Imports run asynchronously — start a job and poll for progress.
Start Import
Starts an asynchronous catalog import. Returns a jobId immediately (HTTP 202) — poll GET /api/v1/imports/{jobId} for progress and results.
Shopify stores are imported at full fidelity (images, descriptions, SKUs). WooCommerce and other platforms fall back to best-effort extraction. Each product is created as a single default variant. Items are created as draft by default so you can review before publishing. Existing slugs are skipped, so re-running is safe.
Request Body
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sourceUrl | string | Yes | — | The source store URL (Shopify, WooCommerce, or any product page) |
type | string | No | "products" | What to import. Currently products only. |
status | string | No | "draft" | Status for imported items: "draft" or "published" |
Response (202)
Get Import Job
Returns a single import job by UUID. Use this to poll for progress after starting an import.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
jobId | string | Import job UUID |
Response (200)
Job Stages
| Stage | Description |
|---|---|
scraping | Fetching product data from the source URL |
importing | Creating products in the store |
completed | Import finished successfully |
failed | Import failed — check the error field |
Metadata Fields
Once the job progresses past scraping, the metadata object contains:
| Field | Type | Description |
|---|---|---|
platform | string | Detected platform: "shopify", "woocommerce", or "generic" |
currency | string | null | Source store currency |
detectedCount | number | Number of products found at the source |
imported | number | Products successfully created |
skipped | number | Products skipped (e.g. duplicate slugs) |
errors | object[] | Per-product errors: { name, error } |
List Import Jobs
Returns this store's import jobs, newest first.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Jobs per page (1-100) |
offset | number | 0 | Number of jobs to skip |