@@ -22354,13 +22354,6 @@ paths:
2235422354 example: "Name ASC"
2235522355 schema:
2235622356 type: string
22357- - in: query
22358- name: TaxType
22359- x-snake: tax_type
22360- description: Filter by tax type
22361- example: "INPUT"
22362- schema:
22363- type: string
2236422357 responses:
2236522358 '200':
2236622359 description: Success - return response of type TaxRates array with TaxRates
@@ -22752,6 +22745,54 @@ paths:
2275222745 }
2275322746 ]
2275422747 }'
22748+ "/TaxRates/{TaxType}":
22749+ parameters:
22750+ - $ref: "#/components/parameters/requiredHeader"
22751+ get:
22752+ security:
22753+ - OAuth2: [accounting.settings, accounting.settings.read]
22754+ tags:
22755+ - Accounting
22756+ operationId: getTaxRateByTaxType
22757+ summary: Retrieves a specific tax rate according to given TaxType code
22758+ parameters:
22759+ - $ref: "#/components/parameters/TaxType"
22760+ responses:
22761+ "200":
22762+ description: Success - return response of type TaxRates array with one TaxRate
22763+ content:
22764+ application/json:
22765+ schema:
22766+ $ref: "#/components/schemas/TaxRates"
22767+ example: '{
22768+ "Id": "455d494d-9706-465b-b584-7086ca406b27",
22769+ "Status": "OK",
22770+ "ProviderName": "Xero API Partner",
22771+ "DateTimeUTC": "\/Date(1550797359081)\/",
22772+ "TaxRates": [
22773+ {
22774+ "Name": "15% GST on Expenses",
22775+ "TaxType": "INPUT2",
22776+ "ReportTaxType": "INPUT",
22777+ "CanApplyToAssets": true,
22778+ "CanApplyToEquity": true,
22779+ "CanApplyToExpenses": true,
22780+ "CanApplyToLiabilities": true,
22781+ "CanApplyToRevenue": false,
22782+ "DisplayTaxRate": 15.0000,
22783+ "EffectiveRate": 15.0000,
22784+ "Status": "ACTIVE",
22785+ "TaxComponents": [
22786+ {
22787+ "Name": "GST",
22788+ "Rate": 15.0000,
22789+ "IsCompound": false,
22790+ "IsNonRecoverable": false
22791+ }
22792+ ]
22793+ }
22794+ ]
22795+ }'
2275522796 /TrackingCategories:
2275622797 parameters:
2275722798 - $ref: '#/components/parameters/requiredHeader'
@@ -23669,6 +23710,14 @@ components:
2366923710 schema:
2367023711 type: string
2367123712 format: uuid
23713+ TaxType:
23714+ required: true
23715+ in: path
23716+ name: TaxType
23717+ description: A valid TaxType code
23718+ example: "INPUT2"
23719+ schema:
23720+ type: string
2367223721 responses:
2367323722 400Error:
2367423723 description: A failed request due to validation error
0 commit comments