---
title: "companyLocationAssignTaxExemptions"
description: "Set up company location designated tax exemption"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-location-assign-tax-exemptions'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-location-assign-tax-exemptions.md'
---
# companyLocationAssignTaxExemptions

Set up company location designated tax exemption

- **Required Scopes:** `write_customers`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`CompanyLocationAssignTaxExemptionsPayload`

## Required Permissions

* `write_customers`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `taxExemptions`

  [[FreeAreasInput!]](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/inputs/free-areas-input.md)

  List of tax-free areas where the company is located

* `companyLocationId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The location ID

## Returns

* `companyLocation`

  [CompanyLocation](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-location.md)

  The updated company location.

* `userErrors`

  [[BusinessCustomerUserError]](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/business-customer-user-error.md)

  error message

## Code Example

```graphql
mutation companyLocationAssignTaxExemptions($taxExemptions: [FreeAreasInput!] $companyLocationId: ID! ) {
	companyLocationAssignTaxExemptions(taxExemptions: $taxExemptions, companyLocationId: $companyLocationId ) 
		 {
			# CompanyLocationAssignTaxExemptionsPayload fields
		}
		
	}

```

## Variables

```json
{
  "companyLocationId": {},
  "taxExemptions": {
    "countryCode": {},
    "provinceGCodeList": {}
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

