{
  "opencollection": "1.0.0",
  "info": {
    "name": "Partnerize Brands Attribution Voucher Codes API",
    "version": "1.4.99"
  },
  "items": [
    {
      "info": {
        "name": "Voucher Codes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all Campaign Voucher Codes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.partnerize.com/campaign/:campaign_id/voucher_code",
            "params": [
              {
                "name": "campaign_id",
                "value": "10l176",
                "type": "path",
                "description": "ID of the Campaign"
              }
            ]
          },
          "docs": "View all Voucher Codes associated with the Campaign."
        },
        {
          "info": {
            "name": "Create Voucher Codes",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.partnerize.com/campaign/:campaign_id/voucher_code",
            "params": [
              {
                "name": "campaign_id",
                "value": "10l176",
                "type": "path",
                "description": "ID of the Campaign"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create new Vouchers by passing each Voucher object within a `voucher_codes` array. A `voucher_code` string to define\nthe actual code must be passed with each object, and to allocate the Voucher to specific Groups, pass the Group ids\nin a `commission_groups` array."
        },
        {
          "info": {
            "name": "Update Voucher Codes",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.partnerize.com/campaign/:campaign_id/voucher_code",
            "params": [
              {
                "name": "campaign_id",
                "value": "10l176",
                "type": "path",
                "description": "ID of the Campaign"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update Vouchers by referencing the `voucher_code_id` in each Group object within the `voucher_codes` array."
        },
        {
          "info": {
            "name": "Retrieve a Voucher Code",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.partnerize.com/campaign/:campaign_id/voucher_code/:voucher_code_id",
            "params": [
              {
                "name": "campaign_id",
                "value": "10l176",
                "type": "path",
                "description": "ID of the Campaign"
              },
              {
                "name": "voucher_code_id",
                "value": "111111l1000015",
                "type": "path",
                "description": "ID of the voucher code"
              }
            ]
          },
          "docs": "Outputs the specified Voucher Code."
        }
      ]
    }
  ],
  "bundled": true
}