All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Method | HTTP request | Description |
---|---|---|
procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_delete | DELETE /procurement/pricingschedules/{schedId}/details/{detailId}/breaks/{breakId} | |
procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_get | GET /procurement/pricingschedules/{schedId}/details/{detailId}/breaks/{breakId} | |
procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_patch | PATCH /procurement/pricingschedules/{schedId}/details/{detailId}/breaks/{breakId} | |
procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_put | PUT /procurement/pricingschedules/{schedId}/details/{detailId}/breaks/{breakId} | |
procurement_pricingschedules_sched_id_details_detail_id_breaks_count_get | GET /procurement/pricingschedules/{schedId}/details/{detailId}/breaks/count | |
procurement_pricingschedules_sched_id_details_detail_id_breaks_get | GET /procurement/pricingschedules/{schedId}/details/{detailId}/breaks | |
procurement_pricingschedules_sched_id_details_detail_id_breaks_post | POST /procurement/pricingschedules/{schedId}/details/{detailId}/breaks |
procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_delete(sched_id, detail_id, break_id)
Delete Pricing Break By Id
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ConnectWise::PricingBreaksApi.new
sched_id = 56 # Integer |
detail_id = 56 # Integer |
break_id = 56 # Integer |
begin
api_instance.procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_delete(sched_id, detail_id, break_id)
rescue ConnectWise::ApiError => e
puts "Exception when calling PricingBreaksApi->procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sched_id | Integer | ||
detail_id | Integer | ||
break_id | Integer |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
PricingBreak procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_get(sched_id, detail_id, break_id)
Get Pricing Break By Id
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ConnectWise::PricingBreaksApi.new
sched_id = 56 # Integer |
detail_id = 56 # Integer |
break_id = 56 # Integer |
begin
result = api_instance.procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_get(sched_id, detail_id, break_id)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling PricingBreaksApi->procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sched_id | Integer | ||
detail_id | Integer | ||
break_id | Integer |
- Content-Type: Not defined
- Accept: application/json
PricingBreak procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_patch(sched_id, detail_id, break_id, operations)
Update Pricing Break
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ConnectWise::PricingBreaksApi.new
sched_id = 56 # Integer |
detail_id = 56 # Integer |
break_id = 56 # Integer |
operations = [ConnectWise::PatchOperation.new] # Array<PatchOperation> |
begin
result = api_instance.procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_patch(sched_id, detail_id, break_id, operations)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling PricingBreaksApi->procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_patch: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sched_id | Integer | ||
detail_id | Integer | ||
break_id | Integer | ||
operations | Array<PatchOperation> |
- Content-Type: application/json
- Accept: application/json
PricingBreak procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_put(sched_id, detail_id, break_id, pricing_break)
Replace Pricing Break
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ConnectWise::PricingBreaksApi.new
sched_id = 56 # Integer |
detail_id = 56 # Integer |
break_id = 56 # Integer |
pricing_break = ConnectWise::PricingBreak.new # PricingBreak |
begin
result = api_instance.procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_put(sched_id, detail_id, break_id, pricing_break)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling PricingBreaksApi->procurement_pricingschedules_sched_id_details_detail_id_breaks_break_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sched_id | Integer | ||
detail_id | Integer | ||
break_id | Integer | ||
pricing_break | PricingBreak |
- Content-Type: application/json
- Accept: application/json
Count procurement_pricingschedules_sched_id_details_detail_id_breaks_count_get(sched_id, detail_id, opts)
Get Pricing Break Count
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ConnectWise::PricingBreaksApi.new
sched_id = 56 # Integer |
detail_id = 56 # Integer |
opts = {
conditions: "conditions_example" # String |
}
begin
result = api_instance.procurement_pricingschedules_sched_id_details_detail_id_breaks_count_get(sched_id, detail_id, opts)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling PricingBreaksApi->procurement_pricingschedules_sched_id_details_detail_id_breaks_count_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sched_id | Integer | ||
detail_id | Integer | ||
conditions | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Array<PricingBreak> procurement_pricingschedules_sched_id_details_detail_id_breaks_get(sched_id, detail_id, opts)
Get Pricing Break
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ConnectWise::PricingBreaksApi.new
sched_id = 56 # Integer |
detail_id = 56 # Integer |
opts = {
conditions: "conditions_example" # String |
order_by: "order_by_example", # String |
childconditions: "childconditions_example", # String |
customfieldconditions: "customfieldconditions_example", # String |
page: 56, # Integer |
page_size: 56 # Integer |
}
begin
result = api_instance.procurement_pricingschedules_sched_id_details_detail_id_breaks_get(sched_id, detail_id, opts)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling PricingBreaksApi->procurement_pricingschedules_sched_id_details_detail_id_breaks_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sched_id | Integer | ||
detail_id | Integer | ||
conditions | String | [optional] | |
order_by | String | [optional] | |
childconditions | String | [optional] | |
customfieldconditions | String | [optional] | |
page | Integer | [optional] | |
page_size | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json
PricingBreak procurement_pricingschedules_sched_id_details_detail_id_breaks_post(sched_id, detail_id, pricing_break)
Create Pricing Break
# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
ConnectWise.configure do |config|
# Configure HTTP basic authorization: BasicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ConnectWise::PricingBreaksApi.new
sched_id = 56 # Integer |
detail_id = 56 # Integer |
pricing_break = ConnectWise::PricingBreak.new # PricingBreak |
begin
result = api_instance.procurement_pricingschedules_sched_id_details_detail_id_breaks_post(sched_id, detail_id, pricing_break)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling PricingBreaksApi->procurement_pricingschedules_sched_id_details_detail_id_breaks_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sched_id | Integer | ||
detail_id | Integer | ||
pricing_break | PricingBreak |
- Content-Type: application/json
- Accept: application/json