All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
get_balance | GET /balance | Get a company's balance |
get_balance(opts)
Get a company's balance
Get a company's balance
require 'time'
require 'conekta'
# setup authorization
Conekta.configure do |config|
# Configure Bearer authorization: bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Conekta::BalancesApi.new
opts = {
accept_language: 'es' # String | Use for knowing which language to use
}
begin
# Get a company's balance
result = api_instance.get_balance(opts)
p result
rescue Conekta::ApiError => e
puts "Error when calling BalancesApi->get_balance: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_balance_with_http_info(opts)
begin
# Get a company's balance
data, status_code, headers = api_instance.get_balance_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <BalanceResponse>
rescue Conekta::ApiError => e
puts "Error when calling BalancesApi->get_balance_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
accept_language | String | Use for knowing which language to use | [optional][default to 'es'] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json