Tamio

Duplicate a product

POST https://api.tamio.com/v2/products/duplicate/{uuid}

Creates a full copy of an existing product.

Path Parameters

uuid string*

Product UUID

Responses

200 Product duplicated successfully

Product duplicated successfully

status integer
product Product
400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/products/duplicate/{uuid}
1const response = await fetch("https://api.tamio.com/v2/products/duplicate/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Accept": "application/json"
6 }
7});
8const data = await response.json();
Responses
{
  "status": 200,
  "product": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "object": "product",
    "name": "Premium Widget",
    "description": "High-quality premium widget with advanced features",
    "seo_title": "Premium Widget | Buy Online",
    "seo_description": "Shop the Premium Widget — built to last with advanced features.",
    "classification": "Tangible Goods",
    "is_moss_product": false,
    "created": 1700000000,
    "updated_unix": 1700100000,
    "currency": "EUR",
    "type": "physical_product",
    "pricing_model": [
      {
        "id": "660e8400-e29b-41d4-a716-446655440001",
        "currency": "EUR",
        "price": 2999,
        "acquisition_price": 1200,
        "recommended_seller_price": 3499,
        "billing_cycle": "month",
        "interval": 1
      }
    ],
    "price": 2999,
    "stock": 150,
    "has_variations": true,
    "has_notes": false,
    "sample": false,
    "release_date": "2024-06-01T00:00:00Z",
    "release_date_unix": 1717200000,
    "expiry_date": "2025-12-31T23:59:59Z",
    "expiry_date_unix": 1767225599,
    "new_from": "2024-06-01T00:00:00Z",
    "new_from_unix": 1717200000,
    "new_to": "2024-09-01T00:00:00Z",
    "new_to_unix": 1725148800,
    "exclude_from_feed": false,
    "google_category": 5322,
    "in_stock": true,
    "unlimited_stock": false,
    "min_units": 1,
    "max_units": 100,
    "stock_limit_warning": 10,
    "allow_negative_stock": false,
    "on_sale": true,
    "discount_allowed": true,
    "reviews_allowed": true,
    "hide_if_no_stock": false,
    "shown": true,
    "buyable": true,
    "custom_fields": [],
    "whitelist": [
      "[email protected]"
    ],
    "additional_information": {
      "brand": "WidgetCorp",
      "model": "WX-3000",
      "asin": "B09V3KXJPB",
      "upc": "012345678905",
      "mpn": "WX3K-BLK",
      "isbn": "978-3-16-148410-0",
      "ean": "4006381333931",
      "gtin": "00012345678905",
      "sku": "WDG-PRM-001",
      "hscode": "8471.30",
      "condition": "new",
      "country_of_origin": "DE",
      "packaging_type": "box",
      "detailed_description": "string",
      "nshift_parcel_amount": 1,
      "nshift_quick_id": "string",
      "parcels": {}
    },
    "weight": 2.5,
    "net_weight": 2.1,
    "dimensions": {
      "length": 30,
      "width": 20,
      "height": 10
    },
    "packs": [
      {
        "id": "770e8400-e29b-41d4-a716-446655440002",
        "label": {
          "en": "6-Pack",
          "de": "6er-Pack"
        },
        "stock": 50,
        "multiples": true
      }
    ],
    "stock_breakdown": [
      {
        "warehouse": "880e8400-e29b-41d4-a716-446655440003",
        "stock": 75
      }
    ],
    "delivery_type": "file",
    "license_type": "autogenerated",
    "delivery_url": "https://downloads.example.com/premium-widget",
    "number_of_downloads": 5,
    "licenses": [
      "XXXX-YYYY-ZZZZ-1111",
      "XXXX-YYYY-ZZZZ-2222"
    ],
    "digital_files": [],
    "billing_cycle": "month",
    "interval": 1,
    "trial_period": 14,
    "descriptor": "ACME PREMIUM",
    "retries": 2,
    "cancel_action": "cancel",
    "cancel_behaviour": "end_of_period",
    "has_stripe_price": true,
    "charge_shipping_during_trial": false,
    "is_customer_product": false,
    "clients": [
      {
        "id": "990e8400-e29b-41d4-a716-446655440004",
        "name": "Acme Corp",
        "email": "[email protected]"
      }
    ],
    "gallery": [
      {
        "public_url": "https://pub.ox31.com/uploads/product-image-abc123.jpg",
        "alt_text": "Premium Widget front view",
        "asset_id": "aa0e8400-e29b-41d4-a716-446655440005"
      }
    ],
    "has_image": true,
    "languages": {
      "en": {
        "title": "Premium Widget",
        "description": "High-quality premium widget",
        "slug": "premium-widget"
      },
      "de": {
        "title": "Premium-Widget",
        "description": "Hochwertiges Premium-Widget",
        "slug": "premium-widget"
      }
    },
    "variations": {
      "options": [
        {
          "name": "Size",
          "values": [
            "Small",
            "Medium",
            "Large"
          ]
        }
      ],
      "variants": [
        {
          "id": "bb0e8400-e29b-41d4-a716-446655440006",
          "stock": 25,
          "options": {
            "en": {
              "size": "Large",
              "color": "Blue"
            }
          },
          "stock_breakdown": []
        }
      ]
    },
    "invoices": 342,
    "customers": 198,
    "subscriptions": 45,
    "lifetime_revenue": 1025000,
    "related_products": [
      "cc0e8400-e29b-41d4-a716-446655440007",
      "dd0e8400-e29b-41d4-a716-446655440008"
    ]
  }
}