:doc:`TaxSettings <../../taxsettings>` / Client / get_tax_registration_document

*****************************
get_tax_registration_document
*****************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/taxsettings-2018-05-10/GetTaxRegistrationDocument>`_  


  **Request Syntax**
  ::

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

    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.

      

    
  
  :type taxDocumentMetadata: dict
  :param taxDocumentMetadata: **[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.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'destinationFilePath': 'string',
          'presignedS3Url': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **destinationFilePath** *(string) --* 

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

        
      

      - **presignedS3Url** *(string) --* 

        The Amazon S3 presigned URL of the tax registration document.

        
  
  **Exceptions**
  
  *   :py:class:`TaxSettings.Client.exceptions.ValidationException`

  
  *   :py:class:`TaxSettings.Client.exceptions.InternalServerException`

  