Online Help for Connector




Module Overview

The Grand Avenue Software Connector modules provide a set of web services that expose specific functionality in Grand Avenue modules. This is intended to allow customers to develop custom solutions that access information stored in Grand Avenue.



Connector OData Resources

The Connector modules provide RESTful Web Services published using the Open Data Protocol (OData). If you use these resources, please keep in mind that any use of these APIs should be resilient as possible to changes made to the API. Try to be prepared for the following types of changes:

The following types of changes will be considered a "breaking" change to the API and packaged as a new "API version" (see Configure OData API for information on enabled/disabling API versions).

When a new version of the API is introduced due to breaking changes, the previous version of the API will be temporarily supported but marked as "Deprecated" to indicate that customers should migrate to the new version as soon as possible.

To use these resources, you must do the following:


Published OData Resources

All OData Resources are available beneath the OData Root URL.

The values for BaseURL and ApplicationName can be found by a System Administrator on the Configure Notification Settings page.

The values for ApiVersion can be found on the Configure OData API page, with a link to the corresponding OData Service Document for each version.

Which API version should I use? New integrations should use the most recent API version - the examples throughout this help use v3. Earlier versions remain available while they are enabled, but are marked Deprecated and will be removed in a future release; the OData API Versions page lists the versions this system supports. Where the current version behaves differently from an earlier one, the difference is called out in the relevant section below.

Grand Avenue OData Resources are implemented using version 4 of the OData specification and libraries. Each resource returns the items in the system, like doing an interactive search for items and then exporting that information to an Excel CSV file. In this case however the results are formatted in a JavaScript Object Notation (JSON) document. The description of JSON is readily available on the web and beyond the scope of this help.

Partial Resource Path Resource Name Description Activated by Module Supported HTTP Methods
.../odata/<ApiVersion> [Service Document] Lists the currently enabled OData service resources for the specified API version for modules that have been activated. GET
.../odata/<ApiVersion>/$metadata $metadata The OData metadata lists the data formats used by each of the service resources exposed by the specified API version. GET
.../odata/<ApiVersion>/openapi.json N/A A JSON representation of the OpenAPI documentation for the specified API version. GET
.../odata/<ApiVersion>/ActivityLogEntries ActivityLogEntries Activity Log Entries for CAPA Requests, Complaints and NCM Reports CAPA, Complaint Handling, NCM GET
.../odata/<ApiVersion>/AssessmentResults AssessmentResults Assessment Results for Training Records Training Assessment GET
.../odata/<ApiVersion>/AssociatedParts AssociatedParts Associated Parts for Issues and Complaints Complaint Handling GET
.../odata/<ApiVersion>/AuditActions AuditActions Audit Actions Audit Management GET
.../odata/<ApiVersion>/AuditFindings AuditFindings Audit Findings Audit Management GET
.../odata/<ApiVersion>/AuditReports AuditReports Audit Reports Audit Management GET
.../odata/<ApiVersion>/AuditRequirements AuditRequirements Audit Requirements for Audit Reports - NOTE: This endpoint returns only requirements associated with Audit Reports. Requirements belonging to Audit Templates are not included. Audit Management GET
.../odata/<ApiVersion>/CapaActions CapaActions CAPA Actions CAPA GET
.../odata/<ApiVersion>/CapaCorrections CapaCorrections CAPA Corrections CAPA GET
.../odata/<ApiVersion>/CapaRequests CapaRequests CAPA Requests CAPA GET
.../odata/<ApiVersion>/CapaRootCauses CapaRootCauses CAPA Root Causes CAPA GET
.../odata/<ApiVersion>/ChangeRequests ChangeRequests Change Requests Document Control GET
.../odata/<ApiVersion>/Complaints Complaints Complaints Complaint Handling GET
.../odata/<ApiVersion>/Customers Customers Customers Complaint Handling GET, POST*
.../odata/<ApiVersion>/Departments Departments Departments General GET
.../odata/<ApiVersion>/DesignProjectDeliverables DesignProjectDeliverables Design Project Deliverables Design Control GET
.../odata/<ApiVersion>/DesignProjectPhases DesignProjectPhases Design Project Phases Design Control GET
.../odata/<ApiVersion>/DesignProjects DesignProjects Design Projects Design Control GET
.../odata/<ApiVersion>/DeviationRequests DeviationRequests Deviation Requests Document Control GET
.../odata/<ApiVersion>/Documents Documents Document Revisions Document Control GET
.../odata/<ApiVersion>/Equipment Equipment Equipment Equipment Management GET
.../odata/<ApiVersion>/EquipmentActivityRecords EquipmentActivityRecords Activity Records for Equipment Equipment Management GET
.../odata/<ApiVersion>/Issues Issues Issues Complaint Handling GET, POST*
.../odata/<ApiVersion>/NcmReportEntries NcmReportEntries Disposition entries for NCM Reports NCM GET
.../odata/<ApiVersion>/NcmReports NcmReports NCM Reports NCM GET
.../odata/<ApiVersion>/Parts Parts Parts Complaint Handling, NCM, Supplier Management GET, POST*
.../odata/<ApiVersion>/ProcessImpacts ProcessImpacts Process Impacts - NOTE: This endpoint will return all process impacts, not just the ones associated with other exposed resources. CAPA, Complaint Handling, Document Control, NCM, Supplier Management GET
.../odata/<ApiVersion>/ReportingZones ReportingZones Reporting Zones for Complaints Complaint Handling GET
.../odata/<ApiVersion>/RequirementCollections RequirementCollections Requirement Collections Requirements Management GET
.../odata/<ApiVersion>/RequirementDesignInputs RequirementDesignInputs Design Inputs for Requirement Collections Requirements Management GET
.../odata/<ApiVersion>/RequirementDesignOutputs RequirementDesignOutputs Design Outputs for Requirement Collections Requirements Management GET
.../odata/<ApiVersion>/RequirementUserNeeds RequirementUserNeeds User Needs for Requirement Collections Requirements Management GET
.../odata/<ApiVersion>/RequirementValidationResults RequirementValidationResults Validation Results for User Needs Requirements Management GET
.../odata/<ApiVersion>/RequirementVerificationResults RequirementVerificationResults Verification Results for Design Inputs Requirements Management GET
.../odata/<ApiVersion>/RiskAnalyses RiskAnalyses Risk Analyses for Risk Files Risk Management GET
.../odata/<ApiVersion>/RiskAnalysisFailureModes RiskAnalysisFailureModes Failure Modes for Risk Analyses Risk Management GET
.../odata/<ApiVersion>/SupplierCorrectiveActionRequests SupplierCorrectiveActionRequests SCARs Supplier Management GET
.../odata/<ApiVersion>/SupplierEvaluations SupplierEvaluations Supplier Evaluations Supplier Management GET
.../odata/<ApiVersion>/Suppliers Suppliers Suppliers Audit Management, CAPA, NCM, Supplier Management GET, POST*
.../odata/<ApiVersion>/TaskAssignments TaskAssignments Task Assignments. NOTE: This endpoint will return all task assignments, not just the ones associated with other exposed resources. GET
.../odata/<ApiVersion>/TrainingRecords TrainingRecords Training Records Training Management GET
.../odata/<ApiVersion>/Users Users Users General GET

* POST operations are supported only when the Connector Write module is activated.

OData Resource Relationships

The following relationships are available for navigation between OData resources (see Using the $expand OData Query Option for details). Starting with API version 3, each relationship can also be read at its own path (see Reading a Navigation Property Directly).

Starting Endpoint Navigation Property Related Endpoint Cardinality
ActivityLogEntries EntryCreatedByUser Users Single
ActivityLogEntries EntryLastUpdatedByUser Users Single
AssessmentResults TrainingRecord TrainingRecords Single
AssociatedParts Part Parts Single
AssociatedParts ProcessItem Issues, SupplierCorrectiveActionRequests Single
AuditActions AuditFinding AuditFindings Single
AuditFindings AuditActions AuditActions Multiple
AuditFindings AuditRequirement AuditRequirements Single
AuditFindings CapaRequest CapaRequests Single
AuditReports AuditFindings AuditFindings Multiple
AuditReports AuditManager Users Single
AuditReports AuditRequirements AuditRequirements Multiple
AuditReports Supplier Suppliers Single
AuditReports TaskAssignments TaskAssignments Multiple
AuditRequirements AuditFindings AuditFindings Multiple
AuditRequirements AuditReport AuditReports Single
AuditRequirements TaskAssignments TaskAssignments Multiple
CapaActions CapaRequest CapaRequests Single
CapaActions CapaRootCause CapaRootCauses Single
CapaActions Implementor Users Single
CapaActions TaskAssignments TaskAssignments Multiple
CapaCorrections CapaRequest CapaRequests Single
CapaRequests ActivityLogEntries ActivityLogEntries Multiple
CapaRequests AffectedDepartment Departments Single
CapaRequests CapaActions CapaActions Multiple
CapaRequests CapaCorrections CapaCorrections Multiple
CapaRequests CapaEffectivenessVerificationPlannedAssignee Users Single
CapaRequests CapaRootCauses CapaRootCauses Multiple
CapaRequests FollowedOnByCapaRequests CapaRequests Multiple
CapaRequests FollowOnForCapaRequests CapaRequests Multiple
CapaRequests Investigator Users Single
CapaRequests ProcessImpacts ProcessImpacts Multiple
CapaRequests TaskAssignments TaskAssignments Multiple
CapaRootCauses CapaActions CapaActions Multiple
CapaRootCauses CapaRequest CapaRequests Single
CapaRootCauses Supplier Suppliers Single
CapaRootCauses TaskAssignments TaskAssignments Multiple
ChangeRequests OriginatingDepartment Departments Single
ChangeRequests Originator Users Single
ChangeRequests ProcessImpacts ProcessImpacts Multiple
ChangeRequests ResultingDocumentRevisions Documents Multiple
ChangeRequests TaskAssignments TaskAssignments Multiple
Complaints ActivityLogEntries ActivityLogEntries Multiple
Complaints AssociatedParts AssociatedParts Multiple
Complaints ProcessImpacts ProcessImpacts Multiple
Complaints ReportingZones ReportingZones Multiple
Complaints ResultingCapaRequest CapaRequests Single
Complaints SourceIssue Issues Single
Complaints TaskAssignments TaskAssignments Multiple
Customers TaskAssignments TaskAssignments Multiple
Departments Manager Users Single
Departments ProxyDepartment Departments Single
Departments TaskAssignments TaskAssignments Multiple
Departments Users Users Multiple
DesignProjectDeliverables DesignProject DesignProjects Single
DesignProjectDeliverables DesignProjectPhase DesignProjectPhases Single
DesignProjectDeliverables TaskAssignments TaskAssignments Multiple
DesignProjectPhases DesignProject DesignProjects Single
DesignProjectPhases DesignProjectDeliverables DesignProjectDeliverables Multiple
DesignProjectPhases TaskAssignments TaskAssignments Multiple
DesignProjects DesignProjectDeliverables DesignProjectDeliverables Multiple
DesignProjects DesignProjectPhases DesignProjectPhases Multiple
DesignProjects ProjectManager Users Single
DesignProjects TaskAssignments TaskAssignments Multiple
DeviationRequests OriginatingDepartment Departments Single
DeviationRequests Originator Users Single
DeviationRequests ProcessImpacts ProcessImpacts Multiple
DeviationRequests TaskAssignments TaskAssignments Multiple
Documents Department Departments Single
Documents DerivedFromDocument Documents Single
Documents NextRevision Documents Single
Documents OriginatingChangeRequest ChangeRequests Single
Documents PreviousRevision Documents Single
Documents TaskAssignments TaskAssignments Multiple
Equipment EquipmentActivityRecords EquipmentActivityRecords Multiple
Equipment TaskAssignments TaskAssignments Multiple
EquipmentActivityRecords ActivityPerformedByUser Users Single
EquipmentActivityRecords EquipmentEntity Equipment Single
EquipmentActivityRecords TaskAssignments TaskAssignments Multiple
Issues AssociatedParts AssociatedParts Multiple
Issues Customer Customers Single
Issues Initiator Users Single
Issues RelatedCapaRequest CapaRequests Single
Issues RelatedComplaint Complaints Single
Issues TaskAssignments TaskAssignments Multiple
NcmReportEntries NcmReport NcmReports Single
NcmReportEntries TaskAssignments TaskAssignments Multiple
NcmReports ActivityLogEntries ActivityLogEntries Multiple
NcmReports NcmReportEntries NcmReportEntries Multiple
NcmReports Originator Users Single
NcmReports Part Parts Single
NcmReports ProcessImpacts ProcessImpacts Multiple
NcmReports ResultingCapaRequest CapaRequests Single
NcmReports Supplier Suppliers Single
NcmReports TaskAssignments TaskAssignments Multiple
Parts Suppliers Suppliers Multiple
Parts TaskAssignments TaskAssignments Multiple
ProcessImpacts ImplementationTaskDefaultAssignee Users Single
ProcessImpacts ProcessItem CapaRequests, Complaints, NcmReports, SupplierCorrectiveActionRequests, SupplierEvaluations Single
ProcessImpacts TaskAssignments TaskAssignments Multiple
ReportingZones Complaint Complaints Single
ReportingZones TaskAssignments TaskAssignments Multiple
RequirementCollections Manager Users Single
RequirementCollections RequirementDesignInputs RequirementDesignInputs Multiple
RequirementCollections RequirementDesignOutputs RequirementDesignOutputs Multiple
RequirementCollections RequirementUserNeeds RequirementUserNeeds Multiple
RequirementCollections RequirementValidationResults RequirementValidationResults Multiple
RequirementCollections RequirementVerificationResults RequirementVerificationResults Multiple
RequirementCollections TaskAssignments TaskAssignments Multiple
RequirementDesignInputs RequirementCollection RequirementCollections Single
RequirementDesignInputs RequirementDesignOutputs RequirementDesignOutputs Multiple
RequirementDesignInputs RequirementUserNeeds RequirementUserNeeds Multiple
RequirementDesignInputs RequirementVerificationResults RequirementVerificationResults Multiple
RequirementDesignInputs TaskAssignments TaskAssignments Multiple
RequirementDesignOutputs RequirementCollection RequirementCollections Single
RequirementDesignOutputs RequirementDesignInputs RequirementDesignInputs Multiple
RequirementDesignOutputs TaskAssignments TaskAssignments Multiple
RequirementUserNeeds RequirementCollection RequirementCollections Single
RequirementUserNeeds RequirementDesignInputs RequirementDesignInputs Multiple
RequirementUserNeeds RequirementValidationResults RequirementValidationResults Multiple
RequirementUserNeeds TaskAssignments TaskAssignments Multiple
RequirementValidationResults RequirementCollection RequirementCollections Single
RequirementValidationResults RequirementUserNeeds RequirementUserNeeds Multiple
RequirementValidationResults TaskAssignments TaskAssignments Multiple
RequirementVerificationResults RequirementCollection RequirementCollections Single
RequirementVerificationResults RequirementDesignInputs RequirementDesignInputs Multiple
RequirementVerificationResults TaskAssignments TaskAssignments Multiple
RiskAnalyses ActivityLogEntries ActivityLogEntries Multiple
RiskAnalyses RiskAnalysisFailureModes RiskAnalysisFailureModes Multiple
RiskAnalysisFailureModes RequirementDesignInputs RequirementDesignInputs Multiple
RiskAnalysisFailureModes RiskAnalysis RiskAnalyses Single
RiskAnalysisFailureModes TaskAssignments TaskAssignments Multiple
SupplierCorrectiveActionRequests ActivityLogEntries ActivityLogEntries Multiple
SupplierCorrectiveActionRequests AssociatedParts AssociatedParts Multiple
SupplierCorrectiveActionRequests ProcessImpacts ProcessImpacts Multiple
SupplierCorrectiveActionRequests Supplier Suppliers Single
SupplierCorrectiveActionRequests TaskAssignments TaskAssignments Multiple
SupplierEvaluations ProcessImpacts ProcessImpacts Multiple
SupplierEvaluations Supplier Suppliers Single
SupplierEvaluations TaskAssignments TaskAssignments Multiple
Suppliers Parts Parts Multiple
Suppliers TaskAssignments TaskAssignments Multiple
TaskAssignments Assignee Users Single
TaskAssignments Department Departments Single
TaskAssignments ReassignedFromAssignment TaskAssignments Single
TaskAssignments ReassignedToAssignment TaskAssignments Single
TrainingRecords AssessmentResults AssessmentResults Multiple
TrainingRecords CertificationSignoffUser Users Single
TrainingRecords MonitoredByUser Users Single
TrainingRecords TaskAssignments TaskAssignments Multiple
TrainingRecords TrainingSignoffUser Users Single
TrainingRecords User Users Single
Users Department Departments Single
Users TaskAssignments TaskAssignments Multiple
Users TrainingRecords TrainingRecords Multiple

Using the OpenAPI Documentation

The Connector modules publish API documentation in a JSON format in compliance with the OpenAPI 3.0 standard. The documentation is available

Opening this URL in a browser should display the OpenAPI documentation for all activated services. The services displayed will depend upon your system configuration, but the JSON document will look something like this:

{    
  "openapi": "3.0.4",
  "info": {
    "title": "OData Service for namespace GrandAvenue.Api",
    "version": "3.17.0",
    "description": "This OData service is located at https://myhost/GrandAvenue/odata/v3"
  },
  "servers": [
    {
      "url": "https://myhost/GrandAvenue/odata/v3"
    }
  ],
  "tags": [
    {
      "name": "TaskAssignments"
    }
  ],
  "paths": {
    "/TaskAssignments": {
      "get": {
...

Because the documentation follows the OpenAPI 3.0 standard, you can view, explore, and generate client code from it using any OpenAPI-compatible tool of your choice. Point the tool at the openapi.json URL above (or open a saved copy of the file). Widely used options include API documentation viewers (such as Redoc), API clients (such as Postman or Insomnia), and OpenAPI client-code generators. Below is an example of viewing the spec in a third-party API viewer:

Swagger UI Example


OData HTTP Methods

The following table identifies which HTTP methods are supported:

HTTP Method Description
GET The Connector Read module supports GET operations for several Grand Avenue Process Items.
POST The Connector Write module supports POST operations for several Grand Avenue Process Items.
PUT, PATCH, DELETE Not supported. Existing items cannot be changed or deleted through the API, and these requests receive 405 Method Not Allowed.

OData IDs

Each item in Grand Avenue resources has a corresponding "ID" property. This is a unique 64-bit integer for that item in that resource. Note that any similarity from the ID to what is normally displayed in the system is coincidental. For example, a CAPA Request with a CAPA ID of "CAPA-00001" could have an any "ID". It might be 1 but it could just as easily be 3. The ID field value is the value that is used when referencing an individual item.


OData EntityKeys

Starting with API version 3, a property that shows a value belonging to a related record, such as the name of the user a task is assigned to (AssigneeDisplay), is accompanied by a property that holds that related record's key. It usually has the same name ending in EntityKey instead of Display (AssigneeEntityKey) and is listed directly after the property it belongs to. Three keys have a different name: ObjectEntityKey on Task Assignments, RelatedProcessItemEntityKey on Issues (the key for both RelatedComplaintDisplay and RelatedCapaRequestDisplay), and RelatedTrainingItemEntityKey on Training Records. Earlier API versions do not have these properties.


OData Dates and Times

The OData metadata describes each date or time property as one of two types:

Because date-and-time values are in UTC and system dates follow the system time zone, they can show different days. For example, on an installation whose system time zone is US Central Time, an item created at 8:00 PM Central Time on October 8, and not changed since, has a CreatedDate of 2026-10-08 and an UpdatedTimestamp of 2026-10-09T01:00:00Z.

When filtering on a date-and-time property, write the value with its time zone: in UTC, ending in Z, or with its offset from UTC. For example, $filter=UpdatedTimestamp ge 2026-10-08T14:00:00Z and $filter=UpdatedTimestamp ge 2026-10-08T09:00:00-05:00 select the same items. In the request address, write the + of a positive offset as %2B, for example 2026-10-08T16:00:00%2B02:00, because a + in an address is read as a space.


Using the OData API

Each OData resource can be accessed directly from a web browser and other tools (for example, curl, Postman, Swagger UI, PowerShell). Requests through a web browser will automatically use the GET HTTP Method. Several of the following sections use a web browser as an example, but the information returned by these APIs will be the same whether using a browser or any other tool.

TIP: Extensions are available for some web browsers, such as Chrome, that will format the JSON response data to make it easier to read.

TIP: Third-party tools like Postman provide useful features for working with REST services like the GAS OData Resources. For example, it allows you to save requests, inspect and modify header data, etc.

For the examples below, the values for BaseURL and ApplicationName should be replaced by the corresponding values for the target GAS installation, and can be found by a System Administrator on the Configure Notification Settings page.


Entering Basic Authentication

Enter the OData URL in the address bar of your web browser.

When prompted, sign in using the username and password for one of the configured Connector accounts (see Configure Connector Accounts):

Sign In Screen

The browser should then display the response for the request.


Accessing the OData Service Document

Enter <BaseURL>/<ApplicationName>/odata/<ApiVersion> in the address bar of your web browser (e.g. https://myhost/GrandAvenue/odata/v3). You may be required to enter the username and password for one of the configured Connector accounts (see Configure Connector Accounts).

The browser should display the ODATA Service Document. The services displayed will depend upon your system configuration, but the JSON document will look something like this:

{
    "@odata.context": "https://myhost/GrandAvenue/odata/v3/$metadata",
    "value": [
        {
            "name": "CapaRequests",
            "kind": "EntitySet",
            "url": "CapaRequests"
        },
        {
            "name": "TaskAssignments",
            "kind": "EntitySet",
            "url": "TaskAssignments"
        }
    ]
}

Accessing the OData Metadata

Enter <BaseURL>/<ApplicationName>/odata/<ApiVersion>/$metadata in the address bar of your web browser (e.g. https://myhost/GrandAvenue/odata/v3/$metadata). You may be required to enter the username and password for one of the configured Connector accounts (see Configure Connector Accounts).

The browser should display the ODATA Metadata. This contains information about all the fields available from services exposed in the OData API. The information displayed will depend upon your system configuration, but the XML document will look something like this:

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
    <edmx:DataServices>
        <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="GrandAvenue.Api">
            <EntityType Name="CapaRequest">
                <Key>
                    <PropertyRef Name="ID"/>
                </Key>
                <Property Name="CapaID" Type="Edm.String" MaxLength="100"/>
                <Property Name="Status" Type="Edm.String" MaxLength="100"/>
                ...
                <Property Name="ID" Type="Edm.Int64" Nullable="false"/>
                <Property Name="CreatedDate" Type="Edm.Date"/>
            </EntityType>
            <EntityType Name="TaskAssignment">
                <Key>
                    <PropertyRef Name="ID"/>
                </Key>
                <Property Name="ProcessName" Type="Edm.String" MaxLength="100"/>
                <Property Name="TaskName" Type="Edm.String" MaxLength="100"/>
                ...
                <Property Name="ID" Type="Edm.Int64" Nullable="false"/>
                <Property Name="CreatedDate" Type="Edm.Date"/>
            </EntityType>
            <EntityContainer Name="Container">
                <EntitySet Name="CapaRequests" EntityType="GrandAvenue.Api.CapaRequest"/>
                <EntitySet Name="TaskAssignments" EntityType="GrandAvenue.Api.TaskAssignment"/>
            </EntityContainer>
        </Schema>
    </edmx:DataServices>
</edmx:Edmx>

Checking Whether the Service Document, Metadata or OpenAPI Document Has Changed

The service document, the $metadata document and the openapi.json document each return an ETag response header identifying the version of the document in the response, for example:

ETag: "3F2A9C0B7D4E5F6A8B9C0D1E2F3A4B5C6D7E8F9A0B1C2D3E4F5A6B7C8D9E0F1A"

A client that already holds a copy of the document can send that value back in an If-None-Match request header:

GET /GrandAvenue/odata/v3/$metadata
Authorization: Basic ...
If-None-Match: "3F2A9C0B7D4E5F6A8B9C0D1E2F3A4B5C6D7E8F9A0B1C2D3E4F5A6B7C8D9E0F1A"

If the document has not changed, the response is 304 Not Modified with no body, and the client keeps using its copy. If it has changed, the response is 200 OK with the current document and a new ETag. Integration tools that fetch $metadata before every data request, such as Azure Data Factory, do this automatically once the header is present.

The ETag changes whenever the content of the document changes, for example when a module is activated or deactivated, or when a configurable field is activated and "Reload OData Configuration" is then clicked on the Configure OData API page. Clicking "Reload OData Configuration" when nothing has changed leaves the ETag as it was. The value depends only on the content of the document, so it is the same on every server that serves the same document, and a request that presents an outdated value simply receives the current document.

The request must still carry the Connector account's credentials; a 304 Not Modified is returned only to an authenticated request.


Accessing an OData Resource

Enter <BaseURL>/<ApplicationName>/odata/<ApiVersion>/<resourceName> in the address bar of your web browser (e.g. https://myhost/GrandAvenue/odata/v3/CapaRequests). You may be required to enter the username and password for one of the configured Connector accounts (see Configure Connector Accounts).

The browser should display the ODATA JSON information for the items for that resource. The information displayed depends upon the resource and the items in your system, but it will look something like this (This is an example of CAPA Requests):

{
    "@odata.context": "https://myhost/GrandAvenue/odata/v3/$metadata#CapaRequests",
    "value": [
        {
            "CapaID": "CAPA-00001",
            "Status": "Investigation",
            "Description": "Example CAPA Request.",
            ...
            "ID": 2,
            "CreatedDate": "2014-01-03"
        },
        {
            "CapaID": "CAPA-00002",
            "Status": "Closed",
            "Description": "An Example ",
            ...
            "ID": 3,
            "CreatedDate": "2015-10-22"
        }
    ]
}

Accessing a single item by OData ID

Enter <BaseURL>/<ApplicationName>/odata/<ApiVersion>/<resourceName>(<ID>) in the address bar of your web browser (e.g. https://myhost/GrandAvenue/odata/v3/CapaRequests(2)).

The ID is the internal 64-bit integer ID returned when querying all items.

The browser should display the ODATA JSON information for the item for that resource. The information displayed depends upon the resource and the items in your system, but it will look something like this (This is an example of a CAPA Request):

{
    "@odata.context": "https://myhost/GrandAvenue/odata/v3/$metadata#CapaRequests$entity",
    "CapaID": "CAPA-00001",
    "Status": "Investigation",
    "Description": "Example CAPA Request.",
    ...
    "ID": 2,
    "CreatedDate": "2014-01-03"
}

Downloading the associated file content for an item

Endpoints for Grand Avenue entities that also store file content (e.g. Documents), provide a /FileContent property that will allow you to download the corresponding file.

Enter <BaseURL>/<ApplicationName>/odata/<ApiVersion>/<resourceName>(<ID>)/FileContent in the address bar of your web browser, signing in with a configured Connector account if necessary.

Example: https://myhost/GrandAvenue/odata/v3/Documents(2)/FileContent

The browser will download the requested file associated with the item for that resource.

The /FileContent path has the same <resourceName>(<ID>)/<property> shape as a navigation property path (see Reading a Navigation Property Directly); FileContent is a stream property, so the response is the file itself rather than JSON.


Adding a single item

To create a new instance of a specific resource, send a POST request to the endpoint URL for the resource, with values for the corresponding fields required in the web application:

Note that only a subset of properties for an endpoint can be supplied in the POST operation. A request that supplies any other property, whether one the resource does not have or one that cannot be set when adding an item (such as ID or CreatedDate), receives a 400 Bad Request naming the property (see 400 Bad Request — Validation errors).

The Connector Write module supports POST operations for the following endpoints:

The following example demonstrates performing a POST for the Parts endpoint (e.g. https://myhost/GrandAvenue/odata/v3/Parts). In the example, two custom fields have been configured for Parts: A coding field, and an extra data field. Note that the interface requires their underlying storage name (e.g. CodingField1, ExtraDataField1), instead of the display name configured in the software (e.g. Risk Level, Comments).

{
    "Name": "Example Part",
    "Number": "Part-7654",
    "UnitOfMeasure": "EA",
    "CodingField1": "Red",
    "ExtraDataField1": "Used on Project X"
}

The ODATA response to the example JSON above would look like this:

{
    "@odata.context":"https://myhost/GrandAvenue/odata/v3/$metadata#Parts/$entity",
    "ApiVersion": 3,
    "ID": 24,
    "CreatedDate": "2025-09-02",
    "UpdatedTimestamp": "2025-09-02T16:07:47.443Z",
    "Name": "Example Part",
    "Number": "Part-7654",
    "UnitOfMeasure": "EA",
    "Active": "Yes",
    "HasSuppliers": "No",
    "CodingField1": "Red",
    "ExtraDataField1": "Used on Project X"
}

Starting with API version 3, the response also includes a Location header containing the URL of the new item, for example Location: https://myhost/GrandAvenue/odata/v3/Parts(24). Send a GET request to that URL to read the item back.

Asking for a shorter response

Starting with API version 3, a client that does not need the new item returned can add the header Prefer: return=minimal to the POST request. The item is created the same way, but the response is 204 No Content with an empty body, and these headers:

Without the header, or with Prefer: return=representation, the response is 201 Created with the new item, as shown above. API version 2 ignores the header and always returns 201 Created with the new item.

To tell which response you received, check the status code: 204 No Content means the shorter response was used, and 201 Created means it was not (for example, on API version 2).


Using OData API in Microsoft Excel

Excel 2016 supports reading OData v4 feeds. You can access Grand Avenue OData from Excel 2016 as follows:

This data can be refreshed on demand and referenced in other formulas in the excel workbook.


Using OData Query Options

NOTE: The examples in this section use the CapaRequests and Complaints service endpoints, but the basic principle is the same for all properties and service endpoints.

The following OData Query options are supported by the Grand Avenue OData API:

The following OData Query options are explicitly not supported by the Grand Avenue OData API. Requests that include any of these options receive a 501 Not Implemented response starting with API version 3, and a 400 Bad Request response with earlier API versions. From API version 3 this applies inside $expand too, for example $expand=TaskAssignments($search=x):

Before API version 3, $skiptoken is also rejected: server-driven paging did not exist, and $skip with $top was the only way to read a collection in parts.

Every query option name begins with '\('. Starting with API version 3, a request carrying a parameter named like a query option but without its '\)' - for example filter= rather than $filter=, in any letter case - receives a 400 Bad Request. The response names the parameter and the option it most likely meant, for example "Unrecognized query option 'filter'. Did you mean '$filter'?". Without this check the parameter would be ignored, and the response would look like a filtered result even though no filter was applied.

Parameters whose names are not query option names are still accepted and ignored. Parameter aliases, whose names begin with '@', work as the OData standard describes: for example, $filter=ComplaintID eq @id&@id='COMPLAINT-00001' returns the complaint COMPLAINT-00001. Before API version 3, a parameter named like a query option without its '$' is ignored, as it always has been. On every API version, a query option written inside $expand without its '$' - for example $expand=TaskAssignments(filter=TaskName eq 'Initiate Complaint') - receives a 400 Bad Request.

The first query option is placed at the end of the service URL after a '?'. Additional options are appended after a '&'. The following example would return the ID, CapaID and Created Date for the first two CAPA Requests in the system:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$top=2&$select=ID,CapaID,CreatedDate


Using the $filter OData Query Option

The $filter OData query option is used to filter the items returned based upon the value of properties for each item. The $filter option is applied before any other OData query option such as $top, $skip or $count is applied.

Starting with API version 3 (and for version 2 when an administrator turns on "Apply OData API v3 limits to v2 requests?"), a filter the server cannot apply in the database receives a 400 Bad Request naming the filter, rather than being applied after reading the whole collection. This depends on the property being filtered and on how the filter is written. It affects properties whose value is calculated rather than stored, and properties that show a value belonging to a related record - on API version 3, filter on the corresponding EntityKey property instead (see OData EntityKeys); API version 2 has no EntityKey properties, so filter on stored properties. It also affects how the filter is written. The comparison operators (eq, ne, gt, ge, lt, le), and, or, in, and the text-matching functions contains(), startswith() and endswith() are applied in the database. A text-matching function compared with true, as some client libraries write it - contains(Name, 'x') eq true - is applied in the same way as the function on its own, and so is contains(Name, 'x') ne false, which starting with API version 3 also returns the items that have no value recorded for that property (earlier API versions omit them). Written as contains(Name, 'x') eq false or contains(Name, 'x') ne true, it asks for the items the function does not match, which is not. The following are not, and receive a 400 Bad Request: the arithmetic operators (add, sub, mul, div, mod); has; not; a lambda expression (any or all) over a related collection; a filter that reaches through a related record to one of its properties; a comparison between two properties; and any function call other than contains(), startswith(), endswith() and cast (all applied in the database): matchesPattern(), the text functions listed below, and the date, time, math and type functions such as year(), round() and isof(). Version 2 with that setting off applies in the database the filters it can, and answers any other valid filter by reading the items and applying the filter to them. A filter written inside an $expand is applied to the items already read, whether or not that setting is on; a navigation-property path is not available on version 2. In API version 3 the same rule applies to a filter on a collection read at its navigation-property path or written inside an $expand of a collection, because those collections are paged in the database too (see Reading a Navigation Property Directly and Paging Related Collections).

The other text functions - concat(), substring(), length(), indexof(), trim(), tolower() and toupper() - receive a 400 Bad Request starting with API version 3. Earlier API versions apply them, except that version 2 with "Apply OData API v3 limits to v2 requests?" on refuses them as version 3 does.

Starting with API version 3, a filter selecting items whose property is not a given value (ne) also returns the items that have no value recorded for that property, because an item with no value recorded is not equal to any value. Earlier API versions omit those items.

Combining conditions with or, matching part of a text value with contains(), startswith() or endswith(), and comparing a property with null (eq null, ne null) are applied in the database starting with API version 3, and on version 2 when "Apply OData API v3 limits to v2 requests?" is "Yes", where the other comparisons in the filter then ignore capitalization, as version 2's eq and in already do. Otherwise version 2 applies a filter containing any of these after reading the collection, and compares capitalization exactly while doing so - so with that setting at "No", Status eq 'open' matches a status recorded as "open" but not one recorded as "Open" once an or, a text-matching function or a comparison with null is present.

The text-matching functions compare capitalization exactly. contains(Description, 'Quality') does not match a description containing 'quality'.

The text-matching functions also require the property's stored value and its displayed value to be the same. Where a property is validated against a defined set of values and stores something other than what it displays - a code stored against a label shown, for example - contains(), startswith() and endswith() on that property receive a 400 Bad Request starting with API version 3, because matching part of a displayed value against a stored one would return the wrong items. Earlier API versions apply such a filter after reading the collection. Comparing the whole value with eq, ne or in is unaffected on every version, because a whole value can be converted to the stored form and compared exactly.

Find all CAPA Requests with a CapaID of 'CAPA-00001':

https://myhost/GrandAvenue/odata/v3/CapaRequests?$filter=CapaID eq 'CAPA-00001'

Find all CAPA Requests created between July 1, 2016 and November 18, 2017:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$filter=CreatedDate gt 2016-07-01 and CreatedDate lt 2017-11-18

Find all CAPA Requests with a Status of Investigation or Implementation:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$filter=Status in ('Investigation','Implementation')

Find all CAPA Requests whose description contains the word Quality, capitalized that way:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$filter=contains(Description, 'Quality')

Find all CAPA Requests with a Status of Investigation or Implementation, written with or:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$filter=Status eq 'Investigation' or Status eq 'Implementation'

Find all CAPA Requests with an ID less than or equal to 3

https://myhost/GrandAvenue/odata/v3/CapaRequests?$filter=ID le 3


Using the $select OData Query Option

The $select OData query option is used to choose which properties will be returned for matching entities.

Return the CapaID and ID properties for all CAPA Requests in the system:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$select=CapaID,ID

Return the ID, CapaID and CreatedDate properties the CAPA Request with an ID of 2:

https://myhost/GrandAvenue/odata/v3/CapaRequests(2)?$select=ID,CapaID,CreatedDate


Using the $expand OData Query Option

The $expand OData query option is used to choose which navigation properties will be expanded for matching entities.

Expand the TaskAssignments property for all CAPA Requests in the system:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$expand=TaskAssignments

Expand the TaskAssignments property for the CAPA Request with an ID of 2:

https://myhost/GrandAvenue/odata/v3/CapaRequests(2)?$expand=TaskAssignments

Expand the ResultingCapaRequest property for all Complaints in the system:

https://myhost/GrandAvenue/odata/v3/Complaints?$expand=ResultingCapaRequest

{
    "@odata.context": "https://myhost/GrandAvenue/odata/v3/$metadata#Complaints",
    "value": [
        {
            "ComplaintID": "COMPLAINT-00001",
            "Status": "Processing",
            "Description": "Example Complaint",
            ...
            "ID": 2,
            "CreatedDate": "2014-01-03",
            "ResultingCapaRequest": {
                "CapaID": "CAPA-00025",
                "Status": "Investigation",
                ...
            }
        },
        {
            "ComplaintID": "COMPLAINT-00002",
            "Status": "Closed",
            "Description": "Another Complaint",
            ...
            "ID": 3,
            "CreatedDate": "2015-10-22",
            "ResultingCapaRequest": null
        }
    ]
}

An expansion can itself contain an $expand, nested up to three levels deep:

https://myhost/GrandAvenue/odata/v3/AuditReports?$expand=AuditRequirements($expand=AuditFindings($expand=AuditActions))

From API version 3, one request can expand at most a limited number of navigation properties, counted across the top-level $expand and every nested $expand together. For example, $expand=TaskAssignments($expand=Assignee),Initiator expands 3. The default is 6, and it can be changed by a web server administrator; the Configure OData API page reports the value this system is configured with. $expand=* counts as every navigation property of the resource. A request over the limit receives a 400 Bad Request. To read more related records, split them across separate requests.

Later releases can add navigation properties to a resource, which also increases what $expand=* counts. Name the navigation properties an integration needs rather than relying on *.

From API version 3 (and for version 2 when an administrator turns on "Apply OData API v3 limits to v2 requests?"), $levels is not supported inside $expand and receives a 400 Bad Request. Write the expansion out as a nested $expand instead, for example $expand=ReassignedFromAssignment($expand=ReassignedFromAssignment) rather than $expand=ReassignedFromAssignment($levels=2).


Reading a Navigation Property Directly

Starting with API version 3, a navigation property can be read at its own path instead of being expanded inline. The path is the item followed by the navigation property name: <BaseURL>/<ApplicationName>/odata/<ApiVersion>/<resourceName>(<ID>)/<NavigationProperty>. This is the form that tools such as Microsoft Excel and Power BI use when following a relationship.

Read the Task Assignments for the CAPA Request with an ID of 2:

https://myhost/GrandAvenue/odata/v3/CapaRequests(2)/TaskAssignments

{
    "@odata.context": "https://myhost/GrandAvenue/odata/v3/$metadata#TaskAssignments",
    "value": [
        {
            "ProcessName": "CAPA",
            "TaskName": "Investigate",
            "ObjectDisplayID": "CAPA-00002",
            ...
        }
    ]
}

Read the Affected Department for the same CAPA Request:

https://myhost/GrandAvenue/odata/v3/CapaRequests(2)/AffectedDepartment

The response contains the same items that expanding the navigation property would have placed inside the item, and the query options that apply to an expanded navigation property apply to it in the same way, including the rule that a $filter or $orderby the server cannot apply in the database receives a 400 Bad Request. A collection read at its own path is paged like any other collection: the response carries one page, at the server's page size or the size asked for with the Prefer header, and a next-page link when more items remain (see Paged Results). A navigation property that holds many items ("Multiple" in OData Resource Relationships) is returned as a collection, which is empty when the item has no related items. A navigation property that holds a single item ("Single") is returned as that item, or as an empty 204 No Content response when the item has no related item.

Only one navigation property may follow the ID. A path that continues past the navigation property (for example .../CapaRequests(2)/TaskAssignments(5) or .../CapaRequests(2)/AffectedDepartment/Users) is not served and receives a 404 Not Found response; to read further, expand the navigation property (.../CapaRequests(2)/AffectedDepartment?$expand=Users) or read the related item from its own endpoint. A navigation property that is not exposed - because the module of the related resource is not activated, for example - also receives a 404 Not Found response, as does any navigation property path on API version 2.


Using the $top OData Query Option

The $top OData query option is used to specify how many of items to return starting from the first item.

Return the first 5 CAPA Requests in the system:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$top=5

From API version 3, $top cannot exceed the server's maximum page size; a larger value receives a 400 Bad Request rather than a shorter result. Version 2 applies the same limit when an administrator turns on "Apply OData API v3 limits to v2 requests?" - see Request Limits for OData API Version 2. See Paged Results.


Using the $skip OData Query Option

The $skip OData query option is used to specify how many items to skip before returning items. $skip is applied before the $top option regardless of order.

Return all but the first 3 CAPA Requests in the system:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$skip=3

Return the fourth and fifth CAPA Requests in the system:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$skip=3&$top=2


Using the $orderby OData Query Option

The $orderby OData query option is used to sort the items before they are returned. This is applied before the $skip and $top options regardless of their order in the request URI.

From API version 3, ordering by a property that shows a value belonging to a related record or is dynamically calculated receives a 400 Bad Request. So does ordering by an EntityKey property (see OData EntityKeys), and so does ordering by a property that holds unlimited-length text, such as a description: every ordering this version accepts is one it may have to page, and a next-page link records its position by the last value returned, which such a property is too long to carry reliably. Earlier API versions sort by any property, including one that shows a value from a related record, unless an administrator turns on "Apply OData API v3 limits to v2 requests?" for version 2, which refuses a top-level ordering the database cannot apply as version 3 does. For such a property the sort is applied after all matching items are read, so $top does not reduce the number of items read. In API version 3 the same rule applies to an ordering on a collection read at its navigation-property path or written inside an $expand of a collection, because those collections are paged too (see Paging Related Collections).

Return all CAPA Requests in the system, most recently created first:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$orderby=CreatedDate desc

Return all CAPA Requests in the system sorted by Status then by CreatedDate:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$orderby=Status,CreatedDate


Using the $count OData Query Option

The $count OData query option is used to include the number of items returned. The count is done after the $filter option is applied. The $skip and $top options do not affect the value of the count.

When the $count option is applied the json results will add an @odata.count property at the top level as follows:

{
    "@odata.context": "https://myhost/GrandAvenue/odata/v3/$metadata#CapaRequests",
    "@odata.count": 2,
    "value": [
        {
            "CapaID": "CAPA-00001",
            "Status": "Investigation",
            "Description": "Example CAPA Request.",
            ...
            "ID": 2,
            "CreatedDate": "2014-01-03"
        },
        {
            "CapaID": "CAPA-00002",
            "Status": "Closed",
            "Description": "An Example ",
            ...
            "ID": 3,
            "CreatedDate": "2015-10-22"
        }
    ]
}

Return all CAPA Requests in the system including the count:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$count=true

Return CAPA Requests including count with a Status of Investigation:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$count=true&$filter=Status eq 'Investigation'

Return the second and third CAPA Requests but include the count of all CAPA Requests:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$count=true&$skip=1&$top=2


Paged Results

A request for a collection that does not say how many items it wants is answered with one page of items and, when more items remain, a link to the next page. (API version 3 and later. Version 2 returns the whole collection in a single response and never includes a next-page link, unless an administrator turns on "Page OData API v2 responses?" - see Request Limits for OData API Version 2.)

Reading a paged result

A paged response carries an @odata.nextLink property alongside value:

{
    "@odata.context": "https://myhost/GrandAvenue/odata/v3/$metadata#CapaRequests",
    "value": [
        ...
    ],
    "@odata.nextLink": "https://myhost/GrandAvenue/odata/v3/CapaRequests?$skiptoken=..."
}

To read the whole collection, request the URL given in @odata.nextLink, then repeat with the link from each response in turn. The last page carries no @odata.nextLink. That absence, rather than an empty page, is how a client knows it has read everything.

Treat the next-page link as opaque. Do not construct one, do not edit the $skiptoken it carries, and do not read meaning into that value: its contents are an internal detail and may change between releases without notice. Requesting the link exactly as it was given is always correct; the paragraphs below say which query options may be added to it and which are refused.

A next-page link is not valid indefinitely, so follow a walk through rather than storing a link to resume from later. A link stops working 24 hours after the response that carried it, and a link may also stop working when the software is upgraded, because what the link carries can change between releases. In both cases the request receives a 400 Bad Request and the collection has to be read again from the start.

Once a walk has begun, do not change what the request asks for. A next-page link records a position within one set of items, so it only has a meaning while the request is asking for that same set. The link already carries the $filter, $orderby, $select and $expand of the original request, so following it as it was given is all that is needed.

A next-page link receives a 400 Bad Request when it is combined with:

The request is refused rather than answered, because answering it would return a collection missing items the client had not yet seen, with nothing in the response to show that anything was missing. $select, $expand and $count may be changed while walking, because they change how each item is presented, or what the response reports about the result, rather than which items are returned. Adding $count=true to a next-page link reports the total for the whole result, not the part of it still to be read. $top may also be named on a next-page link: it limits how many items that response returns, without moving the position the walk had reached, and the response then carries no next-page link because a request naming an item count is never paged.

Paging records its position by the values of the last item returned rather than by counting items, so items added or removed by other users while a client is walking the pages do not shift the items it has yet to read. An item that existed when the walk began, and whose sorted position has not changed, is returned exactly once.

$skip applies to the result as a whole, not to each page: the items skipped are skipped once, at the start, and the pages that follow continue from where the previous page ended.

Paging related collections

From API version 3, related collections are paged as well: one read at its own navigation-property path, and one included with $expand.

A collection read at its own path, such as https://myhost/GrandAvenue/odata/v3/CapaRequests(2)/TaskAssignments, is paged exactly like a resource collection. Its next-page link points back to the same path.

A collection included with $expand carries at most one page inside each item. When more related items remain, the item carries a next-page link for that collection, named after the navigation property:

{
    "ID": 2,
    "TaskAssignments": [
        ...
    ],
    "TaskAssignments@odata.nextLink": "https://myhost/GrandAvenue/odata/v3/CapaRequests(2)/TaskAssignments?$skiptoken=..."
}

The link points to the collection's own navigation-property path and carries the query options written inside the $expand, so following it continues that one collection and nothing else. Follow it, and the links in each response after it, exactly as described in Reading a paged result. A collection expanded inside another expanded collection, or inside a single related item such as a complaint's CAPA, links to its own path in the same way, for example https://myhost/GrandAvenue/odata/v3/AuditRequirements(7)/AuditFindings?$skiptoken=.... A next-page link belongs to the collection it was issued for: used with any other path it receives a 400 Bad Request.

An expanded collection has a page size of its own, smaller than a resource collection's, because one response can carry a collection inside every item it returns. The default is 100, and it can be changed by a web server administrator; the Configure OData API page reports it as the Default Expanded Collection Page Size. A page size asked for with the Prefer header applies to expanded collections too, but can only make their pages smaller: an expanded collection never holds more items than its own page size, even when the Prefer header asks for more. The walks that follow their links keep the page size their first page used.

Inside an $expand:

Asking for a specific number of items

A request that names how many items it wants with $top is answered in a single response and is never paged, so it never carries a next-page link:

https://myhost/GrandAvenue/odata/v3/CapaRequests?$top=25

The number asked for cannot exceed the server's maximum page size; a larger $top receives a 400 Bad Request.

Asking for a particular page size

A client can ask for a page size other than the server's default by sending the Prefer request header:

Prefer: odata.maxpagesize=250

The response reports the size actually used in a Preference-Applied header. A requested size above the server's maximum page size is reduced to that maximum rather than refused, so it is worth reading that header rather than assuming the request was honoured exactly.

A page size asked for this way applies to the whole walk, not just to the first response. The next-page links carry it, so every page is the same size and reports Preference-Applied, whether or not the header is sent again with each request. For the same reason the size cannot be changed part-way through: a next-page link keeps the size the walk began with, and a different Prefer value sent with a continuation request is ignored. To read a collection at a different page size, start a new walk without a next-page link.

Counting the items

$count=true reports the number of items matching the request, not the number on the page, and is unaffected by paging. It can be used to size a job before walking the pages.

The count is taken when the first page is served, and every page of the same walk reports that number. A job sized from it stays sized: the total does not move as the walk proceeds, even if other users add or remove items in the meantime.

Page size limits

Three limits shape the size of a page. All are set on the server and can be changed by a web server administrator; the Configure OData API page reports the values this system is configured with.

If either page size is set above the maximum page size, responses carry the maximum instead.

A related limit bounds how much one request can expand: it can name at most a set number of navigation properties in total, across all of its $expand options (default 6). See Using the $expand OData Query Option.


OData Standard Conformance

The Grand Avenue OData API follows version 4.0 of the OData standard published by OASIS ("OData Version 4.0 Part 1: Protocol"). The standard defines conformance levels; starting with API version 3, the API meets the Minimal conformance level, with the differences listed below. API version 2 is not covered by this section.

Versions. Every response is in version 4.0 of the standard and carries the header OData-Version: 4.0, error responses included. A request that names version 4.01 in its OData-MaxVersion, OData-MinVersion or OData-Version header is answered in version 4.0. A request receives 400 Bad Request, with the error code UnsupportedODataVersion, when:

A header sent with an empty value is treated as not sent. An OData-MinVersion below 4.0 is ignored, and so is a MaxDataServiceVersion that is not a version number. The version headers are checked before the sign-in, so a refused request receives 400 Bad Request even when its credentials are missing or wrong.

Formats. A list of items, a single item and the service document are answered in JSON. The metadata document is answered in XML, or in JSON when the request includes $format=json. A request that accepts none of the formats its resource is answered in receives 406 Not Acceptable, with the error code NotAcceptable. This applies to every request method. For example, Accept: application/xml or $format=xml on a list of items is refused.

Differences from the Minimal conformance level:

Not supported:



Configuration

When an organization deploys the Grand Avenue Software Connector modules, there are configuration steps that should be performed. Each step has its own configuration screen to assist System Administrators in getting the system ready for production.


Configure Connector

The links on this page allow a System Administrator to configure access to the web service APIs provided by the Connector modules.


Configure Connector Accounts

This page allows a System Administrator to configure special reserved accounts that can be used to access the web services defined in the Connector modules. Two kinds of Connector account are listed, and the Sign-In Type column tells them apart:

Connector accounts have the following characteristics:

The list shows each account's ID, name, description, sign-in type, the date its secret expires (blank when it does not expire), and the time it last signed in.

Click the "Activate" or "Deactivate" button in a row to activate or deactivate that account (see Deactivate Connector Account).

A System Administrator sees an alert in the task list when an API key's secret will expire within 14 days, and again after it has expired. A new secret keeps the expiry date, so the alert stays until the expiry is changed or the key is deactivated: change the key's expiry date, or add a new API key account, move the app to it, then deactivate the old key. Alerts are not shown for deactivated accounts.

Using an API key

Use the key's ID as the user name and the key's secret as the password wherever the app asks for Basic authentication:


Add/Edit API Key Account

Use the Name field to say which app or integration the key is for, such as the report that uses it. The name is shown with the key's ID wherever the key appears. Use the Description field, which is required, to say what the app does with the key and who to ask about it. A key's ID is generated and cannot be changed. A key has a secret rather than a password, and the secret cannot be shown again.

Choose the Access Level. There is no default; each account must be given one:

The access level is not shown through the OData APIs.

Indicate which modules or module permissions the account should be authorized to access by setting the fields to "Yes" or "No" for each access right. When adding an account, the values for these fields reflect the default settings for each module's access list.

Choose when the secret expires. The choices are None (the secret works until the key is replaced), 90 days, 1 year, or a specific date. An expiry is a date, and the secret works through the whole of that day. After that the sign-in is refused with the error code SecretExpired. A System Administrator can change the expiry of an existing key on its Edit page and click Save: the secret is not replaced, so the app keeps working, and an expired key works again. Each change is recorded as an "API Key Expiry Changed" security event.

When you save a new account, the API Key Created page shows the key's ID and its secret.

On an existing account, these buttons are also available. A new secret and a duplicate key keep the key's expiry date. A key whose secret has expired cannot be given a new secret or duplicated until its expiry is changed:

Click the "Save" button to save changes and return to the previous page.

Click the "Cancel" button to discard your changes and return to the previous page.


API Key Created

This page shows the ID and secret of a new API key. They are shown once. They will not be displayed again after you leave this page and cannot be retrieved, because only a one-way hash of the secret is kept. Use the "Copy ID" and "Copy Secret" links to copy them, and keep the secret somewhere safe. Refreshing the page, or opening it from another browser or as another user, shows nothing.

If a secret is lost, open the account and use Generate New Secret, or use Duplicate Key.

Click the "Done" button to return to the previous page.


Add/Edit Connector Account

This page changes an account with the sign-in type Password, v2 only. New accounts for OData version 3 are API key accounts (see Add/Edit API Key Account).

Enter a unique Connector Account ID. The Connector Account ID and password are the credentials that will be used for accessing the OData version 2 API. Any changes to the Account ID will be recorded in a "User ID Change History" table and displayed on the "Info" page for the Connector account.

Use the Description field to explain the purpose/scope of the Connector account.

Indicate which modules or module permissions the account should be authorized to access by setting the fields to "Yes" or "No" for each access right.

Click the "Save" button to save changes and return to the previous page.

Click the "Cancel" button to discard your changes and return to the previous page.


Deactivate Connector Account

A Connector account that is deactivated will no longer be able to access Connector APIs.

Click the "Deactivate" button to deactivate the Connector account.

Clicking the "Cancel" button will return you to the previous page without deactivating the Connector account.


Activate Connector Account

This page allows you to reactivate a Connector account that was previously deactivated. Once activated, the Connector account can be used for accessing Connector APIs.

Click the "Activate" button to reactivate the Connector account.

Clicking the "Cancel" button will return you to the previous page without reactivating the Connector account.


Configure OData API

The Connector modules include an OData web service API for accessing information in Grand Avenue.

To make the OData API available for use, set the "Enable OData API?" option to "Yes".

OData API Versions

When an upgrade of Grand Avenue introduces API changes that are incompatible with the previous API, the incompatible changes are packaged as a new "version" of the API. The previous version of the API will be temporarily supported but marked as "Deprecated" to indicate that customers should migrate to the new version as soon as possible.

A table displays the list of all OData API versions supported by the system, with information about each version displayed in the following columns:

NOTE: The OData API and the corresponding API version must be enabled before any of the above URLs can be viewed. Each URL only includes resources for modules that have been activated.

The "Enable OData API vX?" fields indicate whether those versions are currently enabled. Setting a field to "No" will disable that version and prevent any access (returning a 404 "Not Found" error).

By default, all access to OData APIs must be encrypted by HTTPs. You can allow OData APIs to be accessed without encrypting the connection by setting the "Require HTTPs?" option to "No".

By default, all endpoints that can contain file content expose a "/FileContent" path that can be used to retrieve the corresponding file content for an entity. You can disable that access by setting the "Enable OData File Content Access?" field to "No". When disabled, the system will return a "(403) Forbidden" response for that path.

Click the "Save" button to apply your changes and return to the previous page.

Click the "Reload OData Configuration" button to save your changes and regenerate the OData routes, $metadata, and OpenAPI specification. This is useful when activating or deactivating a configurable field for a type that is exposed as an OData endpoint, which adds or removes that field from the API.

Request Limits for OData API Version 2

OData API version 2 is the older version. Unlike version 3, it puts no limit on how much one request can ask for, so a single very large or very expensive request can slow the system down for everyone. Two settings give version 2 the limits that version 3 already has. Each can be set to "Yes" or "No" at any time, and a change applies from the next request, with no restart.

The two settings are independent. Paging does not limit a request the database cannot fully answer, such as a filter on a value that belongs to a related record: that request is still answered in full, in one response, unless "Apply OData API v3 limits to v2 requests?" is also "Yes". The same holds for an ordering on a property whose value cannot mark a position in a page, such as an unlimited-length text property: with paging alone, a request that names no $top is answered in full, in one response, and ordered in memory, where capitalization is compared exactly; a request that names a $top is never paged, and the database orders it and takes the rows as it does with both settings "No".

A refused version 2 request keeps version 2's response format: a 400 Bad Request whose body is {"error":{"code":"400","message":"..."}}, where the message says why the request was refused and what to do instead. The structured error described under Error response format, with a code that names the condition, is version 3's. Version 2's other error responses are unchanged.

With "Apply OData API v3 limits to v2 requests?" set to "Yes", version 2 applies the same filters in the database as version 3 does, including a combination with or, a comparison with null, the text-matching functions, cast and a value that names no existing record, so it refuses the same filters in the request itself. Its answers can still differ from version 3's: on version 2, ne leaves out items that have no value recorded, and a filter written inside an $expand is not refused. See Using the $filter OData Query Option.

These settings give version 2 the limits that version 3 has, not the rest of version 3: version 3 can differ in the properties it offers, in what it refuses inside an $expand, and in its error responses. To find out whether a program will work with version 3, point it at version 3 (/odata/v3), which is served alongside version 2. See OData API Versions.

Starting values. Each setting is given its starting value once, the first time the system starts with this release, and the value an administrator chooses afterwards is never changed by a restart or an upgrade.

The "OData version 2 request would be limited" entry is written to the application log for each version 2 request that version 3's limits would have changed, and only for a limit whose setting is still "No". Hosted operations can search it to see which requests would change, and how many, before turning a setting on. It records the entity, how many rows the request read, the $top and the number of expanded navigation properties. The entry never records a $filter or $orderby that "Apply OData API v3 limits to v2 requests?" would refuse; those write entries containing "optimization fell back to in-memory" instead, so search for those as well. One request can write both entries, for example when its filter falls back and it also reads more rows than a page without naming a $top, so do not add the two counts together. Treat the "fell back" entries as a guide rather than an exact list: while the setting is "No" they also cover filters using or, comparisons with null, the text-matching functions, cast and a value that names no existing record, which the database answers, rather than refuses, once the setting is "Yes". One kind of request is missing from both entries: a $orderby on a property that holds unlimited-length text. While both settings are "No" the database sorts it and nothing is logged, but once both are "Yes" it is refused, so the log cannot show an administrator which requests that would affect.

Regular expressions. Whatever the two settings are, all the regular-expression matches in one version 2 request (matchesPattern()) share a time limit, 2 seconds by default. A request that goes over it receives a 400 Bad Request, and so does a request whose pattern is not a valid regular expression, with a message saying so. A pattern written inside an $expand is held to the limit as well, which matters because a filter inside an $expand is not refused even when "Apply OData API v3 limits to v2 requests?" is "Yes". The exception is a pattern in an $orderby written inside an $expand, which is refused with a 400 Bad Request before it runs, even when both settings are "No". This is one of the two changes for an installation that leaves both settings "No" (the other is the $top inside an $expand described under "Starting values"): a pattern that would have run without end now stops. The limit is set on the server and can be changed by a web server administrator, with the ODataRegexMatchBudgetSeconds setting; the matches in a request can run for up to about twice the limit before it is stopped, and time the request spends on anything else, such as reading the items, does not count.

Credential Reuse Window

Every OData request carries the user ID and password of a Connector account, or the user ID and secret of an API key account. Once a request has verified them, later requests from that account within the "Credential Reuse Window (in seconds)" do not verify the password again and do not record another "Authentication Success - Password" security event (see "Search for Security Events" in the Core help). Changes to the account still take effect on the very next request: a new password, deactivation of the account, an account lockout, or disabling system access is enforced immediately, and an incorrect password is always refused.

An API key account is not locked by failed sign-ins (see "Failed sign-in limits"), so for an API key the changes that take effect on the very next request are a new secret, a changed expiry date, deactivation of the account, and disabling system access. A key's previous secret stops working as soon as a new one is generated, and an expired secret is refused even inside the window.

The account's "Last Successful Sign In" date and time is updated when the password is verified, so requests within the window do not update it. It can lag the most recent request by up to the length of the window and is brought up to date the next time the password is verified.

The window is set on the server and can be changed by a web server administrator; the page reports the value this system is configured with. The default is 300 seconds. A value of 0 verifies the password on every request, records a security event for each one, and updates "Last Successful Sign In" each time.

Clicking the "Cancel" button will return you to the previous page without saving your changes.


Errors

The Grand Avenue OData API uses standard HTTP status codes to signal error conditions. Authenticated callers receive descriptive error bodies designed to help diagnose problems in client code.

Error response format

Starting with API version 3, every error response the API itself returns - every status code from 400 to 599 - has a JSON body in the OData error format, except a response to a HEAD request, which has no body:

{"error": {"code": "PageSizeExceeded", "message": "The query specified in the URI is not valid. The value 1000000 for $top exceeds the maximum page size of 5000. Ask for no more than that many items, or omit $top and follow the @odata.nextLink to read the rest.", "details": []}}

An error raised by the web server before a request reaches the API, such as an IIS request-filtering rejection or a malformed request refused by the server, does not use this format.

The explanation is always in the body. It is never carried only in the HTTP reason phrase, which HTTP/2 does not have. A response to a HEAD request has the same status code and headers, with no body.

Starting with API version 3, every error response also carries the header OData-Version: 4.0.

code Status Condition
InvalidRequestBody 400 A POST body failed validation. See 400 Bad Request — Validation errors.
InvalidQuery 400 A query option could not be parsed or is not allowed.
UnrecognizedQueryOption 400 A parameter is named like a query option but without its '$', for example filter= rather than $filter=.
PageSizeExceeded 400 $top is larger than the maximum page size, whether on the request or inside an $expand.
ExpandLimitExceeded 400 A request expands more navigation properties in total than the server allows, counted across the top-level $expand and every nested one, with * counting as each navigation property it expands.
UnsupportedFilter 400 The $filter cannot be applied by the database.
UnsupportedOrderBy 400 The $orderby cannot be applied by the database.
InvalidSkipToken 400 A next-page link cannot be used: it was not issued by this server, it has expired, it was issued for a different collection, or the request changes the $filter or $orderby, or adds a $skip above zero.
InvalidPath 400 A path under /odata/ is malformed: it has an empty segment, such as /odata//v3/Customers, or parentheses that do not pair up, such as Customers(1.
UnsupportedODataVersion 400 A version header names a version of the OData standard the API does not answer in, or holds something that is not a version. See Versions in OData Standard Conformance.
Unauthorized 401 See 401 Unauthorized.
SecretExpired 401 The API key's secret was correct but its expiry date has passed. See 401 Unauthorized.
Forbidden 403 See 403 Forbidden.
HttpsRequired 403 The configuration requires HTTPS and the request used HTTP.
NotFound 404 See 404 Not Found.
MethodNotAllowed 405 See 405 Method Not Allowed.
NotAcceptable 406 The request accepts none of the formats its resource is answered in, through its Accept header or $format. See Formats in OData Standard Conformance.
RateLimitExceeded 429 See 429 Too Many Requests.
InternalError 500 An unexpected error occurred on the server. The details are written to the application log, not to the response; innererror.request-id identifies the entry.
NotImplemented 501 The request uses $apply, $compute or $search. See Using OData Query Options.
ClientError other 4xx Any other client error.
ServerError other 5xx Any other server error.

The following code is reserved. No response uses it yet; it is listed so that clients can be written to recognize it.

code Status Condition
UnknownFilterValue 400 A $filter compares a property with a value it cannot have, such as a status that does not exist.

API version 2 keeps the error responses it has always had, except for $batch (see 405 Method Not Allowed). A path under /odata/ that names no API version, or one this server does not serve, gets an error in the format above.

400 Bad Request — Validation errors

When a POST request fails validation, the response body identifies the specific cause. Examples:

The property and type names returned in validation errors are the same names visible to authenticated callers via $metadata and openapi.json. Verbose validation messages are intentional and part of the API contract — they let connector integrations correctly identify and fix payload problems without round-tripping to the schema documents.

401 Unauthorized

The Basic authentication header is missing, malformed, or its credentials are not accepted. On API version 3 the credentials must match an active API key account: version 3 accepts only API keys, so the password of any other account, a Connector account or a regular user, is refused with the same 401 without being checked. On API version 2 the credentials must match an active API key account or an active Connector account with a password. A secret that is right but past its expiry date receives the code SecretExpired, so that the caller knows to ask for a new secret; a wrong secret never does. The response includes WWW-Authenticate: Basic. To avoid acting as a liveness oracle for account existence, deactivated accounts also return 401 (rather than the strictly-more-correct 403) — a caller probing with a valid user ID and a valid password cannot distinguish "account is deactivated" from "account does not exist" from "password is wrong."

403 Forbidden

404 Not Found

The resource does not exist or is not exposed. This can mean:

The 404 is intentional — for an authenticated caller, the API does not distinguish between "this resource never existed" and "this resource is hidden by configuration."

405 Method Not Allowed

The HTTP verb is not supported for the resource. The Allow header lists supported methods. HEAD is supported wherever GET is supported (per HTTP/OData semantics; HEAD returns the same headers as GET with an empty body).

Batch requests are not supported. A request to $batch receives a 405 Method Not Allowed with an empty Allow header and a body in the OData error format, on every API version. The $metadata document declares this with BatchSupported set to false. Send each request separately instead.

429 Too Many Requests

The rate limit has been exceeded. The response includes:

Clients should respect Retry-After rather than retrying immediately.

Failed sign-in limits

Repeated failed sign-ins are also limited, and are answered with 429 Too Many Requests. On OData version 3, every failed sign-in counts toward the limit for its source address, whatever the account or password. On OData version 2, only failed sign-ins for an API key count; a Connector account password is not limited, as before. An API key account is never locked by failed sign-ins, so a caller cannot lock an app out of its key by guessing. The limits are counted separately in each application process, over a sliding window, and are set in the application configuration:

Setting Default Meaning
ODataMaxFailedSignInsPerKeyAndSource 10 Failed sign-ins for one key ID from one source address.
ODataMaxFailedSignInsPerSource 30 Failed sign-ins from one source address, whatever the key ID. On version 2 only an API key's failures count.
ODataFailedSignInWindowSeconds 600 The length of the window, in seconds.

A value of zero or less uses the default; the limits cannot be turned off. A successful sign-in clears the count for that key and source. When a limit is reached, an "API Key Failed Sign-In Limit Reached" security event is recorded.

The source address is the caller's address as the application receives it. On a site behind a load balancer, set ForwardedHeadersForwardLimit and ForwardedHeadersKnownNetworks so that it is the caller's own address rather than the load balancer's; otherwise every caller shares one limit.

Rate limits

Rate limiting is applied per authenticated account, not globally across the API. Each account has its own independent budget — one account's traffic does not consume another account's allowance, and the rate-limit headers on every response describe the calling account's current state, not the server's aggregate state.

Practical implications:


Copyright © 2003-2026, Grand Avenue Software, Inc.

All rights reserved.