{
  "opencollection": "1.0.0",
  "info": {
    "name": "Thinkific Admin Bundles Promotions API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Promotions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List promotions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.thinkific.com/api/public/v1/promotions",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page within the collection to fetch"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The number of items to be returned"
              }
            ]
          },
          "docs": "List promotions"
        },
        {
          "info": {
            "name": "Create a new promotion",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.thinkific.com/api/public/v1/promotions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new promotion"
        },
        {
          "info": {
            "name": "Get promotion by provided ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.thinkific.com/api/public/v1/promotions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Id of the promotion in the form of an integer"
              }
            ]
          },
          "docs": "Get promotion by provided ID"
        },
        {
          "info": {
            "name": "Update promotion by provided ID",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.thinkific.com/api/public/v1/promotions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Id of the promotion in the form of an integer"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update promotion by provided ID"
        },
        {
          "info": {
            "name": "Delete promotion by provided ID",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.thinkific.com/api/public/v1/promotions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Id of the promotion in the form of an integer"
              }
            ]
          },
          "docs": "Delete promotion by provided ID"
        },
        {
          "info": {
            "name": "Get Promotion associated with the provided Coupon code.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.thinkific.com/api/public/v1/promotions/by_coupon",
            "params": [
              {
                "name": "product_id",
                "value": "",
                "type": "query",
                "description": "The id of the Product to which the promotion applies."
              },
              {
                "name": "coupon_code",
                "value": "",
                "type": "query",
                "description": "The Coupon code to be used as search critieria."
              }
            ]
          },
          "docs": "Find a Promotion by Coupon Code and Product"
        }
      ]
    }
  ],
  "bundled": true
}