All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Method | HTTP request | Description |
---|---|---|
finance_agreements_count_get | GET /finance/agreements/count | |
finance_agreements_get | GET /finance/agreements | |
finance_agreements_id_configurations_configuration_id_delete | DELETE /finance/agreements/{id}/configurations/{configurationId} | |
finance_agreements_id_configurations_configuration_id_get | GET /finance/agreements/{id}/configurations/{configurationId} | |
finance_agreements_id_configurations_count_get | GET /finance/agreements/{id}/configurations/count | |
finance_agreements_id_configurations_get | GET /finance/agreements/{id}/configurations | |
finance_agreements_id_configurations_post | POST /finance/agreements/{id}/configurations | |
finance_agreements_id_delete | DELETE /finance/agreements/{id} | |
finance_agreements_id_get | GET /finance/agreements/{id} | |
finance_agreements_id_patch | PATCH /finance/agreements/{id} | |
finance_agreements_id_put | PUT /finance/agreements/{id} | |
finance_agreements_post | POST /finance/agreements |
Count finance_agreements_count_get(opts)
Get Agreements 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::AgreementsApi.new
opts = {
conditions: "conditions_example" # String |
custom_field_conditions: "custom_field_conditions_example" # String |
}
begin
result = api_instance.finance_agreements_count_get(opts)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_count_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
conditions | String | [optional] | |
custom_field_conditions | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Array<Agreement> finance_agreements_get(opts)
Get Agreements
# 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::AgreementsApi.new
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.finance_agreements_get(opts)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
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
finance_agreements_id_configurations_configuration_id_delete(id, configuration_id)
Delete Configuration Association
# 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::AgreementsApi.new
id = 56 # Integer |
configuration_id = 56 # Integer |
begin
api_instance.finance_agreements_id_configurations_configuration_id_delete(id, configuration_id)
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_configurations_configuration_id_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
configuration_id | Integer |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ConfigurationReference finance_agreements_id_configurations_configuration_id_get(id, configuration_id)
Get Configuration Association
# 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::AgreementsApi.new
id = 56 # Integer |
configuration_id = 56 # Integer |
begin
result = api_instance.finance_agreements_id_configurations_configuration_id_get(id, configuration_id)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_configurations_configuration_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
configuration_id | Integer |
- Content-Type: Not defined
- Accept: application/json
Count finance_agreements_id_configurations_count_get(id)
Get Agreement Configurations 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::AgreementsApi.new
id = 56 # Integer |
begin
result = api_instance.finance_agreements_id_configurations_count_get(id)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_configurations_count_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
- Content-Type: Not defined
- Accept: application/json
Array<ConfigurationReference> finance_agreements_id_configurations_get(id, opts)
Get Agreement Configurations
# 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::AgreementsApi.new
id = 56 # Integer |
opts = {
page: 56, # Integer |
page_size: 56 # Integer |
}
begin
result = api_instance.finance_agreements_id_configurations_get(id, opts)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_configurations_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
page | Integer | [optional] | |
page_size | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json
ConfigurationReference finance_agreements_id_configurations_post(id, configuration)
Create Configuration Association
# 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::AgreementsApi.new
id = 56 # Integer |
configuration = ConnectWise::ConfigurationReference.new # ConfigurationReference |
begin
result = api_instance.finance_agreements_id_configurations_post(id, configuration)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_configurations_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
configuration | ConfigurationReference |
- Content-Type: application/json
- Accept: application/json
finance_agreements_id_delete(id)
Delete Agreement 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::AgreementsApi.new
id = 56 # Integer |
begin
api_instance.finance_agreements_id_delete(id)
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Agreement finance_agreements_id_get(id)
Get Agreement 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::AgreementsApi.new
id = 56 # Integer |
begin
result = api_instance.finance_agreements_id_get(id)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
- Content-Type: Not defined
- Accept: application/json
Agreement finance_agreements_id_patch(id, operations)
Update Agreement
# 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::AgreementsApi.new
id = 56 # Integer |
operations = [ConnectWise::PatchOperation.new] # Array<PatchOperation> |
begin
result = api_instance.finance_agreements_id_patch(id, operations)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_patch: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
operations | Array<PatchOperation> |
- Content-Type: application/json
- Accept: application/json
Agreement finance_agreements_id_put(id, agreement)
Replace Agreement
# 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::AgreementsApi.new
id = 56 # Integer |
agreement = ConnectWise::Agreement.new # Agreement |
begin
result = api_instance.finance_agreements_id_put(id, agreement)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
agreement | Agreement |
- Content-Type: application/json
- Accept: application/json
Agreement finance_agreements_post(agreement)
Create Agreement
# 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::AgreementsApi.new
agreement = ConnectWise::Agreement.new # Agreement |
begin
result = api_instance.finance_agreements_post(agreement)
p result
rescue ConnectWise::ApiError => e
puts "Exception when calling AgreementsApi->finance_agreements_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
agreement | Agreement |
- Content-Type: application/json
- Accept: application/json