Skip to main content

accountingSales

Lists the active company’s saved invoices and sales receipts.

Business Rules​

  • Deleted sales are excluded. Filters combine and document dates are inclusive.
  • Results use cursor pagination, ordered by document date and ID, newest first.

Error Scenarios​

  • Authentication, an active company, and permission are required.
  • A reversed date range is rejected.

Permissions Required​

  • read_order, the same permission used to read an order’s financials.
accountingSales(
after: String
before: String
filters: AccountingSalesFilterInput
first: Int
last: Int
): AccountingSaleConnection!

Arguments​

accountingSales.after ● String scalar common​

Returns the elements in the list that come after the specified cursor.

accountingSales.before ● String scalar common​

Returns the elements in the list that come before the specified cursor.

accountingSales.filters ● AccountingSalesFilterInput input common​

Filter by type, document dates, customer, channel, order, or accounting sync.

accountingSales.first ● Int scalar common​

Returns the first _n_ elements from the list.

accountingSales.last ● Int scalar common​

Returns the last _n_ elements from the list.

Type​

AccountingSaleConnection object common​

The connection type for AccountingSale.