All URIs are relative to https://tripletex.no/v2
| Method | HTTP request | Description |
|---|---|---|
| delete | DELETE /product/supplierProduct/{id} | [BETA] Delete supplierProduct. |
| get | GET /product/supplierProduct/{id} | Get supplierProduct by ID. |
| post | POST /product/supplierProduct | Create new supplierProduct. |
| post_list | POST /product/supplierProduct/list | Create list of new supplierProduct. |
| put | PUT /product/supplierProduct/{id} | Update supplierProduct. |
| put_list | PUT /product/supplierProduct/list | [BETA] Update a list of supplierProduct. |
| search | GET /product/supplierProduct | Find products corresponding with sent data. |
delete(id)
[BETA] Delete supplierProduct.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::ProductsupplierProductApi.new
id = 56 # Integer | Element ID
begin
#[BETA] Delete supplierProduct.
api_instance.delete(id)
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling ProductsupplierProductApi->delete: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperSupplierProduct get(id, opts)
Get supplierProduct by ID.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::ProductsupplierProductApi.new
id = 56 # Integer | Element ID
opts = {
fields: 'fields_example' # String | Fields filter pattern
}
begin
#Get supplierProduct by ID.
result = api_instance.get(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling ProductsupplierProductApi->get: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| fields | String | Fields filter pattern | [optional] |
ResponseWrapperSupplierProduct
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperSupplierProduct post(opts)
Create new supplierProduct.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::ProductsupplierProductApi.new
opts = {
body: TripletexRubyClient::SupplierProduct.new # SupplierProduct | JSON representing the new object to be created. Should not have ID and version set.
}
begin
#Create new supplierProduct.
result = api_instance.post(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling ProductsupplierProductApi->post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| body | SupplierProduct | JSON representing the new object to be created. Should not have ID and version set. | [optional] |
ResponseWrapperSupplierProduct
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ListResponseSupplierProduct post_list(opts)
Create list of new supplierProduct.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::ProductsupplierProductApi.new
opts = {
body: [TripletexRubyClient::SupplierProduct.new] # Array<SupplierProduct> | JSON representing the new object to be created. Should not have ID and version set.
}
begin
#Create list of new supplierProduct.
result = api_instance.post_list(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling ProductsupplierProductApi->post_list: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| body | Array<SupplierProduct> | JSON representing the new object to be created. Should not have ID and version set. | [optional] |
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ResponseWrapperSupplierProduct put(id, opts)
Update supplierProduct.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::ProductsupplierProductApi.new
id = 56 # Integer | Element ID
opts = {
body: TripletexRubyClient::SupplierProduct.new # SupplierProduct | Partial object describing what should be updated
}
begin
#Update supplierProduct.
result = api_instance.put(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling ProductsupplierProductApi->put: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| body | SupplierProduct | Partial object describing what should be updated | [optional] |
ResponseWrapperSupplierProduct
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ListResponseSupplierProduct put_list(opts)
[BETA] Update a list of supplierProduct.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::ProductsupplierProductApi.new
opts = {
body: [TripletexRubyClient::SupplierProduct.new] # Array<SupplierProduct> | JSON representing updates to object. Should have ID and version set.
}
begin
#[BETA] Update a list of supplierProduct.
result = api_instance.put_list(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling ProductsupplierProductApi->put_list: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| body | Array<SupplierProduct> | JSON representing updates to object. Should have ID and version set. | [optional] |
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ListResponseSupplierProduct search(opts)
Find products corresponding with sent data.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::ProductsupplierProductApi.new
opts = {
product_id: 56, # Integer | Id of product to find supplier products for.
vendor_id: 56, # Integer | Id of vendor to find supplier products for.
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 products corresponding with sent data.
result = api_instance.search(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling ProductsupplierProductApi->search: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| product_id | Integer | Id of product to find supplier products for. | [optional] |
| vendor_id | Integer | Id of vendor to find supplier products for. | [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