Clonely App

Collection and store copies

View Markdown

A collection or store copy runs in the background, like a task in the app. You start it, check on it until it finishes, then read what happened to each product. The copies you start through the API also show on the app’s Tasks page, and copies started in the app show here.

POST /copies

Starts a collection or store copy. Clonely checks the source the same way the copy page does, then queues the copy and answers 202 with the copy.

FieldType
kind"collection" or "store"Required.
sourceUrlstringRequired. A collection URL for collection, any URL of the store for store.
destinationobjectThe collection to add the products to. See destination. Leave it out to add them to no collection.
sourcePasswordstringThe storefront password, if the source store has one. Used once to log in, never stored.
optionsobjectSettings for this copy only. See options.
applyToEachobjectCategory and handle text for each product. See applyToEach.
curl https://app.clonelyapp.com/api/v1/copies \
  -H "Authorization: Bearer $CLONELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "collection",
    "sourceUrl": "https://supplier.example.com/collections/boots",
    "destination": { "collectionHandle": "boots" },
    "options": { "onDuplicate": "update", "updateMatch": "copied", "updatePrice": true },
    "applyToEach": { "handleStart": "acme-" }
  }'

Only one copy of the same source into the same collection can be pending or running at a time. A second one gets 409 copy_running, and copyId in the error names the copy that is still going. The check covers existing collections and copies with no destination. A copy with newCollectionTitle always starts, since it makes a new collection.

Starting is not idempotent. If the request times out on your side, look for the copy with GET /copies before you try again.

Errors: 400 (invalid_request, invalid_source, password_required, password_wrong, collection_failed), 409 (copy_running, reconnect_required), 503 shopify_unavailable. See Errors.

GET /copies

Lists collection and store copies, newest first. Single-product copies are in GET /products.

Query parameter
statusPENDING, IN_PROGRESS, COMPLETED, FAILED or CANCELLED.
kindcollection or store.
sourcePart of the source URL, like supplier.example.com.
sinceCopies started at or after this time, in ISO 8601 with a time zone, like 2026-11-30T00:00:00Z.
limit1 to 50. Default 25.
cursornextCursor from the previous page.
curl "https://app.clonelyapp.com/api/v1/copies?status=IN_PROGRESS&limit=10" \
  -H "Authorization: Bearer $CLONELY_API_KEY"
{
  "data": [ { "id": "cmx2zsul80000mn1va6so6jbt", "kind": "collection", "status": "IN_PROGRESS", "...": "..." } ],
  "nextCursor": "eyJhdCI6IjIwMjYtMTEtMzBUMDg6MTQ6NTIuMTI0WiJ9"
}

GET /copies/{id}

Returns one copy. A copy that doesn’t exist, or belongs to another store, is 404 not_found.

curl https://app.clonelyapp.com/api/v1/copies/cmx2zsul80000mn1va6so6jbt \
  -H "Authorization: Bearer $CLONELY_API_KEY"

GET /copies/{id}/products

Lists the result for each product, newest first. It is the Task Log on the task page, with the reason for products that failed or were saved with issues.

Query parameter
resultOnly this result, like failed.
limit1 to 50. Default 25.
cursornextCursor from the previous page.
curl "https://app.clonelyapp.com/api/v1/copies/cmx2zsul80000mn1va6so6jbt/products?result=failed" \
  -H "Authorization: Bearer $CLONELY_API_KEY"
{
  "data": [
    {
      "handle": "acme-trail-boot",
      "storeHandle": null,
      "sourceHandle": "trail-boot",
      "result": "failed",
      "message": "Title can't be blank",
      "at": "2026-11-30T08:14:58.878Z"
    }
  ],
  "nextCursor": null
}
Field
handleThe URL handle this copy gives the product.
storeHandleThe handle of the matching product in your store, when it differs from handle (a match by SKU). Set for updates and for skips in update mode; null for skips in skip mode.
sourceHandleThe product’s handle in the source store.
resultOne of the product results.
messageWhy the product failed or was saved with issues, when known. Usually Shopify’s own error text.
atWhen the result was recorded.

There is one row per recorded result. A copy that was paused and then resumed can record the same product more than once.

POST /copies/{id}/cancel

Cancels a pending or running copy and returns it. No request body.

The copy stops after the product it is working on. Products already copied stay in your store. Cancelling a copy that is already CANCELLED returns it unchanged with 200. A COMPLETED or FAILED copy can’t be cancelled and gets 409 not_cancellable.

curl -X POST https://app.clonelyapp.com/api/v1/copies/cmx2zsul80000mn1va6so6jbt/cancel \
  -H "Authorization: Bearer $CLONELY_API_KEY"

The copy object

{
  "id": "cmx2zsul80000mn1va6so6jbt",
  "kind": "collection",
  "status": "COMPLETED",
  "message": null,
  "sourceUrl": "https://supplier.example.com/collections/boots",
  "destinationCollectionId": "gid://shopify/Collection/520855322904",
  "productsCopied": 41,
  "productsTotal": 44,
  "totalIsEstimate": false,
  "outcomes": {
    "added": 38, "updated": 3, "savedWithIssues": 0,
    "skippedAlreadyExists": 2, "skippedUnchanged": 0, "skippedNotCopied": 0,
    "failed": 1, "waitingForVariantLimit": 0
  },
  "options": { "publish": true, "onDuplicate": "update", "...": "..." },
  "applyToEach": { "categoryId": null, "categoryName": null, "handleStart": "acme-", "handleEnd": null },
  "retryAfter": null,
  "stoppedAtProductLimit": false,
  "createdAt": "2026-11-30T08:14:52.124Z",
  "updatedAt": "2026-11-30T08:16:21.430Z"
}
Field
idThe copy’s ID.
kindcollection or store.
statusSee statuses.
messageWhy the copy is paused, retrying or failed, as the task page shows it. null otherwise.
sourceUrlThe URL the copy reads from.
destinationCollectionIdThe collection products are added to, or null.
productsCopiedProducts added, updated or saved with issues so far. It counts copy events, so a copy that was paused and resumed can count a product twice. For exact numbers, use outcomes.
productsTotal0 until the copy starts reading the source. While the copy runs, it is the number of products in the source. When it completes, it is the number of products the copy processed.
totalIsEstimatetrue until the copy is COMPLETED, while productsTotal can still change.
outcomesDistinct products for each result, as on the task page. One product can count under two results (for example added, then skippedAlreadyExists after a resume), so the numbers can add up to more than the number of products. failed leaves out products that later got another result.
optionsEvery option the copy runs with, saved settings and overrides combined. null for copies started in the app without advanced options, which read the saved settings when they start.
applyToEachcategoryId, categoryName, handleStart and handleEnd, or null for each one not used.
retryAfterWhen a paused copy resumes. null if it isn’t paused.
stoppedAtProductLimittrue if the copy stopped at Shopify’s limit of 25,000 products for a storefront listing. The source may have more products; copy its collections one by one to get the rest.
createdAt, updatedAtISO 8601 times.

Statuses

Status
PENDINGQueued, or paused until retryAfter (for example at Shopify’s daily variant limit). message says why it is paused.
IN_PROGRESSCopying products.
COMPLETEDFinished. Some products may still have failed; check outcomes.
FAILEDStopped on an error. message says why.
CANCELLEDCancelled in the app or through the API.

Product results

ResultTask page label
addedAddedCreated in your store.
updatedUpdatedAlready in your store and updated, because onDuplicate is update.
savedWithIssuesSaved with issuesCreated or updated, but part of it failed. message says what.
skippedAlreadyExistsSkipped (already exists)Already in your store, and onDuplicate is skip.
skippedUnchangedSkipped (unchanged since the last copy)Nothing changed at the source since the last copy, so there was nothing to update.
skippedNotCopiedSkipped (no record of a Clonely copy)A matching product is in your store, but Clonely didn’t copy it and updateMatch is copied.
failedFailedNot copied. message says why, when known.
waitingForVariantLimitWaiting for variant limitWaiting for Shopify’s daily variant limit to reset. The copy carries on by itself.