Method: AvaTax::Client::GLAccount#list_g_l_accounts_by_company

Defined in:
lib/avatax/client/glaccount.rb

#list_g_l_accounts_by_company(companyid, options = {}) ⇒ FetchResult

Retrieve GL accounts for this company

Retrieves a list of GL accounts attached to this company. You can apply filters to retrieve specific records. Swagger Name: AvaTaxClient

Parameters:

  • companyid (Integer)

    The ID of the company that owns these GL accounts

  • filter (String)

    A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST.
    Not filterable: companyId, meta, defaultItem

  • include (String)

    A comma separated list of objects to fetch underneath this company. Any object with a URL path underneath this company can be fetched by specifying its name.

  • top (Integer)

    If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.

  • skip (Integer)

    If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.

  • orderBy (String)

    A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC.

Returns:

  • (FetchResult)


59
60
# File 'lib/avatax/client/glaccount.rb', line 59

def list_g_l_accounts_by_company(companyid, options={})        path = "/api/v2/companies/#{companyid}/glaccounts"
get(path, options, AvaTax::VERSION)      end