Developers
Set your API contextPick a region and space ID once. Every sample fills in your base URL.
Where do I find these?

In Coevera: open your space's API application and choose Show Access. It shows the space ID and the base URL, whose host starts with your region.

From the API: if you know the space ID, the discovery endpoint GET /api/discovery/spaces/{space_id} returns its region and base URLs, without credentials.

Only the region and space ID are kept, in this browser. Never paste a key or password here.

More in the quickstart

GraphQLRepositoriesopportunity

entities.opportunity

Read opportunity records with the opportunity repository, and change them with the opportunity mutations. Same records as the REST Opportunities entity.

Queries

Fields of entities { opportunity { … } }.

Each operation opens an example built from the schema and checked against it on every build. Replace the placeholders, such as <opportunity id>, with values from your space.

KindFieldReturns
QUERYgetById(entityId: ID!)
Returns the record with the given id, or null when there is none. Deleted records are returned as well.
OpportunityEntity
Example
Example: getById
query OpportunityGetById {
  entities {
    opportunity {
      getById(entityId: "<opportunity id>") {
        id
        name
        formattedName
        modified
      }
    }
  }
}
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 OpportunityGetById { entities { opportunity { getById(entityId: \"<opportunity id>\") { id name formattedName modified } } } }"}'
QUERYgetByIds(entityIds: [ID!]!)
Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
[OpportunityEntity!]!
Example
Example: getByIds
query OpportunityGetByIds {
  entities {
    opportunity {
      getByIds(entityIds: ["<opportunity id>"]) {
        id
        name
        formattedName
        modified
      }
    }
  }
}
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 OpportunityGetByIds { entities { opportunity { getByIds(entityIds: [\"<opportunity id>\"]) { id name formattedName modified } } } }"}'
QUERYgetAll(limit: Int, offset: Int, filter: OpportunityFilterInput, orderBy: [OpportunityOrderByInput!], includeDeleted: Boolean)
Returns the records that match the filter, paged with limit and offset.
[OpportunityEntity!]!
Example
Example: getAll
query OpportunityGetAll {
  entities {
    opportunity {
      getAll(limit: 10) {
        id
        name
        formattedName
        modified
      }
    }
  }
}
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 OpportunityGetAll { entities { opportunity { getAll(limit: 10) { id name formattedName modified } } } }"}'
QUERYgetByCriteria(filter: OpportunityFilterInput, orderBy: [OpportunityOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)
Returns the records that match the filter as a cursor-paginated connection.
OpportunityEntityConnection
Example
Example: getByCriteria
query OpportunityGetByCriteria {
  entities {
    opportunity {
      getByCriteria(first: 10) {
        totalCount
        edges {
          node {
            id
            name
            formattedName
            modified
          }
        }
        pageInfo {
          hasNextPage
          endCursor
        }
      }
    }
  }
}
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 OpportunityGetByCriteria { entities { opportunity { getByCriteria(first: 10) { totalCount edges { node { id name formattedName modified } } pageInfo { hasNextPage endCursor } } } } }"}'
QUERYgetChangedFieldsSinceRevision(id: UUID!, revision: Int!)
Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.
[UUID!]!
Example
Example: getChangedFieldsSinceRevision
query OpportunityGetChangedFieldsSinceRevision {
  entities {
    opportunity {
      getChangedFieldsSinceRevision(id: "<opportunity id>", revision: 10)
    }
  }
}
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 OpportunityGetChangedFieldsSinceRevision { entities { opportunity { getChangedFieldsSinceRevision(id: \"<opportunity id>\", revision: 10) } } }"}'
QUERYgetBySession(includedIds: [UUID!]!, excludedIds: [UUID!]!, sessionId: String!, before: String, after: String, first: Int, last: Int)
Returns a page of records selected in a list or report: all records of the given result plus the explicitly included ids, minus the excluded ids.
OpportunityEntityConnection
Example
Example: getBySession
query OpportunityGetBySession {
  entities {
    opportunity {
      getBySession(
        includedIds: ["<opportunity id>"]
        excludedIds: ["<opportunity id>"]
        sessionId: "<session id>"
        first: 10
      ) {
        totalCount
        edges {
          node {
            id
            name
            formattedName
            modified
          }
        }
        pageInfo {
          hasNextPage
          endCursor
        }
      }
    }
  }
}
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 OpportunityGetBySession { entities { opportunity { getBySession( includedIds: [\"<opportunity id>\"] excludedIds: [\"<opportunity id>\"] sessionId: \"<session id>\" first: 10 ) { totalCount edges { node { id name formattedName modified } } pageInfo { hasNextPage endCursor } } } } }"}'
QUERYgetByIdFormatted(id: UUID!, fieldIds: [UUID!])
Returns the values of a record's fields formatted for display, keyed by field id.
JSONString
Example
Example: getByIdFormatted
query OpportunityGetByIdFormatted {
  entities {
    opportunity {
      getByIdFormatted(id: "<opportunity id>")
    }
  }
}
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 OpportunityGetByIdFormatted { entities { opportunity { getByIdFormatted(id: \"<opportunity id>\") } } }"}'
QUERYautoPrefill(mappingId: UUID!, entityId: UUID!, targetEntityTypeId: UUID)
Returns a new, unsaved record pre-filled from a source record according to a field mapping. Nothing is saved; the returned values can be used as input for create.
OpportunityEntity!
Example
Example: autoPrefill
query OpportunityAutoPrefill {
  entities {
    opportunity {
      autoPrefill(mappingId: "<mapping id>", entityId: "<opportunity id>") {
        id
        name
        formattedName
        modified
      }
    }
  }
}
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 OpportunityAutoPrefill { entities { opportunity { autoPrefill(mappingId: \"<mapping id>\", entityId: \"<opportunity id>\") { id name formattedName modified } } } }"}'
QUERYaiAutoPrefill(actionId: String!)
Returns an unsaved record pre-filled with the values proposed by an AI record suggestion, together with the fields the suggestion filled in.
OpportunityAutoPrefill!
Example
Example: aiAutoPrefill
query OpportunityAiAutoPrefill {
  entities {
    opportunity {
      aiAutoPrefill(actionId: "<action id>") {
        entity {
          id
          name
          formattedName
          modified
        }
        fieldIds
      }
    }
  }
}
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 OpportunityAiAutoPrefill { entities { opportunity { aiAutoPrefill(actionId: \"<action id>\") { entity { id name formattedName modified } fieldIds } } } }"}'

Mutations

KindMutationDoesReturns
MUTATIONchangeOwnershipOpportunity(input: ChangeOwnershipOpportunityInput!)Change owner GraphQL onlyChangeOwnershipOpportunityPayload
Example
Example: changeOwnershipOpportunity
mutation ChangeOwnershipOpportunity {
  changeOwnershipOpportunity(
    input: {ownerId: "<owner id>", unitId: "<unit id>", keepOwnerAsEditor: false, transferLinkedRecords: false, id: "<opportunity id>"}
  ) {
    result {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation ChangeOwnershipOpportunity { changeOwnershipOpportunity( input: {ownerId: \"<owner id>\", unitId: \"<unit id>\", keepOwnerAsEditor: false, transferLinkedRecords: false, id: \"<opportunity id>\"} ) { result { id name formattedName modified } } }"}'
MUTATIONmanageSharingOpportunity(input: ManageSharingOpportunityInput!)Change who it is shared with GraphQL onlyManageSharingOpportunityPayload
Example
Example: manageSharingOpportunity
mutation ManageSharingOpportunity {
  manageSharingOpportunity(input: {shareMode: Standard, id: "<opportunity id>"}) {
    result {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation ManageSharingOpportunity { manageSharingOpportunity(input: {shareMode: Standard, id: \"<opportunity id>\"}) { result { id name formattedName modified } } }"}'
MUTATIONchangeLabelFlagOpportunity(input: ChangeLabelFlagOpportunityInput!)Change the label flag GraphQL onlyChangeLabelFlagOpportunityPayload
Example
Example: changeLabelFlagOpportunity
mutation ChangeLabelFlagOpportunity {
  changeLabelFlagOpportunity(
    input: {hot: false, priority: false, stalled: false, id: "<opportunity id>"}
  ) {
    result {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation ChangeLabelFlagOpportunity { changeLabelFlagOpportunity( input: {hot: false, priority: false, stalled: false, id: \"<opportunity id>\"} ) { result { id name formattedName modified } } }"}'
MUTATIONrestoreOpportunity(input: RestoreOpportunityInput!)Restore a deleted recordRestoreOpportunityPayload
Example
Example: restoreOpportunity
mutation RestoreOpportunity {
  restoreOpportunity(input: {id: "<opportunity id>"}) {
    result {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation RestoreOpportunity { restoreOpportunity(input: {id: \"<opportunity id>\"}) { result { id name formattedName modified } } }"}'
MUTATIONarchiveOpportunity(input: ArchiveOpportunityInput!)Archive GraphQL onlyArchiveOpportunityPayload
Example
Example: archiveOpportunity
mutation ArchiveOpportunity {
  archiveOpportunity(input: {entity: {id: "<opportunity id>"}}) {
    result {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation ArchiveOpportunity { archiveOpportunity(input: {entity: {id: \"<opportunity id>\"}}) { result { id name formattedName modified } } }"}'
MUTATIONmoveOpportunity(input: MoveOpportunityInput!)Move to another step GraphQL onlyMoveOpportunityPayload
Example
Example: moveOpportunity
mutation MoveOpportunity {
  moveOpportunity(input: {entity: {id: "<opportunity id>"}}) {
    result {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation MoveOpportunity { moveOpportunity(input: {entity: {id: \"<opportunity id>\"}}) { result { id name formattedName modified } } }"}'
MUTATIONchangePipelineOpportunity(input: ChangePipelineOpportunityInput!)Move to another pipeline GraphQL onlyChangePipelineOpportunityPayload
Example
Example: changePipelineOpportunity
mutation ChangePipelineOpportunity {
  changePipelineOpportunity(
    input: {entity: {id: "<opportunity id>"}, keepOwnerAsEditor: false, transferLinkedRecords: false}
  ) {
    result {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation ChangePipelineOpportunity { changePipelineOpportunity( input: {entity: {id: \"<opportunity id>\"}, keepOwnerAsEditor: false, transferLinkedRecords: false} ) { result { id name formattedName modified } } }"}'
MUTATIONcreateOpportunity(input: CreateOpportunityInput!, validationLevel: [ValidationLevel!])Create one recordCreateOpportunityPayload
Example
Example: createOpportunity
mutation CreateOpportunity {
  createOpportunity(
    input: {closingDate: "2026-12-15", name: "Northwind Analytics", ownerId: "<owner id>", stepId: "<step id>"}
  ) {
    opportunity {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation CreateOpportunity { createOpportunity( input: {closingDate: \"2026-12-15\", name: \"Northwind Analytics\", ownerId: \"<owner id>\", stepId: \"<step id>\"} ) { opportunity { id name formattedName modified } } }"}'
MUTATIONupdateOpportunity(input: UpdateOpportunityInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String)Update fieldsUpdateOpportunityPayload
Example
Example: updateOpportunity
mutation UpdateOpportunity {
  updateOpportunity(input: {id: "<opportunity id>"}) {
    opportunity {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation UpdateOpportunity { updateOpportunity(input: {id: \"<opportunity id>\"}) { opportunity { id name formattedName modified } } }"}'
MUTATIONbulkUpdateOpportunity(input: [CreateOrUpdateOpportunityInput!]!, deleteInput: [DeleteOpportunityInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput)Create or update many; per-item resultsBulkUpdateOpportunityPayload
Example
Example: bulkUpdateOpportunity
mutation BulkUpdateOpportunity {
  bulkUpdateOpportunity(input: [{id: "<opportunity id>"}]) {
    result {
      created {
        id
      }
      errors {
        index
        code
        message
        entityId
      }
      updated
      deleted
      errorsOnDelete {
        index
        code
        message
        entityId
      }
    }
  }
}
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":"mutation BulkUpdateOpportunity { bulkUpdateOpportunity(input: [{id: \"<opportunity id>\"}]) { result { created { id } errors { index code message entityId } updated deleted errorsOnDelete { index code message entityId } } } }"}'
MUTATIONdeleteOpportunity(input: DeleteOpportunityInput!)Soft-deleteDeleteOpportunityPayload
Example
Example: deleteOpportunity
mutation DeleteOpportunity {
  deleteOpportunity(input: {id: "<opportunity id>"}) {
    opportunity {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation DeleteOpportunity { deleteOpportunity(input: {id: \"<opportunity id>\"}) { opportunity { id name formattedName modified } } }"}'
MUTATIONbulkArchiveOpportunity(input: BulkArchiveOpportunityInput!)Archive many GraphQL onlyBulkArchiveOpportunityPayload
Example
Example: bulkArchiveOpportunity
mutation BulkArchiveOpportunity {
  bulkArchiveOpportunity(
    input: {bulkFilter: {includedIds: ["<opportunity id>"]}, entity: {id: "<opportunity id>"}}
  ) {
    result {
      created {
        id
      }
      errors {
        index
        code
        message
        entityId
      }
      updated
      deleted
      errorsOnDelete {
        index
        code
        message
        entityId
      }
    }
  }
}
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":"mutation BulkArchiveOpportunity { bulkArchiveOpportunity( input: {bulkFilter: {includedIds: [\"<opportunity id>\"]}, entity: {id: \"<opportunity id>\"}} ) { result { created { id } errors { index code message entityId } updated deleted errorsOnDelete { index code message entityId } } } }"}'
MUTATIONbulkReactivateOpportunity(input: BulkReactivateOpportunityInput!)Undo archive for many GraphQL onlyBulkReactivateOpportunityPayload
Example
Example: bulkReactivateOpportunity
mutation BulkReactivateOpportunity {
  bulkReactivateOpportunity(
    input: {bulkFilter: {includedIds: ["<opportunity id>"]}}
  ) {
    result {
      created {
        id
      }
      errors {
        index
        code
        message
        entityId
      }
      updated
      deleted
      errorsOnDelete {
        index
        code
        message
        entityId
      }
    }
  }
}
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":"mutation BulkReactivateOpportunity { bulkReactivateOpportunity( input: {bulkFilter: {includedIds: [\"<opportunity id>\"]}} ) { result { created { id } errors { index code message entityId } updated deleted errorsOnDelete { index code message entityId } } } }"}'
MUTATIONbulkMoveOpportunity(input: BulkMoveOpportunityInput!)Move many to another step GraphQL onlyBulkMoveOpportunityPayload
Example
Example: bulkMoveOpportunity
mutation BulkMoveOpportunity {
  bulkMoveOpportunity(
    input: {bulkFilter: {includedIds: ["<opportunity id>"]}, entity: {id: "<opportunity id>"}}
  ) {
    result {
      created {
        id
      }
      errors {
        index
        code
        message
        entityId
      }
      updated
      deleted
      errorsOnDelete {
        index
        code
        message
        entityId
      }
    }
  }
}
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":"mutation BulkMoveOpportunity { bulkMoveOpportunity( input: {bulkFilter: {includedIds: [\"<opportunity id>\"]}, entity: {id: \"<opportunity id>\"}} ) { result { created { id } errors { index code message entityId } updated deleted errorsOnDelete { index code message entityId } } } }"}'
MUTATIONconvertOpportunity(input: CreateOpportunityInput!, sourceEntity: EntityNameEnum!, sourceEntityId: UUID!, operation: RecordConversionOperationEnum!, options: RecordConversionOptions!, sourceEntityApiName: String, validationLevel: [ValidationLevel!])Create from another record GraphQL onlyConvertOpportunityPayload
Example
Example: convertOpportunity
mutation ConvertOpportunity {
  convertOpportunity(
    input: {closingDate: "2026-12-15", name: "Northwind Analytics", ownerId: "<owner id>", stepId: "<step id>"}
    sourceEntity: AiAgent
    sourceEntityId: "<source entity id>"
    operation: Nothing
    options: {}
  ) {
    opportunity {
      id
      name
      formattedName
      modified
    }
  }
}
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":"mutation ConvertOpportunity { convertOpportunity( input: {closingDate: \"2026-12-15\", name: \"Northwind Analytics\", ownerId: \"<owner id>\", stepId: \"<step id>\"} sourceEntity: AiAgent sourceEntityId: \"<source entity id>\" operation: Nothing options: {} ) { opportunity { id name formattedName modified } } }"}'

Types

The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.

OpportunityEntity object 80 fields: customFields, pendingScheduledActions, isDeleteProtected, …

Potential deal with a value and closing date that moves through the steps of a sales pipeline until it is won or lost.

FieldTypeDescription
customFieldsJSONString! (1 args)Values of the record's custom fields as a JSON object keyed by custom field apiName (camelCase).
pendingScheduledActionsIntFilled only when a single record is read by its id; otherwise null or an empty list.
isDeleteProtectedBoolean!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.
idID!Unique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
activeQuoteQuoteEntityQuote currently used to drive the opportunity (e.g. for synchronisation of monetary fields). Empty when no quote is active.
currencyExchangeRatesListCurrencyExchangeRatesListEntityCurrency exchange rate list used to convert monetary fields linked to this opportunity. Empty to inherit the team space default.
leadSourceDataEntityHow the opportunity originated (e.g. Website, Referral, Trade Show). Configurable per team space.
opptyTypeOpportunityTypeEntityOpportunity type that classifies this opportunity. Each type maps to one pipeline and drives which form, fields and stages apply.
ownerClientEntitySales user who owns this opportunity.
productCurrencyCurrencyEntityCurrency used for product line-item prices on this opportunity.
productPriceListProductPriceListEntityProduct price list used to populate prices for product line items added to this opportunity. Empty to use catalog defaults.
reasonOfCloseDataEntityConfigurable reason recorded when the opportunity is archived (lost). Required when the lost form mandates it.
stepStepEntityPipeline step the opportunity is currently sitting in. Reaching the last step in the pipeline marks the opportunity as won; archiving sets it to lost.
unitSalesUnitEntitySales unit this opportunity is assigned to. Determines which team members can see the record under unit-based sharing.
activeQuoteIdIDId of the quote currently synchronized with this opportunity, or empty when no quote is active. A quote can be active on only one opportunity at a time.
closingDateDate!Expected or actual closing date of the opportunity.
currencyExchangeRatesListIdIDId of the currency exchange rate list applied to this opportunity.
descriptionStringFree-form description of the opportunity.
isArchivedBooleanTrue when the opportunity has been archived (lost). Archived opportunities remain readable but are hidden from active lists and cannot be edited until reactivated.
isValueAutoCalculateBooleanTrue when value is auto-calculated from the opportunity product line items. False when the user enters value directly.
labelFlagIntUser-set colored flag used to highlight the opportunity in lists and reports.
lastAiBuyingCenterAppliedDateTimeTime when an AI-suggested buying center was last applied to this opportunity.
leadSourceIdIDId of the lead source the opportunity originated from.
nameString!Name of the entity and its default text representation.
opptyTypeIdIDId of the opportunity type.
ownerIdID!Id of the opportunity owner.
productCurrencyIdIDId of the currency used for product line-item prices on this opportunity.
productPriceListIdIDId of the price list that supplies prices for product line items added to this opportunity, or empty to use catalog defaults.
productSections[ProductSection!]Product sections grouping the record's line items, as a JSON array of {"id": <UUID>, "name": <string>} objects. Validated on write.
quickAccountEmailStringFree-text company email captured at opportunity creation when no Account record has been linked yet.
quickAccountNameStringFree-text company name captured at opportunity creation when no Account record has been linked yet.
quickAccountPhoneStringFree-text company phone captured at opportunity creation when no Account record has been linked yet.
quickContactNameStringFree-text contact name captured at opportunity creation when no Contact record has been linked yet.
quickEmailStringFree-text contact email captured at opportunity creation when no Contact record has been linked yet.
quickPhoneStringFree-text contact phone captured at opportunity creation when no Contact record has been linked yet.
rankingIntQualitative ranking score (1-10) the user assigns to indicate the strength of the opportunity.
reasonOfCloseDescriptionStringFree-form note explaining why the opportunity was archived (lost).
reasonOfCloseIdIDId of the reason of close option selected when the opportunity was archived (lost).
shareModeShareModeEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
stepIdID!Id of the pipeline step.
tableNameString!Discriminator identifying the concrete record type — always "opportunity" for Opportunity records. Read-only; useful when consuming polymorphic LeadOppty results.
unitIdIDId of the sales unit.
wasQualifiedBooleanTrue when the opportunity has gone through the qualification step at least once.
revisionIntRevision when entity was lastly changed.
valueCurrencyForeignFieldMonetary value of the opportunity in the team space base currency, with the foreign value and currency code preserved alongside.
enrolledEmailSequencesInt!Number of email sequences this record is currently actively enrolled in (soft-deleted or ended enrollments are not counted).
opptyRecurrenceOpptyRecurrenceEntityRecurrence schedule generating periodic copies of this opportunity, or empty when no recurrence is set up.
revenueScheduleOpptyRevenueScheduleEntityRevenue schedule splitting the opportunity value across periods, or empty when revenue scheduling is not enabled for this opportunity.
productRelationsOpptyProductRelationEntityConnection (8 args)Product line items on this opportunity. Each entry holds the product, quantity, price and discount that contribute to the opportunity value when isValueAutoCalculate is true.
primaryContactContactEntityPrimary contact of this opportunity. Set automatically from the contact relation marked as primary.
primaryAccountAccountEntityPrimary account of this opportunity. Set automatically from the account relation marked as primary.
contactRelationsLeadOpptyContactRelationEntityConnection (8 args)Contacts linked to this opportunity, including their roles and org-chart positions.
accountRelationsLeadOpptyAccountRelationEntityConnection (8 args)Accounts linked to this opportunity, including the primary-account flag.
documentsCloudObjectRelationEntityConnection (8 args)Documents linked to this opportunity.
quoteRelationsQuoteEntityConnection (7 args)Quotes prepared for this opportunity.
statusOpptyStatusEnum!Current status of the opportunity (Open, Won, Lost). Read-only; derived from the current pipeline step and the archived flag.
qualifyDateDateTimeTimestamp of when the opportunity was qualified, taken from the matching KPI event. Empty for opportunities that have not been qualified. Read-only.
wonDateDateTimeTimestamp of when the opportunity was won. Setting it adjusts the underlying win event; empty for opportunities that have not been won.
lostDateDateTimeTimestamp of when the opportunity was archived (lost). Setting it adjusts the underlying loss event; empty for opportunities that have not been archived.
daysInStepInt!Number of days the opportunity has been sitting in its current pipeline step. Read-only; computed by Coevera from the most recent move event and per-step timeframe history.
isFavoriteBoolean!True when the current authenticated user has marked this opportunity as favorite. Per-user.
sharingUnitsLeadOpptySharingSalesUnitRelationEntityConnection (8 args)Sales units that have been granted shared access to this opportunity. Editable only when shareMode allows unit sharing.
sharingClientsLeadOpptySharingClientRelationEntityConnection (8 args)Users that have been granted shared access to this opportunity. Editable only when shareMode allows user sharing.
tagsTagRelationEntityConnection (8 args)Tag labels applied to this opportunity.
staticProfilesProfileRelationEntityConnection (8 args)Saved view profiles this opportunity currently matches.
fitnessWarningLevelEnumFilled only when a single record is read by its id; otherwise null or an empty list.
fitnessDescriptionFitnessDescriptionFilled only when a single record is read by its id; otherwise null or an empty list.
formattedNameString!Display version of the opportunity name, used in lists and references.
viewerIdsPerSalesUnit[UUID!]!Filled only when a single record is read by its id; otherwise null or an empty list.
modifiedByUserDateTimeTimestamp of the most recent modification made by an end user (excluding system changes). Read-only; computed by Coevera.
instancePermissions[EntityPermsEnum!]! (1 args)Permissions the current user has on this record, out of the requested ones.
relatedEntitiesDrilldownCompactViewDrilldownModel! (1 args)Records of the given entity type that are related to this record, as a drilldown list.
charts[DashboardChartData!] (1 args)Data of the given preview pane charts and lists, computed for this record.
chartsDrilldownCompactViewDrilldownModel! (3 args)Records behind one preview pane chart of this record: all records of a list chart, or the records of a single data point of a report chart.
fields[InterfaceFieldData]! (2 args)Values of the fields shown in the record's preview pane, as configured for the record's type.
stepChecklists[StepChecklistActivityItem]! (1 args)Checklist items of the steps of the record's pipeline, with the completion state of each item for this record.
approvalApprovalEntityApproval request of this record that is pending or was rejected; null when there is none or it was approved.
OpportunityEntityConnection object pageInfo: PageInfo!, edges: [OpportunityEntityEdge]!, totalCount: Int

Paginated list of Opportunity records.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[OpportunityEntityEdge]!Contains the nodes in this connection.
totalCountIntTotal number of items in the connection.
OpportunityEntityEdge object node: OpportunityEntity, cursor: String!

A Relay edge containing a OpportunityEntity and its cursor.

FieldTypeDescription
nodeOpportunityEntityThe item at the end of the edge
cursorString!A cursor for use in pagination
OpportunityFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field

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

Input fieldTypeDescription
OR[OpportunityFilterInput!]Matches records that meet at least one of the listed filters.
AND[OpportunityFilterInput!]Matches records that meet all of the listed filters.
NOTOpportunityFilterInputMatches records that do not meet this filter.
globalSearchQueryStringSearch term matched against the fields that the global search covers for this entity.
idEntityFilterStringFieldUnique identifier of entity.
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedEntityFilterDateTimeFieldLast modification time.
createdEntityFilterDateTimeFieldCreation time.
activeQuoteIdEntityFilterStringFieldId of the quote currently synchronized with this opportunity, or empty when no quote is active. A quote can be active on only one opportunity at a time.
currencyExchangeRatesListIdEntityFilterStringFieldId of the currency exchange rate list applied to this opportunity.
descriptionEntityFilterStringFieldFree-form description of the opportunity.
isArchivedBooleanTrue when the opportunity has been archived (lost). Archived opportunities remain readable but are hidden from active lists and cannot be edited until reactivated.
isValueAutoCalculateBooleanTrue when value is auto-calculated from the opportunity product line items. False when the user enters value directly.
labelFlagLabelFlagEnumFilterInputUser-set colored flag used to highlight the opportunity in lists and reports.
lastAiBuyingCenterAppliedEntityFilterDateTimeFieldTime when an AI-suggested buying center was last applied to this opportunity.
leadSourceIdEntityFilterStringFieldId of the lead source the opportunity originated from.
nameEntityFilterStringFieldName of the entity and its default text representation.
opptyTypeIdEntityFilterStringFieldId of the opportunity type.
ownerIdEntityFilterStringFieldId of the opportunity owner.
productCurrencyIdEntityFilterStringFieldId of the currency used for product line-item prices on this opportunity.
productPriceListIdEntityFilterStringFieldId of the price list that supplies prices for product line items added to this opportunity, or empty to use catalog defaults.
quickAccountEmailEntityFilterStringFieldFree-text company email captured at opportunity creation when no Account record has been linked yet.
quickAccountNameEntityFilterStringFieldFree-text company name captured at opportunity creation when no Account record has been linked yet.
quickAccountPhoneEntityFilterStringFieldFree-text company phone captured at opportunity creation when no Account record has been linked yet.
quickContactNameEntityFilterStringFieldFree-text contact name captured at opportunity creation when no Contact record has been linked yet.
quickEmailEntityFilterStringFieldFree-text contact email captured at opportunity creation when no Contact record has been linked yet.
quickPhoneEntityFilterStringFieldFree-text contact phone captured at opportunity creation when no Contact record has been linked yet.
rankingEntityFilterNumberFieldQualitative ranking score (1-10) the user assigns to indicate the strength of the opportunity.
reasonOfCloseDescriptionEntityFilterStringFieldFree-form note explaining why the opportunity was archived (lost).
reasonOfCloseIdEntityFilterStringFieldId of the reason of close option selected when the opportunity was archived (lost).
shareModeShareModeEnumFilterInputSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
stepIdEntityFilterStringFieldId of the pipeline step.
tableNameEntityFilterStringFieldDiscriminator identifying the concrete record type — always "opportunity" for Opportunity records. Read-only; useful when consuming polymorphic LeadOppty results.
unitIdEntityFilterStringFieldId of the sales unit.
wasQualifiedBooleanTrue when the opportunity has gone through the qualification step at least once.
revisionEntityFilterNumberFieldRevision when entity was lastly changed.
enrolledEmailSequencesIntNumber of email sequences this record is currently actively enrolled in (soft-deleted or ended enrollments are not counted).
pipelineIdEntityFilterStringFieldId of the pipeline the opportunity runs in. Read-only; derived from the opportunity type. Useful as a filter when listing opportunities by pipeline.
statusOpptyStatusEnumFilterInputCurrent status of the opportunity (Open, Won, Lost). Read-only; derived from the current pipeline step and the archived flag.
relatedEntities[EntityFilterRelatedField]Matches records related to at least one of the listed records.
withCustom[CustomField!]Conditions on custom fields, each identified by its api name. All listed conditions must match.
activeQuoteQuoteFilterInputQuote currently used to drive the opportunity (e.g. for synchronisation of monetary fields). Empty when no quote is active. Matches records where a related record meets these conditions.
currencyExchangeRatesListCurrencyExchangeRatesListFilterInputCurrency exchange rate list used to convert monetary fields linked to this opportunity. Empty to inherit the team space default. Matches records where a related record meets these conditions.
leadSourceDataFilterInputHow the opportunity originated (e.g. Website, Referral, Trade Show). Configurable per team space. Matches records where a related record meets these conditions.
opptyTypeOpportunityTypeFilterInputOpportunity type that classifies this opportunity. Each type maps to one pipeline and drives which form, fields and stages apply. Matches records where a related record meets these conditions.
ownerClientFilterInputSales user who owns this opportunity. Matches records where a related record meets these conditions.
productCurrencyCurrencyFilterInputCurrency used for product line-item prices on this opportunity. Matches records where a related record meets these conditions.
productPriceListProductPriceListFilterInputProduct price list used to populate prices for product line items added to this opportunity. Empty to use catalog defaults. Matches records where a related record meets these conditions.
reasonOfCloseDataFilterInputConfigurable reason recorded when the opportunity is archived (lost). Required when the lost form mandates it. Matches records where a related record meets these conditions.
stepStepFilterInputPipeline step the opportunity is currently sitting in. Reaching the last step in the pipeline marks the opportunity as won; archiving sets it to lost. Matches records where a related record meets these conditions.
unitSalesUnitFilterInputSales unit this opportunity is assigned to. Determines which team members can see the record under unit-based sharing. Matches records where a related record meets these conditions.
opptyRecurrenceOpptyRecurrenceFilterInputRecurrence schedule generating periodic copies of this opportunity, or empty when no recurrence is set up. Matches records where a related record meets these conditions.
revenueScheduleOpptyRevenueScheduleFilterInputRevenue schedule splitting the opportunity value across periods, or empty when revenue scheduling is not enabled for this opportunity. Matches records where a related record meets these conditions.
productRelationsOpptyProductRelationFilterInputProduct line items on this opportunity. Each entry holds the product, quantity, price and discount that contribute to the opportunity value when isValueAutoCalculate is true. Matches records where a related record meets these conditions.
primaryContactContactFilterInputPrimary contact of this opportunity. Set automatically from the contact relation marked as primary. Matches records where a related record meets these conditions.
primaryAccountAccountFilterInputPrimary account of this opportunity. Set automatically from the account relation marked as primary. Matches records where a related record meets these conditions.
contactRelationsLeadOpptyContactRelationFilterInputContacts linked to this opportunity, including their roles and org-chart positions. Matches records where a related record meets these conditions.
accountRelationsLeadOpptyAccountRelationFilterInputAccounts linked to this opportunity, including the primary-account flag. Matches records where a related record meets these conditions.
documentsCloudObjectRelationFilterInputDocuments linked to this opportunity. Matches records where a related record meets these conditions.
quoteRelationsQuoteFilterInputQuotes prepared for this opportunity. Matches records where a related record meets these conditions.
sharingUnitsLeadOpptySharingSalesUnitRelationFilterInputSales units that have been granted shared access to this opportunity. Editable only when shareMode allows unit sharing. Matches records where a related record meets these conditions.
sharingClientsLeadOpptySharingClientRelationFilterInputUsers that have been granted shared access to this opportunity. Editable only when shareMode allows user sharing. Matches records where a related record meets these conditions.
tagsTagRelationFilterInputTag labels applied to this opportunity. Matches records where a related record meets these conditions.
staticProfilesProfileRelationFilterInputSaved view profiles this opportunity currently matches. Matches records where a related record meets these conditions.
OpportunityOrderByInput input Asc or Desc per field

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

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
activeQuote[QuoteOrderByNestedInput!]Quote currently used to drive the opportunity (e.g. for synchronisation of monetary fields). Empty when no quote is active. Sorts by fields of the related record, listed in order of priority.
currencyExchangeRatesList[CurrencyExchangeRatesListOrderByNestedInput!]Currency exchange rate list used to convert monetary fields linked to this opportunity. Empty to inherit the team space default. Sorts by fields of the related record, listed in order of priority.
leadSource[DataOrderByNestedInput!]How the opportunity originated (e.g. Website, Referral, Trade Show). Configurable per team space. Sorts by fields of the related record, listed in order of priority.
opptyType[OpportunityTypeOrderByNestedInput!]Opportunity type that classifies this opportunity. Each type maps to one pipeline and drives which form, fields and stages apply. Sorts by fields of the related record, listed in order of priority.
owner[ClientOrderByNestedInput!]Sales user who owns this opportunity. Sorts by fields of the related record, listed in order of priority.
productPriceList[ProductPriceListOrderByNestedInput!]Product price list used to populate prices for product line items added to this opportunity. Empty to use catalog defaults. Sorts by fields of the related record, listed in order of priority.
reasonOfClose[DataOrderByNestedInput!]Configurable reason recorded when the opportunity is archived (lost). Required when the lost form mandates it. Sorts by fields of the related record, listed in order of priority.
step[StepOrderByNestedInput!]Pipeline step the opportunity is currently sitting in. Reaching the last step in the pipeline marks the opportunity as won; archiving sets it to lost. Sorts by fields of the related record, listed in order of priority.
unit[SalesUnitOrderByNestedInput!]Sales unit this opportunity is assigned to. Determines which team members can see the record under unit-based sharing. Sorts by fields of the related record, listed in order of priority.
activeQuoteIdOrderByEnumId of the quote currently synchronized with this opportunity, or empty when no quote is active. A quote can be active on only one opportunity at a time.
closingDateOrderByEnumExpected or actual closing date of the opportunity.
currencyExchangeRatesListIdOrderByEnumId of the currency exchange rate list applied to this opportunity.
descriptionOrderByEnumFree-form description of the opportunity.
isArchivedOrderByEnumTrue when the opportunity has been archived (lost). Archived opportunities remain readable but are hidden from active lists and cannot be edited until reactivated.
isValueAutoCalculateOrderByEnumTrue when value is auto-calculated from the opportunity product line items. False when the user enters value directly.
labelFlagOrderByEnumUser-set colored flag used to highlight the opportunity in lists and reports.
leadSourceIdOrderByEnumId of the lead source the opportunity originated from.
nameOrderByEnumName of the entity and its default text representation.
opptyTypeIdOrderByEnumId of the opportunity type.
ownerIdOrderByEnumId of the opportunity owner.
productPriceListIdOrderByEnumId of the price list that supplies prices for product line items added to this opportunity, or empty to use catalog defaults.
quickAccountEmailOrderByEnumFree-text company email captured at opportunity creation when no Account record has been linked yet.
quickAccountNameOrderByEnumFree-text company name captured at opportunity creation when no Account record has been linked yet.
quickAccountPhoneOrderByEnumFree-text company phone captured at opportunity creation when no Account record has been linked yet.
quickContactNameOrderByEnumFree-text contact name captured at opportunity creation when no Contact record has been linked yet.
quickEmailOrderByEnumFree-text contact email captured at opportunity creation when no Contact record has been linked yet.
quickPhoneOrderByEnumFree-text contact phone captured at opportunity creation when no Contact record has been linked yet.
rankingOrderByEnumQualitative ranking score (1-10) the user assigns to indicate the strength of the opportunity.
reasonOfCloseDescriptionOrderByEnumFree-form note explaining why the opportunity was archived (lost).
reasonOfCloseIdOrderByEnumId of the reason of close option selected when the opportunity was archived (lost).
shareModeOrderByEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
stepIdOrderByEnumId of the pipeline step.
unitIdOrderByEnumId of the sales unit.
wasQualifiedOrderByEnumTrue when the opportunity has gone through the qualification step at least once.
revisionOrderByEnumRevision when entity was lastly changed.
valueOrderByEnumMonetary value of the opportunity in the team space base currency, with the foreign value and currency code preserved alongside.
enrolledEmailSequencesOrderByEnumNumber of email sequences this record is currently actively enrolled in (soft-deleted or ended enrollments are not counted).
opptyRecurrence[OpptyRecurrenceOrderByNestedInput!]Recurrence schedule generating periodic copies of this opportunity, or empty when no recurrence is set up. Sorts by fields of the related record, listed in order of priority.
revenueSchedule[OpptyRevenueScheduleOrderByNestedInput!]Revenue schedule splitting the opportunity value across periods, or empty when revenue scheduling is not enabled for this opportunity. Sorts by fields of the related record, listed in order of priority.
statusOrderByEnumCurrent status of the opportunity (Open, Won, Lost). Read-only; derived from the current pipeline step and the archived flag.
relatedEntitiesCommonEntityRepositoryOrderByEntityRelationFieldSorts records by whether they are related to the listed records.
withCustomCommonEntityRepositoryOrderByCustomFieldSorts by a custom field.
OpptyStatusEnumFilterInput input eq: [OpptyStatusEnum!], NOT: OpptyStatusEnumFilterInput

Conditions on an enumeration field. Several conditions given together must all match.

Input fieldTypeDescription
eq[OpptyStatusEnum!]Matches any of the listed values.
NOTOpptyStatusEnumFilterInputMatches values that do not meet this condition.
ArchiveOpportunityInput input 5 fields: entity, memoText, completeActivityIds, …

Parameters of the archiveOpportunity mutation.

Input fieldTypeDescription
entityUpdateOpportunityInput!Id of the opportunity and optional field values to save together with the archive, such as reasonOfCloseId.
memoTextStringText of a memo added to the opportunity together with the archive.
completeActivityIds[UUID!]Ids of tasks linked to the opportunity to mark as completed.
archiveQuoteIds[UUID!]Ids of the opportunity's open quotes to archive as canceled.
clientMutationIdStringOptional 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).
BulkArchiveOpportunityInput input 7 fields: bulkFilter, entity, memoText, …

Parameters of the bulkArchiveOpportunity mutation.

Input fieldTypeDescription
bulkFilterBulkOperationInput!Opportunities to archive: includedIds minus excludedIds. Integrations can leave sessionId empty.
entityCreateOrUpdateOpportunityInput!Field values saved on every archived opportunity, such as reasonOfCloseId.
memoTextStringText of a memo added to every archived opportunity.
completeActivityIds[UUID!]Ids of linked tasks to mark as completed.
archiveQuoteIds[UUID!]Ids of open quotes of these opportunities to archive as canceled.
rollbackMethodRollbackMethodROLLBACK_ALL fails the whole request when any item fails; ROLLBACK_FAILED skips only the failed items and reports them in errors.
clientMutationIdStringOptional 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).
BulkMoveOpportunityInput input 8 fields: bulkFilter, entity, memoText, …

Parameters of the bulkMoveOpportunity mutation.

Input fieldTypeDescription
bulkFilterBulkOperationInput!Opportunities to move: includedIds minus excludedIds. Integrations can leave sessionId empty.
entityCreateOrUpdateOpportunityInput!Target step (stepId) and field values applied to every opportunity.
memoTextStringText of a memo added to every moved opportunity.
completeActivityIds[UUID!]Ids of linked tasks to mark as completed.
acceptQuoteIds[UUID!]Ids of open quotes of these opportunities to move to their last (accepted) step.
archiveQuoteIds[UUID!]Ids of open quotes of these opportunities to archive as canceled.
rollbackMethodRollbackMethodROLLBACK_ALL fails the whole request when any item fails; ROLLBACK_FAILED skips only the failed items and reports them in errors.
clientMutationIdStringOptional 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).
BulkReactivateOpportunityInput input bulkFilter: BulkOperationInput!, closingDate: Date, rollbackMethod: RollbackMethod, clientMutationId: String

Parameters of the bulkReactivateOpportunity mutation.

Input fieldTypeDescription
bulkFilterBulkOperationInput!Opportunities to reactivate: includedIds minus excludedIds. Integrations can leave sessionId empty.
closingDateDateNew expected closing date set on every reactivated opportunity; when empty, each opportunity keeps its current closing date.
rollbackMethodRollbackMethodROLLBACK_ALL fails the whole request when any item fails; ROLLBACK_FAILED skips only the failed items and reports them in errors.
clientMutationIdStringOptional 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).
ChangeLabelFlagOpportunityInput input 5 fields: hot, priority, stalled, …

Parameters of the changeLabelFlagOpportunity mutation.

Input fieldTypeDescription
hotBoolean!Marks the record as hot.
priorityBoolean!Marks the record as priority.
stalledBoolean!Marks the record as stalled.
idID!Identifier of the OpportunityEntity to perform the action on.
clientMutationIdStringOptional 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).
ChangeOwnershipOpportunityInput input 6 fields: ownerId, unitId, keepOwnerAsEditor, …

Parameters of the changeOwnershipOpportunity mutation.

Input fieldTypeDescription
ownerIdID!User who becomes the new owner of the record.
unitIdID!Sales unit the record is assigned to.
keepOwnerAsEditorBoolean!When true, the previous owner (if still an active user) stays on the record as a shared user with the Editor role, and a Private sharing mode is switched to Standard.
transferLinkedRecordsBoolean!When true, the new owner and sales unit are also applied to the record's open tasks and appointments and its notes. Linked records that cannot be transferred are skipped without failing the mutation.
idID!Identifier of the OpportunityEntity to perform the action on.
clientMutationIdStringOptional 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).
ChangePipelineOpportunityInput input entity: UpdateOpportunityInput!, keepOwnerAsEditor: Boolean!, transferLinkedRecords: Boolean!, clientMutationId: String

Parameters of the changePipelineOpportunity mutation.

Input fieldTypeDescription
entityUpdateOpportunityInput!Id of the opportunity, the target stepId, an optional new ownerId or unitId, and any other field values to save.
keepOwnerAsEditorBoolean!Adds the previous owner as an editor of the opportunity; a private opportunity becomes shared.
transferLinkedRecordsBoolean!Gives the new owner the opportunity's open activities and its notes.
clientMutationIdStringOptional 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).
CreateOpportunityInput input 47 fields: clientMutationId, modified, created, …

Field values of a new Opportunity record.

Input fieldTypeDescription
clientMutationIdStringOptional 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).
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
activeQuoteIdIDId of the quote currently synchronized with this opportunity, or empty when no quote is active. A quote can be active on only one opportunity at a time.
closingDateDate!Expected or actual closing date of the opportunity.
currencyExchangeRatesListIdIDId of the currency exchange rate list applied to this opportunity.
descriptionStringFree-form description of the opportunity.
isArchivedBooleanTrue when the opportunity has been archived (lost). Archived opportunities remain readable but are hidden from active lists and cannot be edited until reactivated.
isValueAutoCalculateBooleanTrue when value is auto-calculated from the opportunity product line items. False when the user enters value directly.
labelFlagIntUser-set colored flag used to highlight the opportunity in lists and reports.
lastAiBuyingCenterAppliedDateTimeTime when an AI-suggested buying center was last applied to this opportunity.
leadSourceIdIDId of the lead source the opportunity originated from.
nameString!Name of the entity and its default text representation.
opptyTypeIdIDId of the opportunity type.
ownerIdID!Id of the opportunity owner.
productCurrencyIdIDId of the currency used for product line-item prices on this opportunity.
productPriceListIdIDId of the price list that supplies prices for product line items added to this opportunity, or empty to use catalog defaults.
productSectionsJSONStringProduct sections grouping the record's line items, as a JSON array of {"id": <UUID>, "name": <string>} objects. Validated on write.
quickAccountEmailStringFree-text company email captured at opportunity creation when no Account record has been linked yet.
quickAccountNameStringFree-text company name captured at opportunity creation when no Account record has been linked yet.
quickAccountPhoneStringFree-text company phone captured at opportunity creation when no Account record has been linked yet.
quickContactNameStringFree-text contact name captured at opportunity creation when no Contact record has been linked yet.
quickEmailStringFree-text contact email captured at opportunity creation when no Contact record has been linked yet.
quickPhoneStringFree-text contact phone captured at opportunity creation when no Contact record has been linked yet.
rankingIntQualitative ranking score (1-10) the user assigns to indicate the strength of the opportunity.
reasonOfCloseDescriptionStringFree-form note explaining why the opportunity was archived (lost).
reasonOfCloseIdIDId of the reason of close option selected when the opportunity was archived (lost).
shareModeShareModeEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
stepIdID!Id of the pipeline step.
unitIdIDId of the sales unit.
wasQualifiedBooleanTrue when the opportunity has gone through the qualification step at least once.
customFieldsJSONStringCustom field values to set, as a JSON object keyed by custom field API name, e.g. {"cfBudget": 1000}. Only the custom fields included are changed; each value uses the format of that field.
revisionIntRevision when entity was lastly changed.
valueCurrencyForeignFieldInputMonetary value of the opportunity in the team space base currency, with the foreign value and currency code preserved alongside.
opptyRecurrenceCreateOpptyRecurrenceNoOpptyBackrefInputRecurrence schedule generating periodic copies of this opportunity, or empty when no recurrence is set up.
revenueScheduleCreateOpptyRevenueScheduleNoIdBackrefInputRevenue schedule splitting the opportunity value across periods, or empty when revenue scheduling is not enabled for this opportunity.
productRelations[CreateOpptyProductRelationNoBackrefInput!]Product line items on this opportunity. Each entry holds the product, quantity, price and discount that contribute to the opportunity value when isValueAutoCalculate is true.
contactRelations[CreateLeadOpptyContactRelationNoLeadOpptyBackrefInput!]Contacts linked to this opportunity, including their roles and org-chart positions.
accountRelations[CreateLeadOpptyAccountRelationNoLeadOpptyBackrefInput!]Accounts linked to this opportunity, including the primary-account flag.
documents[CreateCloudObjectRelationNoBackrefInput!]Documents linked to this opportunity.
quoteRelations[CreateQuoteNoOpptyBackrefInput!]Quotes prepared for this opportunity.
wonDateDateTimeTimestamp of when the opportunity was won. Setting it adjusts the underlying win event; empty for opportunities that have not been won.
lostDateDateTimeTimestamp of when the opportunity was archived (lost). Setting it adjusts the underlying loss event; empty for opportunities that have not been archived.
sharingUnits[CreateLeadOpptySharingSalesUnitRelationNoLeadOpptyBackrefInput!]Sales units that have been granted shared access to this opportunity. Editable only when shareMode allows unit sharing.
sharingClients[CreateLeadOpptySharingClientRelationNoLeadOpptyBackrefInput!]Users that have been granted shared access to this opportunity. Editable only when shareMode allows user sharing.
tags[CreateTagRelationNoOpptyBackrefInput!]Tag labels applied to this opportunity.
staticProfiles[CreateProfileRelationNoLeadOpptyBackrefInput!]Saved view profiles this opportunity currently matches.
CreateOpptyRecurrenceNoOpptyBackrefInput input 15 fields: applyRecurrence, modified, created, …

Field values of a new OpptyRecurrence record, created together with the record it belongs to.

Input fieldTypeDescription
applyRecurrenceBooleanDefault true. When set, then reccurence will apply when other conditions passed. With the value false (e.g. when skip button is used) then recurrence will not apply
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
conditionIntBit Flag field, with limited combination of integer values.
dayDateDayEnumField whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative.
dayOfWeekIntBit Flag field, with limited combination of integer values.
endDateDateDate information. The last date when no more other items should be created.
monthDateMonthEnumField whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative.
occurEveryIntThe number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum.
occurrencesCountIntWhole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied.
startDateDate!Date information. The effective start date of recurrence, which means each next recurrence must be on or after this date.
stepIdID!Id of the pipeline step the opportunities created by the recurrence start in.
typeRecurrenceTypeEnumRecurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative).
weekDateWeekEnumField whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute.
revisionIntRevision when entity was lastly changed.
CreateOpptyRevenueScheduleNoIdBackrefInput input 8 fields: isDeleted, modified, created, …

Field values of a new OpptyRevenueSchedule record, created together with the record it belongs to.

Input fieldTypeDescription
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
cancelationDateDateDate when the revenue schedule was cancelled. Empty for active schedules.
periodCountIntNumber of periods the opportunity value is split into.
periodTypeRevenueSchedulePeriodTypeEnumLength of each period (e.g. Monthly, Quarterly, Yearly).
startDateDateDate when revenue recognition for the opportunity begins.
revisionIntRevision when entity was lastly changed.
CreateOrUpdateOpportunityInput input 48 fields: clientMutationId, id, modified, …

Field values of an Opportunity record to create, or to update when its id is set.

Input fieldTypeDescription
clientMutationIdStringOptional 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).
idIDUnique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
activeQuoteIdIDId of the quote currently synchronized with this opportunity, or empty when no quote is active. A quote can be active on only one opportunity at a time.
closingDateDateExpected or actual closing date of the opportunity.
currencyExchangeRatesListIdIDId of the currency exchange rate list applied to this opportunity.
descriptionStringFree-form description of the opportunity.
isArchivedBooleanTrue when the opportunity has been archived (lost). Archived opportunities remain readable but are hidden from active lists and cannot be edited until reactivated.
isValueAutoCalculateBooleanTrue when value is auto-calculated from the opportunity product line items. False when the user enters value directly.
labelFlagIntUser-set colored flag used to highlight the opportunity in lists and reports.
lastAiBuyingCenterAppliedDateTimeTime when an AI-suggested buying center was last applied to this opportunity.
leadSourceIdIDId of the lead source the opportunity originated from.
nameStringName of the entity and its default text representation.
opptyTypeIdIDId of the opportunity type.
ownerIdIDId of the opportunity owner.
productCurrencyIdIDId of the currency used for product line-item prices on this opportunity.
productPriceListIdIDId of the price list that supplies prices for product line items added to this opportunity, or empty to use catalog defaults.
productSectionsJSONStringProduct sections grouping the record's line items, as a JSON array of {"id": <UUID>, "name": <string>} objects. Validated on write.
quickAccountEmailStringFree-text company email captured at opportunity creation when no Account record has been linked yet.
quickAccountNameStringFree-text company name captured at opportunity creation when no Account record has been linked yet.
quickAccountPhoneStringFree-text company phone captured at opportunity creation when no Account record has been linked yet.
quickContactNameStringFree-text contact name captured at opportunity creation when no Contact record has been linked yet.
quickEmailStringFree-text contact email captured at opportunity creation when no Contact record has been linked yet.
quickPhoneStringFree-text contact phone captured at opportunity creation when no Contact record has been linked yet.
rankingIntQualitative ranking score (1-10) the user assigns to indicate the strength of the opportunity.
reasonOfCloseDescriptionStringFree-form note explaining why the opportunity was archived (lost).
reasonOfCloseIdIDId of the reason of close option selected when the opportunity was archived (lost).
shareModeShareModeEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
stepIdIDId of the pipeline step.
unitIdIDId of the sales unit.
wasQualifiedBooleanTrue when the opportunity has gone through the qualification step at least once.
customFieldsJSONStringCustom field values to set, as a JSON object keyed by custom field API name, e.g. {"cfBudget": 1000}. Only the custom fields included are changed; each value uses the format of that field.
revisionIntRevision when entity was lastly changed.
valueCurrencyForeignFieldInputMonetary value of the opportunity in the team space base currency, with the foreign value and currency code preserved alongside.
opptyRecurrenceUpdateOpptyRecurrenceNoOpptyBackrefInputRecurrence schedule generating periodic copies of this opportunity, or empty when no recurrence is set up.
revenueScheduleUpdateOpptyRevenueScheduleNoIdBackrefInputRevenue schedule splitting the opportunity value across periods, or empty when revenue scheduling is not enabled for this opportunity.
productRelations[CreateOrUpdateOpptyProductRelationNoBackrefInput!]Product line items on this opportunity. Each entry holds the product, quantity, price and discount that contribute to the opportunity value when isValueAutoCalculate is true.
contactRelations[CreateLeadOpptyContactRelationNoLeadOpptyBackrefInput!]Contacts linked to this opportunity, including their roles and org-chart positions.
accountRelations[CreateLeadOpptyAccountRelationNoLeadOpptyBackrefInput!]Accounts linked to this opportunity, including the primary-account flag.
documents[CreateCloudObjectRelationNoBackrefInput!]Documents linked to this opportunity.
quoteRelations[CreateQuoteNoOpptyBackrefInput!]Quotes prepared for this opportunity.
wonDateDateTimeTimestamp of when the opportunity was won. Setting it adjusts the underlying win event; empty for opportunities that have not been won.
lostDateDateTimeTimestamp of when the opportunity was archived (lost). Setting it adjusts the underlying loss event; empty for opportunities that have not been archived.
sharingUnits[CreateLeadOpptySharingSalesUnitRelationNoLeadOpptyBackrefInput!]Sales units that have been granted shared access to this opportunity. Editable only when shareMode allows unit sharing.
sharingClients[CreateLeadOpptySharingClientRelationNoLeadOpptyBackrefInput!]Users that have been granted shared access to this opportunity. Editable only when shareMode allows user sharing.
tags[CreateTagRelationNoOpptyBackrefInput!]Tag labels applied to this opportunity.
staticProfiles[CreateProfileRelationNoLeadOpptyBackrefInput!]Saved view profiles this opportunity currently matches.
CreateQuoteNoOpptyBackrefInput input 36 fields: modified, created, currencyExchangeRatesListId, …

Field values of a new Quote record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
currencyExchangeRatesListIdIDId of the currency exchange rate list applied to this quote.
descriptionStringFree-form description of the quote.
expirationDateDateDate after which the quote is no longer considered valid.
isArchivedBooleanTrue when the quote has been archived (lost). Archived quotes remain readable but are hidden from active lists and cannot be edited until reactivated.
nameString!Name of the entity and its default text representation.
ownerIdID!Id of the quote owner.
productCurrencyIdIDId of the currency used for product line-item prices on this quote.
productPriceListIdIDId of the price list that supplies prices for product line items added to this quote, or empty to use catalog defaults.
productSectionsJSONStringProduct sections grouping the record's line items, as a JSON array of {"id": <UUID>, "name": <string>} objects. Validated on write.
quickAccountEmailStringFree-text company email captured at quote creation when no Account record has been linked yet.
quickAccountNameStringFree-text company name captured at quote creation when no Account record has been linked yet.
quickAccountPhoneStringFree-text company phone captured at quote creation when no Account record has been linked yet.
quickContactNameStringFree-text contact name captured at quote creation when no Contact record has been linked yet.
quickEmailStringFree-text contact email captured at quote creation when no Contact record has been linked yet.
quickPhoneStringFree-text contact phone captured at quote creation when no Contact record has been linked yet.
quoteTypeIdIDId of the quote type that classifies this quote.
reasonOfCloseDescriptionStringFree-form note explaining why the quote was archived (lost).
reasonOfCloseIdIDId of the reason of close option selected when the quote was archived (lost).
shareModeShareModeEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
stepIdID!Id of the quote-process step.
unitIdIDId of the sales unit.
versionIntRevision number of the quote, incremented when a new version of the same quote is created.
customFieldsJSONStringCustom field values to set, as a JSON object keyed by custom field API name, e.g. {"cfBudget": 1000}. Only the custom fields included are changed; each value uses the format of that field.
revisionIntRevision when entity was lastly changed.
totalAmountCurrencyForeignFieldInputTotal monetary value of the quote in the team space base currency, with the foreign value and currency code preserved alongside.
productRelations[CreateOpptyProductRelationNoBackrefInput!]Product line items on this quote. Each entry holds the product, quantity, price and discount that contribute to totalAmount.
contactRelations[CreateQuoteContactRelationNoQuoteBackrefInput!]Contacts linked to this quote.
accountRelations[CreateQuoteAccountRelationNoQuoteBackrefInput!]Accounts linked to this quote, including the primary-account flag.
documents[CreateCloudObjectRelationNoBackrefInput!]Documents linked to this quote.
sharingUnits[CreateQuoteSharingSalesUnitRelationNoQuoteBackrefInput!]Sales units that have been granted shared access to this quote. Editable only when shareMode allows unit sharing.
sharingClients[CreateQuoteSharingClientRelationNoQuoteBackrefInput!]Users that have been granted shared access to this quote. Editable only when shareMode allows user sharing.
isActiveInOpportunityBooleanIf quote is set as active in opportunity.
staticProfiles[CreateProfileRelationNoQuoteBackrefInput!]Saved view profiles this quote currently matches.
tags[CreateTagRelationNoQuoteBackrefInput!]Tag labels applied to this quote.
CreateTagRelationNoOpptyBackrefInput input 15 fields: modified, created, accountId, …

Field values of a new TagRelation record, created together with the record it belongs to.

Input fieldTypeDescription
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
accountIdIDId of the linked account.
appointmentIdIDId of the linked appointment.
contactIdIDId of the linked contact.
customEntityIdIDId of the linked custom entity record.
emailIdIDId of the linked email.
leadIdIDId of the linked lead.
processIdIDId of the linked sales process.
projectIdIDId of the linked project.
quoteIdIDId of the linked quote.
solutionIdIDId of the linked solution.
tagIdID!Id of the tag attached to the record.
taskIdIDId of the linked task.
revisionIntRevision when entity was lastly changed.
DeleteOpportunityInput input clientMutationId: String, id: ID!

Id of the Opportunity record to delete.

Input fieldTypeDescription
clientMutationIdStringOptional 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).
idID!Unique identifier of entity.
ManageSharingOpportunityInput input 5 fields: shareMode, sharingClients, sharingUnits, …

Parameters of the manageSharingOpportunity mutation.

Input fieldTypeDescription
shareModeShareModeEnum!Sharing mode of the record: Standard, Private, AllView or AllEdit.
sharingClients[CreateLeadOpptySharingClientRelationNoLeadOpptyBackrefInput!]Users the record is shared with, each with the Watcher (view) or Editor (edit) role. Send an empty list to remove all shared users.
sharingUnits[CreateLeadOpptySharingSalesUnitRelationNoLeadOpptyBackrefInput!]Sales units the record is shared with, each with the Watcher or Editor role. Send an empty list to remove all shared units.
idID!Identifier of the OpportunityEntity to perform the action on.
clientMutationIdStringOptional 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).
MoveOpportunityInput input 6 fields: entity, memoText, completeActivityIds, …

Parameters of the moveOpportunity mutation.

Input fieldTypeDescription
entityUpdateOpportunityInput!Id of the opportunity, the target step (stepId) and any field values to save with the move.
memoTextStringText of a memo added to the opportunity together with the move.
completeActivityIds[UUID!]Ids of tasks linked to the opportunity or its quotes to mark as completed.
acceptQuoteIds[UUID!]Ids of the opportunity's open quotes to move to the last (accepted) step of their quote process.
archiveQuoteIds[UUID!]Ids of the opportunity's open quotes to archive as canceled.
clientMutationIdStringOptional 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).
OpptyRecurrenceOrderByNestedInput input 17 fields: id, isDeleted, modified, …

Sorting by a field of the related OpptyRecurrence record. Set exactly one field in each item.

Input fieldTypeDescription
idOrderByEnumUnique identifier of entity.
isDeletedOrderByEnumSpecifies if the entity is considered deleted.
modifiedOrderByEnumLast modification time.
createdOrderByEnumCreation time.
conditionOrderByEnumBit Flag field, with limited combination of integer values.
dayOrderByEnumField whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative.
dayOfWeekOrderByEnumBit Flag field, with limited combination of integer values.
endDateOrderByEnumDate information. The last date when no more other items should be created.
monthOrderByEnumField whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative.
occurEveryOrderByEnumThe number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum.
occurrencesCountOrderByEnumWhole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied.
opptyIdOrderByEnumId of the parent opportunity.
startDateOrderByEnumDate information. The effective start date of recurrence, which means each next recurrence must be on or after this date.
stepIdOrderByEnumId of the pipeline step the opportunities created by the recurrence start in.
typeOrderByEnumRecurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative).
weekOrderByEnumField whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute.
revisionOrderByEnumRevision when entity was lastly changed.
RestoreOpportunityInput input id: ID!, clientMutationId: String

Parameters of the restoreOpportunity mutation.

Input fieldTypeDescription
idID!Identifier of the OpportunityEntity to perform the action on.
clientMutationIdStringOptional 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).
UpdateOpportunityInput input 48 fields: clientMutationId, id, modified, …

Id of an Opportunity record and the field values to change.

Input fieldTypeDescription
clientMutationIdStringOptional 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).
idID!Unique identifier of entity.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
activeQuoteIdIDId of the quote currently synchronized with this opportunity, or empty when no quote is active. A quote can be active on only one opportunity at a time.
closingDateDateExpected or actual closing date of the opportunity.
currencyExchangeRatesListIdIDId of the currency exchange rate list applied to this opportunity.
descriptionStringFree-form description of the opportunity.
isArchivedBooleanTrue when the opportunity has been archived (lost). Archived opportunities remain readable but are hidden from active lists and cannot be edited until reactivated.
isValueAutoCalculateBooleanTrue when value is auto-calculated from the opportunity product line items. False when the user enters value directly.
labelFlagIntUser-set colored flag used to highlight the opportunity in lists and reports.
lastAiBuyingCenterAppliedDateTimeTime when an AI-suggested buying center was last applied to this opportunity.
leadSourceIdIDId of the lead source the opportunity originated from.
nameStringName of the entity and its default text representation.
opptyTypeIdIDId of the opportunity type.
ownerIdIDId of the opportunity owner.
productCurrencyIdIDId of the currency used for product line-item prices on this opportunity.
productPriceListIdIDId of the price list that supplies prices for product line items added to this opportunity, or empty to use catalog defaults.
productSectionsJSONStringProduct sections grouping the record's line items, as a JSON array of {"id": <UUID>, "name": <string>} objects. Validated on write.
quickAccountEmailStringFree-text company email captured at opportunity creation when no Account record has been linked yet.
quickAccountNameStringFree-text company name captured at opportunity creation when no Account record has been linked yet.
quickAccountPhoneStringFree-text company phone captured at opportunity creation when no Account record has been linked yet.
quickContactNameStringFree-text contact name captured at opportunity creation when no Contact record has been linked yet.
quickEmailStringFree-text contact email captured at opportunity creation when no Contact record has been linked yet.
quickPhoneStringFree-text contact phone captured at opportunity creation when no Contact record has been linked yet.
rankingIntQualitative ranking score (1-10) the user assigns to indicate the strength of the opportunity.
reasonOfCloseDescriptionStringFree-form note explaining why the opportunity was archived (lost).
reasonOfCloseIdIDId of the reason of close option selected when the opportunity was archived (lost).
shareModeShareModeEnumSharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharingUnits / sharingClients lists control who is granted access.
stepIdIDId of the pipeline step.
unitIdIDId of the sales unit.
wasQualifiedBooleanTrue when the opportunity has gone through the qualification step at least once.
customFieldsJSONStringCustom field values to set, as a JSON object keyed by custom field API name, e.g. {"cfBudget": 1000}. Only the custom fields included are changed; each value uses the format of that field.
revisionIntRevision when entity was lastly changed.
valueCurrencyForeignFieldInputMonetary value of the opportunity in the team space base currency, with the foreign value and currency code preserved alongside.
opptyRecurrenceUpdateOpptyRecurrenceNoOpptyBackrefInputRecurrence schedule generating periodic copies of this opportunity, or empty when no recurrence is set up.
revenueScheduleUpdateOpptyRevenueScheduleNoIdBackrefInputRevenue schedule splitting the opportunity value across periods, or empty when revenue scheduling is not enabled for this opportunity.
productRelations[CreateOrUpdateOpptyProductRelationNoBackrefInput!]Product line items on this opportunity. Each entry holds the product, quantity, price and discount that contribute to the opportunity value when isValueAutoCalculate is true.
contactRelations[CreateLeadOpptyContactRelationNoLeadOpptyBackrefInput!]Contacts linked to this opportunity, including their roles and org-chart positions.
accountRelations[CreateLeadOpptyAccountRelationNoLeadOpptyBackrefInput!]Accounts linked to this opportunity, including the primary-account flag.
documents[CreateCloudObjectRelationNoBackrefInput!]Documents linked to this opportunity.
quoteRelations[CreateQuoteNoOpptyBackrefInput!]Quotes prepared for this opportunity.
wonDateDateTimeTimestamp of when the opportunity was won. Setting it adjusts the underlying win event; empty for opportunities that have not been won.
lostDateDateTimeTimestamp of when the opportunity was archived (lost). Setting it adjusts the underlying loss event; empty for opportunities that have not been archived.
sharingUnits[CreateLeadOpptySharingSalesUnitRelationNoLeadOpptyBackrefInput!]Sales units that have been granted shared access to this opportunity. Editable only when shareMode allows unit sharing.
sharingClients[CreateLeadOpptySharingClientRelationNoLeadOpptyBackrefInput!]Users that have been granted shared access to this opportunity. Editable only when shareMode allows user sharing.
tags[CreateTagRelationNoOpptyBackrefInput!]Tag labels applied to this opportunity.
staticProfiles[CreateProfileRelationNoLeadOpptyBackrefInput!]Saved view profiles this opportunity currently matches.
UpdateOpptyRecurrenceNoOpptyBackrefInput input 15 fields: applyRecurrence, modified, created, …

Id of an OpptyRecurrence record and the field values to change, updated together with the record it belongs to.

Input fieldTypeDescription
applyRecurrenceBooleanDefault true. When set, then reccurence will apply when other conditions passed. With the value false (e.g. when skip button is used) then recurrence will not apply
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
conditionIntBit Flag field, with limited combination of integer values.
dayDateDayEnumField whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative.
dayOfWeekIntBit Flag field, with limited combination of integer values.
endDateDateDate information. The last date when no more other items should be created.
monthDateMonthEnumField whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative.
occurEveryIntThe number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum.
occurrencesCountIntWhole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied.
startDateDateDate information. The effective start date of recurrence, which means each next recurrence must be on or after this date.
stepIdIDId of the pipeline step the opportunities created by the recurrence start in.
typeRecurrenceTypeEnumRecurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative).
weekDateWeekEnumField whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute.
revisionIntRevision when entity was lastly changed.
UpdateOpptyRevenueScheduleNoIdBackrefInput input 8 fields: isDeleted, modified, created, …

Id of an OpptyRevenueSchedule record and the field values to change, updated together with the record it belongs to.

Input fieldTypeDescription
isDeletedBooleanSpecifies if the entity is considered deleted.
modifiedDateTimeLast modification time.
createdDateTimeCreation time.
cancelationDateDateDate when the revenue schedule was cancelled. Empty for active schedules.
periodCountIntNumber of periods the opportunity value is split into.
periodTypeRevenueSchedulePeriodTypeEnumLength of each period (e.g. Monthly, Quarterly, Yearly).
startDateDateDate when revenue recognition for the opportunity begins.
revisionIntRevision when entity was lastly changed.
ArchiveOpportunityPayload object result: OpportunityEntity, clientMutationId: String

Result of the archiveOpportunity mutation.

FieldTypeDescription
resultOpportunityEntityThe archived opportunity.
clientMutationIdStringOptional 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).
BulkArchiveOpportunityPayload object result: BulkUpdateResults!, clientMutationId: String

Result of the bulkArchiveOpportunity mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the archived opportunities and the items that failed.
clientMutationIdStringOptional 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).
BulkMoveOpportunityPayload object result: BulkUpdateResults!, clientMutationId: String

Result of the bulkMoveOpportunity mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the moved opportunities and the items that failed.
clientMutationIdStringOptional 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).
BulkReactivateOpportunityPayload object result: BulkUpdateResults!, clientMutationId: String

Result of the bulkReactivateOpportunity mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the reactivated opportunities and the items that failed.
clientMutationIdStringOptional 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).
BulkUpdateOpportunityPayload object result: BulkUpdateResults!

Result of the bulkUpdateOpportunity mutation.

FieldTypeDescription
resultBulkUpdateResults!Ids of the created, updated and deleted records, and the items that failed.
ChangeLabelFlagOpportunityPayload object result: OpportunityEntity, clientMutationId: String

Result of the changeLabelFlagOpportunity mutation.

FieldTypeDescription
resultOpportunityEntityThe updated record.
clientMutationIdStringOptional 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).
ChangeOwnershipOpportunityPayload object result: OpportunityEntity, clientMutationId: String

Result of the changeOwnershipOpportunity mutation.

FieldTypeDescription
resultOpportunityEntityThe record with its new owner.
clientMutationIdStringOptional 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).
ChangePipelineOpportunityPayload object result: OpportunityEntity, clientMutationId: String

Result of the changePipelineOpportunity mutation.

FieldTypeDescription
resultOpportunityEntityThe updated opportunity.
clientMutationIdStringOptional 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).
ConvertOpportunityPayload object opportunity: OpportunityEntity!, clientMutationId: String

Result of the convertOpportunity mutation.

FieldTypeDescription
opportunityOpportunityEntity!The created record.
clientMutationIdStringOptional 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).
CreateOpportunityPayload object opportunity: OpportunityEntity, clientMutationId: String

Result of the createOpportunity mutation.

FieldTypeDescription
opportunityOpportunityEntityThe created record.
clientMutationIdStringOptional 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).
DeleteOpportunityPayload object opportunity: OpportunityEntity, clientMutationId: String

Result of the deleteOpportunity mutation.

FieldTypeDescription
opportunityOpportunityEntityThe deleted record.
clientMutationIdStringOptional 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).
ManageSharingOpportunityPayload object result: OpportunityEntity, clientMutationId: String

Result of the manageSharingOpportunity mutation.

FieldTypeDescription
resultOpportunityEntityThe record with its updated sharing.
clientMutationIdStringOptional 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).
MoveOpportunityPayload object result: OpportunityEntity, clientMutationId: String

Result of the moveOpportunity mutation.

FieldTypeDescription
resultOpportunityEntityThe moved opportunity.
clientMutationIdStringOptional 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).
RestoreOpportunityPayload object result: OpportunityEntity, clientMutationId: String

Result of the restoreOpportunity mutation.

FieldTypeDescription
resultOpportunityEntityThe restored record.
clientMutationIdStringOptional 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).
UpdateOpportunityPayload object opportunity: OpportunityEntity, clientMutationId: String

Result of the updateOpportunity mutation.

FieldTypeDescription
opportunityOpportunityEntityThe updated record.
clientMutationIdStringOptional 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).
OpportunityAutoPrefill object entity: OpportunityEntity, fieldIds: [UUID!]!

New, unsaved opportunity pre-filled with the values of an AI suggestion, with the ids of the fields that were filled in.

FieldTypeDescription
entityOpportunityEntityNew opportunity carrying the pre-filled values; it is not saved.
fieldIds[UUID!]!Ids of the fields that were filled in.
OpptyStatusEnum enum Open, Lost, Won

Status of an opportunity.

ValueDescription
OpenThe opportunity is active in the pipeline.
LostThe opportunity was archived without being won.
WonThe opportunity reached the last step of its pipeline.