{
  "opencollection": "1.0.0",
  "info": {
    "name": "Webflow Assets Asset Folders Products & SKUs API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://webflow.com/oauth/authorize",
      "accessTokenUrl": "https://api.webflow.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Products & SKUs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Webflow List Products & SKUs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.webflow.com/v2/sites/:site_id/products",
            "params": [
              {
                "name": "site_id",
                "value": "580e63e98c9a982ac9b8b741",
                "type": "path",
                "description": "Unique identifier for a Site"
              },
              {
                "name": "offset",
                "value": "0",
                "type": "query",
                "description": "Offset used for pagination if the results have more than limit records"
              },
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "Maximum number of records to be returned (max limit: 100)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve all products for a site.\n\nUse `limit` and `offset` to page through all products with subsequent requests. All SKUs for each product\nwill also be fetched and returned. The `limit`, `offset` and `total` values represent Products only and do not include any SKUs.\n\nRequired scope | `ecommerce:read`\n"
        },
        {
          "info": {
            "name": "Webflow Create Product & SKU",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.webflow.com/v2/sites/:site_id/products",
            "params": [
              {
                "name": "site_id",
                "value": "580e63e98c9a982ac9b8b741",
                "type": "path",
                "description": "Unique identifier for a Site"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new ecommerce product and defaultSKU. A product, at minimum, must have a single SKU.\n\nTo create a product with multiple SKUs:\n  - First, create a list of `sku-properties`, also known as [product options](https://help.webflow.com/hc/en-us/articles/33961334531347-Create-product-options-and-variants). For example, a T-shirt product may have a \"color\" `sku-property`, with a list of enum values: red, yellow, and blue, another `sku-property` may be \"size\", with a list of enum values: small, m"
        },
        {
          "info": {
            "name": "Webflow Get Product and SKUs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.webflow.com/v2/sites/:site_id/products/:product_id",
            "params": [
              {
                "name": "site_id",
                "value": "580e63e98c9a982ac9b8b741",
                "type": "path",
                "description": "Unique identifier for a Site"
              },
              {
                "name": "product_id",
                "value": "580e63fc8c9a982ac9b8b745",
                "type": "path",
                "description": "Unique identifier for a Product"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve a single product by its ID. All of its SKUs will also be\nretrieved.\n\nRequired scope | `ecommerce:read`\n"
        },
        {
          "info": {
            "name": "Webflow Update Product",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.webflow.com/v2/sites/:site_id/products/:product_id",
            "params": [
              {
                "name": "site_id",
                "value": "580e63e98c9a982ac9b8b741",
                "type": "path",
                "description": "Unique identifier for a Site"
              },
              {
                "name": "product_id",
                "value": "580e63fc8c9a982ac9b8b745",
                "type": "path",
                "description": "Unique identifier for a Product"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update an existing Product.\n\nUpdating an existing Product will set the product type to `Advanced`, which ensures all Product and SKU fields will be shown to users in the Designer.\n\nRequired scope | `ecommerce:write`\n"
        },
        {
          "info": {
            "name": "Webflow Create SKUs",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.webflow.com/v2/sites/:site_id/products/:product_id/skus",
            "params": [
              {
                "name": "site_id",
                "value": "580e63e98c9a982ac9b8b741",
                "type": "path",
                "description": "Unique identifier for a Site"
              },
              {
                "name": "product_id",
                "value": "580e63fc8c9a982ac9b8b745",
                "type": "path",
                "description": "Unique identifier for a Product"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create additional SKUs to manage every [option and variant of your Product.](https://help.webflow.com/hc/en-us/articles/33961334531347-Create-product-options-and-variants)\n\nCreating SKUs through the API will set the product type to `Advanced`, which ensures all Product and SKU fields will be shown to users in the Designer.\n\nRequired scope | `ecommerce:write`\n"
        },
        {
          "info": {
            "name": "Webflow Update SKU",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.webflow.com/v2/sites/:site_id/products/:product_id/skus/:sku_id",
            "params": [
              {
                "name": "site_id",
                "value": "580e63e98c9a982ac9b8b741",
                "type": "path",
                "description": "Unique identifier for a Site"
              },
              {
                "name": "product_id",
                "value": "580e63fc8c9a982ac9b8b745",
                "type": "path",
                "description": "Unique identifier for a Product"
              },
              {
                "name": "sku_id",
                "value": "5e8518516e147040726cc415",
                "type": "path",
                "description": "Unique identifier for a SKU"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update a specified SKU.\n\nUpdating an existing SKU will set the Product type to `Advanced`, which ensures all Product and SKU fields will be shown to users in the Designer.\n\nRequired scope | `ecommerce:write`\n"
        }
      ]
    }
  ],
  "bundled": true
}