All URIs are relative to http://cloud.na.myconnectwise.net/v4_6_development/apis/3.0
Method | HTTP request | Description |
---|---|---|
patch_finance_closed_invoices_by_id | PATCH /finance/closedInvoices/{id} | Patch ClosedInvoice |
put_finance_closed_invoices_by_id | PUT /finance/closedInvoices/{id} | Put ClosedInvoice |
patch_finance_closed_invoices_by_id(id, client_id, patch_operation)
Patch ClosedInvoice
require 'time'
require 'connect_wise'
api_instance = ConnectWise::ClosedInvoicesApi.new
id = 56 # Integer | closedInvoiceId
client_id = 'client_id_example' # String |
patch_operation = [ConnectWise::PatchOperation.new] # Array<PatchOperation> | List of PatchOperation
begin
# Patch ClosedInvoice
result = api_instance.patch_finance_closed_invoices_by_id(id, client_id, patch_operation)
p result
rescue ConnectWise::ApiError => e
puts "Error when calling ClosedInvoicesApi->patch_finance_closed_invoices_by_id: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> patch_finance_closed_invoices_by_id_with_http_info(id, client_id, patch_operation)
begin
# Patch ClosedInvoice
data, status_code, headers = api_instance.patch_finance_closed_invoices_by_id_with_http_info(id, client_id, patch_operation)
p status_code # => 2xx
p headers # => { ... }
p data # => <ClosedInvoice>
rescue ConnectWise::ApiError => e
puts "Error when calling ClosedInvoicesApi->patch_finance_closed_invoices_by_id_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | closedInvoiceId | |
client_id | String | ||
patch_operation | Array<PatchOperation> | List of PatchOperation |
No authorization required
- Content-Type: application/json
- Accept: application/vnd.connectwise.com+json; version=2022.1
put_finance_closed_invoices_by_id(id, client_id, closed_invoice)
Put ClosedInvoice
require 'time'
require 'connect_wise'
api_instance = ConnectWise::ClosedInvoicesApi.new
id = 56 # Integer | closedInvoiceId
client_id = 'client_id_example' # String |
closed_invoice = ConnectWise::ClosedInvoice.new # ClosedInvoice | closedInvoice
begin
# Put ClosedInvoice
result = api_instance.put_finance_closed_invoices_by_id(id, client_id, closed_invoice)
p result
rescue ConnectWise::ApiError => e
puts "Error when calling ClosedInvoicesApi->put_finance_closed_invoices_by_id: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> put_finance_closed_invoices_by_id_with_http_info(id, client_id, closed_invoice)
begin
# Put ClosedInvoice
data, status_code, headers = api_instance.put_finance_closed_invoices_by_id_with_http_info(id, client_id, closed_invoice)
p status_code # => 2xx
p headers # => { ... }
p data # => <ClosedInvoice>
rescue ConnectWise::ApiError => e
puts "Error when calling ClosedInvoicesApi->put_finance_closed_invoices_by_id_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | closedInvoiceId | |
client_id | String | ||
closed_invoice | ClosedInvoice | closedInvoice |
No authorization required
- Content-Type: application/json
- Accept: application/vnd.connectwise.com+json; version=2022.1