TaxSettings / Client / batch_delete_tax_registration

batch_delete_tax_registration#

TaxSettings.Client.batch_delete_tax_registration(**kwargs)#

Deletes tax registration for multiple accounts in batch. This can be used to delete tax registrations for up to five accounts in one batch.

Note

This API operation can’t be used to delete your tax registration in Brazil. Use the Payment preferences page in the Billing and Cost Management console instead.

See also: AWS API Documentation

Request Syntax

response = client.batch_delete_tax_registration(
    accountIds=[
        'string',
    ]
)
Parameters:

accountIds (list) –

[REQUIRED]

List of unique account identifiers.

  • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'errors': [
        {
            'accountId': 'string',
            'code': 'string',
            'message': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • errors (list) –

      The list of errors for the accounts the TRN information could not be deleted for.

      • (dict) –

        The error object for representing failures in the BatchDeleteTaxRegistration operation.

        • accountId (string) –

          The unique account identifier for the account whose tax registration couldn’t be deleted during the BatchDeleteTaxRegistration operation.

        • code (string) –

          The error code for an individual failure in BatchDeleteTaxRegistration operation.

        • message (string) –

          The error message for an individual failure in the BatchDeleteTaxRegistration operation.

Exceptions

  • TaxSettings.Client.exceptions.ValidationException

  • TaxSettings.Client.exceptions.ConflictException

  • TaxSettings.Client.exceptions.InternalServerException