@@ -22354,13 +22354,6 @@ paths:
22354
22354
example: "Name ASC"
22355
22355
schema:
22356
22356
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
22364
22357
responses:
22365
22358
'200':
22366
22359
description: Success - return response of type TaxRates array with TaxRates
@@ -22752,6 +22745,54 @@ paths:
22752
22745
}
22753
22746
]
22754
22747
}'
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
+ }'
22755
22796
/TrackingCategories:
22756
22797
parameters:
22757
22798
- $ref: '#/components/parameters/requiredHeader'
@@ -23669,6 +23710,14 @@ components:
23669
23710
schema:
23670
23711
type: string
23671
23712
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
23672
23721
responses:
23673
23722
400Error:
23674
23723
description: A failed request due to validation error
0 commit comments