All URIs are relative to https://api.sandbox.velopayments.com
Method | HTTP request | Description |
---|---|---|
create_ach_funding_request | POST /v1/sourceAccounts/{sourceAccountId}/achFundingRequest | Create Funding Request |
create_funding_request | POST /v2/sourceAccounts/{sourceAccountId}/fundingRequest | Create Funding Request |
create_funding_request_v3 | POST /v3/sourceAccounts/{sourceAccountId}/fundingRequest | Create Funding Request |
get_funding_account | GET /v1/fundingAccounts/{fundingAccountId} | Get Funding Account |
get_funding_account_v2 | GET /v2/fundingAccounts/{fundingAccountId} | Get Funding Account |
get_funding_accounts | GET /v1/fundingAccounts | Get Funding Accounts |
get_funding_accounts_v2 | GET /v2/fundingAccounts | Get Funding Accounts |
get_source_account | GET /v1/sourceAccounts/{sourceAccountId} | Get details about given source account. |
get_source_account_v2 | GET /v2/sourceAccounts/{sourceAccountId} | Get details about given source account. |
get_source_account_v3 | GET /v3/sourceAccounts/{sourceAccountId} | Get details about given source account. |
get_source_accounts | GET /v1/sourceAccounts | Get list of source accounts |
get_source_accounts_v2 | GET /v2/sourceAccounts | Get list of source accounts |
get_source_accounts_v3 | GET /v3/sourceAccounts | Get list of source accounts |
list_funding_audit_deltas | GET /v1/deltas/fundings | Get Funding Audit Delta |
set_notifications_request | POST /v1/sourceAccounts/{sourceAccountId}/notifications | Set notifications |
transfer_funds | POST /v2/sourceAccounts/{sourceAccountId}/transfers | Transfer Funds between source accounts |
transfer_funds_v3 | POST /v3/sourceAccounts/{sourceAccountId}/transfers | Transfer Funds between source accounts |
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.
require 'time'
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 = TODO # String | Source account id
funding_request_v1 = VeloPayments::FundingRequestV1.new({amount: 3.56}) # FundingRequestV1 | Body to included amount to be funded
begin
# Create Funding Request
api_instance.create_ach_funding_request(source_account_id, funding_request_v1)
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->create_ach_funding_request: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> create_ach_funding_request_with_http_info(source_account_id, funding_request_v1)
begin
# Create Funding Request
data, status_code, headers = api_instance.create_ach_funding_request_with_http_info(source_account_id, funding_request_v1)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->create_ach_funding_request_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | Source account id | |
funding_request_v1 | FundingRequestV1 | Body to included amount to be funded |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
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).
require 'time'
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 = TODO # String | Source account id
funding_request_v2 = VeloPayments::FundingRequestV2.new({amount: 3.56}) # FundingRequestV2 | Body to included amount to be funded
begin
# Create Funding Request
api_instance.create_funding_request(source_account_id, funding_request_v2)
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->create_funding_request: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> create_funding_request_with_http_info(source_account_id, funding_request_v2)
begin
# Create Funding Request
data, status_code, headers = api_instance.create_funding_request_with_http_info(source_account_id, funding_request_v2)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->create_funding_request_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | Source account id | |
funding_request_v2 | FundingRequestV2 | Body to included amount to be funded |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
create_funding_request_v3(source_account_id, funding_request_v3)
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).
require 'time'
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 = TODO # String | Source account id
funding_request_v3 = VeloPayments::FundingRequestV3.new({funding_account_id: 'funding_account_id_example', amount: 3.56}) # FundingRequestV3 | Body to included amount to be funded
begin
# Create Funding Request
api_instance.create_funding_request_v3(source_account_id, funding_request_v3)
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->create_funding_request_v3: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> create_funding_request_v3_with_http_info(source_account_id, funding_request_v3)
begin
# Create Funding Request
data, status_code, headers = api_instance.create_funding_request_v3_with_http_info(source_account_id, funding_request_v3)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->create_funding_request_v3_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | Source account id | |
funding_request_v3 | FundingRequestV3 | Body to included amount to be funded |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
get_funding_account(funding_account_id, opts)
Get Funding Account
Get Funding Account by ID
require 'time'
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 = TODO # String |
opts = {
sensitive: true # Boolean |
}
begin
# Get Funding Account
result = api_instance.get_funding_account(funding_account_id, opts)
p result
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_account: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_funding_account_with_http_info(funding_account_id, opts)
begin
# Get Funding Account
data, status_code, headers = api_instance.get_funding_account_with_http_info(funding_account_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <FundingAccountResponse>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_account_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
funding_account_id | String | ||
sensitive | Boolean | [optional][default to false] |
- Content-Type: Not defined
- Accept: application/json
get_funding_account_v2(funding_account_id, opts)
Get Funding Account
Get Funding Account by ID
require 'time'
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 = TODO # String |
opts = {
sensitive: true # Boolean |
}
begin
# Get Funding Account
result = api_instance.get_funding_account_v2(funding_account_id, opts)
p result
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_account_v2: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_funding_account_v2_with_http_info(funding_account_id, opts)
begin
# Get Funding Account
data, status_code, headers = api_instance.get_funding_account_v2_with_http_info(funding_account_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <FundingAccountResponse2>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_account_v2_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
funding_account_id | String | ||
sensitive | Boolean | [optional][default to false] |
- Content-Type: Not defined
- Accept: application/json
get_funding_accounts(opts)
Get Funding Accounts
Get the funding accounts.
require 'time'
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: TODO, # String |
source_account_id: TODO, # String |
page: 56, # Integer | Page number. Default is 1.
page_size: 56, # Integer | The number of results to return in a page
sort: 'sort_example', # String | List of sort fields (e.g. ?sort=accountName:asc,name:asc) Default is accountName:asc The supported sort fields are - accountName, name and currency.
sensitive: true # Boolean |
}
begin
# Get Funding Accounts
result = api_instance.get_funding_accounts(opts)
p result
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_accounts: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_funding_accounts_with_http_info(opts)
begin
# Get Funding Accounts
data, status_code, headers = api_instance.get_funding_accounts_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListFundingAccountsResponse>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_accounts_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
payor_id | String | [optional] | |
source_account_id | String | [optional] | |
page | Integer | Page number. Default is 1. | [optional][default to 1] |
page_size | Integer | The number of results to return in a page | [optional][default to 25] |
sort | String | List of sort fields (e.g. ?sort=accountName:asc,name:asc) Default is accountName:asc The supported sort fields are - accountName, name and currency. | [optional][default to 'accountName:asc'] |
sensitive | Boolean | [optional][default to false] |
- Content-Type: Not defined
- Accept: application/json
get_funding_accounts_v2(opts)
Get Funding Accounts
Get the funding accounts.
require 'time'
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: TODO, # String |
name: 'name_example', # String | The descriptive funding account name
country: 'US', # String | The 2 letter ISO 3166-1 country code (upper case)
currency: 'USD', # String | The ISO 4217 currency code
type: VeloPayments::FundingAccountType::FBO, # FundingAccountType | The type of funding account.
page: 56, # Integer | Page number. Default is 1.
page_size: 56, # Integer | The number of results to return in a page
sort: 'sort_example', # String | List of sort fields (e.g. ?sort=accountName:asc,name:asc) Default is accountName:asc The supported sort fields are - accountName, name.
sensitive: true # Boolean |
}
begin
# Get Funding Accounts
result = api_instance.get_funding_accounts_v2(opts)
p result
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_accounts_v2: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_funding_accounts_v2_with_http_info(opts)
begin
# Get Funding Accounts
data, status_code, headers = api_instance.get_funding_accounts_v2_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListFundingAccountsResponse2>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_funding_accounts_v2_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
payor_id | String | [optional] | |
name | String | The descriptive funding account name | [optional] |
country | String | The 2 letter ISO 3166-1 country code (upper case) | [optional] |
currency | String | The ISO 4217 currency code | [optional] |
type | FundingAccountType | The type of funding account. | [optional] |
page | Integer | Page number. Default is 1. | [optional][default to 1] |
page_size | Integer | The number of results to return in a page | [optional][default to 25] |
sort | String | List of sort fields (e.g. ?sort=accountName:asc,name:asc) Default is accountName:asc The supported sort fields are - accountName, name. | [optional][default to 'accountName:asc'] |
sensitive | Boolean | [optional][default to false] |
- Content-Type: Not defined
- Accept: application/json
get_source_account(source_account_id)
Get details about given source account.
Get details about given source account.
require 'time'
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 = TODO # 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 "Error when calling FundingManagerApi->get_source_account: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_source_account_with_http_info(source_account_id)
begin
# Get details about given source account.
data, status_code, headers = api_instance.get_source_account_with_http_info(source_account_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SourceAccountResponse>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_account_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | Source account id |
- Content-Type: Not defined
- Accept: application/json
get_source_account_v2(source_account_id)
Get details about given source account.
Get details about given source account.
require 'time'
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 = TODO # 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 "Error when calling FundingManagerApi->get_source_account_v2: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_source_account_v2_with_http_info(source_account_id)
begin
# Get details about given source account.
data, status_code, headers = api_instance.get_source_account_v2_with_http_info(source_account_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SourceAccountResponseV2>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_account_v2_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | Source account id |
- Content-Type: Not defined
- Accept: application/json
get_source_account_v3(source_account_id)
Get details about given source account.
Get details about given source account.
require 'time'
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 = TODO # String | Source account id
begin
# Get details about given source account.
result = api_instance.get_source_account_v3(source_account_id)
p result
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_account_v3: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_source_account_v3_with_http_info(source_account_id)
begin
# Get details about given source account.
data, status_code, headers = api_instance.get_source_account_v3_with_http_info(source_account_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SourceAccountResponseV3>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_account_v3_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | Source account id |
- Content-Type: Not defined
- Accept: application/json
get_source_accounts(opts)
Get list of source accounts
List source accounts.
require 'time'
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: TODO, # String | The account owner Payor ID
page: 56, # Integer | Page number. Default is 1.
page_size: 56, # Integer | The number of results to return in a page
sort: 'sort_example' # 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 "Error when calling FundingManagerApi->get_source_accounts: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_source_accounts_with_http_info(opts)
begin
# Get list of source accounts
data, status_code, headers = api_instance.get_source_accounts_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListSourceAccountResponse>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_accounts_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
physical_account_name | String | Physical Account Name | [optional] |
payor_id | String | The account owner Payor ID | [optional] |
page | Integer | Page number. Default is 1. | [optional][default to 1] |
page_size | Integer | The number of results to return in a page | [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'] |
- Content-Type: Not defined
- Accept: application/json
get_source_accounts_v2(opts)
Get list of source accounts
List source accounts.
require 'time'
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: TODO, # String | The physical account ID
payor_id: TODO, # String | The account owner Payor ID
funding_account_id: TODO, # String | The funding account ID
page: 56, # Integer | Page number. Default is 1.
page_size: 56, # Integer | The number of results to return in a page
sort: 'sort_example' # 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 "Error when calling FundingManagerApi->get_source_accounts_v2: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_source_accounts_v2_with_http_info(opts)
begin
# Get list of source accounts
data, status_code, headers = api_instance.get_source_accounts_v2_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListSourceAccountResponseV2>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_accounts_v2_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
physical_account_name | String | Physical Account Name | [optional] |
physical_account_id | String | The physical account ID | [optional] |
payor_id | String | The account owner Payor ID | [optional] |
funding_account_id | String | The funding account ID | [optional] |
page | Integer | Page number. Default is 1. | [optional][default to 1] |
page_size | Integer | The number of results to return in a page | [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'] |
- Content-Type: Not defined
- Accept: application/json
get_source_accounts_v3(opts)
Get list of source accounts
List source accounts.
require 'time'
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: TODO, # String | The physical account ID
payor_id: TODO, # String | The account owner Payor ID
funding_account_id: TODO, # String | The funding account ID
include_user_deleted: 'include_user_deleted_example', # Boolean | A filter for retrieving both active accounts and user deleted ones
type: VeloPayments::SourceAccountType::FBO, # SourceAccountType | The type of source account.
page: 56, # Integer | Page number. Default is 1.
page_size: 56, # Integer | The number of results to return in a page
sort: 'sort_example' # 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_v3(opts)
p result
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_accounts_v3: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_source_accounts_v3_with_http_info(opts)
begin
# Get list of source accounts
data, status_code, headers = api_instance.get_source_accounts_v3_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListSourceAccountResponseV3>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->get_source_accounts_v3_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
physical_account_name | String | Physical Account Name | [optional] |
physical_account_id | String | The physical account ID | [optional] |
payor_id | String | The account owner Payor ID | [optional] |
funding_account_id | String | The funding account ID | [optional] |
include_user_deleted | Boolean | A filter for retrieving both active accounts and user deleted ones | [optional] |
type | SourceAccountType | The type of source account. | [optional] |
page | Integer | Page number. Default is 1. | [optional][default to 1] |
page_size | Integer | The number of results to return in a page | [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'] |
- Content-Type: Not defined
- Accept: application/json
list_funding_audit_deltas(payor_id, updated_since, opts)
Get Funding Audit Delta
Get funding audit deltas for a payor
require 'time'
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 = TODO # String |
updated_since = Time.parse('2013-10-20T19:20:30+01:00') # Time |
opts = {
page: 56, # Integer | Page number. Default is 1.
page_size: 56 # Integer | The number of results to return in a page
}
begin
# Get Funding Audit Delta
result = api_instance.list_funding_audit_deltas(payor_id, updated_since, opts)
p result
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->list_funding_audit_deltas: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_funding_audit_deltas_with_http_info(payor_id, updated_since, opts)
begin
# Get Funding Audit Delta
data, status_code, headers = api_instance.list_funding_audit_deltas_with_http_info(payor_id, updated_since, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <PageResourceFundingPayorStatusAuditResponseFundingPayorStatusAuditResponse>
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->list_funding_audit_deltas_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
payor_id | String | ||
updated_since | Time | ||
page | Integer | Page number. Default is 1. | [optional][default to 1] |
page_size | Integer | The number of results to return in a page | [optional][default to 25] |
PageResourceFundingPayorStatusAuditResponseFundingPayorStatusAuditResponse
- Content-Type: Not defined
- Accept: application/json
set_notifications_request(source_account_id, set_notifications_request)
Set notifications
Set notifications for a given source account
require 'time'
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 = TODO # String | Source account id
set_notifications_request = VeloPayments::SetNotificationsRequest.new({minimum_balance: 3.56}) # 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 "Error when calling FundingManagerApi->set_notifications_request: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> set_notifications_request_with_http_info(source_account_id, set_notifications_request)
begin
# Set notifications
data, status_code, headers = api_instance.set_notifications_request_with_http_info(source_account_id, set_notifications_request)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->set_notifications_request_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | Source account id | |
set_notifications_request | SetNotificationsRequest | Body to included minimum balance to set |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
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.
require 'time'
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 = TODO # String | The 'from' source account id, which will be debited
transfer_request = VeloPayments::TransferRequest.new({to_source_account_id: 'to_source_account_id_example', amount: 3.56, currency: 'USD'}) # TransferRequest | Body
begin
# Transfer Funds between source accounts
api_instance.transfer_funds(source_account_id, transfer_request)
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->transfer_funds: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> transfer_funds_with_http_info(source_account_id, transfer_request)
begin
# Transfer Funds between source accounts
data, status_code, headers = api_instance.transfer_funds_with_http_info(source_account_id, transfer_request)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->transfer_funds_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | The 'from' source account id, which will be debited | |
transfer_request | TransferRequest | Body |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
transfer_funds_v3(source_account_id, transfer_request2)
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.
require 'time'
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 = TODO # String | The 'from' source account id, which will be debited
transfer_request2 = VeloPayments::TransferRequest2.new({to_source_account_id: 'to_source_account_id_example', amount: 3.56, currency: 'USD'}) # TransferRequest2 | Body
begin
# Transfer Funds between source accounts
api_instance.transfer_funds_v3(source_account_id, transfer_request2)
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->transfer_funds_v3: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> transfer_funds_v3_with_http_info(source_account_id, transfer_request2)
begin
# Transfer Funds between source accounts
data, status_code, headers = api_instance.transfer_funds_v3_with_http_info(source_account_id, transfer_request2)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue VeloPayments::ApiError => e
puts "Error when calling FundingManagerApi->transfer_funds_v3_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
source_account_id | String | The 'from' source account id, which will be debited | |
transfer_request2 | TransferRequest2 | Body |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json