{
  "opencollection": "1.0.0",
  "info": {
    "name": "Plansource Admin Demographic API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.plansource.com/oauth/v2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Demographic",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "POST /subscriber",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.plansource.com/admin/v2/subscriber",
            "params": [
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} in the path is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a subscriber resource."
        },
        {
          "info": {
            "name": "GET /subscriber/meta",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/subscriber/meta"
          },
          "docs": "Retrieve meta data for subscriber."
        },
        {
          "info": {
            "name": "GET /subscriber/{id}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/subscriber/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} in the path is customer generated."
              }
            ]
          },
          "docs": "Retrieve data for a subscriber."
        },
        {
          "info": {
            "name": "PUT /subscriber/{id}",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscriber/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} in the path is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update data for a subscriber."
        },
        {
          "info": {
            "name": "PUT /subscriber/{id}/terminate",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscriber/:id/terminate",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber to terminate."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} in the path is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Terminate a subscriber."
        },
        {
          "info": {
            "name": "PUT /subscriber/{id}/rehire",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscriber/:id/rehire",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber to rehire."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} in the path is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Rehire a subscriber."
        },
        {
          "info": {
            "name": "POST /subscriber/{subscriber_id}/dependent",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.plansource.com/admin/v2/subscriber/:subscriber_id/dependent",
            "params": [
              {
                "name": "subscriber_id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {subscriber_id} in the path is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a dependent resource."
        },
        {
          "info": {
            "name": "GET /dependent/meta",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/dependent/meta"
          },
          "docs": "Retrieve meta data for dependent."
        },
        {
          "info": {
            "name": "GET /subscriber/{subscriber_id}/dependent/{id}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/subscriber/:subscriber_id/dependent/:id",
            "params": [
              {
                "name": "subscriber_id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {subscriber_id} in the path is customer generated."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the dependent to fetch."
              }
            ]
          },
          "docs": "Retrieve data for a dependent."
        },
        {
          "info": {
            "name": "PUT /subscriber/{subscriber_id}/dependent/{id}",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscriber/:subscriber_id/dependent/:id",
            "params": [
              {
                "name": "subscriber_id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {subscriber_id} in the path is customer generated."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the dependent to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update data for a dependent."
        },
        {
          "info": {
            "name": "PUT /subscriber/{subscriber_id}/dependent/{id}/deactivate",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscriber/:subscriber_id/dependent/:id/deactivate",
            "params": [
              {
                "name": "subscriber_id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the dependent to deactivate."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {subscriber_id} in the path is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deactivate a dependent."
        },
        {
          "info": {
            "name": "PUT /subscriber/{subscriber_id}/dependent/{id}/reactivate",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscriber/:subscriber_id/dependent/:id/reactivate",
            "params": [
              {
                "name": "subscriber_id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the dependent to reactivate."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {subscriber_id} in the path is customer generated."
              }
            ]
          },
          "docs": "Reactivate a dependent."
        },
        {
          "info": {
            "name": "GET /beneficiaries/meta",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/beneficiaries/meta"
          },
          "docs": "Retrieve meta data for beneficiaries."
        },
        {
          "info": {
            "name": "GET /beneficiaries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/beneficiaries",
            "params": [
              {
                "name": "include_test",
                "value": "",
                "type": "query",
                "description": "Include test employees."
              }
            ]
          },
          "docs": "Retrieve all beneficiaries for an organization."
        },
        {
          "info": {
            "name": "GET /subscriber/{subscriber_id}/beneficiaries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/subscriber/:subscriber_id/beneficiaries",
            "params": [
              {
                "name": "subscriber_id",
                "value": "",
                "type": "path",
                "description": "The ID of the subscriber."
              },
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {subscriber_id} in the path is customer generated."
              }
            ]
          },
          "docs": "Retrieve all beneficiaries for a subscriber."
        },
        {
          "info": {
            "name": "GET /coverage/{coverage_id}/beneficiaries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/coverage/:coverage_id/beneficiaries",
            "params": [
              {
                "name": "coverage_id",
                "value": "",
                "type": "path",
                "description": "The ID of the coverage."
              }
            ]
          },
          "docs": "Retrieve all beneficiaries for a coverage."
        },
        {
          "info": {
            "name": "POST /coverage/{coverage_id}/beneficiaries",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.plansource.com/admin/v2/coverage/:coverage_id/beneficiaries",
            "params": [
              {
                "name": "coverage_id",
                "value": "",
                "type": "path",
                "description": "The ID of the coverage."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create beneficiary resources for a coverage."
        },
        {
          "info": {
            "name": "PUT /coverage/{coverage_id}/beneficiaries",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/coverage/:coverage_id/beneficiaries",
            "params": [
              {
                "name": "coverage_id",
                "value": "",
                "type": "path",
                "description": "The ID of the coverage."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update data for all beneficiaries for a coverage."
        },
        {
          "info": {
            "name": "DELETE /coverage/{coverage_id}/beneficiaries",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.plansource.com/admin/v2/coverage/:coverage_id/beneficiaries",
            "params": [
              {
                "name": "coverage_id",
                "value": "",
                "type": "path",
                "description": "The ID of the coverage."
              },
              {
                "name": "termination_date",
                "value": "",
                "type": "query",
                "description": "The termination date."
              }
            ]
          },
          "docs": "Delete coverage beneficiaries."
        },
        {
          "info": {
            "name": "GET /subscribers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/subscribers",
            "params": [
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} in the path is customer generated."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Set to page number. Large responses are parsed into a maximum of 500 subscribers or the per_page value for large responses of subscribers."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Override of the maximum of 500 subscribers returned in a response."
              },
              {
                "name": "include_test",
                "value": "",
                "type": "query",
                "description": "Include test employees."
              }
            ]
          },
          "docs": "Retrieve data for all subscribers."
        },
        {
          "info": {
            "name": "POST /subscribers",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.plansource.com/admin/v2/subscribers",
            "params": [
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} in the path is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create subscriber resources."
        },
        {
          "info": {
            "name": "PUT /subscribers",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscribers",
            "params": [
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update data for all subscribers."
        },
        {
          "info": {
            "name": "PUT /subscribers/terminate",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscribers/terminate",
            "params": [
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Terminate subscriber resources."
        },
        {
          "info": {
            "name": "PUT /subscribers/rehire",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.plansource.com/admin/v2/subscribers/rehire",
            "params": [
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {id} is customer generated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Rehire subscriber resources."
        },
        {
          "info": {
            "name": "GET /dependents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.plansource.com/admin/v2/dependents",
            "params": [
              {
                "name": "is_custom_id",
                "value": "",
                "type": "query",
                "description": "Set to true if the {subscriber_id} is customer generated."
              },
              {
                "name": "subscriber_id",
                "value": "",
                "type": "query",
                "description": "Set {subscriber_id} to get all dependents for selected subscriber."
              }
            ]
          },
          "docs": "Retrieve data for all dependents."
        }
      ]
    }
  ],
  "bundled": true
}