{
  "opencollection": "1.0.0",
  "info": {
    "name": "AlayaCare Accounting Accounts API",
    "version": "1.0.19-oas3"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a list of accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/accounts",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "Filter by account id"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Filter by account name"
              },
              {
                "name": "types",
                "value": "",
                "type": "query",
                "description": "Filter by account type"
              },
              {
                "name": "is_disabled",
                "value": "",
                "type": "query",
                "description": "Filter by account status"
              },
              {
                "name": "branch_ids",
                "value": "",
                "type": "query",
                "description": "Filter by branch id"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "Field to sort by"
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Order to sort by"
              }
            ]
          },
          "docs": "Get a list of accounts"
        },
        {
          "info": {
            "name": "Create an account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/accounts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an account"
        },
        {
          "info": {
            "name": "Get an account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/accounts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              }
            ]
          },
          "docs": "Get an account"
        },
        {
          "info": {
            "name": "Update an account",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://example.alayacare.com/ext/api/v2/accounting/accounts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an account"
        }
      ]
    }
  ],
  "bundled": true
}