All URIs are relative to https://tripletex.no/v2
Method | HTTP request | Description |
---|---|---|
get | GET /ledger/vatType/{id} | Get vat type by ID. |
search | GET /ledger/vatType | Find vat types corresponding with sent data. |
ResponseWrapperVatType get(id, opts)
Get vat type by ID.
# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = TripletexApi::LedgervatTypeApi.new
id = 56 # Integer | Element ID
opts = {
fields: "fields_example" # String | Fields filter pattern
}
begin
#Get vat type by ID.
result = api_instance.get(id, opts)
p result
rescue TripletexApi::ApiError => e
puts "Exception when calling LedgervatTypeApi->get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID | |
fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ListResponseVatType search(opts)
Find vat types corresponding with sent data.
# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = TripletexApi::LedgervatTypeApi.new
opts = {
id: "id_example", # String | List of IDs
number: "number_example", # String | List of IDs
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: "sorting_example", # String | Sorting pattern
fields: "fields_example" # String | Fields filter pattern
}
begin
#Find vat types corresponding with sent data.
result = api_instance.search(opts)
p result
rescue TripletexApi::ApiError => e
puts "Exception when calling LedgervatTypeApi->search: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | List of IDs | [optional] |
number | String | List of IDs | [optional] |
from | Integer | From index | [optional] [default to 0] |
count | Integer | Number of elements to return | [optional] [default to 1000] |
sorting | String | Sorting pattern | [optional] |
fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined