# VeloPayments::FundingManagerApi All URIs are relative to *https://api.sandbox.velopayments.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_ach_funding_request**](FundingManagerApi.md#create_ach_funding_request) | **POST** /v1/sourceAccounts/{sourceAccountId}/achFundingRequest | Create Funding Request [**create_funding_request**](FundingManagerApi.md#create_funding_request) | **POST** /v2/sourceAccounts/{sourceAccountId}/fundingRequest | Create Funding Request [**get_funding_account**](FundingManagerApi.md#get_funding_account) | **GET** /v1/fundingAccounts/{fundingAccountId} | Get Funding Account [**get_funding_accounts**](FundingManagerApi.md#get_funding_accounts) | **GET** /v1/fundingAccounts | Get Funding Accounts [**get_fundings_v1**](FundingManagerApi.md#get_fundings_v1) | **GET** /v1/paymentaudit/fundings | Get Fundings for Payor [**get_source_account**](FundingManagerApi.md#get_source_account) | **GET** /v1/sourceAccounts/{sourceAccountId} | Get details about given source account. [**get_source_account_v2**](FundingManagerApi.md#get_source_account_v2) | **GET** /v2/sourceAccounts/{sourceAccountId} | Get details about given source account. [**get_source_accounts**](FundingManagerApi.md#get_source_accounts) | **GET** /v1/sourceAccounts | Get list of source accounts [**get_source_accounts_v2**](FundingManagerApi.md#get_source_accounts_v2) | **GET** /v2/sourceAccounts | Get list of source accounts [**list_funding_audit_deltas**](FundingManagerApi.md#list_funding_audit_deltas) | **GET** /v1/deltas/fundings | Get Funding Audit Delta [**set_notifications_request**](FundingManagerApi.md#set_notifications_request) | **POST** /v1/sourceAccounts/{sourceAccountId}/notifications | Set notifications [**transfer_funds**](FundingManagerApi.md#transfer_funds) | **POST** /v2/sourceAccounts/{sourceAccountId}/transfers | Transfer Funds between source accounts ## create_ach_funding_request > create_ach_funding_request(source_account_id, funding_request_v1) Create Funding Request Instruct a funding request to transfer funds from the payor’s funding bank to the payor’s balance held within Velo. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new source_account_id = 'source_account_id_example' # String | Source account id funding_request_v1 = VeloPayments::FundingRequestV1.new # FundingRequestV1 | Body to included ammount to be funded begin #Create Funding Request api_instance.create_ach_funding_request(source_account_id, funding_request_v1) rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->create_ach_funding_request: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source_account_id** | [**String**](.md)| Source account id | **funding_request_v1** | [**FundingRequestV1**](FundingRequestV1.md)| Body to included ammount to be funded | ### Return type nil (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_funding_request > create_funding_request(source_account_id, funding_request_v2) Create Funding Request Instruct a funding request to transfer funds from the payor’s funding bank to the payor’s balance held within Velo (202 - accepted, 400 - invalid request body, 404 - source account not found). ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new source_account_id = 'source_account_id_example' # String | Source account id funding_request_v2 = VeloPayments::FundingRequestV2.new # FundingRequestV2 | Body to included ammount to be funded begin #Create Funding Request api_instance.create_funding_request(source_account_id, funding_request_v2) rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->create_funding_request: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source_account_id** | [**String**](.md)| Source account id | **funding_request_v2** | [**FundingRequestV2**](FundingRequestV2.md)| Body to included ammount to be funded | ### Return type nil (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## get_funding_account > FundingAccountResponse get_funding_account(funding_account_id, opts) Get Funding Account Get Funding Account by ID ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new funding_account_id = 'funding_account_id_example' # String | opts = { sensitive: false # Boolean | } begin #Get Funding Account result = api_instance.get_funding_account(funding_account_id, opts) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->get_funding_account: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **funding_account_id** | [**String**](.md)| | **sensitive** | **Boolean**| | [optional] [default to false] ### Return type [**FundingAccountResponse**](FundingAccountResponse.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_funding_accounts > ListFundingAccountsResponse get_funding_accounts(opts) Get Funding Accounts Get the source accounts. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new opts = { payor_id: 'payor_id_example', # String | source_account_id: 'source_account_id_example', # String | page: 1, # Integer | Page number. Default is 1. page_size: 25, # Integer | Page size. Default is 25. Max allowable is 100. sort: 'accountName:asc', # String | sensitive: false # Boolean | } begin #Get Funding Accounts result = api_instance.get_funding_accounts(opts) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->get_funding_accounts: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payor_id** | [**String**](.md)| | [optional] **source_account_id** | [**String**](.md)| | [optional] **page** | **Integer**| Page number. Default is 1. | [optional] [default to 1] **page_size** | **Integer**| Page size. Default is 25. Max allowable is 100. | [optional] [default to 25] **sort** | **String**| | [optional] [default to 'accountName:asc'] **sensitive** | **Boolean**| | [optional] [default to false] ### Return type [**ListFundingAccountsResponse**](ListFundingAccountsResponse.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_fundings_v1 > GetFundingsResponse get_fundings_v1(opts) Get Fundings for Payor Get a list of Fundings for a payor. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new opts = { payor_id: 'payor_id_example', # String | The account owner Payor ID page: 1, # Integer | Page number. Default is 1. page_size: 25, # Integer | Page size. Default is 25. Max allowable is 100. sort: 'sort_example' # String | List of sort fields. Example: ```?sort=destinationCurrency:asc,destinationAmount:asc``` Default is no sort. The supported sort fields are: dateTime and amount. } begin #Get Fundings for Payor result = api_instance.get_fundings_v1(opts) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->get_fundings_v1: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payor_id** | [**String**](.md)| The account owner Payor ID | [optional] **page** | **Integer**| Page number. Default is 1. | [optional] [default to 1] **page_size** | **Integer**| Page size. Default is 25. Max allowable is 100. | [optional] [default to 25] **sort** | **String**| List of sort fields. Example: ```?sort=destinationCurrency:asc,destinationAmount:asc``` Default is no sort. The supported sort fields are: dateTime and amount. | [optional] ### Return type [**GetFundingsResponse**](GetFundingsResponse.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_source_account > SourceAccountResponse get_source_account(source_account_id) Get details about given source account. Get details about given source account. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new source_account_id = 'source_account_id_example' # String | Source account id begin #Get details about given source account. result = api_instance.get_source_account(source_account_id) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->get_source_account: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source_account_id** | [**String**](.md)| Source account id | ### Return type [**SourceAccountResponse**](SourceAccountResponse.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_source_account_v2 > SourceAccountResponseV2 get_source_account_v2(source_account_id) Get details about given source account. Get details about given source account. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new source_account_id = 'source_account_id_example' # String | Source account id begin #Get details about given source account. result = api_instance.get_source_account_v2(source_account_id) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->get_source_account_v2: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source_account_id** | [**String**](.md)| Source account id | ### Return type [**SourceAccountResponseV2**](SourceAccountResponseV2.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_source_accounts > ListSourceAccountResponse get_source_accounts(opts) Get list of source accounts List source accounts. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new opts = { physical_account_name: 'physical_account_name_example', # String | Physical Account Name payor_id: 'payor_id_example', # String | The account owner Payor ID page: 1, # Integer | Page number. Default is 1. page_size: 25, # Integer | Page size. Default is 25. Max allowable is 100. sort: 'fundingRef:asc' # String | List of sort fields e.g. ?sort=name:asc Default is name:asc The supported sort fields are - fundingRef } begin #Get list of source accounts result = api_instance.get_source_accounts(opts) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->get_source_accounts: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **physical_account_name** | **String**| Physical Account Name | [optional] **payor_id** | [**String**](.md)| The account owner Payor ID | [optional] **page** | **Integer**| Page number. Default is 1. | [optional] [default to 1] **page_size** | **Integer**| Page size. Default is 25. Max allowable is 100. | [optional] [default to 25] **sort** | **String**| List of sort fields e.g. ?sort=name:asc Default is name:asc The supported sort fields are - fundingRef | [optional] [default to 'fundingRef:asc'] ### Return type [**ListSourceAccountResponse**](ListSourceAccountResponse.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_source_accounts_v2 > ListSourceAccountResponseV2 get_source_accounts_v2(opts) Get list of source accounts List source accounts. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new opts = { physical_account_name: 'physical_account_name_example', # String | Physical Account Name physical_account_id: 'physical_account_id_example', # String | The physical account ID payor_id: 'payor_id_example', # String | The account owner Payor ID funding_account_id: 'funding_account_id_example', # String | The funding account ID page: 1, # Integer | Page number. Default is 1. page_size: 25, # Integer | Page size. Default is 25. Max allowable is 100. sort: 'fundingRef:asc' # String | List of sort fields e.g. ?sort=name:asc Default is name:asc The supported sort fields are - fundingRef, name, balance } begin #Get list of source accounts result = api_instance.get_source_accounts_v2(opts) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->get_source_accounts_v2: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **physical_account_name** | **String**| Physical Account Name | [optional] **physical_account_id** | [**String**](.md)| The physical account ID | [optional] **payor_id** | [**String**](.md)| The account owner Payor ID | [optional] **funding_account_id** | [**String**](.md)| The funding account ID | [optional] **page** | **Integer**| Page number. Default is 1. | [optional] [default to 1] **page_size** | **Integer**| Page size. Default is 25. Max allowable is 100. | [optional] [default to 25] **sort** | **String**| List of sort fields e.g. ?sort=name:asc Default is name:asc The supported sort fields are - fundingRef, name, balance | [optional] [default to 'fundingRef:asc'] ### Return type [**ListSourceAccountResponseV2**](ListSourceAccountResponseV2.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## list_funding_audit_deltas > PageResourceFundingPayorStatusAuditResponseFundingPayorStatusAuditResponse list_funding_audit_deltas(payor_id, updated_since, opts) Get Funding Audit Delta Get funding audit deltas for a payor ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new payor_id = 'payor_id_example' # String | updated_since = DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | opts = { page: 1, # Integer | Page number. Default is 1. page_size: 25 # Integer | Page size. Default is 25. Max allowable is 100. } begin #Get Funding Audit Delta result = api_instance.list_funding_audit_deltas(payor_id, updated_since, opts) p result rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->list_funding_audit_deltas: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payor_id** | [**String**](.md)| | **updated_since** | **DateTime**| | **page** | **Integer**| Page number. Default is 1. | [optional] [default to 1] **page_size** | **Integer**| Page size. Default is 25. Max allowable is 100. | [optional] [default to 25] ### Return type [**PageResourceFundingPayorStatusAuditResponseFundingPayorStatusAuditResponse**](PageResourceFundingPayorStatusAuditResponseFundingPayorStatusAuditResponse.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## set_notifications_request > set_notifications_request(source_account_id, set_notifications_request) Set notifications Set notifications for a given source account ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new source_account_id = 'source_account_id_example' # String | Source account id set_notifications_request = VeloPayments::SetNotificationsRequest.new # SetNotificationsRequest | Body to included minimum balance to set begin #Set notifications api_instance.set_notifications_request(source_account_id, set_notifications_request) rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->set_notifications_request: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source_account_id** | [**String**](.md)| Source account id | **set_notifications_request** | [**SetNotificationsRequest**](SetNotificationsRequest.md)| Body to included minimum balance to set | ### Return type nil (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## transfer_funds > transfer_funds(source_account_id, transfer_request) Transfer Funds between source accounts Transfer funds between source accounts for a Payor. The 'from' source account is identified in the URL, and is the account which will be debited. The 'to' (destination) source account is in the body, and is the account which will be credited. Both source accounts must belong to the same Payor. There must be sufficient balance in the 'from' source account, otherwise the transfer attempt will fail. ### Example ```ruby # load the gem require 'velopayments' # setup authorization VeloPayments.configure do |config| # Configure OAuth2 access token for authorization: OAuth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = VeloPayments::FundingManagerApi.new source_account_id = 'source_account_id_example' # String | The 'from' source account id, which will be debited transfer_request = VeloPayments::TransferRequest.new # TransferRequest | Body begin #Transfer Funds between source accounts api_instance.transfer_funds(source_account_id, transfer_request) rescue VeloPayments::ApiError => e puts "Exception when calling FundingManagerApi->transfer_funds: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source_account_id** | [**String**](.md)| The 'from' source account id, which will be debited | **transfer_request** | [**TransferRequest**](TransferRequest.md)| Body | ### Return type nil (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json