{
  "opencollection": "1.0.0",
  "info": {
    "name": "Paystack Subscriptions API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Plan",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Plans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.paystack.co/plan",
            "params": [
              {
                "name": "perPage",
                "value": "",
                "type": "query",
                "description": "Number of records to fetch per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The section to retrieve"
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "Specify interval of the plan"
              },
              {
                "name": "amount",
                "value": "",
                "type": "query",
                "description": "The amount on the plans to retrieve"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The start date"
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "The end date"
              }
            ]
          },
          "docs": "List Plans"
        },
        {
          "info": {
            "name": "Create Plan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.paystack.co/plan",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Plan"
        },
        {
          "info": {
            "name": "Fetch Plan",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.paystack.co/plan/:code",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch Plan"
        },
        {
          "info": {
            "name": "Update Plan",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.paystack.co/plan/:code",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update Plan"
        }
      ]
    },
    {
      "info": {
        "name": "Subscription",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Subscriptions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.paystack.co/subscription",
            "params": [
              {
                "name": "perPage",
                "value": "",
                "type": "query",
                "description": "Number of records to fetch per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The section to retrieve"
              },
              {
                "name": "plan",
                "value": "",
                "type": "query",
                "description": "Plan ID"
              },
              {
                "name": "customer",
                "value": "",
                "type": "query",
                "description": "Customer ID"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The start date"
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "The end date"
              }
            ]
          },
          "docs": "List Subscriptions"
        },
        {
          "info": {
            "name": "Create Subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.paystack.co/subscription",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Subscription"
        },
        {
          "info": {
            "name": "Fetch Subscription",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.paystack.co/subscription/:code",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch Subscription"
        },
        {
          "info": {
            "name": "Disable Subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.paystack.co/subscription/disable",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Disable Subscription"
        },
        {
          "info": {
            "name": "Enable Subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.paystack.co/subscription/enable",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enable Subscription"
        },
        {
          "info": {
            "name": "Generate Update Subscription Link",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.paystack.co/subscription/:code/manage/link",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Generate Update Subscription Link"
        },
        {
          "info": {
            "name": "Send Update Subscription Link",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.paystack.co/subscription/:code/manage/email",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Send Update Subscription Link"
        }
      ]
    }
  ],
  "bundled": true
}