All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Method | HTTP request | Description |
---|---|---|
finance_invoices_id_payments_get | GET /finance/invoices/{id}/payments | |
finance_invoices_id_payments_payment_id_delete | DELETE /finance/invoices/{id}/payments/{paymentId} | |
finance_invoices_id_payments_payment_id_get | GET /finance/invoices/{id}/payments/{paymentId} | |
finance_invoices_id_payments_payment_id_patch | PATCH /finance/invoices/{id}/payments/{paymentId} | |
finance_invoices_id_payments_payment_id_put | PUT /finance/invoices/{id}/payments/{paymentId} | |
finance_invoices_id_payments_post | POST /finance/invoices/{id}/payments |
Array<Payment> finance_invoices_id_payments_get(id, opts)
Get Payments
# 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::InvoicePaymentsApi.new
id = 56 # Integer |
opts = {
conditions: "conditions_example" # String |
order_by: "order_by_example", # String |
page: 56, # Integer |
page_size: 56 # Integer |
}
begin
result = api_instance.finance_invoices_id_payments_get(id, opts)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling InvoicePaymentsApi->finance_invoices_id_payments_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
conditions | String | [optional] | |
order_by | String | [optional] | |
page | Integer | [optional] | |
page_size | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json
finance_invoices_id_payments_payment_id_delete(id, payment_id)
Delete Payment 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::InvoicePaymentsApi.new
id = 56 # Integer |
payment_id = 56 # Integer |
begin
api_instance.finance_invoices_id_payments_payment_id_delete(id, payment_id)
rescue Connectwise::ApiError => e
puts "Exception when calling InvoicePaymentsApi->finance_invoices_id_payments_payment_id_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
payment_id | Integer |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Payment finance_invoices_id_payments_payment_id_get(id, payment_id)
Get Payment 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::InvoicePaymentsApi.new
id = 56 # Integer |
payment_id = 56 # Integer |
begin
result = api_instance.finance_invoices_id_payments_payment_id_get(id, payment_id)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling InvoicePaymentsApi->finance_invoices_id_payments_payment_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
payment_id | Integer |
- Content-Type: Not defined
- Accept: application/json
Payment finance_invoices_id_payments_payment_id_patch(id, payment_id, operations)
Update Payment
# 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::InvoicePaymentsApi.new
id = 56 # Integer |
payment_id = 56 # Integer |
operations = [Connectwise::PatchOperation.new] # Array<PatchOperation> |
begin
result = api_instance.finance_invoices_id_payments_payment_id_patch(id, payment_id, operations)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling InvoicePaymentsApi->finance_invoices_id_payments_payment_id_patch: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
payment_id | Integer | ||
operations | Array<PatchOperation> |
- Content-Type: application/json
- Accept: application/json
Payment finance_invoices_id_payments_payment_id_put(id, payment_id, payment)
Replace Payment
# 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::InvoicePaymentsApi.new
id = 56 # Integer |
payment_id = 56 # Integer |
payment = Connectwise::Payment.new # Payment |
begin
result = api_instance.finance_invoices_id_payments_payment_id_put(id, payment_id, payment)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling InvoicePaymentsApi->finance_invoices_id_payments_payment_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
payment_id | Integer | ||
payment | Payment |
- Content-Type: application/json
- Accept: application/json
Payment finance_invoices_id_payments_post(id, payment)
Create Payment
# 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::InvoicePaymentsApi.new
id = 56 # Integer |
payment = Connectwise::Payment.new # Payment |
begin
result = api_instance.finance_invoices_id_payments_post(id, payment)
p result
rescue Connectwise::ApiError => e
puts "Exception when calling InvoicePaymentsApi->finance_invoices_id_payments_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
payment | Payment |
- Content-Type: application/json
- Accept: application/json