{
  "opencollection": "1.0.0",
  "info": {
    "name": "AlayaCare Accounting Accounts Billing Cycles API",
    "version": "1.0.19-oas3"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Billing Cycles",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a collection of all legacy billing cycles",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/billing/cycles/",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Filter by page number."
              },
              {
                "name": "count",
                "value": "",
                "type": "query",
                "description": "Number of items per page."
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "Field to sort by"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Order to sort by"
              },
              {
                "name": "frequency",
                "value": "",
                "type": "query",
                "description": "Returns all billing periods with that frequency."
              },
              {
                "name": "invoice_date_from",
                "value": "",
                "type": "query",
                "description": "Returns all billing periods using that Invoice Date within the date range."
              },
              {
                "name": "invoice_date_to",
                "value": "",
                "type": "query",
                "description": "Returns all billing periods using that Invoice Date within the date range."
              },
              {
                "name": "billing_period_from",
                "value": "",
                "type": "query",
                "description": "Returns all billing periods that overlap with the entered date range."
              },
              {
                "name": "billing_period_to",
                "value": "",
                "type": "query",
                "description": "Returns all billing periods that overlap with the entered date range."
              },
              {
                "name": "branch_id",
                "value": "",
                "type": "query",
                "description": "Filter by branch ID"
              },
              {
                "name": "search_id",
                "value": "",
                "type": "query",
                "description": "Partial search on the id field."
              }
            ]
          },
          "docs": "Get a collection of all legacy billing cycles"
        },
        {
          "info": {
            "name": "Get a legacy billing cycle",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/billing/cycles/:billing_period_id",
            "params": [
              {
                "name": "billing_period_id",
                "value": "",
                "type": "path",
                "description": "Billing Period ID"
              }
            ]
          },
          "docs": "Get a legacy billing cycle"
        },
        {
          "info": {
            "name": "Fetch multiple private pay invoices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/billing/cycles/:billing_period_id/invoices",
            "params": [
              {
                "name": "billing_period_id",
                "value": "",
                "type": "path",
                "description": "Billing Period ID"
              },
              {
                "name": "count",
                "value": "",
                "type": "query",
                "description": "Number of items per page."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Filter by page number."
              },
              {
                "name": "client_search",
                "value": "",
                "type": "query"
              },
              {
                "name": "invoice_search",
                "value": "",
                "type": "query"
              },
              {
                "name": "status",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Order to sort by"
              },
              {
                "name": "bill_to_party",
                "value": "",
                "type": "query"
              },
              {
                "name": "balance_from",
                "value": "",
                "type": "query"
              },
              {
                "name": "balance_to",
                "value": "",
                "type": "query"
              },
              {
                "name": "unpaid_balance",
                "value": "",
                "type": "query"
              },
              {
                "name": "client_tags",
                "value": "",
                "type": "query"
              },
              {
                "name": "client_tag_mode",
                "value": "",
                "type": "query"
              },
              {
                "name": "program_type",
                "value": "",
                "type": "query"
              },
              {
                "name": "program_name_search",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Fetch multiple private pay invoices"
        },
        {
          "info": {
            "name": "Fetch a specific invoice",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/billing/cycles/:billing_period_id/invoices/:invoice_id",
            "params": [
              {
                "name": "billing_period_id",
                "value": "",
                "type": "path",
                "description": "Billing Period ID"
              },
              {
                "name": "invoice_id",
                "value": "",
                "type": "path",
                "description": "Invoice ID"
              }
            ]
          },
          "docs": "Fetch a specific invoice"
        },
        {
          "info": {
            "name": "Fetch a specific invoice's invoice items",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/billing/cycles/invoice/:invoice_id/details",
            "params": [
              {
                "name": "invoice_id",
                "value": "",
                "type": "path",
                "description": "Invoice ID"
              }
            ]
          },
          "docs": "Fetch a specific invoice's invoice items"
        }
      ]
    }
  ],
  "bundled": true
}