---
title: entities.quoteAccountRelation
description: Read quote account relation records with the quoteAccountRelation repository, and change them with the quote account relation mutations. Same records as the REST QuoteAccountRelations entity.
canonical: https://developers.coevera.com/reference/graphql/quote-account-relation/
section: graphql
verification: schema
generatedFrom: schema f155746 (2026-10-20)
publisher: Coevera
---

# entities.quoteAccountRelation

Read quote account relation records with the quoteAccountRelation repository, and change them with the quote account relation mutations. Same records as the REST QuoteAccountRelations entity.

REST: [QuoteAccountRelations](https://developers.coevera.com/reference/rest/quote-account-relations.md).

## Queries

- `getById(entityId: ID!): QuoteAccountRelationEntity` Returns the record with the given id, or null when there is none. Deleted records are returned as well.
- `getByIds(entityIds: [ID!]!): [QuoteAccountRelationEntity!]!` Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
- `getAll(limit: Int, offset: Int, filter: QuoteAccountRelationFilterInput, orderBy: [QuoteAccountRelationOrderByInput!], includeDeleted: Boolean): [QuoteAccountRelationEntity!]!` Returns the records that match the filter, paged with limit and offset.
- `getByCriteria(filter: QuoteAccountRelationFilterInput, orderBy: [QuoteAccountRelationOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int): QuoteAccountRelationEntityConnection` Returns the records that match the filter as a cursor-paginated connection.
- `getChangedFieldsSinceRevision(id: UUID!, revision: Int!): [UUID!]!` Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.

## Mutations

- `createQuoteAccountRelation(input: CreateQuoteAccountRelationInput!, validationLevel: [ValidationLevel!]): CreateQuoteAccountRelationPayload` Create one record.
- `updateQuoteAccountRelation(input: UpdateQuoteAccountRelationInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String): UpdateQuoteAccountRelationPayload` Update fields.
- `bulkUpdateQuoteAccountRelation(input: [CreateOrUpdateQuoteAccountRelationInput!]!, deleteInput: [DeleteQuoteAccountRelationInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput): BulkUpdateQuoteAccountRelationPayload` Create or update many; per-item results.
- `deleteQuoteAccountRelation(input: DeleteQuoteAccountRelationInput!): DeleteQuoteAccountRelationPayload` Soft-delete.

## Types

### QuoteAccountRelationEntity (object)

Link between a quote and an account, marking the primary account.

- `isDeleteProtected: Boolean!` True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
- `id: ID!` Unique identifier of entity.
- `isDeleted: Boolean` Specifies if the entity is considered deleted.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `account: AccountEntity` Account linked to the quote.
- `quote: QuoteEntity` Quote the account is linked to.
- `accountId: ID!` Id of the account linked to this quote.
- `isPrimary: Boolean!` True for the row that represents the primary related entity for this record. Setting isPrimary to true on a row automatically clears it on any other primary row.
- `quoteId: ID!` Id of the quote the account is linked to.
- `revision: Int` Revision when entity was lastly changed.
- `instancePermissions: [EntityPermsEnum!]! (1 args)` Permissions the current user has on this record, out of the requested ones.

### QuoteAccountRelationEntityConnection (object)

Paginated list of QuoteAccountRelation records.

- `pageInfo: PageInfo!` Pagination data for this connection.
- `edges: [QuoteAccountRelationEntityEdge]!` Contains the nodes in this connection.
- `totalCount: Int` Total number of items in the connection.

### QuoteAccountRelationEntityEdge (object)

A Relay edge containing a `QuoteAccountRelationEntity` and its cursor.

- `node: QuoteAccountRelationEntity` The item at the end of the edge
- `cursor: String!` A cursor for use in pagination

### QuoteAccountRelationFilterInput (input)

Filter conditions for QuoteAccountRelation records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

- `OR: [QuoteAccountRelationFilterInput!]` Matches records that meet at least one of the listed filters.
- `AND: [QuoteAccountRelationFilterInput!]` Matches records that meet all of the listed filters.
- `NOT: QuoteAccountRelationFilterInput` Matches records that do not meet this filter.
- `globalSearchQuery: String` Search term matched against the fields that the global search covers for this entity.
- `id: EntityFilterStringField` Unique identifier of entity.
- `isDeleted: Boolean` Specifies if the entity is considered deleted.
- `modified: EntityFilterDateTimeField` Last modification time.
- `created: EntityFilterDateTimeField` Creation time.
- `accountId: EntityFilterStringField` Id of the account linked to this quote.
- `isPrimary: Boolean` True for the row that represents the primary related entity for this record. Setting isPrimary to true on a row automatically clears it on any other primary row.
- `quoteId: EntityFilterStringField` Id of the quote the account is linked to.
- `revision: EntityFilterNumberField` Revision when entity was lastly changed.
- `account: AccountFilterInput` Account linked to the quote. Matches records where a related record meets these conditions.
- `quote: QuoteFilterInput` Quote the account is linked to. Matches records where a related record meets these conditions.

### QuoteAccountRelationOrderByInput (input)

Sorting of QuoteAccountRelation records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

- `id: OrderByEnum` Unique identifier of entity.
- `isDeleted: OrderByEnum` Specifies if the entity is considered deleted.
- `modified: OrderByEnum` Last modification time.
- `created: OrderByEnum` Creation time.
- `account: [AccountOrderByNestedInput!]` Account linked to the quote. Sorts by fields of the related record, listed in order of priority.
- `quote: [QuoteOrderByNestedInput!]` Quote the account is linked to. Sorts by fields of the related record, listed in order of priority.
- `accountId: OrderByEnum` Id of the account linked to this quote.
- `isPrimary: OrderByEnum` True for the row that represents the primary related entity for this record. Setting isPrimary to true on a row automatically clears it on any other primary row.
- `quoteId: OrderByEnum` Id of the quote the account is linked to.
- `revision: OrderByEnum` Revision when entity was lastly changed.

### CreateOrUpdateQuoteAccountRelationInput (input)

Field values of a QuoteAccountRelation record to create, or to update when its id is set.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID` Unique identifier of entity.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `accountId: ID` Id of the account linked to this quote.
- `isPrimary: Boolean` True for the row that represents the primary related entity for this record. Setting isPrimary to true on a row automatically clears it on any other primary row.
- `quoteId: ID` Id of the quote the account is linked to.
- `revision: Int` Revision when entity was lastly changed.

### CreateQuoteAccountRelationInput (input)

Field values of a new QuoteAccountRelation record.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `accountId: ID!` Id of the account linked to this quote.
- `isPrimary: Boolean!` True for the row that represents the primary related entity for this record. Setting isPrimary to true on a row automatically clears it on any other primary row.
- `quoteId: ID!` Id of the quote the account is linked to.
- `revision: Int` Revision when entity was lastly changed.

### DeleteQuoteAccountRelationInput (input)

Id of the QuoteAccountRelation record to delete.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID!` Unique identifier of entity.

### UpdateQuoteAccountRelationInput (input)

Id of a QuoteAccountRelation record and the field values to change.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID!` Unique identifier of entity.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `accountId: ID` Id of the account linked to this quote.
- `isPrimary: Boolean` True for the row that represents the primary related entity for this record. Setting isPrimary to true on a row automatically clears it on any other primary row.
- `quoteId: ID` Id of the quote the account is linked to.
- `revision: Int` Revision when entity was lastly changed.

### BulkUpdateQuoteAccountRelationPayload (object)

Result of the bulkUpdateQuoteAccountRelation mutation.

- `result: BulkUpdateResults!` Ids of the created, updated and deleted records, and the items that failed.

### CreateQuoteAccountRelationPayload (object)

Result of the createQuoteAccountRelation mutation.

- `quoteAccountRelation: QuoteAccountRelationEntity` The created record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### DeleteQuoteAccountRelationPayload (object)

Result of the deleteQuoteAccountRelation mutation.

- `quoteAccountRelation: QuoteAccountRelationEntity` The deleted record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### UpdateQuoteAccountRelationPayload (object)

Result of the updateQuoteAccountRelation mutation.

- `quoteAccountRelation: QuoteAccountRelationEntity` The updated record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

Types several repositories share, such as `PageInfo` and the filter fields, are in the [types index](https://developers.coevera.com/reference/graphql/types.md). The [SDL](https://developers.coevera.com/graphql/schema.graphql) has the whole schema in one file.

## Example

```graphql
query FirstQuoteAccountRelations {
  entities {
    quoteAccountRelation {
      getByCriteria(first: 3, orderBy: [{ modified: Desc }]) {
        totalCount
        edges { node { id modified } }
      }
    }
  }
}
```

```bash
curl 'https://{region}.api.coevera.com/api/v100/app/space/{space_id}/graphql/public' \
  --user "$COEVERA_API_KEY:$COEVERA_API_SECRET" \
  --header 'Content-Type: application/json' \
  --data '{"query":"query FirstQuoteAccountRelations { entities { quoteAccountRelation { getByCriteria(first: 3, orderBy: [{ modified: Desc }]) { totalCount edges { node { id modified } } } } } }"}'
```
