> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commenda.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update jurisdiction exemption

> Update an existing jurisdiction exemption

Updates specific fields of a jurisdiction exemption. At least one field must be provided for update.

<ParamField path="exemption_certificate_id" type="string" required>
  The unique identifier of the exemption certificate.
</ParamField>

<ParamField path="jurisdiction" type="string" required>
  The jurisdiction identifier in the format `{country}_{state}` (e.g., "US\_CA" for California).
</ParamField>

<ParamField body="reason" type="string">
  The reason for the exemption. Valid values:

  * `PURPOSE_RESALE`
  * `ENTITY_TYPE_NON_PROFIT`
  * `GOVERNMENT`
  * `MANUFACTURER`
  * `AGRICULTURAL`
  * `OTHER`
</ParamField>

<ParamField body="identification_type" type="string">
  The type of identification for the exemption.
</ParamField>

<ParamField body="identification_number" type="string">
  The identification number for the exemption.
</ParamField>

<ParamField body="end_date" type="string">
  The end date of the exemption in ISO 8601 format (YYYY-MM-DD).
</ParamField>

<ParamField body="is_active" type="boolean">
  Whether the exemption is active.
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Successfully updated exemption."
  }
  ```

  ```json 400 theme={null}
  {
    "error": {
      "code": "INVALID_REQUEST_BODY",
      "message": "At least one field must be provided for update"
    }
  }
  ```

  ```json 404 theme={null}
  {
    "error": {
      "code": "EXEMPTION_NOT_FOUND",
      "message": "Exemption not found for the specified jurisdiction"
    }
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/US_CA' \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "reason": "PURPOSE_RESALE",
      "is_active": true
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/US_CA', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer <token>',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      reason: 'PURPOSE_RESALE',
      is_active: true
    })
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
    'https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/US_CA',
    headers={'Authorization': 'Bearer <token>'},
    json={
      'reason': 'PURPOSE_RESALE',
      'is_active': True
    }
  )

  data = response.json()
  ```
</RequestExample>
