# Buildium::OwnershipAccountTransactionsApi All URIs are relative to *https://api.buildium.com* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**create_ownership_account_auto_allocated_payment**](OwnershipAccountTransactionsApi.md#create_ownership_account_auto_allocated_payment) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/autoallocatedpayments | Create a payment (auto allocated) | | [**create_ownership_account_credit**](OwnershipAccountTransactionsApi.md#create_ownership_account_credit) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/credits | Create a credit | | [**create_ownership_account_credit_recurring_transaction**](OwnershipAccountTransactionsApi.md#create_ownership_account_credit_recurring_transaction) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/recurringcredits | Create a recurring credit | | [**create_ownership_account_deposit_withholding**](OwnershipAccountTransactionsApi.md#create_ownership_account_deposit_withholding) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/applieddeposits | Create a deposit withholding | | [**create_ownership_account_ledger_charge**](OwnershipAccountTransactionsApi.md#create_ownership_account_ledger_charge) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/charges | Create a charge | | [**create_ownership_account_ledger_payment**](OwnershipAccountTransactionsApi.md#create_ownership_account_ledger_payment) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/payments | Create a payment | | [**create_ownership_account_recurring_payment**](OwnershipAccountTransactionsApi.md#create_ownership_account_recurring_payment) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/recurringpayments | Create a recurring payment | | [**create_ownership_account_refund**](OwnershipAccountTransactionsApi.md#create_ownership_account_refund) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/refunds | Create a refund | | [**create_ownership_accounts_charge_recurring_transaction**](OwnershipAccountTransactionsApi.md#create_ownership_accounts_charge_recurring_transaction) | **POST** /v1/associations/ownershipaccounts/{ownershipAccountId}/recurringcharges | Create a recurring charge | | [**get_association_recurring_transaction**](OwnershipAccountTransactionsApi.md#get_association_recurring_transaction) | **GET** /v1/associations/ownershipaccounts/{ownershipAccountId}/recurringtransactions | Retrieve all recurring transactions | | [**get_ownership_account_ledger**](OwnershipAccountTransactionsApi.md#get_ownership_account_ledger) | **GET** /v1/associations/ownershipaccounts/{ownershipAccountId}/transactions | Retrieve all transactions | | [**get_ownership_account_outstanding_balances**](OwnershipAccountTransactionsApi.md#get_ownership_account_outstanding_balances) | **GET** /v1/associations/ownershipaccounts/outstandingbalances | Retrieve all outstanding balances | | [**get_ownership_account_recurring_credit_by_id**](OwnershipAccountTransactionsApi.md#get_ownership_account_recurring_credit_by_id) | **GET** /v1/associations/ownershipaccounts/{ownershipAccountId}/recurringcredits/{transactionId} | Retrieve a recurring credit | | [**get_ownership_account_refund_by_id**](OwnershipAccountTransactionsApi.md#get_ownership_account_refund_by_id) | **GET** /v1/associations/ownershipaccounts/{ownershipAccountId}/refunds/{refundId} | Retrieve a refund | | [**get_ownership_account_transaction_by_id**](OwnershipAccountTransactionsApi.md#get_ownership_account_transaction_by_id) | **GET** /v1/associations/ownershipaccounts/{ownershipAccountId}/transactions/{transactionId} | Retrieve a transaction | | [**get_ownership_accounts_charge_recurring_transaction_by_id**](OwnershipAccountTransactionsApi.md#get_ownership_accounts_charge_recurring_transaction_by_id) | **GET** /v1/associations/ownershipaccounts/{ownershipAccountId}/recurringcharges/{transactionId} | Retrieve a recurring charge | | [**get_recurring_ownership_account_payments_by_id**](OwnershipAccountTransactionsApi.md#get_recurring_ownership_account_payments_by_id) | **GET** /v1/associations/ownershipaccounts/{ownershipAccountId}/recurringpayments/{paymentId} | Retrieve a recurring payment | | [**update_ownership_account_charge**](OwnershipAccountTransactionsApi.md#update_ownership_account_charge) | **PUT** /v1/associations/ownershipaccounts/{ownershipAccountId}/charges/{chargeId} | Update a charge | | [**update_ownership_account_ledger_payment**](OwnershipAccountTransactionsApi.md#update_ownership_account_ledger_payment) | **PUT** /v1/associations/ownershipaccounts/{ownershipAccountId}/payments/{paymentId} | Update a payment | ## create_ownership_account_auto_allocated_payment > create_ownership_account_auto_allocated_payment(ownership_account_id, ownership_account_auto_allocated_payment_post_message) Create a payment (auto allocated) Creates a payment on the ownership account ledger. Note that the recorded payment will be automatically allocated to the general ledger accounts based on the payment allocation settings. These settings can be found under the Settings > Application Settings > Residents page in your account. If you'd like to specify the general ledger accounts the payment should apply to, please use the Create a payment endpoint.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | ownership_account_auto_allocated_payment_post_message = Buildium::OwnershipAccountAutoAllocatedPaymentPostMessage.new({date: Date.today, payment_method: 'Check', send_email_receipt: false, total_amount: 3.56}) # OwnershipAccountAutoAllocatedPaymentPostMessage | begin # Create a payment (auto allocated) result = api_instance.create_ownership_account_auto_allocated_payment(ownership_account_id, ownership_account_auto_allocated_payment_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_auto_allocated_payment: #{e}" end ``` #### Using the create_ownership_account_auto_allocated_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_auto_allocated_payment_with_http_info(ownership_account_id, ownership_account_auto_allocated_payment_post_message) ```ruby begin # Create a payment (auto allocated) data, status_code, headers = api_instance.create_ownership_account_auto_allocated_payment_with_http_info(ownership_account_id, ownership_account_auto_allocated_payment_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_auto_allocated_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **ownership_account_auto_allocated_payment_post_message** | [**OwnershipAccountAutoAllocatedPaymentPostMessage**](OwnershipAccountAutoAllocatedPaymentPostMessage.md) | | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_account_credit > create_ownership_account_credit(ownership_account_id, ownership_account_credit_post_message) Create a credit Creates a ledger credit.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | ownership_account_credit_post_message = Buildium::OwnershipAccountCreditPostMessage.new({date: Date.today, credit_type: 'WaiveUnpaid', lines: [Buildium::OwnershipAccountCreditLinePostMessage.new({amount: 3.56, gl_account_id: 37})]}) # OwnershipAccountCreditPostMessage | begin # Create a credit result = api_instance.create_ownership_account_credit(ownership_account_id, ownership_account_credit_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_credit: #{e}" end ``` #### Using the create_ownership_account_credit_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_credit_with_http_info(ownership_account_id, ownership_account_credit_post_message) ```ruby begin # Create a credit data, status_code, headers = api_instance.create_ownership_account_credit_with_http_info(ownership_account_id, ownership_account_credit_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_credit_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **ownership_account_credit_post_message** | [**OwnershipAccountCreditPostMessage**](OwnershipAccountCreditPostMessage.md) | | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_account_credit_recurring_transaction > create_ownership_account_credit_recurring_transaction(ownership_account_id, credit_recurring_transaction_post_message) Create a recurring credit Creates a recurring credit transaction that will post automatically on the specified ownership account ledger.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | credit_recurring_transaction_post_message = Buildium::CreditRecurringTransactionPostMessage.new({credit_type: 'WaiveUnpaid', post_days_in_advance: 37, frequency: 'Monthly', first_occurrence_date: Date.today}) # CreditRecurringTransactionPostMessage | begin # Create a recurring credit result = api_instance.create_ownership_account_credit_recurring_transaction(ownership_account_id, credit_recurring_transaction_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_credit_recurring_transaction: #{e}" end ``` #### Using the create_ownership_account_credit_recurring_transaction_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_credit_recurring_transaction_with_http_info(ownership_account_id, credit_recurring_transaction_post_message) ```ruby begin # Create a recurring credit data, status_code, headers = api_instance.create_ownership_account_credit_recurring_transaction_with_http_info(ownership_account_id, credit_recurring_transaction_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_credit_recurring_transaction_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **credit_recurring_transaction_post_message** | [**CreditRecurringTransactionPostMessage**](CreditRecurringTransactionPostMessage.md) | | | ### Return type [**OwnershipAccountRecurringCreditMessage**](OwnershipAccountRecurringCreditMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_account_deposit_withholding > create_ownership_account_deposit_withholding(ownership_account_id, ownership_account_deposit_withholding_post_message) Create a deposit withholding Withholds an association owner deposit by reallocating the funds from a liability account to an income account to cover an expense(s).

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` Accounting > General Ledger Accounts - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | ownership_account_deposit_withholding_post_message = Buildium::OwnershipAccountDepositWithholdingPostMessage.new({entry_date: Date.today, deposit_liability_gl_account_id: 37}) # OwnershipAccountDepositWithholdingPostMessage | begin # Create a deposit withholding result = api_instance.create_ownership_account_deposit_withholding(ownership_account_id, ownership_account_deposit_withholding_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_deposit_withholding: #{e}" end ``` #### Using the create_ownership_account_deposit_withholding_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_deposit_withholding_with_http_info(ownership_account_id, ownership_account_deposit_withholding_post_message) ```ruby begin # Create a deposit withholding data, status_code, headers = api_instance.create_ownership_account_deposit_withholding_with_http_info(ownership_account_id, ownership_account_deposit_withholding_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_deposit_withholding_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **ownership_account_deposit_withholding_post_message** | [**OwnershipAccountDepositWithholdingPostMessage**](OwnershipAccountDepositWithholdingPostMessage.md) | | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_account_ledger_charge > create_ownership_account_ledger_charge(ownership_account_id, ownership_account_ledger_charge_post_message) Create a charge Creates a ledger charge.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit`
### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | The ownership account identifier. ownership_account_ledger_charge_post_message = Buildium::OwnershipAccountLedgerChargePostMessage.new({date: Date.today, lines: [Buildium::OwnershipAccountLedgerChargeLinesSaveMessage.new({amount: 3.56, gl_account_id: 37})]}) # OwnershipAccountLedgerChargePostMessage | begin # Create a charge result = api_instance.create_ownership_account_ledger_charge(ownership_account_id, ownership_account_ledger_charge_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_ledger_charge: #{e}" end ``` #### Using the create_ownership_account_ledger_charge_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_ledger_charge_with_http_info(ownership_account_id, ownership_account_ledger_charge_post_message) ```ruby begin # Create a charge data, status_code, headers = api_instance.create_ownership_account_ledger_charge_with_http_info(ownership_account_id, ownership_account_ledger_charge_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_ledger_charge_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | The ownership account identifier. | | | **ownership_account_ledger_charge_post_message** | [**OwnershipAccountLedgerChargePostMessage**](OwnershipAccountLedgerChargePostMessage.md) | | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_account_ledger_payment > create_ownership_account_ledger_payment(ownership_account_id, ownership_account_ledger_payment_post_message) Create a payment Creates a ledger payment.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | ownership_account_ledger_payment_post_message = Buildium::OwnershipAccountLedgerPaymentPostMessage.new({date: Date.today, payment_method: 'Check', send_email_receipt: false, lines: [Buildium::OwnershipAccountLedgerPaymentLineSaveMessage.new({amount: 3.56, gl_account_id: 37})]}) # OwnershipAccountLedgerPaymentPostMessage | begin # Create a payment result = api_instance.create_ownership_account_ledger_payment(ownership_account_id, ownership_account_ledger_payment_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_ledger_payment: #{e}" end ``` #### Using the create_ownership_account_ledger_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_ledger_payment_with_http_info(ownership_account_id, ownership_account_ledger_payment_post_message) ```ruby begin # Create a payment data, status_code, headers = api_instance.create_ownership_account_ledger_payment_with_http_info(ownership_account_id, ownership_account_ledger_payment_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_ledger_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **ownership_account_ledger_payment_post_message** | [**OwnershipAccountLedgerPaymentPostMessage**](OwnershipAccountLedgerPaymentPostMessage.md) | | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_account_recurring_payment > create_ownership_account_recurring_payment(ownership_account_id, payment_recurring_transaction_post_message) Create a recurring payment Creates a recurring payment that will post automatically on the specified ownership account ledger.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | payment_recurring_transaction_post_message = Buildium::PaymentRecurringTransactionPostMessage.new({payment_method: 'Check', first_occurrence_date: Date.today, post_days_in_advance: 37, frequency: 'Monthly'}) # PaymentRecurringTransactionPostMessage | begin # Create a recurring payment result = api_instance.create_ownership_account_recurring_payment(ownership_account_id, payment_recurring_transaction_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_recurring_payment: #{e}" end ``` #### Using the create_ownership_account_recurring_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_recurring_payment_with_http_info(ownership_account_id, payment_recurring_transaction_post_message) ```ruby begin # Create a recurring payment data, status_code, headers = api_instance.create_ownership_account_recurring_payment_with_http_info(ownership_account_id, payment_recurring_transaction_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_recurring_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **payment_recurring_transaction_post_message** | [**PaymentRecurringTransactionPostMessage**](PaymentRecurringTransactionPostMessage.md) | | | ### Return type [**OwnershipAccountRecurringPaymentMessage**](OwnershipAccountRecurringPaymentMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_account_refund > create_ownership_account_refund(ownership_account_id, ownership_account_refund_post_message) Create a refund Creates a refund.

Required permission(s):

Accounting > Bank Accounts - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | ownership_account_refund_post_message = Buildium::OwnershipAccountRefundPostMessage.new({date: Date.today, payee_user_ids: [37], bank_account_id: 37, address: Buildium::SaveAddressMessage.new({address_line1: 'address_line1_example', country: 'UnitedStates'}), lines: [Buildium::OwnershipAccountRefundLinesPostMessage.new({amount: 3.56, gl_account_id: 37})]}) # OwnershipAccountRefundPostMessage | begin # Create a refund result = api_instance.create_ownership_account_refund(ownership_account_id, ownership_account_refund_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_refund: #{e}" end ``` #### Using the create_ownership_account_refund_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_account_refund_with_http_info(ownership_account_id, ownership_account_refund_post_message) ```ruby begin # Create a refund data, status_code, headers = api_instance.create_ownership_account_refund_with_http_info(ownership_account_id, ownership_account_refund_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_account_refund_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **ownership_account_refund_post_message** | [**OwnershipAccountRefundPostMessage**](OwnershipAccountRefundPostMessage.md) | | | ### Return type [**OwnershipAccountRefundMessage**](OwnershipAccountRefundMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_ownership_accounts_charge_recurring_transaction > create_ownership_accounts_charge_recurring_transaction(ownership_account_id, charge_recurring_transaction_post_message) Create a recurring charge Creates a recurring charge transaction that will post automatically on the specified ownership account ledger.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | charge_recurring_transaction_post_message = Buildium::ChargeRecurringTransactionPostMessage.new({gl_account_id: 37, amount: 3.56, first_occurrence_date: Date.today, post_days_in_advance: 37, frequency: 'Monthly'}) # ChargeRecurringTransactionPostMessage | begin # Create a recurring charge result = api_instance.create_ownership_accounts_charge_recurring_transaction(ownership_account_id, charge_recurring_transaction_post_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_accounts_charge_recurring_transaction: #{e}" end ``` #### Using the create_ownership_accounts_charge_recurring_transaction_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_ownership_accounts_charge_recurring_transaction_with_http_info(ownership_account_id, charge_recurring_transaction_post_message) ```ruby begin # Create a recurring charge data, status_code, headers = api_instance.create_ownership_accounts_charge_recurring_transaction_with_http_info(ownership_account_id, charge_recurring_transaction_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->create_ownership_accounts_charge_recurring_transaction_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **charge_recurring_transaction_post_message** | [**ChargeRecurringTransactionPostMessage**](ChargeRecurringTransactionPostMessage.md) | | | ### Return type [**OwnershipAccountChargeRecurringTransactionMessage**](OwnershipAccountChargeRecurringTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## get_association_recurring_transaction > > get_association_recurring_transaction(ownership_account_id, opts) Retrieve all recurring transactions Retrieves all recurring transactions for an ownership account.

Required permission(s):

Associations > Ownership account transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | opts = { orderby: 'orderby_example', # String | `orderby` indicates the field(s) and direction to sort the results in the response. See Bulk Request Options for more information. offset: 56, # Integer | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. limit: 56 # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. } begin # Retrieve all recurring transactions result = api_instance.get_association_recurring_transaction(ownership_account_id, opts) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_association_recurring_transaction: #{e}" end ``` #### Using the get_association_recurring_transaction_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> get_association_recurring_transaction_with_http_info(ownership_account_id, opts) ```ruby begin # Retrieve all recurring transactions data, status_code, headers = api_instance.get_association_recurring_transaction_with_http_info(ownership_account_id, opts) p status_code # => 2xx p headers # => { ... } p data # => > rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_association_recurring_transaction_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **orderby** | **String** | `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information. | [optional] | | **offset** | **Integer** | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. | [optional] | | **limit** | **Integer** | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. | [optional] | ### Return type [**Array<RecurringTransactionMessage>**](RecurringTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_ownership_account_ledger > > get_ownership_account_ledger(ownership_account_id, opts) Retrieve all transactions Retrieves all ledger transactions for a specific ownership account.

Required permission(s):

Associations > Ownership account transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | The ownership account identifier. opts = { transactiondatefrom: Date.parse('2013-10-20'), # Date | Filters results to any lease transaction whose start date is greater than or equal to the specified value. transactiondateto: Date.parse('2013-10-20'), # Date | Filters results to any lease transaction whose end date is less than or equal to the specified value. transactiontypes: ['Bill'], # Array | Filters results to any lease transaction whose lease transaction type matches the specified status. If no type is specified, lease transactions with any type will be returned. orderby: 'orderby_example', # String | `orderby` indicates the field(s) and direction to sort the results in the response. See Bulk Request Options for more information. offset: 56, # Integer | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. limit: 56 # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. } begin # Retrieve all transactions result = api_instance.get_ownership_account_ledger(ownership_account_id, opts) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_ledger: #{e}" end ``` #### Using the get_ownership_account_ledger_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> get_ownership_account_ledger_with_http_info(ownership_account_id, opts) ```ruby begin # Retrieve all transactions data, status_code, headers = api_instance.get_ownership_account_ledger_with_http_info(ownership_account_id, opts) p status_code # => 2xx p headers # => { ... } p data # => > rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_ledger_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | The ownership account identifier. | | | **transactiondatefrom** | **Date** | Filters results to any lease transaction whose start date is greater than or equal to the specified value. | [optional] | | **transactiondateto** | **Date** | Filters results to any lease transaction whose end date is less than or equal to the specified value. | [optional] | | **transactiontypes** | [**Array<String>**](String.md) | Filters results to any lease transaction whose lease transaction type matches the specified status. If no type is specified, lease transactions with any type will be returned. | [optional] | | **orderby** | **String** | `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information. | [optional] | | **offset** | **Integer** | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. | [optional] | | **limit** | **Integer** | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. | [optional] | ### Return type [**Array<OwnershipAccountTransactionMessage>**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_ownership_account_outstanding_balances > > get_ownership_account_outstanding_balances(opts) Retrieve all outstanding balances Retrieves a list of ownership account outstanding balances.

Required permission(s):

Associations > Outstanding Balances - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new opts = { associationid: 56, # Integer | Association unique identifier ownershipaccountstatuses: ['Active'], # Array | List of ownership account statuses ownershipaccountids: [37], # Array | List of ownership account ids pastdueemail: 'NoEmailAddress', # String | Status of notification of outstanding balances balanceduration: 'TotalBalance', # String | Duration of outstanding balances orderby: 'orderby_example', # String | `orderby` indicates the field(s) and direction to sort the results in the response. See Bulk Request Options for more information. offset: 56, # Integer | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. limit: 56 # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. } begin # Retrieve all outstanding balances result = api_instance.get_ownership_account_outstanding_balances(opts) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_outstanding_balances: #{e}" end ``` #### Using the get_ownership_account_outstanding_balances_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> get_ownership_account_outstanding_balances_with_http_info(opts) ```ruby begin # Retrieve all outstanding balances data, status_code, headers = api_instance.get_ownership_account_outstanding_balances_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => > rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_outstanding_balances_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **associationid** | **Integer** | Association unique identifier | [optional] | | **ownershipaccountstatuses** | [**Array<String>**](String.md) | List of ownership account statuses | [optional] | | **ownershipaccountids** | [**Array<Integer>**](Integer.md) | List of ownership account ids | [optional] | | **pastdueemail** | **String** | Status of notification of outstanding balances | [optional] | | **balanceduration** | **String** | Duration of outstanding balances | [optional] | | **orderby** | **String** | `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information. | [optional] | | **offset** | **Integer** | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. | [optional] | | **limit** | **Integer** | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. | [optional] | ### Return type [**Array<OwnershipAccountOutstandingBalanceMessage>**](OwnershipAccountOutstandingBalanceMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_ownership_account_recurring_credit_by_id > get_ownership_account_recurring_credit_by_id(ownership_account_id, transaction_id) Retrieve a recurring credit Retrieves a recurring credit.

Required permission(s):

Associations > Ownership account transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | transaction_id = 56 # Integer | begin # Retrieve a recurring credit result = api_instance.get_ownership_account_recurring_credit_by_id(ownership_account_id, transaction_id) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_recurring_credit_by_id: #{e}" end ``` #### Using the get_ownership_account_recurring_credit_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_ownership_account_recurring_credit_by_id_with_http_info(ownership_account_id, transaction_id) ```ruby begin # Retrieve a recurring credit data, status_code, headers = api_instance.get_ownership_account_recurring_credit_by_id_with_http_info(ownership_account_id, transaction_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_recurring_credit_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **transaction_id** | **Integer** | | | ### Return type [**OwnershipAccountRecurringCreditMessage**](OwnershipAccountRecurringCreditMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_ownership_account_refund_by_id > get_ownership_account_refund_by_id(ownership_account_id, refund_id) Retrieve a refund Retrieves a refund.

Required permission(s):

Accounting > Bank Accounts - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | refund_id = 56 # Integer | begin # Retrieve a refund result = api_instance.get_ownership_account_refund_by_id(ownership_account_id, refund_id) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_refund_by_id: #{e}" end ``` #### Using the get_ownership_account_refund_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_ownership_account_refund_by_id_with_http_info(ownership_account_id, refund_id) ```ruby begin # Retrieve a refund data, status_code, headers = api_instance.get_ownership_account_refund_by_id_with_http_info(ownership_account_id, refund_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_refund_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **refund_id** | **Integer** | | | ### Return type [**OwnershipAccountRefundMessage**](OwnershipAccountRefundMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_ownership_account_transaction_by_id > get_ownership_account_transaction_by_id(ownership_account_id, transaction_id) Retrieve a transaction Retrieves a specific ownership account ledger transaction.

Required permission(s):

Associations > Ownership account transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | The ownership account identifier. transaction_id = 56 # Integer | The transaction identifier. begin # Retrieve a transaction result = api_instance.get_ownership_account_transaction_by_id(ownership_account_id, transaction_id) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_transaction_by_id: #{e}" end ``` #### Using the get_ownership_account_transaction_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_ownership_account_transaction_by_id_with_http_info(ownership_account_id, transaction_id) ```ruby begin # Retrieve a transaction data, status_code, headers = api_instance.get_ownership_account_transaction_by_id_with_http_info(ownership_account_id, transaction_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_account_transaction_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | The ownership account identifier. | | | **transaction_id** | **Integer** | The transaction identifier. | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_ownership_accounts_charge_recurring_transaction_by_id > get_ownership_accounts_charge_recurring_transaction_by_id(ownership_account_id, transaction_id) Retrieve a recurring charge Retrieves a recurring charge.

Required permission(s):

Associations > Ownership account transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | transaction_id = 56 # Integer | begin # Retrieve a recurring charge result = api_instance.get_ownership_accounts_charge_recurring_transaction_by_id(ownership_account_id, transaction_id) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_accounts_charge_recurring_transaction_by_id: #{e}" end ``` #### Using the get_ownership_accounts_charge_recurring_transaction_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_ownership_accounts_charge_recurring_transaction_by_id_with_http_info(ownership_account_id, transaction_id) ```ruby begin # Retrieve a recurring charge data, status_code, headers = api_instance.get_ownership_accounts_charge_recurring_transaction_by_id_with_http_info(ownership_account_id, transaction_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_ownership_accounts_charge_recurring_transaction_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **transaction_id** | **Integer** | | | ### Return type [**OwnershipAccountChargeRecurringTransactionMessage**](OwnershipAccountChargeRecurringTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_recurring_ownership_account_payments_by_id > get_recurring_ownership_account_payments_by_id(ownership_account_id, payment_id) Retrieve a recurring payment Retrieves a recurring payment.

Required permission(s):

Associations > Ownership account transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | payment_id = 56 # Integer | begin # Retrieve a recurring payment result = api_instance.get_recurring_ownership_account_payments_by_id(ownership_account_id, payment_id) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_recurring_ownership_account_payments_by_id: #{e}" end ``` #### Using the get_recurring_ownership_account_payments_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_recurring_ownership_account_payments_by_id_with_http_info(ownership_account_id, payment_id) ```ruby begin # Retrieve a recurring payment data, status_code, headers = api_instance.get_recurring_ownership_account_payments_by_id_with_http_info(ownership_account_id, payment_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->get_recurring_ownership_account_payments_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **payment_id** | **Integer** | | | ### Return type [**OwnershipAccountRecurringPaymentMessage**](OwnershipAccountRecurringPaymentMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## update_ownership_account_charge > update_ownership_account_charge(ownership_account_id, charge_id, ownership_account_ledger_charge_put_message) Update a charge Updates a charge.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit`
### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | The ownership account identifier. charge_id = 56 # Integer | The charge identifier. ownership_account_ledger_charge_put_message = Buildium::OwnershipAccountLedgerChargePutMessage.new({date: Date.today, lines: [Buildium::OwnershipAccountLedgerChargeLinesPutMessage.new({amount: 3.56, gl_account_id: 37})]}) # OwnershipAccountLedgerChargePutMessage | begin # Update a charge result = api_instance.update_ownership_account_charge(ownership_account_id, charge_id, ownership_account_ledger_charge_put_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->update_ownership_account_charge: #{e}" end ``` #### Using the update_ownership_account_charge_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> update_ownership_account_charge_with_http_info(ownership_account_id, charge_id, ownership_account_ledger_charge_put_message) ```ruby begin # Update a charge data, status_code, headers = api_instance.update_ownership_account_charge_with_http_info(ownership_account_id, charge_id, ownership_account_ledger_charge_put_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->update_ownership_account_charge_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | The ownership account identifier. | | | **charge_id** | **Integer** | The charge identifier. | | | **ownership_account_ledger_charge_put_message** | [**OwnershipAccountLedgerChargePutMessage**](OwnershipAccountLedgerChargePutMessage.md) | | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## update_ownership_account_ledger_payment > update_ownership_account_ledger_payment(ownership_account_id, payment_id, ownership_account_ledger_payment_put_message) Update a payment Updates a ledger payment.

Required permission(s):

Associations > Ownership account transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::OwnershipAccountTransactionsApi.new ownership_account_id = 56 # Integer | payment_id = 56 # Integer | ownership_account_ledger_payment_put_message = Buildium::OwnershipAccountLedgerPaymentPutMessage.new({date: Date.today, payment_method: 'Check', lines: [Buildium::OwnershipAccountLedgerPaymentLineSaveMessage.new({amount: 3.56, gl_account_id: 37})]}) # OwnershipAccountLedgerPaymentPutMessage | begin # Update a payment result = api_instance.update_ownership_account_ledger_payment(ownership_account_id, payment_id, ownership_account_ledger_payment_put_message) p result rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->update_ownership_account_ledger_payment: #{e}" end ``` #### Using the update_ownership_account_ledger_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> update_ownership_account_ledger_payment_with_http_info(ownership_account_id, payment_id, ownership_account_ledger_payment_put_message) ```ruby begin # Update a payment data, status_code, headers = api_instance.update_ownership_account_ledger_payment_with_http_info(ownership_account_id, payment_id, ownership_account_ledger_payment_put_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling OwnershipAccountTransactionsApi->update_ownership_account_ledger_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **ownership_account_id** | **Integer** | | | | **payment_id** | **Integer** | | | | **ownership_account_ledger_payment_put_message** | [**OwnershipAccountLedgerPaymentPutMessage**](OwnershipAccountLedgerPaymentPutMessage.md) | | | ### Return type [**OwnershipAccountTransactionMessage**](OwnershipAccountTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json