TaxSettings / Client / get_tax_registration_document

get_tax_registration_document#

TaxSettings.Client.get_tax_registration_document(**kwargs)#

Downloads your tax documents to the Amazon S3 bucket that you specify in your request.

See also: AWS API Documentation

Request Syntax

response = client.get_tax_registration_document(
    destinationS3Location={
        'bucket': 'string',
        'prefix': 'string'
    },
    taxDocumentMetadata={
        'taxDocumentAccessToken': 'string',
        'taxDocumentName': 'string'
    }
)
Parameters:
  • destinationS3Location (dict) –

    [REQUIRED]

    The Amazon S3 bucket that you specify to download your tax documents to.

    • bucket (string) – [REQUIRED]

      The name of your Amazon S3 bucket that you specify to download your tax documents to.

    • prefix (string) –

      The Amazon S3 object prefix that you specify for your tax document file.

  • taxDocumentMetadata (dict) –

    [REQUIRED]

    The metadata for your tax document.

    • taxDocumentAccessToken (string) – [REQUIRED]

      The tax document access token, which contains information that the Tax Settings API uses to locate the tax document.

      Note

      If you update your tax registration, the existing taxDocumentAccessToken won’t be valid. To get the latest token, call the GetTaxRegistration or ListTaxRegistrations API operation. This token is valid for 24 hours.

    • taxDocumentName (string) – [REQUIRED]

      The name of your tax document.

Return type:

dict

Returns:

Response Syntax

{
    'destinationFilePath': 'string'
}

Response Structure

  • (dict) –

    • destinationFilePath (string) –

      The file path of the Amazon S3 bucket where you want to download your tax document to.

Exceptions

  • TaxSettings.Client.exceptions.ValidationException

  • TaxSettings.Client.exceptions.InternalServerException