{
  "opencollection": "1.0.0",
  "info": {
    "name": "Nuvemshop / Tiendanube Admin Categories Product Variants API",
    "version": "2025-03"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authentication",
      "value": "{{Authentication}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Product Variants",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List product variants",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              }
            ]
          },
          "docs": "Receive a list of all variants for a given product."
        },
        {
          "info": {
            "name": "Create a product variant",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new variant for a product."
        },
        {
          "info": {
            "name": "Replace the variant collection",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the entire variant collection owned by a specific product."
        },
        {
          "info": {
            "name": "Partially update the variant collection",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Partially update a product's variant collection."
        },
        {
          "info": {
            "name": "Get a product variant",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants/:id",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The numeric resource id."
              }
            ]
          },
          "docs": "Receive a single variant of a product."
        },
        {
          "info": {
            "name": "Update a product variant",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants/:id",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The numeric resource id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Modify an existing variant."
        },
        {
          "info": {
            "name": "Delete a product variant",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants/:id",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The numeric resource id."
              }
            ]
          },
          "docs": "Remove a variant from a product."
        },
        {
          "info": {
            "name": "Update variant stock",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tiendanube.com/2025-03/{store_id}/products/:product_id/variants/stock",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "The numeric product id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the stock for one or all variants of a product."
        }
      ]
    }
  ],
  "bundled": true
}