OBJECT

CoreInvoice

A Sonar invoice.

link GraphQL Schema definition

  • type CoreInvoice implements LoggableInterface {
  • # The ID of the entity.
  • id: Int64Bit!
  • # An ID that uniquely identifies this entity across the whole Sonar system.
  • sonar_unique_id: ID!
  • # The date and time this entity was created.
  • created_at: Datetime!
  • # The last date and time this entity was modified.
  • updated_at: Datetime!
  • # A string that shows the version of this entity. It will be incremented whenever
  • # the entity is modified.
  • _version: String!
  • # The ID of an Account.
  • account_id: Int64Bit!
  • # The number of times that auto pay has been attempted.
  • auto_pay_attempts: Int!
  • # The date that auto pay will be attempted.
  • auto_pay_date: Date
  • # The sum of all due amounts on child invoices.
  • child_invoice_remaining_due: Int!
  • # The ID of the company that this entity operates under.
  • company_id: Int64Bit!
  • # A date
  • date: Date!
  • # The date that this became delinquent.
  • delinquency_date: Date
  • # Whether or not this entity is delinquent.
  • delinquent: Boolean!
  • # The date this invoice is due by.
  • due_date: Date!
  • # The date that this ends.
  • end_date: Date!
  • # If an invoice is frozen, payments will not be automatically applied to it, and
  • # it cannot be modified.
  • frozen: Boolean!
  • # Whether or not a late fee has been applied.
  • late_fee_applied: Boolean!
  • # The message.
  • message: Text
  • # The number of months of service this invoice was billed for.
  • number_of_months: Int!
  • # The ID of the `Invoice` that is this `Invoice`s master.
  • parent_invoice_id: Int64Bit
  • # The amount remaining to be paid.
  • remaining_due: Int!
  • # The sum of all debits that make up this invoice.
  • total_debits: Int!
  • # The sum of all taxes on debits that make up this invoice.
  • total_taxes: Int!
  • # Whether or not this entity has been voided.
  • void: Boolean!
  • # When this was voided.
  • voided_at: Datetime
  • # A log entry.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # current: Current data.
  • # legacy: Whether or not this log was transferred from a Sonar v1
  • # instance. If so, the formatting will not match current version logs.
  • # legacy_title: A title which is only populated on logs that were
  • # imported from Sonar v1.
  • # level: The severity level.
  • # loggable_id: The ID of the entity that this log is attached to.
  • # loggable_type: The type of entity that this log is attached to.
  • # logged_entity_id: The entity ID that triggered the log.
  • # logged_entity_type: The entity that triggered the log.
  • # message: The message.
  • # previous: Previous data.
  • # relation_data: Data from objects related to this change.
  • # type: The type.
  • # user_id: The ID of a User.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • logs(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • current: Text,
  • legacy: Boolean,
  • legacy_title: String,
  • level: LogLevel,
  • loggable_id: Int64Bit,
  • loggable_type: String,
  • logged_entity_id: Int64Bit,
  • logged_entity_type: String,
  • message: Text,
  • previous: Text,
  • relation_data: Text,
  • type: LogType,
  • user_id: Int64Bit,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): LogConnection!
  • }