Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.82 KB

BalancesApi.md

File metadata and controls

68 lines (45 loc) · 1.82 KB

Conekta\BalancesApi

All URIs are relative to https://api.conekta.io, except if the operation defines another base path.

Method HTTP request Description
getBalance() GET /balance Get a company's balance

getBalance()

getBalance($accept_language): \Conekta\Model\BalanceResponse

Get a company's balance

Get a company's balance

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Conekta\Api\BalancesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$accept_language = es; // string | Use for knowing which language to use

try {
    $result = $apiInstance->getBalance($accept_language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BalancesApi->getBalance: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
accept_language string Use for knowing which language to use [optional] [default to 'es']

Return type

\Conekta\Model\BalanceResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.conekta-v2.1.0+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]