All URIs are relative to https://api.merge.dev/api/accounting/v1
Method | HTTP request | Description |
---|---|---|
account_details_retrieve | GET /account-details |
account_details_retrieve(x_account_token)
Get details for a linked account.
require 'time'
require 'merge_accounting_client'
# setup authorization
MergeAccountingClient.configure do |config|
# Configure API key authorization: tokenAuth
config.api_key['tokenAuth'] = '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['tokenAuth'] = 'Bearer'
end
api_instance = MergeAccountingClient::AccountDetailsApi.new
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
begin
result = api_instance.account_details_retrieve(x_account_token)
p result
rescue MergeAccountingClient::ApiError => e
puts "Error when calling AccountDetailsApi->account_details_retrieve: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> account_details_retrieve_with_http_info(x_account_token)
begin
data, status_code, headers = api_instance.account_details_retrieve_with_http_info(x_account_token)
p status_code # => 2xx
p headers # => { ... }
p data # => <AccountDetails>
rescue MergeAccountingClient::ApiError => e
puts "Error when calling AccountDetailsApi->account_details_retrieve_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
x_account_token | String | Token identifying the end user. |
- Content-Type: Not defined
- Accept: application/json