Skip to content
CatalogProducts

Update a product

Updates the supplied product fields. Variant entries with variantId update an existing variant; entries without variantId create one. Send variantId with deleted:true to delete a variant. Omitted variants are preserved, and an empty variant list changes none. Deleted entries only include variantId and deleted. A variant status left out keeps the current one; new variants start active.

Path Parameters

productId*string

Identifier of the product.

Header Parameters

x-Store-Id?string

Store the request acts on. Not needed when the token is bound to a store.

Authorization*string

OAuth 2.0 bearer token.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://api.ecomiq.pe/api/v1/catalog/products/7204558912004322039" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>" \  -H "Content-Type: application/json" \  -d '{    "status": "active"  }'
{  "id": "7204558912004322039",  "storeId": "7204558912004327977",  "sellerId": "7204558912004323447",  "sellerApprovalPolicy": "manualReview",  "name": "Polo de algodón",  "description": "Polo de algodón pima para uso diario.",  "slug": "polo-de-algodon",  "customUrl": "https://mi-tienda.ecomiq.app/products/polo-de-algodon",  "template": "Polo de algodón",  "summary": "Polo de algodón pima para uso diario.",  "type": "product",  "condition": "new",  "discountPercentage": 10,  "currency": "PEN",  "taxRate": 18,  "brand": {    "id": "7204558912004322959",    "storeId": "7204558912004327977",    "name": "Andina",    "slug": "andina",    "order": 1,    "logo": "Andina",    "icon": "Andina",    "keywords": [      "Andina"    ]  },  "variants": [    {      "id": "7204558912004323197",      "storeId": "7204558912004327977",      "productId": "7204558912004322039",      "version": 3,      "packageId": "7204558912004325646",      "name": "Polo de algodón Azul / M",      "sku": "POL-001-AZ-M",      "barcode": "7751234567892",      "countryOfOrigin": "Polo de algodón Azul / M",      "hsCode": "POL-001",      "order": 1,      "isDefault": true,      "price": 89,      "compareAtPrice": 99,      "costPrice": 40,      "currency": "PEN",      "isDigital": false,      "trackInventory": true,      "allowBackorders": false,      "lowStockThreshold": 24,      "weight": 0.3,      "width": 30,      "height": 30,      "length": 30,      "unitOfMeasure": "kilogram",      "onHand": 24,      "committed": 1,      "available": 24,      "options": [        {          "name": "Polo de algodón Azul / M",          "key": "color",          "value": "Polo de algodón Azul / M"        }      ],      "images": [        {          "imageId": "7204558912004329435",          "order": 1,          "isPrimary": true        }      ],      "inventories": [        {          "id": "7204558912004326619",          "locationId": "7204558912004328277",          "onHand": 24,          "committed": 1,          "available": 24,          "incoming": 1,          "unavailable": 24,          "version": 3,          "createdOn": "2026-09-28T15:30:00Z",          "updatedOn": "2026-09-28T15:30:00Z"        }      ],      "status": "outOfStock",      "createdOn": "2026-09-28T15:30:00Z",      "updatedOn": "2026-09-28T15:30:00Z"    }  ],  "price": 89,  "compareAtPrice": 99,  "costPrice": 40,  "totalOnHand": 24,  "available": 24,  "committed": 1,  "totalVariants": 24,  "activeVariants": 1,  "vendor": "Polo de algodón",  "tags": [    "algodón"  ],  "specifications": [    {      "name": "Polo de algodón",      "key": "color",      "value": "Polo de algodón",      "fromSeller": false    }  ],  "images": [    {      "id": "7204558912004322039",      "url": "https://mi-tienda.ecomiq.app/products/polo-de-algodon",      "name": "Polo de algodón",      "width": 30,      "height": 30,      "isPrimary": true,      "order": 1,      "type": "Polo de algodón"    }  ],  "category": {    "id": "7204558912004327982",    "storeId": "7204558912004327977",    "name": "Polos",    "slug": "polos",    "order": 1,    "path": "Polos",    "requiresSizeGuide": false,    "icon": "Polos"  },  "bundleItems": [    {      "productId": "7204558912004322039",      "variantId": "7204558912004323197",      "productName": "Polo de algodón",      "variantName": "Polo de algodón",      "imageUrl": "https://mi-tienda.ecomiq.app/images/polo-de-algodon.webp",      "sku": "POL-001-AZ-M",      "unitPrice": 89,      "quantity": 2,      "available": 24    }  ],  "packageId": "7204558912004325646",  "shippingProfileId": "7204558912004329819",  "status": "draft",  "moderationReason": "Reposición de stock.",  "metaTitle": "Polo de algodón",  "metaDescription": "Polo de algodón pima para uso diario.",  "metaKeywords": [    "Polo de algodón"  ],  "featuredUntil": "2026-09-28T15:30:00Z",  "isFeatured": false,  "minOrderQuantity": 2,  "maxOrderQuantity": 2,  "isDigital": false,  "hasVariants": false,  "hasOptions": false,  "hasModifiers": false,  "hasActivity": false,  "hasPriceLists": false,  "hasReviews": false,  "hasSizeGuide": false,  "modifierGroupIds": [    "7204558912004324624"  ],  "sizeGuide": {    "id": "7204558912004326347",    "name": "Polos",    "slug": "polo-de-algodon",    "description": "Polo de algodón pima para uso diario.",    "imageUrl": "https://mi-tienda.ecomiq.app/images/polo-de-algodon.webp",    "gender": "unisex",    "measurementType": "body",    "unit": "cm",    "notes": "Entregar después de las 18:00.",    "rows": [      {        "label": "Polos",        "sizeKey": "Polos",        "order": 1,        "measurements": [          {            "key": "color",            "name": "Polos",            "min": 1,            "max": 1,            "value": 1,            "description": "Polo de algodón pima para uso diario."          }        ]      }    ]  },  "views": 1,  "salesCount": 24,  "reviewsCount": 24,  "collections": [    {      "id": "7204558912004322039",      "name": "Polo de algodón"    }  ],  "createdOn": "2026-09-28T15:30:00Z",  "updatedOn": "2026-09-28T15:30:00Z",  "lastActivityOn": "2026-09-28T15:30:00Z"}