Get tax rate
Returns the details of a single tax rate, even if it is deprecated.
Request
GET /api/oauth/v2/resource/vats/{uuid}
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
URL parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid | string (UUID) | Yes | Unique ID of the tax rate, e.g. from positions[].vat of an invoice |
Required scope: invoices
Response
Success (200 OK)
json
{
"data": {
"id": "3f2a9c1e-7b64-4d58-a0e3-5c1b8d2f6a74",
"name": "Normalsatz",
"abbreviation": "20%",
"symbol": "A",
"country": "AT",
"value": "20.00",
"deprecated": false
}
}Response fields
| Field | Type | Description |
|---|---|---|
data.id | string (UUID) | Unique ID of the tax rate |
data.name | string | Name of the tax rate |
data.abbreviation | string | null | Abbreviation |
data.symbol | string | null | Symbol |
data.country | string | null | Country |
data.value | string | Tax rate in percent with 2 decimal places (e.g. "20.00") |
data.deprecated | boolean | true if the tax rate is deprecated |
Note: This endpoint also returns a deprecated tax rate with
200 OK(fielddata.deprecated=true), not404.
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/vats/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope invoices not present |
| 404 | not_found | Tax rate not found |