Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 2.1 KB

AccountDetailsApi.md

File metadata and controls

79 lines (52 loc) · 2.1 KB

MergeAccountingClient::AccountDetailsApi

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

account_details_retrieve(x_account_token)

Get details for a linked account.

Examples

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

Using the account_details_retrieve_with_http_info variant

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

Parameters

Name Type Description Notes
x_account_token String Token identifying the end user.

Return type

AccountDetails

Authorization

tokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json