{
  "opencollection": "1.0.0",
  "info": {
    "name": "AlayaCare Accounting Accounts visit outbox API",
    "version": "1.0.19-oas3"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "visit outbox",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "GET /v1/outbox/visits",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/v1/outbox/visits",
            "params": [
              {
                "name": "referral_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "service_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "service_outbox_id",
                "value": "",
                "type": "query",
                "description": "ID of a service in the demand system."
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "items_per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "# Authorization\nRequired role: demand `org_admin` who created the associated referral or service.\n\n# Description\nGet a collection of Visits for a given referral or service.\n\nOne of `referral_id`, `service_id`, or `service_outbox_id` must be provided.\n"
        },
        {
          "info": {
            "name": "GET /v1/outbox/visits/{visit_id}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/v1/outbox/visits/:visit_id",
            "params": [
              {
                "name": "visit_id",
                "value": "",
                "type": "path",
                "description": "ID of a visit."
              }
            ]
          },
          "docs": "# Authorization\nRequired role: demand `org_admin` who created the associated referral or service.\n\n# Description\nGet the details of a Visit for a given Visit ID.\n"
        }
      ]
    }
  ],
  "bundled": true
}