{
  "opencollection": "1.0.0",
  "info": {
    "name": "FastSpring Accounts Coupons API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Coupons",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List coupon identifiers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fastspring.com/coupons"
          },
          "docs": "List coupon identifiers"
        },
        {
          "info": {
            "name": "Retrieve a coupon",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fastspring.com/coupons/:coupon_id",
            "params": [
              {
                "name": "coupon_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a coupon"
        },
        {
          "info": {
            "name": "Create or update a coupon",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fastspring.com/coupons/:coupon_id",
            "params": [
              {
                "name": "coupon_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create or update a coupon"
        },
        {
          "info": {
            "name": "Delete a coupon",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.fastspring.com/coupons/:coupon_id",
            "params": [
              {
                "name": "coupon_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a coupon"
        },
        {
          "info": {
            "name": "List codes for a coupon",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fastspring.com/coupons/:coupon_id/codes",
            "params": [
              {
                "name": "coupon_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List codes for a coupon"
        },
        {
          "info": {
            "name": "Add codes to a coupon",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fastspring.com/coupons/:coupon_id/codes",
            "params": [
              {
                "name": "coupon_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add codes to a coupon"
        },
        {
          "info": {
            "name": "Delete all codes for a coupon",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.fastspring.com/coupons/:coupon_id/codes",
            "params": [
              {
                "name": "coupon_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete all codes for a coupon"
        }
      ]
    }
  ],
  "bundled": true
}