Duplicate a product with Claude or the REST API
How to duplicate a product in Shoporama with Claude or the REST API. The copy is always created as a draft, and you can override the name, EAN, SKU, price, and URL in the same call.
If you need a sister product or a variation of a product you already sell, you do not have to build it from scratch. Shoporama has a tool that duplicates an existing product in the same store, so you can start from a finished product and change only what is different. You find the tool in two places: as the product_copy action when you work with Claude, and as the POST /product/{id}/copy call in our REST API.
For both store owners and developers
If you just want help with day-to-day operations, ask Claude to copy the product in plain language. If you are building a permanent integration, call the same endpoint through the REST API. Both use the same function under the hood, so the result is identical.
How to duplicate a product with Claude
You need the ID of the product you want to copy. If you are not sure where to find it, read Find the ID of a product, a category, or an order. Once you know the ID, just describe what you want, for example:
"Make a copy of product 227429, call it 'Sister T-shirt', give it EAN 5799999000011 and price 149.50, and keep it as a draft."
Claude creates the copy, sets the name, EAN, and price you asked for, and leaves it as a draft, so you can review it before it appears in your store. For Claude to copy products, the Catalog area must be set to Read and edit under your AI tools. If it is set to Read only, Claude can see your products but cannot create the copy, and if it is Off, Claude has no access to your products at all. You can read more in Choose which tools Claude can use in your store.
What the copy includes
A copy includes everything that describes the product itself, so you rarely have to start over. The following is copied automatically:
- The product name with " (kopi)" (Danish for "copy") added to the end, unless you specify a different name
- Price and sale price
- All descriptions, both the short and the long one
- Meta and SEO fields
- All images, which are physically duplicated, so the copy has its own image files
- Categories and main category
- Product labels
- Related products
- The variant profile with its attributes and variant values, for example size, plus any customer input fields the customer fills in
- Extra fields (extension data)
- A new, unique URL, so the copy does not conflict with the source product's address
Some things are deliberately left out, because they must be unique to each product or make the most sense to set yourself. The following is not copied by default:
- EAN/barcode (gtin): the copy gets no barcode, so two products never share the same EAN
- Item number/SKU (own_id): the source product's item number is not carried over
- Stock quantity: stock is event-based and is never copied. The copy starts with no stock, so you decide when it can be sold
- Similar products: the list of similar products is not carried over
- Canonical: by default, the copy is a standalone product and does not point its canonical back to the source
Override fields in the same call
You can give the copy its own identity the moment it is created. This is useful because it means a copy is never online with the source product's name or EAN, not even for a moment. You can set the following fields in the copy call itself:
- name: override the copy's name. The default is the source product's name plus " (kopi)"
- gtin: set the copy's EAN/barcode. The default is no barcode
- own_id: set the copy's item number/SKU. By default, the source product's item number is not used
- price: override the price. The default is the same price as the source product
- rewrite_url: override the URL slug. The default is a unique slug that is generated automatically
- is_online: set it to true to publish the copy right away. The default is false, which means draft
Also copy EAN, SKU, or similar products (options)
Sometimes you want exactly the fields that are not copied by default. For that, there are four options, all turned off by default:
- copy_gtin: include the source product's EAN. Be aware that this creates a duplicate barcode, so only use it if you have a reason to
- copy_own_id: include the source product's item number/SKU
- copy_similar: copy the list of similar products
- canonical_to_source: point the copy's canonical to the source product. This is useful for true duplicate variants, where you want to consolidate the SEO signals on one product
If you set both an override and the matching option, the override wins. For example, if you specify both gtin and copy_gtin, the copy uses the EAN you entered, not the source product's.
Draft by default
A copy is always created as a draft, which means it is hidden from your store, unless you explicitly ask for it to be online. This is intentional. It means a copy is never visible in your store with the source product's name or barcode in the moments between when it is created and when you have adjusted it. You can take your time to check the name, price, images, and variants, and only then put the copy online. If you want to skip that step and publish right away, simply set is_online to true in the call.
Copy a product with the REST API
If you are building an integration, call the endpoint directly. Copying requires a token with write access, so make sure your key has write or full access. If you do not have a key yet, read Find or create an API key, and see the general guide in REST API.
The simplest copy needs no body. The copy becomes a draft with the source product's name plus " (kopi)":
curl -X POST -H "Authorization: YOUR-API-KEY" \ https://dinshop.dk/REST/product/227429/copy
If you want to create a sister product with its own identity and publish it right away, send the fields in a JSON body:
curl -X POST -H "Authorization: YOUR-API-KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Sister T-shirt","gtin":"5799999000011","own_id":"SIS-001","price":149.50,"rewrite_url":"sister-t-shirt","is_online":true}' \
https://dinshop.dk/REST/product/227429/copy
You send the options the same way. Here, the source product's EAN is included, and the copy is set to point its canonical back to the source:
curl -X POST -H "Authorization: YOUR-API-KEY" \
-H "Content-Type: application/json" \
-d '{"copy_gtin":true,"canonical_to_source":true}' \
https://dinshop.dk/REST/product/227429/copy
The response is 201 Created with the full new product, including its new product_id, so you can keep working with the copy in the same flow.
Frequently asked questions
Does the copy go online right away, so my customers can see it?
No. A copy is always created as a hidden draft, so no customers see it. It only appears in your store when you choose to make it visible, or if you set is_online to true in the call itself. So you can safely review it first.
How do I find the product ID I need?
The ID is in the product's address in the admin and in the product list. Without the ID, the tool cannot know which product to duplicate. You can see exactly where it is in Find the ID of a product, a category, or an order.
What happens to the images?
The images are carried over to the copy automatically, so you do not have to upload them again. They are physically duplicated, so the copy has its own image files and does not share them with the original. If you want different images on the copy, just change them afterward.
Are the EAN, item number, and stock carried over?
No, not by default. The EAN/barcode, item number/SKU, and stock quantity are not copied, so you avoid two products with the same barcode or item number. You can ask to include the EAN and SKU in the same action, and you set the stock on the copy yourself.
Can I undo it if I end up not needing the copy?
Yes. Because the copy starts as a hidden draft, you can simply delete it again. Your customers have not seen it, and your original product is not touched at all.
Does it work for products with variants?
Yes. The variant profile and its attributes and variant values, for example size and color, are copied to the new product. The stock quantities of the variants are not carried over, though. You set those yourself.
Can I copy a product to one of my other stores?
No. The tool creates the copy in the same store as the source product. It is designed for sister and variant products within one store. Moving products between your stores is a different workflow.
Will the copy and the original cause problems in Google?
The copy gets its own unique URL and its canonical does not point to the original, so it stands as a separate product. Write unique titles, descriptions, and meta texts for the copy, so the two pages do not compete for the same keywords. If the copy is really just a variant of the original, you can set the canonical to the source in the same action.
Can I copy many products quickly?
Yes. It is one call per product, so you can make many copies in a short time. All copies are created as drafts and are not visible until you publish them, so you can safely create them in bulk and clean up afterward. If you ask Claude to do it, there is a limit of 120 changes per minute and 3,000 per hour per connection. If Claude reaches the limit, the next changes are rejected until some time has passed, and Claude is told to wait.
Are brand-new products from Claude also created as drafts?
Yes. If you ask Claude to create a product from scratch instead of copying one, it is also created as a hidden draft, unless you say it should be online right away. Claude tells you that the product is not visible yet, so you can check it and put it online when it is ready.
How do I call it through the REST API?
Send POST /product/{id}/copy with a JSON body, which can be empty for a standard copy. You need a token with write access in the Authorization header. The call returns the new product's full data, including a new product_id.
If you need help, feel free to email us at support@shoporama.dk.
Related articles
Customize which tools Claude can use in your store
Choose Read and edit, Read only, or Off for each area of your store, so Claude only works with what you want and has more room in the conversation.
REST API: authentication, endpoints, and the API log
A complete guide to Shoporama's REST API: authentication, API keys and user roles, all endpoints, examples, the Swagger documentation, and the API...
Find or create an API key (API token)
How to find or create an API token in Shoporama for integrations such as Shipmondo, and how the daily API limits, 429 errors, and included calls work.
Find the ID of a product, category, order, or other object
How to find the product ID, category ID, order ID, profile ID, and webshop ID in Shoporama. The ID is always in the URL after /edit/ and is used in...
Related features
Claude (AI assistant)
Claude is an AI assistant from Anthropic that connects to Shoporama online stores through MCP, so you can run your store by chatting in your own...
You can now run your entire online store by chatting
Launch campaigns, create products, and check sales figures via chat. Shoporama's AI integration with Claude saves you hours in the admin every...
Control your store with AI
Chat with your online store in plain language. Connect Shoporama to Claude and manage products, orders, campaigns, and content right from the chat.
REST API: build exactly the integration you want
A complete REST API with access to products, orders, customers, and more. Build your own integrations, apps, or a headless frontend, and use webhooks.
Control your store with AI: connect Claude to Shoporama
Connect Claude to your Shoporama store via MCP. Choose the access level, write good first messages, and decide what the AI is allowed to do in your...