{
  "opencollection": "1.0.0",
  "info": {
    "name": "WooCommerce REST Cart Product Variations API",
    "version": "v3"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Product Variations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WooCommerce List All Product Variations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.com/wp-json/wc/v3/products/:product_id/variations",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the parent product."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Current page of the collection. Defaults to 1."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Maximum number of items per page. Defaults to 10, maximum 100."
              }
            ]
          },
          "docs": "Returns all variations for a variable product identified by product_id. Each variation has its own pricing, SKU, stock, image, and attribute combination."
        },
        {
          "info": {
            "name": "WooCommerce Create a Product Variation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://example.com/wp-json/wc/v3/products/:product_id/variations",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the parent product."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new variation for a variable product. The variation inherits the parent product's attributes and can override price, SKU, stock, weight, dimensions, and image independently."
        },
        {
          "info": {
            "name": "WooCommerce Retrieve a Product Variation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.com/wp-json/wc/v3/products/:product_id/variations/:id",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the parent product."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the resource."
              }
            ]
          },
          "docs": "Returns the details of a single product variation identified by the parent product ID and the variation ID."
        },
        {
          "info": {
            "name": "WooCommerce Update a Product Variation",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://example.com/wp-json/wc/v3/products/:product_id/variations/:id",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the parent product."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the resource."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing variation for a variable product. Only the fields provided in the request body are changed."
        },
        {
          "info": {
            "name": "WooCommerce Delete a Product Variation",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://example.com/wp-json/wc/v3/products/:product_id/variations/:id",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the parent product."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the resource."
              },
              {
                "name": "force",
                "value": "",
                "type": "query",
                "description": "Set to true to permanently delete the resource, bypassing the trash."
              }
            ]
          },
          "docs": "Deletes a specific variation from a variable product. Set force to true to permanently delete rather than trash."
        }
      ]
    }
  ],
  "bundled": true
}