Module: AvaTax::Client::CommunicationCertificates

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

Instance Method Summary collapse

Instance Method Details

#get_communication_certificate(companyId, certificateId) ⇒ Object

Retrieve a single communication certificate.

Security Policies

  • This API depends on the following active services:Required (all): ECMPremiumComms, ECMProComms. Swagger Name: AvaTaxClient

Parameters:

  • companyId (Integer)

    The ID number of the company to search

  • certificateId (Integer)

    The ID number of the certificate to search

Returns:

  • (Object)


15
16
# File 'lib/avatax/client/communicationcertificates.rb', line 15

def get_communication_certificate(companyId, certificateId)        path = "/companies/#{companyId}/communication-certificates/#{certificateId}"
get(path, {}, AvaTax::VERSION)      end

#list_communication_certificates(companyId, options = {}) ⇒ Object

Retrieve all communication certificates.

List all communication certificates that can be seen by the current user.

This API lists all communication certificates you are allowed to see.

Search for specific objects using the criteria in the $filter parameter; full documentation is available on Filtering in REST . Paginate your results using the $top, $skip, and $orderby parameters. For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ .

Security Policies

  • This API depends on the following active services:Required (all): ECMPremiumComms, ECMProComms. Swagger Name: AvaTaxClient

Parameters:

  • filter (String)

    A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST.
    Not filterable: EffectiveDate, ExpirationDate, TaxNumber, Exemptions

  • 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.

  • companyId (Integer)

    The ID number of the company to search

Returns:

  • (Object)


38
39
# File 'lib/avatax/client/communicationcertificates.rb', line 38

def list_communication_certificates(companyId, options={})        path = "/companies/#{companyId}/communication-certificates"
get(path, options, AvaTax::VERSION)      end