Skip to main content

Create Products from Mappings

POST 

/api/shopify/:integrationInstance/create-products-from-mappings

Queues a background operation that creates new SKU.io products from unmapped Shopify products, populating fields according to the configured field mappings. The endpoint returns immediately with status "queued".

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token.

Body - exactly one selection strategy is required:

  • ids (array of integers, max 1000): specific Shopify product IDs (SKU.io row IDs).
  • process_all (boolean): process every eligible product on the instance.
  • filters (object): server-side selection, e.g. {"unmapped_only": true, "created_after": "2024-01-01"}.

Response field tracked_job_log_id is the identifier of the background progress record created for this run, so the run's progress and completion summary can be followed after the request returns. It is null when the request is not attributed to a user.

Returns 400 if no strategy is given, if more than 1000 ids are sent, or if no field mappings are configured yet.

Request

Responses

OK

Response Headers
    Content-Type