# A vehicle's VAT use for a year

Source: https://amanucci.com/fr/docs/developers/api/settings/getVehicleVatUse

## GET /v1/entities/{entityId}/vehicles/{plate}/vat-use/{year}

A vehicle's VAT use for a year

A vehicle's VAT use for a calendar year as of a date (default: that year's last day): the method that sets its business use and that method's inputs. 404 when none is set: a cost of that vehicle in that year refuses to a case.

Operation ID: `getVehicleVatUse`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "minLength": 2,
      "maxLength": 20,
      "description": "The plate, as printed: separators and case are ignored (`1-abc-234` is `1ABC234`)."
    },
    "required": true,
    "description": "The plate, as printed: separators and case are ignored (`1-abc-234` is `1ABC234`).",
    "name": "plate",
    "in": "path"
  },
  {
    "schema": {
      "type": "integer",
      "minimum": 1971,
      "maximum": 9999,
      "description": "The calendar year."
    },
    "required": true,
    "description": "The calendar year.",
    "name": "year",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "date",
      "description": "The date to read the head AS OF (the decision-date rule the run uses). Absent: the rows current at the server's today."
    },
    "required": false,
    "description": "The date to read the head AS OF (the decision-date rule the run uses). Absent: the rows current at the server's today.",
    "name": "asOf",
    "in": "query"
  }
]
```

### Responses

#### 200 The head in force.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/VehicleVatUseRead"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
