{
  "id": "@itentialopensource/adapter-skybox",
  "type": "Adapter",
  "export": "Skybox",
  "title": "Skybox",
  "src": "adapter.js",
  "roles": [
    "admin"
  ],
  "methods": [
    {
      "name": "iapUpdateAdapterConfiguration",
      "summary": "Updates the adapter configuration",
      "description": "Updates the adapter configuration file with the provided changes",
      "input": [
        {
          "name": "configFile",
          "type": "string",
          "info": "The name of the file to change",
          "required": true,
          "schema": {
            "title": "configFile",
            "type": "string"
          }
        },
        {
          "name": "changes",
          "type": "object",
          "info": "JSON object containing the configuration changes",
          "required": true,
          "schema": {
            "title": "changes",
            "type": "object"
          }
        },
        {
          "name": "entity",
          "type": "string",
          "info": "The entity in which the changes are being made",
          "required": false,
          "schema": {
            "title": "entity",
            "type": "string"
          }
        },
        {
          "name": "type",
          "type": "string",
          "info": "The type of file to change - action, schema, or mock",
          "required": false,
          "schema": {
            "title": "type",
            "type": "string"
          }
        },
        {
          "name": "action",
          "type": "string",
          "info": "The action to be changed",
          "required": false,
          "schema": {
            "title": "action",
            "type": "string"
          }
        },
        {
          "name": "replace",
          "type": "boolean",
          "info": "True to replace entire mock data, false to merge/append",
          "required": false,
          "schema": {
            "title": "replace",
            "type": "boolean"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapUpdateAdapterConfiguration"
      },
      "task": true
    },
    {
      "name": "iapSuspendAdapter",
      "summary": "Suspends the adapter",
      "description": "Suspends the adapter",
      "input": [
        {
          "name": "mode",
          "type": "enum",
          "enumerals": [
            "pause",
            "error"
          ],
          "info": "How incoming requests are handled. Defaults to 'pause'",
          "description": "How incoming requests are handled. Defaults to 'pause'",
          "schema": {
            "title": "mode",
            "type": "string"
          },
          "required": false
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing the adapter suspended status",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapSuspendAdapter"
      },
      "task": true
    },
    {
      "name": "iapUnsuspendAdapter",
      "summary": "Unsuspends the adapter",
      "description": "Unsuspends the adapter",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing the adapter suspended status",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapUnsuspendAdapter"
      },
      "task": true
    },
    {
      "name": "iapGetAdapterQueue",
      "summary": "Return the requests that are waiting in the queue if throttling is enabled",
      "description": "Return the requests that are waiting in the queue if throttling is enabled",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing the adapter queue",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapGetAdapterQueue"
      },
      "task": true
    },
    {
      "name": "iapFindAdapterPath",
      "summary": "Provides the ability to see if a particular API path is supported by the adapter",
      "description": "Provides the ability to see if a particular API path is supported by the adapter",
      "input": [
        {
          "name": "apiPath",
          "type": "string",
          "info": "The API Path you want to check - make sure to not include base path and version",
          "description": "The API Path you want to check - make sure to not include base path and version",
          "schema": {
            "title": "apiPath",
            "type": "string"
          },
          "required": true
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapFindAdapterPath"
      },
      "task": true
    },
    {
      "name": "iapTroubleshootAdapter",
      "summary": "Runs troubleshoot script for adapter",
      "description": "Runs troubleshoot script for adapter",
      "input": [
        {
          "name": "props",
          "type": "object",
          "info": "Object containing configuration, healthcheck and auth properties {'connProps':{'host': 'api.service.com', 'base_path': '/', 'protocol': 'http', 'port': 443, 'version': 'v1'},'healthCheckEndpoint': '/healthcheck', 'auth': {'auth_method': 'no authentication', 'username': 'username', 'password': 'password'}}",
          "required": true,
          "schema": {
            "title": "props",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing the test results",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapTroubleshootAdapter"
      },
      "task": true
    },
    {
      "name": "iapRunAdapterHealthcheck",
      "summary": "Runs healthcheck script for adapter",
      "description": "Runs healthcheck script for adapter",
      "input": [],
      "output": {
        "name": "result",
        "type": "boolean",
        "description": "Whether healthcheck passed or failed",
        "schema": {
          "title": "result",
          "type": "boolean"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapRunAdapterHealthcheck"
      },
      "task": true
    },
    {
      "name": "iapRunAdapterConnectivity",
      "summary": "Runs connectivity check script for adapter",
      "description": "Runs connectivity check script for adapter",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing the test results",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapRunAdapterConnectivity"
      },
      "task": true
    },
    {
      "name": "iapRunAdapterBasicGet",
      "summary": "Runs basicGet script for adapter",
      "description": "Runs basicGet script for adapter",
      "input": [
        {
          "name": "maxCalls",
          "required": false,
          "type": "number", 
          "info": "How many GET endpoints to test (defaults to 5)",
          "schema": {
            "title": "maxCalls",
            "type": "number", 
            "default": 5
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing the test results",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapRunAdapterBasicGet"
      },
      "task": true
    },
    {
      "name": "iapMoveAdapterEntitiesToDB",
      "summary": "Moves entities from an adapter into the Itential Platform database",
      "description": "Moves entities from an adapter into the Itential Platform database",
      "input": [],
      "output": {
        "name": "res",
        "type": "object",
        "description": "A JSON Object containing status, code and the response from the mongo transaction",
        "schema": {
          "title": "res",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapMoveAdapterEntitiesToDB"
      },
      "task": true
    },
    {
      "name": "iapDeactivateTasks",
      "summary": "Deactivate the inputted tasks",
      "description": "Deactivate the inputted tasks",
      "input": [
        {
          "name": "tasks",
          "type": "array",
          "description": "Tasks to deactivate",
          "schema": {
            "title": "tasks",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing success status",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapDeactivateTasks"
      },
      "task": true
    },
    {
      "name": "iapActivateTasks",
      "summary": "Activate the inputted tasks",
      "description": "activate the inputted tasks",
      "input": [
        {
          "name": "tasks",
          "type": "array",
          "description": "Tasks to activate",
          "schema": {
            "title": "tasks",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing success status",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapActivateTasks"
      },
      "task": true
    },
    {
      "name": "iapPopulateEntityCache",
      "summary": "Populate the cache for the given entities",
      "description": "Populate the cache for the given entities",
      "input": [
        {
          "name": "entityTypes",
          "type": "array",
          "info": "the entity type(s) to populate",
          "required": true,
          "schema": {
            "title": "entityTypes",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapPopulateEntityCache"
      },
      "task": true
    },
    {
      "name": "iapRetrieveEntitiesCache",
      "summary": "Retrieves data from cache for specified entity type",
      "description": "Retrieves data from cache for specified entity type",
      "input": [
        {
          "name": "entityType",
          "type": "string",
          "info": "entity of which to retrieve",
          "required": true,
          "schema": {
            "title": "entityType",
            "type": "string"
          }
        },
        {
          "name": "options",
          "type": "object",
          "info": "settings of which data to return and how to return it",
          "required": false,
          "schema": {
            "title": "options",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapRetrieveEntitiesCache"
      },
      "task": true
    },
    {
      "name": "getDevice",
      "summary": "Get the Appliance",
      "description": "Get the Appliance",
      "input": [
        {
          "name": "deviceName",
          "type": "string",
          "info": "An Appliance Device Name",
          "required": true,
          "schema": {
            "title": "deviceName",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getDevice"
      },
      "task": false
    },
    {
      "name": "getDevicesFiltered",
      "summary": "Get Appliances that match the filter",
      "description": "Get Appliances that match the filter",
      "input": [
        {
          "name": "options",
          "type": "object",
          "info": "options - e.g. { 'start': 1, 'limit': 20, 'filter': { 'name': 'abc123' } }",
          "required": true,
          "schema": {
            "title": "options",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "array",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "array"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getDevicesFiltered"
      },
      "task": false
    },
    {
      "name": "isAlive",
      "summary": "Checks the status for the provided Appliance",
      "description": "Checks the status for the provided Appliance",
      "input": [
        {
          "name": "deviceName",
          "type": "string",
          "info": "An Appliance Device Name",
          "required": true,
          "schema": {
            "title": "deviceName",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "boolean",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "boolean"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/isAlive"
      },
      "task": false
    },
    {
      "name": "getConfig",
      "summary": "Gets a config for the provided Appliance",
      "description": "Gets a config for the provided Appliance",
      "input": [
        {
          "name": "deviceName",
          "type": "string",
          "info": "An Appliance Device Name",
          "required": true,
          "schema": {
            "title": "deviceName",
            "type": "string"
          }
        },
        {
          "name": "format",
          "type": "string",
          "info": "The format to be returned - this is ignored as we always return json",
          "required": false,
          "schema": {
            "title": "format",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getConfig"
      },
      "task": false
    },
    {
      "name": "iapGetDeviceCount",
      "summary": "Gets a device count from the system",
      "description": "Gets a device count from the system",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapGetDeviceCount"
      },
      "task": false
    },
    {
      "name": "iapExpandedGenericAdapterRequest",
      "summary": "Makes the requested generic call with additional options",
      "description": "Makes the requested generic call with additional options via metadata",
      "input": [
        {
          "name": "metadata",
          "type": "object",
          "info": "metadata for the call (optional)",
          "description": "metadata for the call - allows for many enhancements (optional)",
          "schema": {
            "title": "metadata",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "uriPath",
          "type": "string",
          "info": "the path of the api call - do not include the host, port, base path or version",
          "description": "the path of the api call",
          "schema": {
            "title": "uriPath",
            "type": "string"
          },
          "required": false
        },
        {
          "name": "restMethod",
          "type": "string",
          "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
          "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
          "schema": {
            "title": "restMethod",
            "type": "string"
          },
          "required": false
        },
        {
          "name": "pathVars",
          "type": "object",
          "info": "the parameters to be put within the url path (optional)",
          "description": "the parameters to be put within the url path (optional)",
          "schema": {
            "title": "pathVars",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "queryData",
          "type": "object",
          "info": "the query parameters to be put on the url (optional)",
          "description": "the query parameters to be put on the url (optional)",
          "schema": {
            "title": "queryData",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "requestBody",
          "type": "object",
          "info": "the payload to be sent with the request (optional)",
          "description": "the payload to be sent with the request (optional)",
          "schema": {
            "title": "requestBody",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "addlHeaders",
          "type": "object",
          "info": "additional headers to be put on the call (optional)",
          "description": "additional headers to be put on the call (optional)",
          "schema": {
            "title": "addlHeaders",
            "type": "object"
          },
          "required": false
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/iapExpandedGenericAdapterRequest"
      },
      "task": true
    },
    {
      "name": "genericAdapterRequest",
      "summary": "Makes the requested generic call",
      "description": "Makes the requested generic call",
      "input": [
        {
          "name": "uriPath",
          "type": "string",
          "info": "the path of the api call - do not include the host, port, base path or version",
          "description": "the path of the api call",
          "schema": {
            "title": "uriPath",
            "type": "string"
          },
          "required": true
        },
        {
          "name": "restMethod",
          "type": "string",
          "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
          "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
          "schema": {
            "title": "restMethod",
            "type": "string"
          },
          "required": true
        },
        {
          "name": "queryData",
          "type": "object",
          "info": "the query parameters to be put on the url (optional)",
          "description": "the query parameters to be put on the url (optional)",
          "schema": {
            "title": "queryData",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "requestBody",
          "type": "object",
          "info": "the payload to be sent with the request (optional)",
          "description": "the payload to be sent with the request (optional)",
          "schema": {
            "title": "requestBody",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "addlHeaders",
          "type": "object",
          "info": "additional headers to be put on the call (optional)",
          "description": "additional headers to be put on the call (optional)",
          "schema": {
            "title": "addlHeaders",
            "type": "object"
          },
          "required": false
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/genericAdapterRequest"
      },
      "task": true
    },
    {
      "name": "genericAdapterRequestNoBasePath",
      "summary": "Makes the requested generic call",
      "description": "Makes the requested generic call",
      "input": [
        {
          "name": "uriPath",
          "type": "string",
          "info": "the path of the api call - do not include the host, port, base path or version",
          "description": "the path of the api call",
          "schema": {
            "title": "uriPath",
            "type": "string"
          },
          "required": true
        },
        {
          "name": "restMethod",
          "type": "string",
          "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
          "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
          "schema": {
            "title": "restMethod",
            "type": "string"
          },
          "required": true
        },
        {
          "name": "queryData",
          "type": "object",
          "info": "the query parameters to be put on the url (optional)",
          "description": "the query parameters to be put on the url (optional)",
          "schema": {
            "title": "queryData",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "requestBody",
          "type": "object",
          "info": "the payload to be sent with the request (optional)",
          "description": "the payload to be sent with the request (optional)",
          "schema": {
            "title": "requestBody",
            "type": "object"
          },
          "required": false
        },
        {
          "name": "addlHeaders",
          "type": "object",
          "info": "additional headers to be put on the call (optional)",
          "description": "additional headers to be put on the call (optional)",
          "schema": {
            "title": "addlHeaders",
            "type": "object"
          },
          "required": false
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/genericAdapterRequestNoBasePath"
      },
      "task": true
    },
    {
      "name": "iapRunAdapterLint",
      "summary": "Run the adapter lint script to return the results",
      "description": "Run the adapter lint script to return the results",
      "input": [],
      "output": {
        "name": "result",
        "type": "string",
        "description": "A string containing the run results",
        "schema": {
          "title": "result",
          "type": "string"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/iapRunAdapterLint"
      },
      "task": true
    },
    {
      "name": "iapRunAdapterTests",
      "summary": "Run the adapter test scripts (baseunit and unit) to return the results",
      "description": "Run the adapter test scripts (baseunit and unit) to return the results",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/iapRunAdapterTests"
      },
      "task": true
    },
    {
      "name": "iapGetAdapterInventory",
      "summary": "Provide inventory information abbout the adapter",
      "description": "Provide inventory information abbout the adapter",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/iapGetAdapterInventory"
      },
      "task": true
    },
    {
      "name": "getNotifications",
      "summary": "Get account notifications",
      "description": "Get account notifications",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getNotifications"
      },
      "task": true
    },
    {
      "name": "get",
      "summary": "Gets an account",
      "description": "Gets an account",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/get"
      },
      "task": true
    },
    {
      "name": "getById",
      "summary": "Retrieves an address by the address id",
      "description": "Retrieves an address by the address id",
      "input": [
        {
          "name": "addressId",
          "type": "number",
          "info": "The address id of the address: 123",
          "required": true,
          "schema": {
            "title": "addressId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById"
      },
      "task": true
    },
    {
      "name": "update",
      "summary": "Updates an address",
      "description": "Updates an address",
      "input": [
        {
          "name": "addressId",
          "type": "number",
          "info": "The address id of the address: 123",
          "required": true,
          "schema": {
            "title": "addressId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "The address object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update"
      },
      "task": true
    },
    {
      "name": "deleteById",
      "summary": "Deletes an address by the address id",
      "description": "Deletes an address by the address id",
      "input": [
        {
          "name": "addressId",
          "type": "number",
          "info": "The address id of the address: 123",
          "required": true,
          "schema": {
            "title": "addressId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/deleteById"
      },
      "task": true
    },
    {
      "name": "insert",
      "summary": "Creates an address",
      "description": "Creates an address",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "An address object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insert"
      },
      "task": true
    },
    {
      "name": "getById1",
      "summary": "Retrieves an alert by the alert id",
      "description": "Retrieves an alert by the alert id",
      "input": [
        {
          "name": "alertId",
          "type": "number",
          "info": "The alert id: 123",
          "required": true,
          "schema": {
            "title": "alertId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById1"
      },
      "task": true
    },
    {
      "name": "acknowledge",
      "summary": "Acknowledges an alert",
      "description": "Acknowledges an alert",
      "input": [
        {
          "name": "alertId",
          "type": "number",
          "info": "The alert id: 123",
          "required": true,
          "schema": {
            "title": "alertId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/acknowledge"
      },
      "task": true
    },
    {
      "name": "getByAccount",
      "summary": "Retrieves all alerts",
      "description": "Retrieves all alerts",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getByAccount"
      },
      "task": true
    },
    {
      "name": "upload",
      "summary": "Uploads a PDF and returns a list of details",
      "description": "Uploads a PDF and returns a list of details",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "The byte array of the PDF: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/upload"
      },
      "task": true
    },
    {
      "name": "get1",
      "summary": "Retrieves a file, base64 encoded",
      "description": "Retrieves a file, base64 encoded",
      "input": [
        {
          "name": "filename",
          "type": "string",
          "info": "Asset file name: string",
          "required": true,
          "schema": {
            "title": "filename",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/get1"
      },
      "task": true
    },
    {
      "name": "search",
      "summary": "Retrieves and audit log for the account",
      "description": "Retrieves and audit log for the account",
      "input": [
        {
          "name": "auditEntity",
          "type": "string",
          "info": "Filter by entity type.: Must be one of [ACCOUNT, USER, HOLD, INVOICE, LINE, PURCHASE, AUTO_PURCHASE, PURCHASE_MAPPING, INVOICE_PAYMENT, PURCHASE_PAYMENT]",
          "required": true,
          "schema": {
            "title": "auditEntity",
            "type": "string"
          }
        },
        {
          "name": "auditAction",
          "type": "string",
          "info": "Filter for audit action.: Must be one of [INSERT, UPDATE, DELETE, PARTIAL_UPDATE, CANCEL]",
          "required": false,
          "schema": {
            "title": "auditAction",
            "type": "string"
          }
        },
        {
          "name": "targetId",
          "type": "number",
          "info": "Filter by the entity id.: 123",
          "required": true,
          "schema": {
            "title": "targetId",
            "type": "number"
          }
        },
        {
          "name": "node",
          "type": "string",
          "info": "Filter for a specific node.: string",
          "required": false,
          "schema": {
            "title": "node",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search"
      },
      "task": true
    },
    {
      "name": "getById2",
      "summary": "Retrieves a broker credit card by its id",
      "description": "Retrieves a broker credit card by its id",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the credit card.: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById2"
      },
      "task": true
    },
    {
      "name": "delete",
      "summary": "Deletes a credit card",
      "description": "Deletes a credit card",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the credit card.: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete"
      },
      "task": true
    },
    {
      "name": "getCreditCardsByAccountId",
      "summary": "Retrieves a credit card  by account id",
      "description": "Retrieves a credit card  by account id",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getCreditCardsByAccountId"
      },
      "task": true
    },
    {
      "name": "update1",
      "summary": "Updates a broker card",
      "description": "Updates a broker card",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Credit card object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update1"
      },
      "task": true
    },
    {
      "name": "insert1",
      "summary": "Creates a broker credit card",
      "description": "Creates a broker credit card",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Credit card object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insert1"
      },
      "task": true
    },
    {
      "name": "getCreditCards",
      "summary": "Gets all cards associated with a credit card group",
      "description": "Gets all cards associated with a credit card group",
      "input": [
        {
          "name": "groupId",
          "type": "number",
          "info": "The id of the credit card group.: 123",
          "required": true,
          "schema": {
            "title": "groupId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getCreditCards"
      },
      "task": true
    },
    {
      "name": "query",
      "summary": "Retrieves all credit card groups",
      "description": "Retrieves all credit card groups",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "lastFourDigits",
          "type": "string",
          "info": "Last five digits of the credit card: string",
          "required": false,
          "schema": {
            "title": "lastFourDigits",
            "type": "string"
          }
        },
        {
          "name": "cardType",
          "type": "string",
          "info": "Card type to filter: Must be one of [AMEX, DISCOVER, MASTERCARD, UNKNOWN, VISA]",
          "required": false,
          "schema": {
            "title": "cardType",
            "type": "string"
          }
        },
        {
          "name": "nameOnCard",
          "type": "string",
          "info": "Name on card: string",
          "required": false,
          "schema": {
            "title": "nameOnCard",
            "type": "string"
          }
        },
        {
          "name": "groupName",
          "type": "string",
          "info": "Credit card group label to filter: string",
          "required": false,
          "schema": {
            "title": "groupName",
            "type": "string"
          }
        },
        {
          "name": "sortBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [CARD_TYPE, NAME_ON_CARD]",
          "required": false,
          "schema": {
            "title": "sortBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/query"
      },
      "task": true
    },
    {
      "name": "updateGroup",
      "summary": "Updates a credit card group",
      "description": "Updates a credit card group",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Card group object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updateGroup"
      },
      "task": true
    },
    {
      "name": "insertGroup",
      "summary": "Creates a credit card group",
      "description": "Creates a credit card group",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Card group object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insertGroup"
      },
      "task": true
    },
    {
      "name": "getGroupById",
      "summary": "Retrieves a credit card group by its id",
      "description": "Retrieves a credit card group by its id",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the credit card group: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getGroupById"
      },
      "task": true
    },
    {
      "name": "deleteGroup",
      "summary": "Deletes a credit card group",
      "description": "Deletes a credit card group",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the credit card group.: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/deleteGroup"
      },
      "task": true
    },
    {
      "name": "getById3",
      "summary": "Retrieves a customer by the customer id",
      "description": "Retrieves a customer by the customer id",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById3"
      },
      "task": true
    },
    {
      "name": "update4",
      "summary": "Updates a customer",
      "description": "Updates a customer",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "The customer object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update4"
      },
      "task": true
    },
    {
      "name": "getDefaultsById",
      "summary": "Retrieves default customers for the account",
      "description": "Retrieves default customers for the account",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getDefaultsById"
      },
      "task": true
    },
    {
      "name": "update3",
      "summary": "Updates a default customer",
      "description": "Updates a default customer",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "The default customer object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update3"
      },
      "task": true
    },
    {
      "name": "removeTag",
      "summary": "Deletes a tag for a customer",
      "description": "Deletes a tag for a customer",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "string",
          "info": "Tag to be removed from the customer: string",
          "required": true,
          "schema": {
            "title": "tag",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/removeTag"
      },
      "task": true
    },
    {
      "name": "getCards",
      "summary": "Retrieves a card associated with a customer",
      "description": "Retrieves a card associated with a customer",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "cardId",
          "type": "number",
          "info": "The card id associated to the customer: 123",
          "required": true,
          "schema": {
            "title": "cardId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getCards"
      },
      "task": true
    },
    {
      "name": "removeCard",
      "summary": "Deletes a card associated with a customer",
      "description": "Deletes a card associated with a customer",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "cardId",
          "type": "number",
          "info": "The card id associated to the customer: 123",
          "required": true,
          "schema": {
            "title": "cardId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/removeCard"
      },
      "task": true
    },
    {
      "name": "getCards1",
      "summary": "Gets all cards associated with a customer",
      "description": "Gets all cards associated with a customer",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getCards1"
      },
      "task": true
    },
    {
      "name": "addCard",
      "summary": "Adds a credit card to a customer",
      "description": "Adds a credit card to a customer",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "The credit card object to add to the customer.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/addCard"
      },
      "task": true
    },
    {
      "name": "setDefaultCard",
      "summary": "Set a card associated with a customer as the default card",
      "description": "Set a card associated with a customer as the default card",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "cardId",
          "type": "number",
          "info": "The card id associated to the customer: 123",
          "required": true,
          "schema": {
            "title": "cardId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/setDefaultCard"
      },
      "task": true
    },
    {
      "name": "bulkRemoveTags",
      "summary": "Deletes all tags from customers with given ids",
      "description": "Deletes all tags from customers with given ids",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Customer Ids: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkRemoveTags"
      },
      "task": true
    },
    {
      "name": "tag",
      "summary": "Inserts a new tags for a customer. Duplicates are ignored",
      "description": "Inserts a new tags for a customer. Duplicates are ignored",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The id of the customer: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to be removed from the customer: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/tag"
      },
      "task": true
    },
    {
      "name": "update2",
      "summary": "Bulk Customer Update",
      "description": "Bulk Customer Update",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Bulk customer update: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update2"
      },
      "task": true
    },
    {
      "name": "delete1",
      "summary": "Deletes tags for a customer",
      "description": "Deletes tags for a customer",
      "input": [
        {
          "name": "customerId",
          "type": "number",
          "info": "The customer Id: 123",
          "required": true,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to be removed from the customer: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete1"
      },
      "task": true
    },
    {
      "name": "search1",
      "summary": "Retrieves all customers",
      "description": "Retrieves all customers",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "customerType",
          "type": "array",
          "info": "Customer types to filter: array",
          "required": false,
          "schema": {
            "title": "customerType",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Whitespace separated list of tags to search by: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "Tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "id",
          "type": "array",
          "info": "Id search filter: array",
          "required": false,
          "schema": {
            "title": "id",
            "type": "array"
          }
        },
        {
          "name": "displayName",
          "type": "string",
          "info": "Display name search filter: string",
          "required": false,
          "schema": {
            "title": "displayName",
            "type": "string"
          }
        },
        {
          "name": "email",
          "type": "string",
          "info": "Email search filter: string",
          "required": false,
          "schema": {
            "title": "email",
            "type": "string"
          }
        },
        {
          "name": "lastName",
          "type": "string",
          "info": "Last name search filter: string",
          "required": false,
          "schema": {
            "title": "lastName",
            "type": "string"
          }
        },
        {
          "name": "company",
          "type": "string",
          "info": "Company search filter: string",
          "required": false,
          "schema": {
            "title": "company",
            "type": "string"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "country",
          "type": "string",
          "info": "Country search filter: string",
          "required": false,
          "schema": {
            "title": "country",
            "type": "string"
          }
        },
        {
          "name": "phone",
          "type": "string",
          "info": "Phone number to search by (matching phone 1 and phone 2 fields): string",
          "required": false,
          "schema": {
            "title": "phone",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "invoiceDateFrom",
          "type": "string",
          "info": "From Invoice Date filter: string",
          "required": false,
          "schema": {
            "title": "invoiceDateFrom",
            "type": "string"
          }
        },
        {
          "name": "invoiceDateTo",
          "type": "string",
          "info": "To Invoice Date filter: string",
          "required": false,
          "schema": {
            "title": "invoiceDateTo",
            "type": "string"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [ID, DISPLAY_NAME, CUSTOMER_TYPE, EMAIL, LAST_NAME, COMPANY, CITY, STATE, COUNTRY]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        },
        {
          "name": "arThresholdReached",
          "type": "boolean",
          "info": "Whether arThreshold is Reached to search by: boolean",
          "required": false,
          "schema": {
            "title": "arThresholdReached",
            "type": "boolean"
          }
        },
        {
          "name": "createdDateFrom",
          "type": "string",
          "info": "From created date filter: string",
          "required": false,
          "schema": {
            "title": "createdDateFrom",
            "type": "string"
          }
        },
        {
          "name": "createdDateTo",
          "type": "string",
          "info": "To created date filter: string",
          "required": false,
          "schema": {
            "title": "createdDateTo",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search1"
      },
      "task": true
    },
    {
      "name": "insert2",
      "summary": "Creates a customer",
      "description": "Creates a customer",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "A customer object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insert2"
      },
      "task": true
    },
    {
      "name": "enumeration",
      "summary": "Retrieves available enumerations",
      "description": "Retrieves available enumerations",
      "input": [
        {
          "name": "enumtype",
          "type": "string",
          "info": "The type of enumeration: Must be one of [event, seat, ticket_split_type, ticket_stock_type, ticket_status, term, payment_method, delivery_method, inventory_status, line_item_type, line_type, customer_type, vendor_type, country_type, state_type, marketplace, payment_status, fulfillment_status, audit_entity, audit_action, integration_provider, currency, consignment_sale_status, report_categories, card_type, holding_marketplace, invoice_status,, purchase_status, hold_status, email_protocol, ups_shipping_confirmation_type, ups_shipping_service_code, ups_shipping_charge_status, permission, permission_category, account_setting_names, account_setting_categories]",
          "required": true,
          "schema": {
            "title": "enumtype",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/enumeration"
      },
      "task": true
    },
    {
      "name": "removeTag1",
      "summary": "Deletes a tag for an event",
      "description": "Deletes a tag for an event",
      "input": [
        {
          "name": "eventId",
          "type": "number",
          "info": ": 123",
          "required": true,
          "schema": {
            "title": "eventId",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "string",
          "info": ": string",
          "required": true,
          "schema": {
            "title": "tag",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/removeTag1"
      },
      "task": true
    },
    {
      "name": "bulkRemoveTags1",
      "summary": "Deletes all tags from events with given ids",
      "description": "Deletes all tags from events with given ids",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Event Ids: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkRemoveTags1"
      },
      "task": true
    },
    {
      "name": "getPerformers",
      "summary": "Retrieves all performers",
      "description": "Retrieves all performers",
      "input": [
        {
          "name": "name",
          "type": "string",
          "info": ": string",
          "required": false,
          "schema": {
            "title": "name",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPerformers"
      },
      "task": true
    },
    {
      "name": "getPerformerById",
      "summary": "Retrieves a performer by the performer id",
      "description": "Retrieves a performer by the performer id",
      "input": [
        {
          "name": "performerId",
          "type": "number",
          "info": "Performer id: 123",
          "required": true,
          "schema": {
            "title": "performerId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPerformerById"
      },
      "task": true
    },
    {
      "name": "getCategories",
      "summary": "Retrieves all categories",
      "description": "Retrieves all categories",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getCategories"
      },
      "task": true
    },
    {
      "name": "tag1",
      "summary": "Inserts a new tags for an event. Duplicates are ignored",
      "description": "Inserts a new tags for an event. Duplicates are ignored",
      "input": [
        {
          "name": "eventId",
          "type": "number",
          "info": ": 123",
          "required": true,
          "schema": {
            "title": "eventId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": ": array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/tag1"
      },
      "task": true
    },
    {
      "name": "index",
      "summary": "Retrieves filtered events",
      "description": "Retrieves filtered events",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "Tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event search term: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "eventType",
          "type": "string",
          "info": "Event Type: Must be one of [CONCERT, THEATER, SPORT, OTHER]",
          "required": false,
          "schema": {
            "title": "eventType",
            "type": "string"
          }
        },
        {
          "name": "categoryId",
          "type": "number",
          "info": "Category ID filter: 123",
          "required": false,
          "schema": {
            "title": "categoryId",
            "type": "number"
          }
        },
        {
          "name": "category",
          "type": "string",
          "info": "Category: string",
          "required": false,
          "schema": {
            "title": "category",
            "type": "string"
          }
        },
        {
          "name": "venueId",
          "type": "number",
          "info": "The id of a venue: 123",
          "required": false,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "Minimum event date in yyyy-MM-dd format: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "Maximum event date in yyyy-MM-dd format: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "eventTimeFrom",
          "type": "string",
          "info": "Only search events starting not earlier than: string",
          "required": false,
          "schema": {
            "title": "eventTimeFrom",
            "type": "string"
          }
        },
        {
          "name": "eventTimeTo",
          "type": "string",
          "info": "Only search events starting not later than: string",
          "required": false,
          "schema": {
            "title": "eventTimeTo",
            "type": "string"
          }
        },
        {
          "name": "keywords",
          "type": "array",
          "info": "Search Keywords: array",
          "required": false,
          "schema": {
            "title": "keywords",
            "type": "array"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event ID: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "performerId",
          "type": "number",
          "info": "Performer ID filter: 123",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "number"
          }
        },
        {
          "name": "dayOfWeek",
          "type": "array",
          "info": "Day of the week of events that occur on that day of the week: array",
          "required": false,
          "schema": {
            "title": "dayOfWeek",
            "type": "array"
          }
        },
        {
          "name": "excludeParking",
          "type": "boolean",
          "info": "Whether parking events are excluded: boolean",
          "required": false,
          "schema": {
            "title": "excludeParking",
            "type": "boolean"
          }
        },
        {
          "name": "excludeActiveInventory",
          "type": "boolean",
          "info": "Whether active inventories are excluded: boolean",
          "required": false,
          "schema": {
            "title": "excludeActiveInventory",
            "type": "boolean"
          }
        },
        {
          "name": "noTags",
          "type": "boolean",
          "info": "Only return events with no tags: boolean",
          "required": false,
          "schema": {
            "title": "noTags",
            "type": "boolean"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [ID, DATE, EVENT_NAME, VENUE_NAME, VENUE_CITY, VENUE_STATE, EVENT_TYPE, CATEGORY_NAME, MY_SOLD_TICKETS, TICKET_COUNT]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/index"
      },
      "task": true
    },
    {
      "name": "get2",
      "summary": "Returns an event",
      "description": "Returns an event",
      "input": [
        {
          "name": "eventId",
          "type": "number",
          "info": "The id of the event to retrieve: 123",
          "required": true,
          "schema": {
            "title": "eventId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/get2"
      },
      "task": true
    },
    {
      "name": "delete2",
      "summary": "Deletes tags for an event",
      "description": "Deletes tags for an event",
      "input": [
        {
          "name": "eventId",
          "type": "number",
          "info": "The event Id: 123",
          "required": true,
          "schema": {
            "title": "eventId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to be removed from the event: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete2"
      },
      "task": true
    },
    {
      "name": "getPerformers1",
      "summary": "Retrieves event positions grouped by performer",
      "description": "Retrieves event positions grouped by performer",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "performerId",
          "type": "array",
          "info": "Performer Id search filter: array",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "array"
          }
        },
        {
          "name": "performer",
          "type": "string",
          "info": "Performer name search filter: string",
          "required": false,
          "schema": {
            "title": "performer",
            "type": "string"
          }
        },
        {
          "name": "eventType",
          "type": "string",
          "info": "Event Type search filter: Must be one of [CONCERT, THEATER, SPORT, OTHER]",
          "required": false,
          "schema": {
            "title": "eventType",
            "type": "string"
          }
        },
        {
          "name": "categoryId",
          "type": "number",
          "info": "Category Id search filter: 123",
          "required": false,
          "schema": {
            "title": "categoryId",
            "type": "number"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "Minimum event date in yyyy-MM-dd format: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "Maximum event date in yyyy-MM-dd format: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "dayOfWeek",
          "type": "array",
          "info": "Day of the week of events that occur on that day of the week: array",
          "required": false,
          "schema": {
            "title": "dayOfWeek",
            "type": "array"
          }
        },
        {
          "name": "excludeParking",
          "type": "boolean",
          "info": "Whether parking events are excluded: boolean",
          "required": false,
          "schema": {
            "title": "excludeParking",
            "type": "boolean"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [NAME]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPerformers1"
      },
      "task": true
    },
    {
      "name": "getCategories1",
      "summary": "Retrieves event positions grouped by category",
      "description": "Retrieves event positions grouped by category",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getCategories1"
      },
      "task": true
    },
    {
      "name": "index1",
      "summary": "Retrieves event positions",
      "description": "Retrieves event positions",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "section",
          "type": "string",
          "info": "Section search filter: string",
          "required": false,
          "schema": {
            "title": "section",
            "type": "string"
          }
        },
        {
          "name": "row",
          "type": "string",
          "info": "Row search filter: string",
          "required": false,
          "schema": {
            "title": "row",
            "type": "string"
          }
        },
        {
          "name": "listed",
          "type": "boolean",
          "info": "Whether inventories are listed: boolean",
          "required": false,
          "schema": {
            "title": "listed",
            "type": "boolean"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event Id to search by: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event search term: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "keywords",
          "type": "array",
          "info": "Search Keywords: array",
          "required": false,
          "schema": {
            "title": "keywords",
            "type": "array"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "Minimum event date in yyyy-MM-dd format: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "Maximum event date in yyyy-MM-dd format: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "eventTimeFrom",
          "type": "string",
          "info": "Only search events starting not earlier than: string",
          "required": false,
          "schema": {
            "title": "eventTimeFrom",
            "type": "string"
          }
        },
        {
          "name": "eventTimeTo",
          "type": "string",
          "info": "Only search events starting not later than: string",
          "required": false,
          "schema": {
            "title": "eventTimeTo",
            "type": "string"
          }
        },
        {
          "name": "dayOfWeek",
          "type": "array",
          "info": "Day of the week of events that occur on that day of the week: array",
          "required": false,
          "schema": {
            "title": "dayOfWeek",
            "type": "array"
          }
        },
        {
          "name": "eventType",
          "type": "string",
          "info": "Event Type search filter: Must be one of [CONCERT, THEATER, SPORT, OTHER]",
          "required": false,
          "schema": {
            "title": "eventType",
            "type": "string"
          }
        },
        {
          "name": "categoryId",
          "type": "number",
          "info": "Category Id search filter: 123",
          "required": false,
          "schema": {
            "title": "categoryId",
            "type": "number"
          }
        },
        {
          "name": "category",
          "type": "string",
          "info": "Category search filter: string",
          "required": false,
          "schema": {
            "title": "category",
            "type": "string"
          }
        },
        {
          "name": "venueId",
          "type": "number",
          "info": "Venue Id search filter: 123",
          "required": false,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "performerId",
          "type": "number",
          "info": "Performer Id filter: 123",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "number"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "inventoryTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all inventory tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "inventoryTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "noTags",
          "type": "boolean",
          "info": "Inventory tags to exclude: boolean",
          "required": false,
          "schema": {
            "title": "noTags",
            "type": "boolean"
          }
        },
        {
          "name": "excludeOnlyZoneInventory",
          "type": "boolean",
          "info": "Whether to exclude events with all zoned inventories: boolean",
          "required": false,
          "schema": {
            "title": "excludeOnlyZoneInventory",
            "type": "boolean"
          }
        },
        {
          "name": "excludeParking",
          "type": "boolean",
          "info": "Whether parking events are excluded: boolean",
          "required": false,
          "schema": {
            "title": "excludeParking",
            "type": "boolean"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [EVENT_DATE, EVENT_NAME, VENUE_NAME, VENUE_CITY, VENUE_STATE, QUANTITY, COST, EVENT_TYPE, CATEGORY_NAME, LAST_PRICE_UPDATE, LAST_SALE]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/index1"
      },
      "task": true
    },
    {
      "name": "getById4",
      "summary": "Get external account by id",
      "description": "Get external account by id",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the external account: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById4"
      },
      "task": true
    },
    {
      "name": "update5",
      "summary": "Update external accounts",
      "description": "Update external accounts",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the external account: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "The external account object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update5"
      },
      "task": true
    },
    {
      "name": "delete3",
      "summary": "Delete external accounts",
      "description": "Delete external accounts",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the external account: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete3"
      },
      "task": true
    },
    {
      "name": "search2",
      "summary": "Get all external accounts",
      "description": "Get all external accounts",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/search2"
      },
      "task": true
    },
    {
      "name": "create",
      "summary": "Creates an external account",
      "description": "Creates an external account",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "An external account object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/create"
      },
      "task": true
    },
    {
      "name": "getById5",
      "summary": "Retrieves a hold by the hold id",
      "description": "Retrieves a hold by the hold id",
      "input": [
        {
          "name": "holdId",
          "type": "number",
          "info": "The id of the hold: 123",
          "required": true,
          "schema": {
            "title": "holdId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById5"
      },
      "task": true
    },
    {
      "name": "update6",
      "summary": "Updates a hold",
      "description": "Updates a hold",
      "input": [
        {
          "name": "holdId",
          "type": "number",
          "info": "The id of the hold: 123",
          "required": true,
          "schema": {
            "title": "holdId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "The hold object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update6"
      },
      "task": true
    },
    {
      "name": "deleteById1",
      "summary": "Deletes a hold by the hold id",
      "description": "Deletes a hold by the hold id",
      "input": [
        {
          "name": "holdId",
          "type": "number",
          "info": "The id of the hold: 123",
          "required": true,
          "schema": {
            "title": "holdId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/deleteById1"
      },
      "task": true
    },
    {
      "name": "search3",
      "summary": "Retrieves all holds",
      "description": "Retrieves all holds",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "id",
          "type": "number",
          "info": "Id to filter: 123",
          "required": false,
          "schema": {
            "title": "id",
            "type": "number"
          }
        },
        {
          "name": "inventoryId",
          "type": "number",
          "info": "Inventory Id to filter: 123",
          "required": false,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "exchangePosId",
          "type": "array",
          "info": "Exchange pos Id filter: array",
          "required": false,
          "schema": {
            "title": "exchangePosId",
            "type": "array"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event to filter: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "venueId",
          "type": "number",
          "info": "Venue Id filter: 123",
          "required": false,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "user",
          "type": "string",
          "info": "User filter: string",
          "required": false,
          "schema": {
            "title": "user",
            "type": "string"
          }
        },
        {
          "name": "userId",
          "type": "string",
          "info": "User id filter: string",
          "required": false,
          "schema": {
            "title": "userId",
            "type": "string"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "From event date filter: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "To event date filter: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "createdDateFrom",
          "type": "string",
          "info": "From created date filter: string",
          "required": false,
          "schema": {
            "title": "createdDateFrom",
            "type": "string"
          }
        },
        {
          "name": "createdDateTo",
          "type": "string",
          "info": "To created date filter: string",
          "required": false,
          "schema": {
            "title": "createdDateTo",
            "type": "string"
          }
        },
        {
          "name": "expiryDateFrom",
          "type": "string",
          "info": "From expiry date filter: string",
          "required": false,
          "schema": {
            "title": "expiryDateFrom",
            "type": "string"
          }
        },
        {
          "name": "expiryDateTo",
          "type": "string",
          "info": "To expiry date filter: string",
          "required": false,
          "schema": {
            "title": "expiryDateTo",
            "type": "string"
          }
        },
        {
          "name": "externalRef",
          "type": "string",
          "info": "External ref to filter: string",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        },
        {
          "name": "customerId",
          "type": "number",
          "info": "Category Id filter: 123",
          "required": false,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [EVENT_NAME, EVENT_DATE, VENUE_NAME, VENUE_CITY, VENUE_STATE, LISTING_ID, INVENTORY_QUANTITY, INVENTORY_SECTION, INVENTORY_ROW, SEATS, INVENTORY_COST, INVENTORY_LIST_PRICE, NOTES, USER, CREATED_DATE, EXPIRY_DATE, EXTERNAL_REF, CUSTOMER_DISPLAY_NAME]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search3"
      },
      "task": true
    },
    {
      "name": "insert3",
      "summary": "Creates a hold",
      "description": "Creates a hold",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "A hold request to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insert3"
      },
      "task": true
    },
    {
      "name": "getInventoryBarcodes",
      "summary": "Get barcodes for inventory",
      "description": "Get barcodes for inventory",
      "input": [
        {
          "name": "exchangePosId",
          "type": "number",
          "info": "The Exchange POS ID of the inventory: 123",
          "required": true,
          "schema": {
            "title": "exchangePosId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInventoryBarcodes"
      },
      "task": true
    },
    {
      "name": "getInventoryDeltas",
      "summary": "Get changed inventory (created, updated, deleted) by update time",
      "description": "Get changed inventory (created, updated, deleted) by update time",
      "input": [
        {
          "name": "startTime",
          "type": "string",
          "info": "Returns inventory updates after this time, iso yyyy-MM-ddTHH:mm:ssZ format.: string",
          "required": true,
          "schema": {
            "title": "startTime",
            "type": "string"
          }
        },
        {
          "name": "endTime",
          "type": "string",
          "info": "Returns inventory updates before this time, iso yyyy-MM-ddTHH:mm:ssZ format.: string",
          "required": true,
          "schema": {
            "title": "endTime",
            "type": "string"
          }
        },
        {
          "name": "ticketStatus",
          "type": "string",
          "info": "Returns inventory updates with requested ticket status.: Must be one of [AVAILABLE, SOLD, CANCELLED]",
          "required": false,
          "schema": {
            "title": "ticketStatus",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInventoryDeltas"
      },
      "task": true
    },
    {
      "name": "searchSold",
      "summary": "Gets sold inventory filtered by query parameters",
      "description": "Gets sold inventory filtered by query parameters",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [EVENT_DATE, EVENT_DAY_OF_WEEK, EVENT_NAME, VENUE_NAME, VENUE_CITY, VENUE_STATE, CATEGORY_NAME, INVOICE_DATE, LAST_INVOICE_NOTES_DATE, LAST_INVOICE_NOTES, DISPLAY_NAME, STOCK_TYPE, TOTAL, INVOICE_ID, SECTION, ROW, QUANTITY, COST, EXPECTED_VALUE, FULFILLMENT_STATUS, PAYMENT_STATUS, INVOICE_EXTERNAL_REF, PURCHASE_EXTERNAL_REF, PERFORMER_NAME, CUSTOMER_DISPLAY_NAME, IN_HAND_DATE, AVERAGE_UNIT_COST, UNIT_TICKET_SALES, PUBLIC_NOTES, NOTES, PROFIT, PROFIT_MARGIN, TAGS, OUTSTANDING_BALANCE, INVOICE_STATUS, CUSTOMER_TYPE, DAYS_LISTED, SEATS, ELECTRONIC_TRANSFER, RECEIVED, CREATED_BY, FULFILLMENT_DATE, LAST_INVOICE_NOTES_USER, PURCHASE_ID, CURRENCY, PURCHASE_DATE, EVENT_ID, ZONE_SEATING]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event Id to search on: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "inventoryId",
          "type": "array",
          "info": "Inventory Id to search on: array",
          "required": false,
          "schema": {
            "title": "inventoryId",
            "type": "array"
          }
        },
        {
          "name": "exchangePosId",
          "type": "array",
          "info": "Exchange pos Id filter: array",
          "required": false,
          "schema": {
            "title": "exchangePosId",
            "type": "array"
          }
        },
        {
          "name": "invoiceId",
          "type": "array",
          "info": "Invoice Id to search on: array",
          "required": false,
          "schema": {
            "title": "invoiceId",
            "type": "array"
          }
        },
        {
          "name": "purchaseIds",
          "type": "array",
          "info": "Purchase Id to search on: array",
          "required": false,
          "schema": {
            "title": "purchaseIds",
            "type": "array"
          }
        },
        {
          "name": "vendorId",
          "type": "number",
          "info": "Vendor Id to search on: 123",
          "required": false,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        },
        {
          "name": "eventType",
          "type": "string",
          "info": "Event Type to search on: Must be one of [CONCERT, THEATER, SPORT, OTHER]",
          "required": false,
          "schema": {
            "title": "eventType",
            "type": "string"
          }
        },
        {
          "name": "categoryId",
          "type": "array",
          "info": "Category Id filter: array",
          "required": false,
          "schema": {
            "title": "categoryId",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "Tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "noTags",
          "type": "boolean",
          "info": "Whether the results should have tags: boolean",
          "required": false,
          "schema": {
            "title": "noTags",
            "type": "boolean"
          }
        },
        {
          "name": "invoiceTag",
          "type": "array",
          "info": "Invoice tags to include: array",
          "required": false,
          "schema": {
            "title": "invoiceTag",
            "type": "array"
          }
        },
        {
          "name": "invoiceTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all invoice tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "invoiceTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "purchaseTag",
          "type": "array",
          "info": "Purchase tags to include: array",
          "required": false,
          "schema": {
            "title": "purchaseTag",
            "type": "array"
          }
        },
        {
          "name": "purchaseTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all purchase tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "purchaseTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "customerId",
          "type": "number",
          "info": "Customer Id to filter: 123",
          "required": false,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "customerDisplayName",
          "type": "string",
          "info": "Customer display name filter: string",
          "required": false,
          "schema": {
            "title": "customerDisplayName",
            "type": "string"
          }
        },
        {
          "name": "performerId",
          "type": "number",
          "info": "Performer Id filter: 123",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "number"
          }
        },
        {
          "name": "performer",
          "type": "string",
          "info": "Performer to search on: string",
          "required": false,
          "schema": {
            "title": "performer",
            "type": "string"
          }
        },
        {
          "name": "eventKeywords",
          "type": "array",
          "info": "Event keywords filter: array",
          "required": false,
          "schema": {
            "title": "eventKeywords",
            "type": "array"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event to search on: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "From event date filter: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "To event date filter: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "venueId",
          "type": "number",
          "info": "Venue Id filter: 123",
          "required": false,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "section",
          "type": "string",
          "info": "Section search filter: string",
          "required": false,
          "schema": {
            "title": "section",
            "type": "string"
          }
        },
        {
          "name": "row",
          "type": "string",
          "info": "Row search filter: string",
          "required": false,
          "schema": {
            "title": "row",
            "type": "string"
          }
        },
        {
          "name": "includesSeat",
          "type": "number",
          "info": "Seat search filter: 123",
          "required": false,
          "schema": {
            "title": "includesSeat",
            "type": "number"
          }
        },
        {
          "name": "invoiceDateFrom",
          "type": "string",
          "info": "Invoice date from range filter: string",
          "required": false,
          "schema": {
            "title": "invoiceDateFrom",
            "type": "string"
          }
        },
        {
          "name": "invoiceDateTo",
          "type": "string",
          "info": "Invoice date to range filter: string",
          "required": false,
          "schema": {
            "title": "invoiceDateTo",
            "type": "string"
          }
        },
        {
          "name": "currencyCode",
          "type": "string",
          "info": "Currency type search filter: Must be one of [USD, CAD, EUR, GBP, JPY, BRL, XBT, AUD]",
          "required": false,
          "schema": {
            "title": "currencyCode",
            "type": "string"
          }
        },
        {
          "name": "externalRef",
          "type": "string",
          "info": "Invoice external ref filter: string",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        },
        {
          "name": "purchaseExternalRef",
          "type": "string",
          "info": "Purchase external ref filter: string",
          "required": false,
          "schema": {
            "title": "purchaseExternalRef",
            "type": "string"
          }
        },
        {
          "name": "paymentStatus",
          "type": "array",
          "info": "Payment status to search on: array",
          "required": false,
          "schema": {
            "title": "paymentStatus",
            "type": "array"
          }
        },
        {
          "name": "invoiceStatus",
          "type": "array",
          "info": "Invoice status search filter: array",
          "required": false,
          "schema": {
            "title": "invoiceStatus",
            "type": "array"
          }
        },
        {
          "name": "fulfillmentStatus",
          "type": "string",
          "info": "Fulfillment status search filter: Must be one of [PENDING, COMPLETE]",
          "required": false,
          "schema": {
            "title": "fulfillmentStatus",
            "type": "string"
          }
        },
        {
          "name": "stockType",
          "type": "string",
          "info": "Stock Type search filter: Must be one of [HARD, ELECTRONIC, FLASH, PAPERLESS, PAPERLESS_CARD, MOBILE_TRANSFER, MOBILE_SCREENCAP]",
          "required": false,
          "schema": {
            "title": "stockType",
            "type": "string"
          }
        },
        {
          "name": "zoneSeating",
          "type": "boolean",
          "info": "Whether the results should have zone seating: boolean",
          "required": false,
          "schema": {
            "title": "zoneSeating",
            "type": "boolean"
          }
        },
        {
          "name": "pdfsOrBarcodesAttached",
          "type": "boolean",
          "info": "Whether the results should have Pdfs or Bar Codes attached to all tickets: boolean",
          "required": false,
          "schema": {
            "title": "pdfsOrBarcodesAttached",
            "type": "boolean"
          }
        },
        {
          "name": "filesUploaded",
          "type": "boolean",
          "info": "Whether the results should have Pdfs attached to all tickets: boolean",
          "required": false,
          "schema": {
            "title": "filesUploaded",
            "type": "boolean"
          }
        },
        {
          "name": "barcodesEntered",
          "type": "boolean",
          "info": "Whether the results should have Bar Codes entered in all tickets: boolean",
          "required": false,
          "schema": {
            "title": "barcodesEntered",
            "type": "boolean"
          }
        },
        {
          "name": "electronicTransfer",
          "type": "boolean",
          "info": "Whether the results should have electronic transfer: boolean",
          "required": false,
          "schema": {
            "title": "electronicTransfer",
            "type": "boolean"
          }
        },
        {
          "name": "internalNotes",
          "type": "string",
          "info": "Internal notes search filter: string",
          "required": false,
          "schema": {
            "title": "internalNotes",
            "type": "string"
          }
        },
        {
          "name": "inHandDateFrom",
          "type": "string",
          "info": "From in hand date filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateFrom",
            "type": "string"
          }
        },
        {
          "name": "inHandDateTo",
          "type": "string",
          "info": "To in hand date filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateTo",
            "type": "string"
          }
        },
        {
          "name": "fulfillmentDateFrom",
          "type": "string",
          "info": "From fulfillment date filter: string",
          "required": false,
          "schema": {
            "title": "fulfillmentDateFrom",
            "type": "string"
          }
        },
        {
          "name": "fulfillmentDateTo",
          "type": "string",
          "info": "To fulfillment date filter: string",
          "required": false,
          "schema": {
            "title": "fulfillmentDateTo",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateFrom",
          "type": "string",
          "info": "Purchase date from range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateFrom",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateTo",
          "type": "string",
          "info": "Purchase date to range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateTo",
            "type": "string"
          }
        },
        {
          "name": "cooperative",
          "type": "boolean",
          "info": "Whether the results are cooperative: boolean",
          "required": false,
          "schema": {
            "title": "cooperative",
            "type": "boolean"
          }
        },
        {
          "name": "received",
          "type": "boolean",
          "info": "Whether the results are received: boolean",
          "required": false,
          "schema": {
            "title": "received",
            "type": "boolean"
          }
        },
        {
          "name": "invoiceNotes",
          "type": "string",
          "info": "Invoice notes search filter: string",
          "required": false,
          "schema": {
            "title": "invoiceNotes",
            "type": "string"
          }
        },
        {
          "name": "publicNotes",
          "type": "string",
          "info": "Public notes search filter: string",
          "required": false,
          "schema": {
            "title": "publicNotes",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "due",
          "type": "boolean",
          "info": "Whether the inventories are due or not: boolean",
          "required": false,
          "schema": {
            "title": "due",
            "type": "boolean"
          }
        },
        {
          "name": "invoiceCreatedBy",
          "type": "string",
          "info": "Email search filter for invoice creator: string",
          "required": false,
          "schema": {
            "title": "invoiceCreatedBy",
            "type": "string"
          }
        },
        {
          "name": "createdByUserId",
          "type": "number",
          "info": "User id of invoice creator: 123",
          "required": false,
          "schema": {
            "title": "createdByUserId",
            "type": "number"
          }
        },
        {
          "name": "dayOfWeek",
          "type": "array",
          "info": "Day of the week of events that occur on that day of the week: array",
          "required": false,
          "schema": {
            "title": "dayOfWeek",
            "type": "array"
          }
        },
        {
          "name": "lastUpdateFrom",
          "type": "string",
          "info": "Inventory last update date from range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateFrom",
            "type": "string"
          }
        },
        {
          "name": "invoiceNotesUserId",
          "type": "number",
          "info": "Invoice notes user id search filter: 123",
          "required": false,
          "schema": {
            "title": "invoiceNotesUserId",
            "type": "number"
          }
        },
        {
          "name": "consignment",
          "type": "string",
          "info": "Whether the results have a consignment type POs: Must be one of [YES, NO, COMPLETED]",
          "required": false,
          "schema": {
            "title": "consignment",
            "type": "string"
          }
        },
        {
          "name": "customerType",
          "type": "string",
          "info": "Whether the results have a customer type of the Invoice: Must be one of [MARKETPLACE, PERFORMER, BROKER, RETAIL, CONCIERGE, TRAVELAGENT]",
          "required": false,
          "schema": {
            "title": "customerType",
            "type": "string"
          }
        },
        {
          "name": "excludeParking",
          "type": "boolean",
          "info": "Whether parking events are excluded: boolean",
          "required": false,
          "schema": {
            "title": "excludeParking",
            "type": "boolean"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/searchSold"
      },
      "task": true
    },
    {
      "name": "searchPurchased",
      "summary": "Gets purchased inventory filtered by query parameters",
      "description": "Gets purchased inventory filtered by query parameters",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "stockType",
          "type": "string",
          "info": "Stock Type search filter: Must be one of [HARD, ELECTRONIC, FLASH, PAPERLESS, PAPERLESS_CARD, MOBILE_TRANSFER, MOBILE_SCREENCAP]",
          "required": false,
          "schema": {
            "title": "stockType",
            "type": "string"
          }
        },
        {
          "name": "ticketStatus",
          "type": "array",
          "info": "Ticket Status search filter: array",
          "required": false,
          "schema": {
            "title": "ticketStatus",
            "type": "array"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event Id search filter: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "inventoryId",
          "type": "array",
          "info": "Inventory Id search filter: array",
          "required": false,
          "schema": {
            "title": "inventoryId",
            "type": "array"
          }
        },
        {
          "name": "performerId",
          "type": "array",
          "info": "Performer Id search filter: array",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "array"
          }
        },
        {
          "name": "vendorId",
          "type": "array",
          "info": "Vendor Id search filter: array",
          "required": false,
          "schema": {
            "title": "vendorId",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Purchase tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all PO tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "PO tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all PO tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event search filter: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "section",
          "type": "string",
          "info": "Section search filter: string",
          "required": false,
          "schema": {
            "title": "section",
            "type": "string"
          }
        },
        {
          "name": "row",
          "type": "string",
          "info": "Row search filter: string",
          "required": false,
          "schema": {
            "title": "row",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateFrom",
          "type": "string",
          "info": "Purchase date from range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateFrom",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateTo",
          "type": "string",
          "info": "Purchase date to range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateTo",
            "type": "string"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "Event date from range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "Event date to range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "externalRef",
          "type": "string",
          "info": "External reference search filter: string",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        },
        {
          "name": "paymentStatus",
          "type": "array",
          "info": "Payment status search filter: array",
          "required": false,
          "schema": {
            "title": "paymentStatus",
            "type": "array"
          }
        },
        {
          "name": "partialPaymentRef",
          "type": "string",
          "info": "Partial payment reference search filter: string",
          "required": false,
          "schema": {
            "title": "partialPaymentRef",
            "type": "string"
          }
        },
        {
          "name": "displayName",
          "type": "string",
          "info": "Vendor display name search filter: string",
          "required": false,
          "schema": {
            "title": "displayName",
            "type": "string"
          }
        },
        {
          "name": "zoneSeating",
          "type": "boolean",
          "info": "Whether the results should have zone seating: boolean",
          "required": false,
          "schema": {
            "title": "zoneSeating",
            "type": "boolean"
          }
        },
        {
          "name": "notes",
          "type": "string",
          "info": "Notes search filter: string",
          "required": false,
          "schema": {
            "title": "notes",
            "type": "string"
          }
        },
        {
          "name": "performer",
          "type": "string",
          "info": "Performer search filter: string",
          "required": false,
          "schema": {
            "title": "performer",
            "type": "string"
          }
        },
        {
          "name": "purchaseId",
          "type": "array",
          "info": "Purchase Id search filter: array",
          "required": false,
          "schema": {
            "title": "purchaseId",
            "type": "array"
          }
        },
        {
          "name": "inHandDateFrom",
          "type": "string",
          "info": "In hand date from range filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateFrom",
            "type": "string"
          }
        },
        {
          "name": "inHandDateTo",
          "type": "string",
          "info": "In hand date to range filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateTo",
            "type": "string"
          }
        },
        {
          "name": "received",
          "type": "boolean",
          "info": "Whether the results have received POs: boolean",
          "required": false,
          "schema": {
            "title": "received",
            "type": "boolean"
          }
        },
        {
          "name": "venueIds",
          "type": "array",
          "info": "Venue id search filter: array",
          "required": false,
          "schema": {
            "title": "venueIds",
            "type": "array"
          }
        },
        {
          "name": "consignment",
          "type": "string",
          "info": "Whether the results have a consignment type POs: Must be one of [YES, NO, COMPLETED]",
          "required": false,
          "schema": {
            "title": "consignment",
            "type": "string"
          }
        },
        {
          "name": "cooperative",
          "type": "boolean",
          "info": "Whether the results have cooperative POs: boolean",
          "required": false,
          "schema": {
            "title": "cooperative",
            "type": "boolean"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [EVENT_DATE, EVENT_NAME, VENUE_NAME, EVENT_TYPE, VENUE_CITY, VENUE_STATE, STOCK_TYPE, PURCHASE_DATE, VENDOR_ID, CREATED_BY, PAYMENT_STATUS, PAYMENT_METHOD, PURCHASE_ID, SECTION, ROW, QUANTITY, COST, UNIT_COST, VENDOR_DISPLAY_NAME, EXTERNAL_REF, STATUS]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/searchPurchased"
      },
      "task": true
    },
    {
      "name": "searchPurchasedV2",
      "summary": "Gets purchased inventory filtered by query parameters",
      "description": "Gets purchased inventory filtered by query parameters",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "stockType",
          "type": "string",
          "info": "Stock Type search filter: Must be one of [HARD, ELECTRONIC, FLASH, PAPERLESS, PAPERLESS_CARD, MOBILE_TRANSFER, MOBILE_SCREENCAP]",
          "required": false,
          "schema": {
            "title": "stockType",
            "type": "string"
          }
        },
        {
          "name": "ticketStatus",
          "type": "array",
          "info": "Ticket Status search filter: array",
          "required": false,
          "schema": {
            "title": "ticketStatus",
            "type": "array"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event Id search filter: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "inventoryId",
          "type": "array",
          "info": "Inventory Id search filter: array",
          "required": false,
          "schema": {
            "title": "inventoryId",
            "type": "array"
          }
        },
        {
          "name": "performerId",
          "type": "array",
          "info": "Performer Id search filter: array",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "array"
          }
        },
        {
          "name": "vendorId",
          "type": "array",
          "info": "Vendor Id search filter: array",
          "required": false,
          "schema": {
            "title": "vendorId",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Purchase tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all PO tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "PO tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all PO tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event search filter: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "section",
          "type": "string",
          "info": "Section search filter: string",
          "required": false,
          "schema": {
            "title": "section",
            "type": "string"
          }
        },
        {
          "name": "row",
          "type": "string",
          "info": "Row search filter: string",
          "required": false,
          "schema": {
            "title": "row",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateFrom",
          "type": "string",
          "info": "Purchase date from range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateFrom",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateTo",
          "type": "string",
          "info": "Purchase date to range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateTo",
            "type": "string"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "Event date from range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "Event date to range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "externalRef",
          "type": "string",
          "info": "External reference search filter: string",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        },
        {
          "name": "paymentStatus",
          "type": "array",
          "info": "Payment status search filter: array",
          "required": false,
          "schema": {
            "title": "paymentStatus",
            "type": "array"
          }
        },
        {
          "name": "partialPaymentRef",
          "type": "string",
          "info": "Partial payment reference search filter: string",
          "required": false,
          "schema": {
            "title": "partialPaymentRef",
            "type": "string"
          }
        },
        {
          "name": "displayName",
          "type": "string",
          "info": "Vendor display name search filter: string",
          "required": false,
          "schema": {
            "title": "displayName",
            "type": "string"
          }
        },
        {
          "name": "zoneSeating",
          "type": "boolean",
          "info": "Whether the results should have zone seating: boolean",
          "required": false,
          "schema": {
            "title": "zoneSeating",
            "type": "boolean"
          }
        },
        {
          "name": "notes",
          "type": "string",
          "info": "Notes search filter: string",
          "required": false,
          "schema": {
            "title": "notes",
            "type": "string"
          }
        },
        {
          "name": "performer",
          "type": "string",
          "info": "Performer search filter: string",
          "required": false,
          "schema": {
            "title": "performer",
            "type": "string"
          }
        },
        {
          "name": "purchaseId",
          "type": "array",
          "info": "Purchase Id search filter: array",
          "required": false,
          "schema": {
            "title": "purchaseId",
            "type": "array"
          }
        },
        {
          "name": "inHandDateFrom",
          "type": "string",
          "info": "In hand date from range filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateFrom",
            "type": "string"
          }
        },
        {
          "name": "inHandDateTo",
          "type": "string",
          "info": "In hand date to range filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateTo",
            "type": "string"
          }
        },
        {
          "name": "received",
          "type": "boolean",
          "info": "Whether the results have received POs: boolean",
          "required": false,
          "schema": {
            "title": "received",
            "type": "boolean"
          }
        },
        {
          "name": "venueIds",
          "type": "array",
          "info": "Venue id search filter: array",
          "required": false,
          "schema": {
            "title": "venueIds",
            "type": "array"
          }
        },
        {
          "name": "consignment",
          "type": "string",
          "info": "Whether the results have a consignment type POs: Must be one of [YES, NO, COMPLETED]",
          "required": false,
          "schema": {
            "title": "consignment",
            "type": "string"
          }
        },
        {
          "name": "cooperative",
          "type": "boolean",
          "info": "Whether the results have cooperative POs: boolean",
          "required": false,
          "schema": {
            "title": "cooperative",
            "type": "boolean"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [EVENT_DATE, EVENT_NAME, VENUE_NAME, EVENT_TYPE, VENUE_CITY, VENUE_STATE, STOCK_TYPE, PURCHASE_DATE, VENDOR_ID, CREATED_BY, PAYMENT_STATUS, PAYMENT_METHOD, PURCHASE_ID, SECTION, ROW, QUANTITY, COST, UNIT_COST, VENDOR_DISPLAY_NAME, EXTERNAL_REF, STATUS, CREDIT_CARD_GROUP, CREDIT_CARD_LAST_DIGITS, TICKET_FACE_VALUE_AVERAGE, OUTSTANDING_BALANCE, NOTES]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        },
        {
          "name": "creditCardGroupId",
          "type": "number",
          "info": "Credit card group id search filter: 123",
          "required": false,
          "schema": {
            "title": "creditCardGroupId",
            "type": "number"
          }
        },
        {
          "name": "creditCardLastDigits",
          "type": "string",
          "info": "Credit card last digits search filter: string",
          "required": false,
          "schema": {
            "title": "creditCardLastDigits",
            "type": "string"
          }
        },
        {
          "name": "eventType",
          "type": "string",
          "info": "Event Type search filter: Must be one of [CONCERT, THEATER, SPORT, OTHER]",
          "required": false,
          "schema": {
            "title": "eventType",
            "type": "string"
          }
        },
        {
          "name": "inHand",
          "type": "boolean",
          "info": "Whether the results should be in hand: boolean",
          "required": false,
          "schema": {
            "title": "inHand",
            "type": "boolean"
          }
        },
        {
          "name": "inventoryTag",
          "type": "array",
          "info": "Inventory tags to include: array",
          "required": false,
          "schema": {
            "title": "inventoryTag",
            "type": "array"
          }
        },
        {
          "name": "inventoryTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all inventory tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "inventoryTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiInventoryTag",
          "type": "array",
          "info": "Inventory tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiInventoryTag",
            "type": "array"
          }
        },
        {
          "name": "antiInventoryTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all inventory tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiInventoryTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "noTags",
          "type": "boolean",
          "info": "Whether the results should have inventory tags: boolean",
          "required": false,
          "schema": {
            "title": "noTags",
            "type": "boolean"
          }
        },
        {
          "name": "includesSeat",
          "type": "number",
          "info": "Seat search filter: 123",
          "required": false,
          "schema": {
            "title": "includesSeat",
            "type": "number"
          }
        },
        {
          "name": "paymentMethod",
          "type": "string",
          "info": "Payment method search filter: Must be one of [CREDITCARD, CASH, CHECK, PAYPAL, TRADE, VENMO, OTHER, ACCRUEDCREDIT, ACH, AR, AP, EVOPAY, MULTIPLE, COMPLIMENTARY]",
          "required": false,
          "schema": {
            "title": "paymentMethod",
            "type": "string"
          }
        },
        {
          "name": "minUnitCost",
          "type": "number",
          "info": "Minimum unit cost search filter: 123",
          "required": false,
          "schema": {
            "title": "minUnitCost",
            "type": "number"
          }
        },
        {
          "name": "maxUnitCost",
          "type": "number",
          "info": "Maximum unit cost search filter: 123",
          "required": false,
          "schema": {
            "title": "maxUnitCost",
            "type": "number"
          }
        },
        {
          "name": "minTotalCost",
          "type": "number",
          "info": "Minimum total cost search filter: 123",
          "required": false,
          "schema": {
            "title": "minTotalCost",
            "type": "number"
          }
        },
        {
          "name": "maxTotalCost",
          "type": "number",
          "info": "Maximum total cost search filter: 123",
          "required": false,
          "schema": {
            "title": "maxTotalCost",
            "type": "number"
          }
        },
        {
          "name": "createdBy",
          "type": "string",
          "info": "Email search filter for PO creator: string",
          "required": false,
          "schema": {
            "title": "createdBy",
            "type": "string"
          }
        },
        {
          "name": "createdByUserId",
          "type": "number",
          "info": "Id search filter for invoice creator: 123",
          "required": false,
          "schema": {
            "title": "createdByUserId",
            "type": "number"
          }
        },
        {
          "name": "currencyCode",
          "type": "string",
          "info": "Currency filter: Must be one of [USD, CAD, EUR, GBP, JPY, BRL, XBT, AUD]",
          "required": false,
          "schema": {
            "title": "currencyCode",
            "type": "string"
          }
        },
        {
          "name": "purchaseStatus",
          "type": "array",
          "info": "Purchase status search filter: array",
          "required": false,
          "schema": {
            "title": "purchaseStatus",
            "type": "array"
          }
        },
        {
          "name": "categoryId",
          "type": "array",
          "info": "Performer category search filter: array",
          "required": false,
          "schema": {
            "title": "categoryId",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/searchPurchasedV2"
      },
      "task": true
    },
    {
      "name": "getHoldsById",
      "summary": "Get holds for inventory",
      "description": "Get holds for inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The ID of the inventory to return the hold: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getHoldsById"
      },
      "task": true
    },
    {
      "name": "deleteHoldsById",
      "summary": "Delete holds for inventory",
      "description": "Delete holds for inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The ID of the inventory from which to delete holds: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/deleteHoldsById"
      },
      "task": true
    },
    {
      "name": "bulkMerge",
      "summary": "Merge all eligible inventories",
      "description": "Merge all eligible inventories",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Payload: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkMerge"
      },
      "task": true
    },
    {
      "name": "mergeAsPiggyback",
      "summary": "Merge inventories as piggyback",
      "description": "Merge inventories as piggyback",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Payload: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/mergeAsPiggyback"
      },
      "task": true
    },
    {
      "name": "splitToOriginals",
      "summary": "Splits and merges inventories to leave them as they were when purchased",
      "description": "Splits and merges inventories to leave them as they were when purchased",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory to split: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/splitToOriginals"
      },
      "task": true
    },
    {
      "name": "getById6",
      "summary": "Get Inventory",
      "description": "Get Inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The ID of the inventory to return: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById6"
      },
      "task": true
    },
    {
      "name": "update7",
      "summary": "Update Inventory",
      "description": "Update Inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory to update: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "changeSeatNumbers",
          "type": "boolean",
          "info": "Whether is allow to change seat number: boolean",
          "required": false,
          "schema": {
            "title": "changeSeatNumbers",
            "type": "boolean"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "Inventory update: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update7"
      },
      "task": true
    },
    {
      "name": "priceHistory",
      "summary": "Retrieves price update history for inventory",
      "description": "Retrieves price update history for inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/priceHistory"
      },
      "task": true
    },
    {
      "name": "bulkSwapEvent",
      "summary": "Bulk swap event",
      "description": "Bulk swap event",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Payload: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkSwapEvent"
      },
      "task": true
    },
    {
      "name": "getExchangesPosId",
      "summary": "Get the history for a exchange pos id",
      "description": "Get the history for a exchange pos id",
      "input": [
        {
          "name": "exchangePosId",
          "type": "number",
          "info": ": 123",
          "required": true,
          "schema": {
            "title": "exchangePosId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getExchangesPosId"
      },
      "task": true
    },
    {
      "name": "bulkUpdate",
      "summary": "Bulk update inventory",
      "description": "Bulk update inventory",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Bulk inventory attributes to update: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkUpdate"
      },
      "task": true
    },
    {
      "name": "removeTag2",
      "summary": "Deletes a tag for an inventory",
      "description": "Deletes a tag for an inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "string",
          "info": "Tag to be removed from the inventory: string",
          "required": true,
          "schema": {
            "title": "tag",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/removeTag2"
      },
      "task": true
    },
    {
      "name": "bulkRemoveTags2",
      "summary": "Deletes all tags from inventories with given ids",
      "description": "Deletes all tags from inventories with given ids",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Inventory Ids: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkRemoveTags2"
      },
      "task": true
    },
    {
      "name": "legacyBulkRemoveTags",
      "summary": "Deletes all tags from inventories with given ids",
      "description": "Deletes all tags from inventories with given ids",
      "input": [
        {
          "name": "id",
          "type": "array",
          "info": "Inventory Ids: array",
          "required": true,
          "schema": {
            "title": "id",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/legacyBulkRemoveTags"
      },
      "task": true
    },
    {
      "name": "updatePurchaseInventory",
      "summary": "Updates section and row for an inventory",
      "description": "Updates section and row for an inventory",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": ": object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updatePurchaseInventory"
      },
      "task": true
    },
    {
      "name": "bulkUpdateExpectedValue",
      "summary": "Bulk Expected Value Update of Inventory",
      "description": "Bulk Expected Value Update of Inventory",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Inventory expected value update: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkUpdateExpectedValue"
      },
      "task": true
    },
    {
      "name": "getTicketsById",
      "summary": "Get tickets for inventory",
      "description": "Get tickets for inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory to return the tickets: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getTicketsById"
      },
      "task": true
    },
    {
      "name": "updateTickets",
      "summary": "Update Inventory tickets",
      "description": "Update Inventory tickets",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "List of tickets to be updated: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updateTickets"
      },
      "task": true
    },
    {
      "name": "cancel",
      "summary": "Cancel Tickets on Inventory",
      "description": "Cancel Tickets on Inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory to cancel tickets: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/cancel"
      },
      "task": true
    },
    {
      "name": "export",
      "summary": "Exports inventory for exchange integration. Export is limited to future events with a list price greater than 0. The results from this method are un-sorted.",
      "description": "Exports inventory for exchange integration. Export is limited to future events with a list price greater than 0. The results from this method are un-sorted.",
      "input": [
        {
          "name": "includeZeroPricedListings",
          "type": "boolean",
          "info": "Whether the results includes zero price listings: boolean",
          "required": false,
          "schema": {
            "title": "includeZeroPricedListings",
            "type": "boolean"
          }
        },
        {
          "name": "includeHeld",
          "type": "boolean",
          "info": "Whether the results includes held: boolean",
          "required": false,
          "schema": {
            "title": "includeHeld",
            "type": "boolean"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/export"
      },
      "task": true
    },
    {
      "name": "tag2",
      "summary": "Inserts a new tags for an inventory. Duplicates are ignored",
      "description": "Inserts a new tags for an inventory. Duplicates are ignored",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The Id of the inventory: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to add: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/tag2"
      },
      "task": true
    },
    {
      "name": "search4",
      "summary": "Get inventory filtered by query parameters",
      "description": "Get inventory filtered by query parameters",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Primary field to sort by: Must be one of [EVENT_DATE, EVENT_NAME, VENUE_NAME, VENUE_CITY, VENUE_STATE, LAST_PRICE_UPDATE, LAST_SALE, QUANTITY]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        },
        {
          "name": "stockType",
          "type": "string",
          "info": "Stock Type search filter: Must be one of [HARD, ELECTRONIC, FLASH, PAPERLESS, PAPERLESS_CARD, MOBILE_TRANSFER, MOBILE_SCREENCAP]",
          "required": false,
          "schema": {
            "title": "stockType",
            "type": "string"
          }
        },
        {
          "name": "ticketStatus",
          "type": "array",
          "info": "Ticket Status search filter: array",
          "required": false,
          "schema": {
            "title": "ticketStatus",
            "type": "array"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event Id search filter: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "inventoryId",
          "type": "array",
          "info": "Inventory Id search filter: array",
          "required": false,
          "schema": {
            "title": "inventoryId",
            "type": "array"
          }
        },
        {
          "name": "purchaseId",
          "type": "array",
          "info": "Purchase Id search filter: array",
          "required": false,
          "schema": {
            "title": "purchaseId",
            "type": "array"
          }
        },
        {
          "name": "exchangePosId",
          "type": "array",
          "info": "Exchange pos Id filter: array",
          "required": false,
          "schema": {
            "title": "exchangePosId",
            "type": "array"
          }
        },
        {
          "name": "performerId",
          "type": "array",
          "info": "Performer Id search filter: array",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "array"
          }
        },
        {
          "name": "categoryId",
          "type": "array",
          "info": "Category Id search filter: array",
          "required": false,
          "schema": {
            "title": "categoryId",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "Tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "eventTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all event tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "eventTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event search filter: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "eventKeywords",
          "type": "array",
          "info": "Event keywords filter: array",
          "required": false,
          "schema": {
            "title": "eventKeywords",
            "type": "array"
          }
        },
        {
          "name": "venueId",
          "type": "number",
          "info": "Venue id search filter: 123",
          "required": false,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "vendorId",
          "type": "number",
          "info": "Vendor Id search filter: 123",
          "required": false,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        },
        {
          "name": "excludeVendorId",
          "type": "number",
          "info": "Vendor Id to exclude: 123",
          "required": false,
          "schema": {
            "title": "excludeVendorId",
            "type": "number"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "section",
          "type": "string",
          "info": "Section search filter: string",
          "required": false,
          "schema": {
            "title": "section",
            "type": "string"
          }
        },
        {
          "name": "row",
          "type": "string",
          "info": "Row search filter: string",
          "required": false,
          "schema": {
            "title": "row",
            "type": "string"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "Event date from range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "Event date to range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "eventTimeFrom",
          "type": "string",
          "info": "Only search events starting not earlier than: string",
          "required": false,
          "schema": {
            "title": "eventTimeFrom",
            "type": "string"
          }
        },
        {
          "name": "eventTimeTo",
          "type": "string",
          "info": "Only search events starting not later than: string",
          "required": false,
          "schema": {
            "title": "eventTimeTo",
            "type": "string"
          }
        },
        {
          "name": "eventType",
          "type": "string",
          "info": "Event Type search filter: Must be one of [CONCERT, THEATER, SPORT, OTHER]",
          "required": false,
          "schema": {
            "title": "eventType",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateFrom",
          "type": "string",
          "info": "Purchase date from range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateFrom",
            "type": "string"
          }
        },
        {
          "name": "purchaseDateTo",
          "type": "string",
          "info": "Purchase date to range filter: string",
          "required": false,
          "schema": {
            "title": "purchaseDateTo",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateFrom",
          "type": "string",
          "info": "Inventory last update date from range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateFrom",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateTo",
          "type": "string",
          "info": "Inventory last update date to range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateTo",
            "type": "string"
          }
        },
        {
          "name": "lastPriceUpdateFrom",
          "type": "string",
          "info": "Last price update date from range filter: string",
          "required": false,
          "schema": {
            "title": "lastPriceUpdateFrom",
            "type": "string"
          }
        },
        {
          "name": "lastPriceUpdateTo",
          "type": "string",
          "info": "Last price update date to range filter: string",
          "required": false,
          "schema": {
            "title": "lastPriceUpdateTo",
            "type": "string"
          }
        },
        {
          "name": "sortedByB",
          "type": "string",
          "info": "Secondary field to sort by: Must be one of [ID, SEAT, SECTION, ROW, COST, LIST_PRICE, FACE_VALUE, FACE_VALUE_AVERAGE, STOCK_TYPE, IN_HAND_DATE, IN_HAND_DATE_CALC, UNIT_COST_AVERAGE, LAST_PRICE_UPDATE, PUBLIC_NOTES, NOTES, SPLIT_TYPE, QUANTITY, BROADCAST, DAYS_OLD, EXPECTED_VALUE, ELECTRONIC_TRANSFER, CONSIGNMENT, RECEIVED, TAGS]",
          "required": false,
          "schema": {
            "title": "sortedByB",
            "type": "string"
          }
        },
        {
          "name": "sortDirB",
          "type": "string",
          "info": "Secondary direction to sort (asc, desc): Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDirB",
            "type": "string"
          }
        },
        {
          "name": "filesUploaded",
          "type": "boolean",
          "info": "Whether the results should have Pdfs attached to all tickets: boolean",
          "required": false,
          "schema": {
            "title": "filesUploaded",
            "type": "boolean"
          }
        },
        {
          "name": "barCodesEntered",
          "type": "boolean",
          "info": "Whether the results should have Bar Codes entered in all tickets: boolean",
          "required": false,
          "schema": {
            "title": "barCodesEntered",
            "type": "boolean"
          }
        },
        {
          "name": "listed",
          "type": "boolean",
          "info": "Whether the results should have listed inventories: boolean",
          "required": false,
          "schema": {
            "title": "listed",
            "type": "boolean"
          }
        },
        {
          "name": "expectedValueSet",
          "type": "boolean",
          "info": "Whether the results should have expected value set: boolean",
          "required": false,
          "schema": {
            "title": "expectedValueSet",
            "type": "boolean"
          }
        },
        {
          "name": "skipSorting",
          "type": "boolean",
          "info": "Skip sorting of results: boolean",
          "required": false,
          "schema": {
            "title": "skipSorting",
            "type": "boolean"
          }
        },
        {
          "name": "minQuantity",
          "type": "number",
          "info": "Minimum quantity search filter: 123",
          "required": false,
          "schema": {
            "title": "minQuantity",
            "type": "number"
          }
        },
        {
          "name": "maxQuantity",
          "type": "number",
          "info": "Maximum quantity search filter: 123",
          "required": false,
          "schema": {
            "title": "maxQuantity",
            "type": "number"
          }
        },
        {
          "name": "minPrice",
          "type": "number",
          "info": "Minimum price search filter: 123",
          "required": false,
          "schema": {
            "title": "minPrice",
            "type": "number"
          }
        },
        {
          "name": "maxPrice",
          "type": "number",
          "info": "Maximum price search filter: 123",
          "required": false,
          "schema": {
            "title": "maxPrice",
            "type": "number"
          }
        },
        {
          "name": "minAverageUnitCost",
          "type": "number",
          "info": "Minimum average unit cost search filter: 123",
          "required": false,
          "schema": {
            "title": "minAverageUnitCost",
            "type": "number"
          }
        },
        {
          "name": "maxAverageUnitCost",
          "type": "number",
          "info": "Maximum average unit cost search filter: 123",
          "required": false,
          "schema": {
            "title": "maxAverageUnitCost",
            "type": "number"
          }
        },
        {
          "name": "lowSeat",
          "type": "number",
          "info": "Low seat search filter: 123",
          "required": false,
          "schema": {
            "title": "lowSeat",
            "type": "number"
          }
        },
        {
          "name": "highSeat",
          "type": "number",
          "info": "High seat search filter: 123",
          "required": false,
          "schema": {
            "title": "highSeat",
            "type": "number"
          }
        },
        {
          "name": "inHand",
          "type": "boolean",
          "info": "Whether the results should be in hand: boolean",
          "required": false,
          "schema": {
            "title": "inHand",
            "type": "boolean"
          }
        },
        {
          "name": "notes",
          "type": "string",
          "info": "Notes search filter: string",
          "required": false,
          "schema": {
            "title": "notes",
            "type": "string"
          }
        },
        {
          "name": "publicNotes",
          "type": "string",
          "info": "Public notes search filter: string",
          "required": false,
          "schema": {
            "title": "publicNotes",
            "type": "string"
          }
        },
        {
          "name": "noTags",
          "type": "boolean",
          "info": "Whether the results should have tags: boolean",
          "required": false,
          "schema": {
            "title": "noTags",
            "type": "boolean"
          }
        },
        {
          "name": "includeTickets",
          "type": "boolean",
          "info": "Whether the results should include tickets: boolean",
          "required": false,
          "schema": {
            "title": "includeTickets",
            "type": "boolean"
          }
        },
        {
          "name": "zoneSeating",
          "type": "boolean",
          "info": "Whether the results should have zone seating: boolean",
          "required": false,
          "schema": {
            "title": "zoneSeating",
            "type": "boolean"
          }
        },
        {
          "name": "dayOfWeek",
          "type": "array",
          "info": "Day of the week of events that occur on that day of the week: array",
          "required": false,
          "schema": {
            "title": "dayOfWeek",
            "type": "array"
          }
        },
        {
          "name": "seatType",
          "type": "string",
          "info": "Seat Type search filter: Must be one of [CONSECUTIVE, ALTERNATING, GA, PIGGYBACK]",
          "required": false,
          "schema": {
            "title": "seatType",
            "type": "string"
          }
        },
        {
          "name": "splitType",
          "type": "string",
          "info": "Split Type search filter: Must be one of [DEFAULT, ANY, CUSTOM, NEVERLEAVEONE]",
          "required": false,
          "schema": {
            "title": "splitType",
            "type": "string"
          }
        },
        {
          "name": "noSplits",
          "type": "boolean",
          "info": "Whether the results should have splits: boolean",
          "required": false,
          "schema": {
            "title": "noSplits",
            "type": "boolean"
          }
        },
        {
          "name": "currencyCode",
          "type": "string",
          "info": "Currency type search filter: Must be one of [USD, CAD, EUR, GBP, JPY, BRL, XBT, AUD]",
          "required": false,
          "schema": {
            "title": "currencyCode",
            "type": "string"
          }
        },
        {
          "name": "hiddenSeats",
          "type": "boolean",
          "info": "Whether the results should have hidden seats: boolean",
          "required": false,
          "schema": {
            "title": "hiddenSeats",
            "type": "boolean"
          }
        },
        {
          "name": "cooperative",
          "type": "boolean",
          "info": "Whether the results belong to a cooperative PO: boolean",
          "required": false,
          "schema": {
            "title": "cooperative",
            "type": "boolean"
          }
        },
        {
          "name": "electronicTransfer",
          "type": "boolean",
          "info": "Whether the results should have electronic transfer: boolean",
          "required": false,
          "schema": {
            "title": "electronicTransfer",
            "type": "boolean"
          }
        },
        {
          "name": "vsrOption",
          "type": "string",
          "info": "VSR option search filter: Must be one of [ALL, EVENT_INVENTORY, OTHER, NONE]",
          "required": false,
          "schema": {
            "title": "vsrOption",
            "type": "string"
          }
        },
        {
          "name": "replenishmentGroupId",
          "type": "number",
          "info": "Replenishment group id search filter: 123",
          "required": false,
          "schema": {
            "title": "replenishmentGroupId",
            "type": "number"
          }
        },
        {
          "name": "consignment",
          "type": "string",
          "info": "Whether the results belong to a consignment type PO: Must be one of [YES, NO, COMPLETED]",
          "required": false,
          "schema": {
            "title": "consignment",
            "type": "string"
          }
        },
        {
          "name": "received",
          "type": "boolean",
          "info": "Whether the results are received: boolean",
          "required": false,
          "schema": {
            "title": "received",
            "type": "boolean"
          }
        },
        {
          "name": "onHold",
          "type": "boolean",
          "info": "Whether the results are on hold: boolean",
          "required": false,
          "schema": {
            "title": "onHold",
            "type": "boolean"
          }
        },
        {
          "name": "daysOldFrom",
          "type": "string",
          "info": "Days Old date from range filter: string",
          "required": false,
          "schema": {
            "title": "daysOldFrom",
            "type": "string"
          }
        },
        {
          "name": "daysOldTo",
          "type": "string",
          "info": "Days Old date to range filter: string",
          "required": false,
          "schema": {
            "title": "daysOldTo",
            "type": "string"
          }
        },
        {
          "name": "excludeParking",
          "type": "boolean",
          "info": "Whether parking events are excluded: boolean",
          "required": false,
          "schema": {
            "title": "excludeParking",
            "type": "boolean"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search4"
      },
      "task": true
    },
    {
      "name": "update8",
      "summary": "Bulk Price Update of Inventory",
      "description": "Bulk Price Update of Inventory",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Inventory price update: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update8"
      },
      "task": true
    },
    {
      "name": "split",
      "summary": "Splits inventory into 2 new inventory groups",
      "description": "Splits inventory into 2 new inventory groups",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The ID of the inventory to update: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "number",
          "info": "The ticket quantity of the first group: 123",
          "required": true,
          "schema": {
            "title": "body",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/split"
      },
      "task": true
    },
    {
      "name": "split1",
      "summary": "Splits inventory into 2 new inventory consecutive groups",
      "description": "Splits inventory into 2 new inventory consecutive groups",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The ID of the inventory to update: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/split1"
      },
      "task": true
    },
    {
      "name": "delete4",
      "summary": "Deletes tags for an inventory",
      "description": "Deletes tags for an inventory",
      "input": [
        {
          "name": "inventoryId",
          "type": "number",
          "info": "The inventory Id: 123",
          "required": true,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to be removed from the inventory: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete4"
      },
      "task": true
    },
    {
      "name": "merge",
      "summary": "Merge the list of inventories into a new inventory",
      "description": "Merge the list of inventories into a new inventory",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Payload: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/merge"
      },
      "task": true
    },
    {
      "name": "sync",
      "summary": "Sync Inventory with integrated services",
      "description": "Sync Inventory with integrated services",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "The inventory Ids to sync: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/sync"
      },
      "task": true
    },
    {
      "name": "getInvoiceById",
      "summary": "Retrieves an invoice by the invoice id",
      "description": "Retrieves an invoice by the invoice id",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInvoiceById"
      },
      "task": true
    },
    {
      "name": "updateInvoice",
      "summary": "Updates an invoice",
      "description": "Updates an invoice",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "An invoice object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updateInvoice"
      },
      "task": true
    },
    {
      "name": "getInvoiceTicketsByExternalRef",
      "summary": "Returns tickets on an invoice by external ref",
      "description": "Returns tickets on an invoice by external ref",
      "input": [
        {
          "name": "externalRef",
          "type": "string",
          "info": "The external ref of the invoice: string",
          "required": true,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInvoiceTicketsByExternalRef"
      },
      "task": true
    },
    {
      "name": "getInvoiceTicketsByExternalRefV2",
      "summary": "Returns tickets on an invoice by external ref",
      "description": "Returns tickets on an invoice by external ref",
      "input": [
        {
          "name": "externalRef",
          "type": "string",
          "info": "The external ref of the invoice: string",
          "required": true,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInvoiceTicketsByExternalRefV2"
      },
      "task": true
    },
    {
      "name": "getInvoiceLines",
      "summary": "Gets invoice lines",
      "description": "Gets invoice lines",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInvoiceLines"
      },
      "task": true
    },
    {
      "name": "insertInvoiceLine",
      "summary": "Adds an invoice line",
      "description": "Adds an invoice line",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "An invoice object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insertInvoiceLine"
      },
      "task": true
    },
    {
      "name": "getInvoiceLine",
      "summary": "Gets an invoice line",
      "description": "Gets an invoice line",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInvoiceLine"
      },
      "task": true
    },
    {
      "name": "updateInvoiceLine",
      "summary": "Updates an invoice line. Only quantity, amount, and description can be updated.",
      "description": "Updates an invoice line. Only quantity, amount, and description can be updated.",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "An invoice object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updateInvoiceLine"
      },
      "task": true
    },
    {
      "name": "deleteInvoiceLine",
      "summary": "Deletes an invoice line. Tickets are returned back to the inventory pool.",
      "description": "Deletes an invoice line. Tickets are returned back to the inventory pool.",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/deleteInvoiceLine"
      },
      "task": true
    },
    {
      "name": "getInvoiceLineTickets",
      "summary": "Get tickets for inventory",
      "description": "Get tickets for inventory",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getInvoiceLineTickets"
      },
      "task": true
    },
    {
      "name": "getAssets",
      "summary": "Gets invoice assets",
      "description": "Gets invoice assets",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getAssets"
      },
      "task": true
    },
    {
      "name": "search5",
      "summary": "Searches invoices",
      "description": "Searches invoices",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "deliveryMethod",
          "type": "array",
          "info": "Delivery method search filter: array",
          "required": false,
          "schema": {
            "title": "deliveryMethod",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "Tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "displayName",
          "type": "string",
          "info": "Customer display name search filter: string",
          "required": false,
          "schema": {
            "title": "displayName",
            "type": "string"
          }
        },
        {
          "name": "vendorId",
          "type": "array",
          "info": "Vendor Id search filter: array",
          "required": false,
          "schema": {
            "title": "vendorId",
            "type": "array"
          }
        },
        {
          "name": "id",
          "type": "array",
          "info": "Invoice Id search filter: array",
          "required": false,
          "schema": {
            "title": "id",
            "type": "array"
          }
        },
        {
          "name": "createdDateFrom",
          "type": "string",
          "info": "Invoice creation date from range filter: string",
          "required": false,
          "schema": {
            "title": "createdDateFrom",
            "type": "string"
          }
        },
        {
          "name": "createdDateTo",
          "type": "string",
          "info": "Invoice creation date to range filter: string",
          "required": false,
          "schema": {
            "title": "createdDateTo",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateFrom",
          "type": "string",
          "info": "Invoice last update date from range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateFrom",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateTo",
          "type": "string",
          "info": "Invoice last update date to range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateTo",
            "type": "string"
          }
        },
        {
          "name": "externalRef",
          "type": "array",
          "info": "External reference search filter: array",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "array"
          }
        },
        {
          "name": "paymentStatus",
          "type": "array",
          "info": "Payment status search filter: array",
          "required": false,
          "schema": {
            "title": "paymentStatus",
            "type": "array"
          }
        },
        {
          "name": "paymentDateFrom",
          "type": "string",
          "info": "Invoice payment date from range filter: string",
          "required": false,
          "schema": {
            "title": "paymentDateFrom",
            "type": "string"
          }
        },
        {
          "name": "paymentDateTo",
          "type": "string",
          "info": "Invoice payment date to range filter: string",
          "required": false,
          "schema": {
            "title": "paymentDateTo",
            "type": "string"
          }
        },
        {
          "name": "invoiceStatus",
          "type": "array",
          "info": "Invoice status search filter: array",
          "required": false,
          "schema": {
            "title": "invoiceStatus",
            "type": "array"
          }
        },
        {
          "name": "fulfillmentStatus",
          "type": "string",
          "info": "Fulfillment status search filter: Must be one of [PENDING, COMPLETE]",
          "required": false,
          "schema": {
            "title": "fulfillmentStatus",
            "type": "string"
          }
        },
        {
          "name": "fulfillmentDateFrom",
          "type": "string",
          "info": "Invoice fulfillment date from range filter: string",
          "required": false,
          "schema": {
            "title": "fulfillmentDateFrom",
            "type": "string"
          }
        },
        {
          "name": "fulfillmentDateTo",
          "type": "string",
          "info": "Invoice fulfillment date to range filter: string",
          "required": false,
          "schema": {
            "title": "fulfillmentDateTo",
            "type": "string"
          }
        },
        {
          "name": "paymentRef",
          "type": "string",
          "info": "Payment reference search filter: string",
          "required": false,
          "schema": {
            "title": "paymentRef",
            "type": "string"
          }
        },
        {
          "name": "barcodesEntered",
          "type": "boolean",
          "info": "Whether the results should have Bar Codes entered in all tickets: boolean",
          "required": false,
          "schema": {
            "title": "barcodesEntered",
            "type": "boolean"
          }
        },
        {
          "name": "filesUploaded",
          "type": "boolean",
          "info": "Whether the results should have Pdfs attached to all tickets: boolean",
          "required": false,
          "schema": {
            "title": "filesUploaded",
            "type": "boolean"
          }
        },
        {
          "name": "zoneSeating",
          "type": "boolean",
          "info": "Whether the results should have zone seating: boolean",
          "required": false,
          "schema": {
            "title": "zoneSeating",
            "type": "boolean"
          }
        },
        {
          "name": "performerId",
          "type": "number",
          "info": "Performer Id search filter: 123",
          "required": false,
          "schema": {
            "title": "performerId",
            "type": "number"
          }
        },
        {
          "name": "performer",
          "type": "string",
          "info": "Performer search filter: string",
          "required": false,
          "schema": {
            "title": "performer",
            "type": "string"
          }
        },
        {
          "name": "inHandDateFrom",
          "type": "string",
          "info": "In hand date from range filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateFrom",
            "type": "string"
          }
        },
        {
          "name": "inHandDateTo",
          "type": "string",
          "info": "In hand date to range filter: string",
          "required": false,
          "schema": {
            "title": "inHandDateTo",
            "type": "string"
          }
        },
        {
          "name": "eventDateFrom",
          "type": "string",
          "info": "Event date from range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateFrom",
            "type": "string"
          }
        },
        {
          "name": "eventDateTo",
          "type": "string",
          "info": "Event date to range filter: string",
          "required": false,
          "schema": {
            "title": "eventDateTo",
            "type": "string"
          }
        },
        {
          "name": "customerId",
          "type": "number",
          "info": "Customer Id search filter: 123",
          "required": false,
          "schema": {
            "title": "customerId",
            "type": "number"
          }
        },
        {
          "name": "eventType",
          "type": "string",
          "info": "Event Type search filter: Must be one of [CONCERT, THEATER, SPORT, OTHER]",
          "required": false,
          "schema": {
            "title": "eventType",
            "type": "string"
          }
        },
        {
          "name": "categoryId",
          "type": "number",
          "info": "Category Id search filter: 123",
          "required": false,
          "schema": {
            "title": "categoryId",
            "type": "number"
          }
        },
        {
          "name": "createdBy",
          "type": "string",
          "info": "Email search filter for invoice creator: string",
          "required": false,
          "schema": {
            "title": "createdBy",
            "type": "string"
          }
        },
        {
          "name": "createdByUserId",
          "type": "number",
          "info": "Id search filter for invoice creator: 123",
          "required": false,
          "schema": {
            "title": "createdByUserId",
            "type": "number"
          }
        },
        {
          "name": "noTags",
          "type": "boolean",
          "info": "Whether the results should have tags: boolean",
          "required": false,
          "schema": {
            "title": "noTags",
            "type": "boolean"
          }
        },
        {
          "name": "currencyCode",
          "type": "string",
          "info": "Currency type search filter: Must be one of [USD, CAD, EUR, GBP, JPY, BRL, XBT, AUD]",
          "required": false,
          "schema": {
            "title": "currencyCode",
            "type": "string"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event Id search filter: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "internalId",
          "type": "number",
          "info": "Internal Id search filter: 123",
          "required": false,
          "schema": {
            "title": "internalId",
            "type": "number"
          }
        },
        {
          "name": "purchaseId",
          "type": "number",
          "info": "Purchase Id search filter: 123",
          "required": false,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "purchaseLineId",
          "type": "number",
          "info": "Purchase line Id search filter: 123",
          "required": false,
          "schema": {
            "title": "purchaseLineId",
            "type": "number"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [ID, CREATED_DATE, DISPLAY_NAME, DELIVERY_METHOD, PAYMENT_METHOD, QUANTITY, SECTION, ROW, CATEGORY_NAME, TOTAL, FULFILLMENT_STATUS, FULFILLMENT_DATE, PAYMENT_STATUS, PAYMENT_REF, EXTERNAL_REF, LINE_COUNT, INVOICE_IN_HAND_DATE, EVENT_DATE, CREATED_BY, STOCK_TYPE, TAGS, OUTSTANDING_BALANCE, PERFORMER, INTERNAL_ID, SEATS, RECEIVED, VENUE, PURCHASE_ID, VENDOR, PAYMENT_DATE, LAST_INVOICE_NOTES, LAST_INVOICE_NOTES_USER, CURRENCY_CODE, STATUS, CUSTOMER_ID]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        },
        {
          "name": "includeTransactionInfo",
          "type": "boolean",
          "info": "Whether the results include transaction info: boolean",
          "required": false,
          "schema": {
            "title": "includeTransactionInfo",
            "type": "boolean"
          }
        },
        {
          "name": "received",
          "type": "string",
          "info": "Whether the results are received: Must be one of [YES, NO, MIXED]",
          "required": false,
          "schema": {
            "title": "received",
            "type": "string"
          }
        },
        {
          "name": "venueId",
          "type": "number",
          "info": "Venue id search filter: 123",
          "required": false,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "stockType",
          "type": "string",
          "info": "Stock Type search filter: Must be one of [HARD, ELECTRONIC, FLASH, PAPERLESS, PAPERLESS_CARD, MOBILE_TRANSFER, MOBILE_SCREENCAP]",
          "required": false,
          "schema": {
            "title": "stockType",
            "type": "string"
          }
        },
        {
          "name": "minTotal",
          "type": "number",
          "info": "Minimum total search filter: 123",
          "required": false,
          "schema": {
            "title": "minTotal",
            "type": "number"
          }
        },
        {
          "name": "maxTotal",
          "type": "number",
          "info": "Maximum total search filter: 123",
          "required": false,
          "schema": {
            "title": "maxTotal",
            "type": "number"
          }
        },
        {
          "name": "invoiceNotesUserId",
          "type": "number",
          "info": "User id that added the last invoice note search filter: 123",
          "required": false,
          "schema": {
            "title": "invoiceNotesUserId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search5"
      },
      "task": true
    },
    {
      "name": "insertInvoice",
      "summary": "Creates an invoice. The minimum fields required for creating an invoices are customerId, lines, line.amount, line.itemIds, line.lineItemType.",
      "description": "Creates an invoice. The minimum fields required for creating an invoices are customerId, lines, line.amount, line.itemIds, line.lineItemType.",
      "input": [
        {
          "name": "force",
          "type": "boolean",
          "info": "Whether is forced to invoice held inventory: boolean",
          "required": false,
          "schema": {
            "title": "force",
            "type": "boolean"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "An invoice object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insertInvoice"
      },
      "task": true
    },
    {
      "name": "removeTag3",
      "summary": "Deletes a tag for an invoice",
      "description": "Deletes a tag for an invoice",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The invoice Id: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "string",
          "info": "Tag to be removed from the invoice: string",
          "required": true,
          "schema": {
            "title": "tag",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/removeTag3"
      },
      "task": true
    },
    {
      "name": "bulkRemoveTags3",
      "summary": "Deletes all tags from invoices with given ids",
      "description": "Deletes all tags from invoices with given ids",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Invoice Ids: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkRemoveTags3"
      },
      "task": true
    },
    {
      "name": "processPayment",
      "summary": "Process a payment for a invoice",
      "description": "Process a payment for a invoice",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "Payment object: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/processPayment"
      },
      "task": true
    },
    {
      "name": "getTransactionHistory",
      "summary": "List all transactions appearing on an invoice",
      "description": "List all transactions appearing on an invoice",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getTransactionHistory"
      },
      "task": true
    },
    {
      "name": "processRefund",
      "summary": "Refunds a payment to the card used",
      "description": "Refunds a payment to the card used",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "transactionId",
          "type": "number",
          "info": "The transaction id: 123",
          "required": true,
          "schema": {
            "title": "transactionId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "Refund object: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/processRefund"
      },
      "task": true
    },
    {
      "name": "printCustomAuthForm",
      "summary": "Prints an Invoice Custom Auth Form",
      "description": "Prints an Invoice Custom Auth Form",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "timeZoneOffset",
          "type": "number",
          "info": "Time zone off set: 123",
          "required": false,
          "schema": {
            "title": "timeZoneOffset",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/printCustomAuthForm"
      },
      "task": true
    },
    {
      "name": "updateCurrency",
      "summary": "Converts invoice currency using an exchange rate",
      "description": "Converts invoice currency using an exchange rate",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Payload for bulk action: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updateCurrency"
      },
      "task": true
    },
    {
      "name": "send",
      "summary": "Sends an Invoice to the customer's email address",
      "description": "Sends an Invoice to the customer's email address",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "Id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "emailAddress",
          "type": "array",
          "info": "The customer's email addresses in the To email field: array",
          "required": true,
          "schema": {
            "title": "emailAddress",
            "type": "array"
          }
        },
        {
          "name": "ccEmailAddress",
          "type": "array",
          "info": "The customer's email addresses in the Cc email field: array",
          "required": false,
          "schema": {
            "title": "ccEmailAddress",
            "type": "array"
          }
        },
        {
          "name": "bccEmailAddress",
          "type": "array",
          "info": "The customer's email addresses in the Bcc email field: array",
          "required": false,
          "schema": {
            "title": "bccEmailAddress",
            "type": "array"
          }
        },
        {
          "name": "subject",
          "type": "string",
          "info": "Subject of the email: string",
          "required": false,
          "schema": {
            "title": "subject",
            "type": "string"
          }
        },
        {
          "name": "message",
          "type": "string",
          "info": "Message of the email: string",
          "required": false,
          "schema": {
            "title": "message",
            "type": "string"
          }
        },
        {
          "name": "includeInvoice",
          "type": "boolean",
          "info": "Whether the email includes the invoice in the body: boolean",
          "required": false,
          "schema": {
            "title": "includeInvoice",
            "type": "boolean"
          }
        },
        {
          "name": "attachTickets",
          "type": "boolean",
          "info": "Whether the email includes tickets attached: boolean",
          "required": false,
          "schema": {
            "title": "attachTickets",
            "type": "boolean"
          }
        },
        {
          "name": "attachInvoicePDF",
          "type": "boolean",
          "info": "Whether the email includes the invoice PDF attached: boolean",
          "required": false,
          "schema": {
            "title": "attachInvoicePDF",
            "type": "boolean"
          }
        },
        {
          "name": "attachAuthForm",
          "type": "boolean",
          "info": "Whether the email includes the auth form PDF attached: boolean",
          "required": false,
          "schema": {
            "title": "attachAuthForm",
            "type": "boolean"
          }
        },
        {
          "name": "timeZoneOffset",
          "type": "number",
          "info": "Time zone off set: 123",
          "required": false,
          "schema": {
            "title": "timeZoneOffset",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/send"
      },
      "task": true
    },
    {
      "name": "tag3",
      "summary": "Inserts a new tags for an invoice. Duplicates are ignored",
      "description": "Inserts a new tags for an invoice. Duplicates are ignored",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to add: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/tag3"
      },
      "task": true
    },
    {
      "name": "update9",
      "summary": "Bulk Invoice Update",
      "description": "Bulk Invoice Update",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Bulk invoice update: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update9"
      },
      "task": true
    },
    {
      "name": "delete5",
      "summary": "Deletes tags for an invoice",
      "description": "Deletes tags for an invoice",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The invoice Id: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to be removed from the invoice: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete5"
      },
      "task": true
    },
    {
      "name": "print",
      "summary": "Prints an Invoice",
      "description": "Prints an Invoice",
      "input": [
        {
          "name": "invoiceId",
          "type": "number",
          "info": "The id of the invoice: 123",
          "required": true,
          "schema": {
            "title": "invoiceId",
            "type": "number"
          }
        },
        {
          "name": "timeZoneOffset",
          "type": "number",
          "info": "Time zone off set: 123",
          "required": false,
          "schema": {
            "title": "timeZoneOffset",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/print"
      },
      "task": true
    },
    {
      "name": "getLineById",
      "summary": "Retrieves a line by the line id",
      "description": "Retrieves a line by the line id",
      "input": [
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the line: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getLineById"
      },
      "task": true
    },
    {
      "name": "bulkDelete",
      "summary": "Deletes a bulk of mappings and cancels the purchase lines they are associated with",
      "description": "Deletes a bulk of mappings and cancels the purchase lines they are associated with",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "The id of the mapping: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkDelete"
      },
      "task": true
    },
    {
      "name": "findPendingById",
      "summary": "Returns a mapping",
      "description": "Returns a mapping",
      "input": [
        {
          "name": "mappingId",
          "type": "number",
          "info": "The id of the mapping to retrieve: 123",
          "required": true,
          "schema": {
            "title": "mappingId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/findPendingById"
      },
      "task": true
    },
    {
      "name": "delete6",
      "summary": "Deletes a mapping and cancels the purchase line it's associated with",
      "description": "Deletes a mapping and cancels the purchase line it's associated with",
      "input": [
        {
          "name": "mappingId",
          "type": "number",
          "info": "The id of the mapping: 123",
          "required": true,
          "schema": {
            "title": "mappingId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete6"
      },
      "task": true
    },
    {
      "name": "getPendingByAccount",
      "summary": "Gets all pending mappings",
      "description": "Gets all pending mappings",
      "input": [
        {
          "name": "purchaseId",
          "type": "array",
          "info": "Purchase Id search filter: array",
          "required": false,
          "schema": {
            "title": "purchaseId",
            "type": "array"
          }
        },
        {
          "name": "externalRef",
          "type": "string",
          "info": "External reference search filter: string",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        },
        {
          "name": "event",
          "type": "string",
          "info": "Event search filter: string",
          "required": false,
          "schema": {
            "title": "event",
            "type": "string"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPendingByAccount"
      },
      "task": true
    },
    {
      "name": "resendMappingRequest",
      "summary": "Re-sends a mapping to the mapping queue. Returns the mapping id",
      "description": "Re-sends a mapping to the mapping queue. Returns the mapping id",
      "input": [
        {
          "name": "mappingId",
          "type": "number",
          "info": "The id of the mapping: 123",
          "required": true,
          "schema": {
            "title": "mappingId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/resendMappingRequest"
      },
      "task": true
    },
    {
      "name": "removeTag4",
      "summary": "Deletes a tag for a purchase",
      "description": "Deletes a tag for a purchase",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "string",
          "info": "Tag to be removed from the purchase: string",
          "required": true,
          "schema": {
            "title": "tag",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/removeTag4"
      },
      "task": true
    },
    {
      "name": "bulkRemoveTags4",
      "summary": "Deletes all tags from purchases with given ids",
      "description": "Deletes all tags from purchases with given ids",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Purchase Ids: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkRemoveTags4"
      },
      "task": true
    },
    {
      "name": "getPurchaseById",
      "summary": "Retrieves a purchase by the purchase id",
      "description": "Retrieves a purchase by the purchase id",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPurchaseById"
      },
      "task": true
    },
    {
      "name": "updatePurchase",
      "summary": "Updates a purchase",
      "description": "Updates a purchase",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "A purchase object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updatePurchase"
      },
      "task": true
    },
    {
      "name": "updatePurchaseInventory1",
      "summary": "Updates section and row for a purchase line",
      "description": "Updates section and row for a purchase line",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": ": object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updatePurchaseInventory1"
      },
      "task": true
    },
    {
      "name": "getAirbill",
      "summary": "Retrieves a purchase's airbill",
      "description": "Retrieves a purchase's airbill",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getAirbill"
      },
      "task": true
    },
    {
      "name": "updateCurrency1",
      "summary": "Converts purchases currency using an exchange rate",
      "description": "Converts purchases currency using an exchange rate",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Payload for bulk action: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updateCurrency1"
      },
      "task": true
    },
    {
      "name": "searchAutoPurchases",
      "summary": "Searches auto purchases",
      "description": "Searches auto purchases",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "eventId",
          "type": "number",
          "info": "Event Id search filter: 123",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "number"
          }
        },
        {
          "name": "purchaseId",
          "type": "number",
          "info": "Purchase Id search filter: 123",
          "required": false,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "user",
          "type": "string",
          "info": "User email search filter: string",
          "required": false,
          "schema": {
            "title": "user",
            "type": "string"
          }
        },
        {
          "name": "userId",
          "type": "number",
          "info": "User id search filter: 123",
          "required": false,
          "schema": {
            "title": "userId",
            "type": "number"
          }
        },
        {
          "name": "externalRef",
          "type": "string",
          "info": "External reference search filter: string",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        },
        {
          "name": "fromPurchaseDate",
          "type": "string",
          "info": "Purchase date from range filter: string",
          "required": false,
          "schema": {
            "title": "fromPurchaseDate",
            "type": "string"
          }
        },
        {
          "name": "toPurchaseDate",
          "type": "string",
          "info": "Purchase date to range filter: string",
          "required": false,
          "schema": {
            "title": "toPurchaseDate",
            "type": "string"
          }
        },
        {
          "name": "eventName",
          "type": "string",
          "info": "Event name search filter: string",
          "required": false,
          "schema": {
            "title": "eventName",
            "type": "string"
          }
        },
        {
          "name": "venueId",
          "type": "number",
          "info": "Venue id search filter: 123",
          "required": false,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        },
        {
          "name": "venue",
          "type": "string",
          "info": "Venue search filter: string",
          "required": false,
          "schema": {
            "title": "venue",
            "type": "string"
          }
        },
        {
          "name": "ticketStatus",
          "type": "string",
          "info": "Ticket Status search filter: Must be one of [AVAILABLE, SOLD, CANCELLED]",
          "required": false,
          "schema": {
            "title": "ticketStatus",
            "type": "string"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [ID, CREATED_DATE, EXTERNAL_REF, PAYMENT_STATUS, PURCHASE_DATE, EVENT_NAME, EVENT_DATE, ROW, SECTION, UNIT_COST, SEATS, QUANTITY, LINE_TOTAL, USER, VENUE_NAME, GROUP_COST]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/searchAutoPurchases"
      },
      "task": true
    },
    {
      "name": "addPurchaseNote",
      "summary": "Adds a purchase note",
      "description": "Adds a purchase note",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "Purchase note object: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/addPurchaseNote"
      },
      "task": true
    },
    {
      "name": "search6",
      "summary": "Searches purchases",
      "description": "Searches purchases",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "deliveryMethod",
          "type": "array",
          "info": "Delivery method search filter: array",
          "required": false,
          "schema": {
            "title": "deliveryMethod",
            "type": "array"
          }
        },
        {
          "name": "paymentMethod",
          "type": "array",
          "info": "Payment method search filter: array",
          "required": false,
          "schema": {
            "title": "paymentMethod",
            "type": "array"
          }
        },
        {
          "name": "vendorType",
          "type": "array",
          "info": "Vendor type search filter: array",
          "required": false,
          "schema": {
            "title": "vendorType",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "Tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "vendorTag",
          "type": "array",
          "info": ": array",
          "required": false,
          "schema": {
            "title": "vendorTag",
            "type": "array"
          }
        },
        {
          "name": "vendorTagsMatchAll",
          "type": "boolean",
          "info": ": boolean",
          "required": false,
          "schema": {
            "title": "vendorTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "vendorId",
          "type": "number",
          "info": "Vendor Id search filter: 123",
          "required": false,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        },
        {
          "name": "displayName",
          "type": "string",
          "info": "Vendor display name search filter: string",
          "required": false,
          "schema": {
            "title": "displayName",
            "type": "string"
          }
        },
        {
          "name": "id",
          "type": "array",
          "info": "Purchase Id search filter: array",
          "required": false,
          "schema": {
            "title": "id",
            "type": "array"
          }
        },
        {
          "name": "inventoryId",
          "type": "number",
          "info": "Inventory Id search filter: 123",
          "required": false,
          "schema": {
            "title": "inventoryId",
            "type": "number"
          }
        },
        {
          "name": "invoiceLineId",
          "type": "number",
          "info": "Invoice line Id search filter: 123",
          "required": false,
          "schema": {
            "title": "invoiceLineId",
            "type": "number"
          }
        },
        {
          "name": "creditCardId",
          "type": "number",
          "info": "Invoice line Id search filter: 123",
          "required": false,
          "schema": {
            "title": "creditCardId",
            "type": "number"
          }
        },
        {
          "name": "createdDateFrom",
          "type": "string",
          "info": "Purchase creation date from range filter: string",
          "required": false,
          "schema": {
            "title": "createdDateFrom",
            "type": "string"
          }
        },
        {
          "name": "createdDateTo",
          "type": "string",
          "info": "Purchase creation date to range filter: string",
          "required": false,
          "schema": {
            "title": "createdDateTo",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateFrom",
          "type": "string",
          "info": "Purchase last update date from range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateFrom",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateTo",
          "type": "string",
          "info": "Purchase last update date to range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateTo",
            "type": "string"
          }
        },
        {
          "name": "externalRef",
          "type": "string",
          "info": "External reference search filter: string",
          "required": false,
          "schema": {
            "title": "externalRef",
            "type": "string"
          }
        },
        {
          "name": "simplifiedExternalRef",
          "type": "array",
          "info": "Simplified external reference (ignoring dashes, slashes or spaces) search filter: array",
          "required": false,
          "schema": {
            "title": "simplifiedExternalRef",
            "type": "array"
          }
        },
        {
          "name": "paymentStatus",
          "type": "array",
          "info": "Payment status search filter: array",
          "required": false,
          "schema": {
            "title": "paymentStatus",
            "type": "array"
          }
        },
        {
          "name": "purchaseStatus",
          "type": "array",
          "info": "Purchase status search filter: array",
          "required": false,
          "schema": {
            "title": "purchaseStatus",
            "type": "array"
          }
        },
        {
          "name": "minCost",
          "type": "number",
          "info": "Minimum cost search filter: 123",
          "required": false,
          "schema": {
            "title": "minCost",
            "type": "number"
          }
        },
        {
          "name": "maxCost",
          "type": "number",
          "info": "Maximum cost search filter: 123",
          "required": false,
          "schema": {
            "title": "maxCost",
            "type": "number"
          }
        },
        {
          "name": "currencyCode",
          "type": "string",
          "info": "Currency type search filter: Must be one of [USD, CAD, EUR, GBP, JPY, BRL, XBT, AUD]",
          "required": false,
          "schema": {
            "title": "currencyCode",
            "type": "string"
          }
        },
        {
          "name": "internalId",
          "type": "number",
          "info": "Internal Id search filter: 123",
          "required": false,
          "schema": {
            "title": "internalId",
            "type": "number"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [ID, CREATED_DATE, DISPLAY_NAME, PAYMENT_METHOD, DELIVERY_METHOD, QUANTITY, SECTION, ROW, TOTAL, LINE_COUNT, LINE_TOTAL, PAYMENT_STATUS, PURCHASE_STATUS, EXTERNAL_REF, OUTSTANDING_BALANCE, EVENT_NAME]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        },
        {
          "name": "includeHasZoneSeatingInventory",
          "type": "boolean",
          "info": "Whether the results should include inventory zone seating: boolean",
          "required": false,
          "schema": {
            "title": "includeHasZoneSeatingInventory",
            "type": "boolean"
          }
        },
        {
          "name": "zeroOutstandingBalance",
          "type": "boolean",
          "info": "Whether the results should have zero outstanding balance: boolean",
          "required": false,
          "schema": {
            "title": "zeroOutstandingBalance",
            "type": "boolean"
          }
        },
        {
          "name": "minOutstandingBalance",
          "type": "number",
          "info": "Minimum outstanding balance search filter: 123",
          "required": false,
          "schema": {
            "title": "minOutstandingBalance",
            "type": "number"
          }
        },
        {
          "name": "maxOutstandingBalance",
          "type": "number",
          "info": "Maximum outstanding balance search filter: 123",
          "required": false,
          "schema": {
            "title": "maxOutstandingBalance",
            "type": "number"
          }
        },
        {
          "name": "consignment",
          "type": "string",
          "info": "Whether the results have a consignment type POs: Must be one of [YES, NO, COMPLETED]",
          "required": false,
          "schema": {
            "title": "consignment",
            "type": "string"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": "Event Id search filter: array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "eventName",
          "type": "string",
          "info": "Event Name search filter: string",
          "required": false,
          "schema": {
            "title": "eventName",
            "type": "string"
          }
        },
        {
          "name": "cooperative",
          "type": "boolean",
          "info": "Whether the results have cooperative POs: boolean",
          "required": false,
          "schema": {
            "title": "cooperative",
            "type": "boolean"
          }
        },
        {
          "name": "createdBy",
          "type": "string",
          "info": "User email for purchase creator: string",
          "required": false,
          "schema": {
            "title": "createdBy",
            "type": "string"
          }
        },
        {
          "name": "createdByUserId",
          "type": "number",
          "info": "User id for purchase creator: 123",
          "required": false,
          "schema": {
            "title": "createdByUserId",
            "type": "number"
          }
        },
        {
          "name": "lastPurchasePaymentNote",
          "type": "string",
          "info": "Last purchase payment note search filter: string",
          "required": false,
          "schema": {
            "title": "lastPurchasePaymentNote",
            "type": "string"
          }
        },
        {
          "name": "vendorTags",
          "type": "array",
          "info": ": array",
          "required": false,
          "schema": {
            "title": "vendorTags",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search6"
      },
      "task": true
    },
    {
      "name": "insertPurchase",
      "summary": "Creates a purchase. The minimum required field to insert a purchase is the vendorId. Inventory purchase lines must include quantity, section, row, cost, lowSeat, highSeat, stockType,  seatType and either an eventId or eventMapping.",
      "description": "Creates a purchase. The minimum required field to insert a purchase is the vendorId. Inventory purchase lines must include quantity, section, row, cost, lowSeat, highSeat, stockType,  seatType and either an eventId or eventMapping.",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "A purchase object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insertPurchase"
      },
      "task": true
    },
    {
      "name": "getPurchaseLines",
      "summary": "Gets purchase lines",
      "description": "Gets purchase lines",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPurchaseLines"
      },
      "task": true
    },
    {
      "name": "insertPurchaseLine",
      "summary": "Adds a purchase line",
      "description": "Adds a purchase line",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "The purchase line to add.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insertPurchaseLine"
      },
      "task": true
    },
    {
      "name": "getPurchaseLine",
      "summary": "Gets a purchase line",
      "description": "Gets a purchase line",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPurchaseLine"
      },
      "task": true
    },
    {
      "name": "updatePurchaseLine",
      "summary": "Updates a purchase line. Only amount and description can be updated.",
      "description": "Updates a purchase line. Only amount and description can be updated.",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "A purchase line object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updatePurchaseLine"
      },
      "task": true
    },
    {
      "name": "replacePurchaseLine",
      "summary": "Replaces a purchase line. Allows changing section, row, low seat and seat type.",
      "description": "Replaces a purchase line. Allows changing section, row, low seat and seat type.",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": ": object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/replacePurchaseLine"
      },
      "task": true
    },
    {
      "name": "getPurchaseLineTickets",
      "summary": "Gets the tickets of a purchase line",
      "description": "Gets the tickets of a purchase line",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getPurchaseLineTickets"
      },
      "task": true
    },
    {
      "name": "cancelPurchaseLine",
      "summary": "Cancels a purchase line",
      "description": "Cancels a purchase line",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "lineId",
          "type": "number",
          "info": "The line id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "lineId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/cancelPurchaseLine"
      },
      "task": true
    },
    {
      "name": "multiWithPurchaseId",
      "summary": "Creates inventory",
      "description": "Creates inventory",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The purchase order id on which to attach the tickets: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Array of inventory objects to create.: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/multiWithPurchaseId"
      },
      "task": true
    },
    {
      "name": "send1",
      "summary": "Sends a Purchase Order to the vendor's email address",
      "description": "Sends a Purchase Order to the vendor's email address",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "Id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "emailAddress",
          "type": "array",
          "info": "The vendor's email addresses in the To email field: array",
          "required": true,
          "schema": {
            "title": "emailAddress",
            "type": "array"
          }
        },
        {
          "name": "ccEmailAddress",
          "type": "array",
          "info": "The vendor's email addresses in the Cc email field: array",
          "required": false,
          "schema": {
            "title": "ccEmailAddress",
            "type": "array"
          }
        },
        {
          "name": "bccEmailAddress",
          "type": "array",
          "info": "The vendor's email addresses in the Bcc email field: array",
          "required": false,
          "schema": {
            "title": "bccEmailAddress",
            "type": "array"
          }
        },
        {
          "name": "subject",
          "type": "string",
          "info": "Subject of the email: string",
          "required": false,
          "schema": {
            "title": "subject",
            "type": "string"
          }
        },
        {
          "name": "message",
          "type": "string",
          "info": "Message of the email: string",
          "required": false,
          "schema": {
            "title": "message",
            "type": "string"
          }
        },
        {
          "name": "includeAirbill",
          "type": "boolean",
          "info": "Whether the email includes the airbill PDF attached: boolean",
          "required": false,
          "schema": {
            "title": "includeAirbill",
            "type": "boolean"
          }
        },
        {
          "name": "timeZoneOffset",
          "type": "number",
          "info": "Time zone off set: 123",
          "required": false,
          "schema": {
            "title": "timeZoneOffset",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/send1"
      },
      "task": true
    },
    {
      "name": "tag4",
      "summary": "Inserts a new tags for a purchase. Duplicates are ignored.",
      "description": "Inserts a new tags for a purchase. Duplicates are ignored.",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to add: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/tag4"
      },
      "task": true
    },
    {
      "name": "update10",
      "summary": "Bulk Purchase Update",
      "description": "Bulk Purchase Update",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Bulk purchase update: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update10"
      },
      "task": true
    },
    {
      "name": "delete7",
      "summary": "Deletes tags for a purchase",
      "description": "Deletes tags for a purchase",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The purchase Id: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to be removed from the purchase: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete7"
      },
      "task": true
    },
    {
      "name": "print1",
      "summary": "Prints a Purchase Order",
      "description": "Prints a Purchase Order",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        },
        {
          "name": "timeZoneOffset",
          "type": "number",
          "info": "Time zone off set: 123",
          "required": false,
          "schema": {
            "title": "timeZoneOffset",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/print1"
      },
      "task": true
    },
    {
      "name": "search7",
      "summary": "Retrieves a single purchase's audit records",
      "description": "Retrieves a single purchase's audit records",
      "input": [
        {
          "name": "purchaseId",
          "type": "number",
          "info": "The id of the purchase: 123",
          "required": true,
          "schema": {
            "title": "purchaseId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search7"
      },
      "task": true
    },
    {
      "name": "search8",
      "summary": "Searches by the passed criteria",
      "description": "Searches by the passed criteria",
      "input": [
        {
          "name": "key",
          "type": "string",
          "info": "Key value to search: string",
          "required": true,
          "schema": {
            "title": "key",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search8"
      },
      "task": true
    },
    {
      "name": "queryReportSnapshots",
      "summary": "Searches snapshots",
      "description": "Searches snapshots",
      "input": [
        {
          "name": "reportId",
          "type": "number",
          "info": "Report Id search filter: 123",
          "required": false,
          "schema": {
            "title": "reportId",
            "type": "number"
          }
        },
        {
          "name": "snapshotDateFrom",
          "type": "string",
          "info": "Snapshot creation date from range filter: string",
          "required": false,
          "schema": {
            "title": "snapshotDateFrom",
            "type": "string"
          }
        },
        {
          "name": "snapshotDateTo",
          "type": "string",
          "info": "Snapshot creation date to range filter: string",
          "required": false,
          "schema": {
            "title": "snapshotDateTo",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/queryReportSnapshots"
      },
      "task": true
    },
    {
      "name": "getReportSnapshot",
      "summary": "Retrieves a snapshot by the snapshot id",
      "description": "Retrieves a snapshot by the snapshot id",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": "The id of the snapshot: 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getReportSnapshot"
      },
      "task": true
    },
    {
      "name": "bulk",
      "summary": "Bulk add/remove tags",
      "description": "Bulk add/remove tags",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Update payload: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulk"
      },
      "task": true
    },
    {
      "name": "tagsSummary",
      "summary": "Tags summary",
      "description": "Tags summary",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "id",
          "type": "number",
          "info": "Tag Id: 123",
          "required": false,
          "schema": {
            "title": "id",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "string",
          "info": "Tag name: string",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/tagsSummary"
      },
      "task": true
    },
    {
      "name": "delete8",
      "summary": "Deletes tags for an account",
      "description": "Deletes tags for an account",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Tags to remove: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete8"
      },
      "task": true
    },
    {
      "name": "list",
      "summary": "Retrieves a list of tags for an account",
      "description": "Retrieves a list of tags for an account",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/list"
      },
      "task": true
    },
    {
      "name": "search9",
      "summary": "Searches a ticket with the given barcode",
      "description": "Searches a ticket with the given barcode",
      "input": [
        {
          "name": "barcode",
          "type": "string",
          "info": "Ticket barcode to look for: string",
          "required": false,
          "schema": {
            "title": "barcode",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateFrom",
          "type": "string",
          "info": "Ticket last update date from range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateFrom",
            "type": "string"
          }
        },
        {
          "name": "lastUpdateTo",
          "type": "string",
          "info": "Ticket last update date to range filter: string",
          "required": false,
          "schema": {
            "title": "lastUpdateTo",
            "type": "string"
          }
        },
        {
          "name": "eventId",
          "type": "array",
          "info": ": array",
          "required": false,
          "schema": {
            "title": "eventId",
            "type": "array"
          }
        },
        {
          "name": "section",
          "type": "string",
          "info": ": string",
          "required": false,
          "schema": {
            "title": "section",
            "type": "string"
          }
        },
        {
          "name": "row",
          "type": "array",
          "info": ": array",
          "required": false,
          "schema": {
            "title": "row",
            "type": "array"
          }
        },
        {
          "name": "seatNumber",
          "type": "array",
          "info": ": array",
          "required": false,
          "schema": {
            "title": "seatNumber",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search9"
      },
      "task": true
    },
    {
      "name": "listUsers",
      "summary": "Gets a list of users",
      "description": "Gets a list of users",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/listUsers"
      },
      "task": true
    },
    {
      "name": "getMe",
      "summary": "Gets the current user details",
      "description": "Gets the current user details",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getMe"
      },
      "task": true
    },
    {
      "name": "getById7",
      "summary": "Retrieves a vendor by the vendor id",
      "description": "Retrieves a vendor by the vendor id",
      "input": [
        {
          "name": "vendorId",
          "type": "number",
          "info": "The id of the vendor: 123",
          "required": true,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById7"
      },
      "task": true
    },
    {
      "name": "update12",
      "summary": "Updates a vendor",
      "description": "Updates a vendor",
      "input": [
        {
          "name": "vendorId",
          "type": "number",
          "info": "The id of the vendor: 123",
          "required": true,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": "The vendor object to update.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update12"
      },
      "task": true
    },
    {
      "name": "removeTag5",
      "summary": "Deletes a tag for a vendor",
      "description": "Deletes a tag for a vendor",
      "input": [
        {
          "name": "vendorId",
          "type": "number",
          "info": "The id of the vendor: 123",
          "required": true,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        },
        {
          "name": "tag",
          "type": "string",
          "info": "Tag to remove: string",
          "required": true,
          "schema": {
            "title": "tag",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/removeTag5"
      },
      "task": true
    },
    {
      "name": "bulkRemoveTags5",
      "summary": "Deletes all tags from vendors with given ids",
      "description": "Deletes all tags from vendors with given ids",
      "input": [
        {
          "name": "body",
          "type": "array",
          "info": "Vendor Ids: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/bulkRemoveTags5"
      },
      "task": true
    },
    {
      "name": "getDefault",
      "summary": "Retrieves the default vendor for the account",
      "description": "Retrieves the default vendor for the account",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/getDefault"
      },
      "task": true
    },
    {
      "name": "updateDefaultVendor",
      "summary": "Sets the default vendor for the account",
      "description": "Sets the default vendor for the account",
      "input": [
        {
          "name": "body",
          "type": "number",
          "info": "The vendor id of the default vendor: 123",
          "required": true,
          "schema": {
            "title": "body",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/updateDefaultVendor"
      },
      "task": true
    },
    {
      "name": "tag5",
      "summary": "Inserts a new tags for a vendor. Duplicates are ignored",
      "description": "Inserts a new tags for a vendor. Duplicates are ignored",
      "input": [
        {
          "name": "vendorId",
          "type": "number",
          "info": "The id of the vendor: 123",
          "required": true,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to add: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/tag5"
      },
      "task": true
    },
    {
      "name": "update11",
      "summary": "Bulk Vendor Update",
      "description": "Bulk Vendor Update",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "Bulk vendor update: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update11"
      },
      "task": true
    },
    {
      "name": "delete9",
      "summary": "Deletes tags for a vendor",
      "description": "Deletes tags for a vendor",
      "input": [
        {
          "name": "vendorId",
          "type": "number",
          "info": "The vendor Id: 123",
          "required": true,
          "schema": {
            "title": "vendorId",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "array",
          "info": "Tags to be removed from the vendor: array",
          "required": true,
          "schema": {
            "title": "body",
            "type": "array"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete9"
      },
      "task": true
    },
    {
      "name": "search10",
      "summary": "Retrieves all vendors",
      "description": "Retrieves all vendors",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "id",
          "type": "array",
          "info": "Vendor Id search filter: array",
          "required": false,
          "schema": {
            "title": "id",
            "type": "array"
          }
        },
        {
          "name": "vendorType",
          "type": "array",
          "info": "Vendor type search filter: array",
          "required": false,
          "schema": {
            "title": "vendorType",
            "type": "array"
          }
        },
        {
          "name": "tag",
          "type": "array",
          "info": "Tags to include: array",
          "required": false,
          "schema": {
            "title": "tag",
            "type": "array"
          }
        },
        {
          "name": "tagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "tagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "antiTag",
          "type": "array",
          "info": "Tags to exclude: array",
          "required": false,
          "schema": {
            "title": "antiTag",
            "type": "array"
          }
        },
        {
          "name": "antiTagsMatchAll",
          "type": "boolean",
          "info": "Whether the results should not have all the tags or only some: boolean",
          "required": false,
          "schema": {
            "title": "antiTagsMatchAll",
            "type": "boolean"
          }
        },
        {
          "name": "displayName",
          "type": "string",
          "info": "Vendor display name search filter: string",
          "required": false,
          "schema": {
            "title": "displayName",
            "type": "string"
          }
        },
        {
          "name": "email",
          "type": "string",
          "info": "Email search filter: string",
          "required": false,
          "schema": {
            "title": "email",
            "type": "string"
          }
        },
        {
          "name": "lastName",
          "type": "string",
          "info": "Last name search filter: string",
          "required": false,
          "schema": {
            "title": "lastName",
            "type": "string"
          }
        },
        {
          "name": "company",
          "type": "string",
          "info": "Company search filter: string",
          "required": false,
          "schema": {
            "title": "company",
            "type": "string"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "phone",
          "type": "string",
          "info": "Phone number to search by (matching phone 1 and phone 2 fields): string",
          "required": false,
          "schema": {
            "title": "phone",
            "type": "string"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [DISPLAY_NAME, VENDOR_TYPE, EMAIL, LAST_NAME, COMPANY, CITY, STATE, ACCOUNT_DEFAULT]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search10"
      },
      "task": true
    },
    {
      "name": "insert4",
      "summary": "Creates vendors",
      "description": "Creates vendors",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": "A vendor object to create.: object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/insert4"
      },
      "task": true
    },
    {
      "name": "getById8",
      "summary": "Retrieves a venue by the venue id",
      "description": "Retrieves a venue by the venue id",
      "input": [
        {
          "name": "venueId",
          "type": "number",
          "info": "The id of the venue: 123",
          "required": true,
          "schema": {
            "title": "venueId",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/getById8"
      },
      "task": true
    },
    {
      "name": "search11",
      "summary": "Searches venues",
      "description": "Searches venues",
      "input": [
        {
          "name": "limit",
          "type": "number",
          "info": "Number of results per page: 123",
          "required": false,
          "schema": {
            "title": "limit",
            "type": "number"
          }
        },
        {
          "name": "sortDir",
          "type": "string",
          "info": "Direction to sort: Must be one of [ASC, DESC]",
          "required": false,
          "schema": {
            "title": "sortDir",
            "type": "string"
          }
        },
        {
          "name": "pageNumber",
          "type": "number",
          "info": "Page number of results to show: 123",
          "required": false,
          "schema": {
            "title": "pageNumber",
            "type": "number"
          }
        },
        {
          "name": "name",
          "type": "string",
          "info": "Venue name search filter: string",
          "required": false,
          "schema": {
            "title": "name",
            "type": "string"
          }
        },
        {
          "name": "city",
          "type": "string",
          "info": "City search filter: string",
          "required": false,
          "schema": {
            "title": "city",
            "type": "string"
          }
        },
        {
          "name": "state",
          "type": "array",
          "info": "State search filter: array",
          "required": false,
          "schema": {
            "title": "state",
            "type": "array"
          }
        },
        {
          "name": "id",
          "type": "number",
          "info": "Venue Id search filter: 123",
          "required": false,
          "schema": {
            "title": "id",
            "type": "number"
          }
        },
        {
          "name": "sortedBy",
          "type": "string",
          "info": "Field to sort by: Must be one of [NAME, ID, CITY, STATE]",
          "required": false,
          "schema": {
            "title": "sortedBy",
            "type": "string"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/search11"
      },
      "task": true
    },
    {
      "name": "find",
      "summary": "Get Webhook",
      "description": "Get Webhook",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": ": 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/find"
      },
      "task": true
    },
    {
      "name": "update13",
      "summary": "Update Webhook",
      "description": "Update Webhook",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": ": 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        },
        {
          "name": "body",
          "type": "object",
          "info": ": object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/update13"
      },
      "task": true
    },
    {
      "name": "delete10",
      "summary": "Delete Webhook",
      "description": "Delete Webhook",
      "input": [
        {
          "name": "id",
          "type": "number",
          "info": ": 123",
          "required": true,
          "schema": {
            "title": "id",
            "type": "number"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/delete10"
      },
      "task": true
    },
    {
      "name": "query1",
      "summary": "Get all Webhooks created",
      "description": "Get all Webhooks created",
      "input": [],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "GET",
        "path": "/query1"
      },
      "task": true
    },
    {
      "name": "create1",
      "summary": "Create Webhook",
      "description": "Create Webhook",
      "input": [
        {
          "name": "body",
          "type": "object",
          "info": ": object",
          "required": true,
          "schema": {
            "title": "body",
            "type": "object"
          }
        }
      ],
      "output": {
        "name": "result",
        "type": "object",
        "description": "A JSON Object containing status, code and the result",
        "schema": {
          "title": "result",
          "type": "object"
        }
      },
      "roles": [
        "admin"
      ],
      "route": {
        "verb": "POST",
        "path": "/create1"
      },
      "task": true
    }
  ],
  "views": []
}