> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# BulkDeleteContactTaxDetails

# Package: tax

# Namespace: ContactTaxDetailsService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/bulk-delete-contact-tax-details.md

## Permission Scopes:
Manage Orders: SCOPE.DC-STORES.MANAGE-ORDERS

## Introduction

Deletes the tax details of multiple contacts in a single request.

To delete tax details for a single contact, call [Delete Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/delete-contact-tax-details.md).

---

## REST API

### Schema

```
 Method: bulkDeleteContactTaxDetails
 Description: Deletes the tax details of multiple contacts in a single request.  To delete tax details for a single contact, call [Delete Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/delete-contact-tax-details.md).
 URL: https://www.wixapis.com/billing/v1/bulk/contact-tax-details/delete
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  contactTaxDetailsIds
 Method parameters: 
   param name: contactTaxDetailsIds | type: array<contactTaxDetailsIds> | description: IDs of the contacts whose tax details to delete. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: BulkDeleteContactTaxDetailsResponse
  - name: results | type: array<BulkContactTaxDetailsResult> | description: Results of the bulk delete operation.  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata for the single delete operation.  
        - name: id | type: string | description: Item GUID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  | validation: minimum 0
        - name: success | type: boolean | description: Whether the requested action for this item was successful. When `false`, the `error` field is returned.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
  - name: bulkActionMetadata | type: BulkActionMetadata | description: Bulk delete operation metadata.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  | validation: minimum 0
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  | validation: minimum 0
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  | validation: minimum 0


```

### Examples

### Bulk Delete Contact Tax Details
Deletes the tax details of multiple contacts in a single request.

```curl
curl -X POST \
    'https://www.wixapis.com/billing/v1/bulk/contact-tax-details/delete' \
    -H 'Authorization: <AUTH>' \
    -H 'Content-Type: application/json' \
    -d '{
    "contactTaxDetailsIds": [
      "f1c3e2a0-1b2c-4d5e-8f90-1a2b3c4d5e6f",
      "a2b4d6e8-2c3d-4e5f-9a01-2b3c4d5e6f70"
    ]
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.ecom.contactTaxDetails.bulkDeleteContactTaxDetails(contactTaxDetailsIds)
 Description: Deletes the tax details of multiple contacts in a single request.  To delete tax details for a single contact, call [Delete Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/delete-contact-tax-details.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  contactTaxDetailsIds
 Method parameters: 
   param name: contactTaxDetailsIds | type: array<array> | description: IDs of the contacts whose tax details to delete. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: PROMISE<BulkDeleteContactTaxDetailsResponse>
  - name: results | type: array<BulkContactTaxDetailsResult> | description: Results of the bulk delete operation.  | validation: minItems 1, maxItems 100
     - name: itemMetadata | type: ItemMetadata | description: Metadata for the single delete operation.  
        - name: _id | type: string | description: Item GUID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.  | validation: format GUID
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  | validation: minimum 0
        - name: success | type: boolean | description: Whether the requested action for this item was successful. When `false`, the `error` field is returned.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
  - name: bulkActionMetadata | type: BulkActionMetadata | description: Bulk delete operation metadata.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  | validation: minimum 0
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  | validation: minimum 0
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  | validation: minimum 0


```

### Examples

### bulkDeleteContactTaxDetails
```javascript
import { contactTaxDetails } from '@wix/ecom';

async function bulkDeleteContactTaxDetails(contactTaxDetailsIds) {
  const response = await contactTaxDetails.bulkDeleteContactTaxDetails(contactTaxDetailsIds);
};
```

### bulkDeleteContactTaxDetails (with elevated permissions)
```javascript
import { contactTaxDetails } from '@wix/ecom';
import { auth } from '@wix/essentials';

async function myBulkDeleteContactTaxDetailsMethod(contactTaxDetailsIds) {
  const elevatedBulkDeleteContactTaxDetails = auth.elevate(contactTaxDetails.bulkDeleteContactTaxDetails);
  const response = await elevatedBulkDeleteContactTaxDetails(contactTaxDetailsIds);
}
```

### bulkDeleteContactTaxDetails (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { contactTaxDetails } from '@wix/ecom';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { contactTaxDetails },
  // Include the auth strategy and host as relevant
});


async function bulkDeleteContactTaxDetails(contactTaxDetailsIds) {
  const response = await myWixClient.contactTaxDetails.bulkDeleteContactTaxDetails(contactTaxDetailsIds);
};
```

---