Api Documentation

Account

createUsingPOST

Add a new account


/1.0/accounts

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/accounts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

import java.io.File;
import java.util.*;

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateAccount data = ; // CreateAccount |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#createUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateAccount data = ; // CreateAccount |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#createUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CreateAccount *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

AccountApi *apiInstance = [[AccountApi alloc] init];

// Add a new account
[apiInstance createUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.AccountApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {CreateAccount}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new AccountApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new CreateAccount(); // CreateAccount |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Add a new account
                'String' result = apiInstance.createUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.createUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AccountApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // CreateAccount |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->createUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->createUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::CreateAccount->new(); # CreateAccount |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->createUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountApi->createUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AccountApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # CreateAccount |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Add a new account
    api_response = api_instance.create_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->createUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getsUsingGET

Get list of accounts


/1.0/accounts

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/accounts?page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

import java.io.File;
import java.util.*;

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        try {
            AccountListModel result = apiInstance.getsUsingGET(apiecoKey, hesabamAccessToken, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getsUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AccountApi;

public class AccountApiExample {

    public static void main(String[] args) {
        AccountApi apiInstance = new AccountApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        try {
            AccountListModel result = apiInstance.getsUsingGET(apiecoKey, hesabamAccessToken, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getsUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  

AccountApi *apiInstance = [[AccountApi alloc] init];

// Get list of accounts
[apiInstance getsUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
              completionHandler: ^(AccountListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.AccountApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getsUsingGET(apiecoKey, hesabamAccessToken, page, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getsUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new AccountApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  

            try
            {
                // Get list of accounts
                AccountListModel result = apiInstance.getsUsingGET(apiecoKey, hesabamAccessToken, page);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.getsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AccountApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  

try {
    $result = $api_instance->getsUsingGET($apiecoKey, $hesabamAccessToken, $page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->getsUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;

my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  

eval { 
    my $result = $api_instance->getsUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountApi->getsUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AccountApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  

try: 
    # Get list of accounts
    api_response = api_instance.gets_using_get(apiecoKey, hesabamAccessToken, page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->getsUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


Catalog

addUsingPOST

Add products and plans to active tenant's catalog


/1.0/catalogs/add

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/catalogs/add"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        AddToCatalog data = ; // AddToCatalog |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.addUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#addUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        AddToCatalog data = ; // AddToCatalog |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.addUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#addUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
AddToCatalog *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Add products and plans to active tenant's catalog
[apiInstance addUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {AddToCatalog}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new AddToCatalog(); // AddToCatalog |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Add products and plans to active tenant's catalog
                'String' result = apiInstance.addUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.addUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // AddToCatalog |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->addUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->addUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::AddToCatalog->new(); # AddToCatalog |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->addUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->addUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # AddToCatalog |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Add products and plans to active tenant's catalog
    api_response = api_instance.add_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->addUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


deleteUsingPOST

Delete all tenant's catalogs


/1.0/catalogs/delete

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/catalogs/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CatalogDTO data = ; // CatalogDTO |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.deleteUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#deleteUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CatalogDTO data = ; // CatalogDTO |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.deleteUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#deleteUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CatalogDTO *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Delete all tenant's catalogs
[apiInstance deleteUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {CatalogDTO}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new CatalogDTO(); // CatalogDTO |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Delete all tenant's catalogs
                'String' result = apiInstance.deleteUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.deleteUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // CatalogDTO |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->deleteUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->deleteUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::CatalogDTO->new(); # CatalogDTO |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->deleteUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->deleteUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # CatalogDTO |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Delete all tenant's catalogs
    api_response = api_instance.delete_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->deleteUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 204 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getAvailablePlansUsingGET

Retrieve available plans for base plan name


/1.0/catalogs/available-plans

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/catalogs/available-plans?basePlanName=&tenantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String basePlanName = basePlanName_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            array['String'] result = apiInstance.getAvailablePlansUsingGET(apiecoKey, basePlanName, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getAvailablePlansUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String basePlanName = basePlanName_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            array['String'] result = apiInstance.getAvailablePlansUsingGET(apiecoKey, basePlanName, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getAvailablePlansUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *basePlanName = basePlanName_example; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *tenantId = tenantId_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Retrieve available plans for base plan name
[apiInstance getAvailablePlansUsingGETWith:apiecoKey
    basePlanName:basePlanName
    hesabamAccessToken:hesabamAccessToken
    tenantId:tenantId
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var basePlanName = basePlanName_example; // {String}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var tenantId = tenantId_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAvailablePlansUsingGET(apiecoKey, basePlanName, hesabamAccessToken, tenantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAvailablePlansUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var basePlanName = basePlanName_example;  // String |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var tenantId = tenantId_example;  // String |  

            try
            {
                // Retrieve available plans for base plan name
                array['String'] result = apiInstance.getAvailablePlansUsingGET(apiecoKey, basePlanName, hesabamAccessToken, tenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.getAvailablePlansUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$basePlanName = basePlanName_example; // String |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$tenantId = tenantId_example; // String |  

try {
    $result = $api_instance->getAvailablePlansUsingGET($apiecoKey, $basePlanName, $hesabamAccessToken, $tenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->getAvailablePlansUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $basePlanName = basePlanName_example; # String |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $tenantId = tenantId_example; # String |  

eval { 
    my $result = $api_instance->getAvailablePlansUsingGET(apiecoKey => $apiecoKey, basePlanName => $basePlanName, hesabamAccessToken => $hesabamAccessToken, tenantId => $tenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->getAvailablePlansUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
basePlanName = basePlanName_example # String |  
hesabamAccessToken = hesabamAccessToken_example # String |  
tenantId = tenantId_example # String |  

try: 
    # Retrieve available plans for base plan name
    api_response = api_instance.get_available_plans_using_get(apiecoKey, basePlanName, hesabamAccessToken, tenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->getAvailablePlansUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
basePlanName*
String
Required
tenantId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getBasePlansUsingGET

Retrieve base/standalone plans for tenant


/1.0/catalogs/base-plans

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/catalogs/base-plans?tenantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            array['String'] result = apiInstance.getBasePlansUsingGET(apiecoKey, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getBasePlansUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            array['String'] result = apiInstance.getBasePlansUsingGET(apiecoKey, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getBasePlansUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *tenantId = tenantId_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Retrieve base/standalone plans for tenant
[apiInstance getBasePlansUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    tenantId:tenantId
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var tenantId = tenantId_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBasePlansUsingGET(apiecoKey, hesabamAccessToken, tenantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBasePlansUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var tenantId = tenantId_example;  // String |  

            try
            {
                // Retrieve base/standalone plans for tenant
                array['String'] result = apiInstance.getBasePlansUsingGET(apiecoKey, hesabamAccessToken, tenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.getBasePlansUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$tenantId = tenantId_example; // String |  

try {
    $result = $api_instance->getBasePlansUsingGET($apiecoKey, $hesabamAccessToken, $tenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->getBasePlansUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $tenantId = tenantId_example; # String |  

eval { 
    my $result = $api_instance->getBasePlansUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, tenantId => $tenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->getBasePlansUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
tenantId = tenantId_example # String |  

try: 
    # Retrieve base/standalone plans for tenant
    api_response = api_instance.get_base_plans_using_get(apiecoKey, hesabamAccessToken, tenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->getBasePlansUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
tenantId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getMetadataUsingGET

Retrieve a tenant's catalog metadata


/1.0/catalogs/metadata

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/catalogs/metadata?tenantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            CatalogMetadataModel result = apiInstance.getMetadataUsingGET(apiecoKey, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getMetadataUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            CatalogMetadataModel result = apiInstance.getMetadataUsingGET(apiecoKey, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getMetadataUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *tenantId = tenantId_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Retrieve a tenant's catalog metadata
[apiInstance getMetadataUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    tenantId:tenantId
              completionHandler: ^(CatalogMetadataModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var tenantId = tenantId_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMetadataUsingGET(apiecoKey, hesabamAccessToken, tenantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMetadataUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var tenantId = tenantId_example;  // String |  

            try
            {
                // Retrieve a tenant's catalog metadata
                CatalogMetadataModel result = apiInstance.getMetadataUsingGET(apiecoKey, hesabamAccessToken, tenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.getMetadataUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$tenantId = tenantId_example; // String |  

try {
    $result = $api_instance->getMetadataUsingGET($apiecoKey, $hesabamAccessToken, $tenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->getMetadataUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $tenantId = tenantId_example; # String |  

eval { 
    my $result = $api_instance->getMetadataUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, tenantId => $tenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->getMetadataUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
tenantId = tenantId_example # String |  

try: 
    # Retrieve a tenant's catalog metadata
    api_response = api_instance.get_metadata_using_get(apiecoKey, hesabamAccessToken, tenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->getMetadataUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
tenantId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getUsingGET

Retrieve a tenant's active catalog


/1.0/catalogs

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/catalogs?tenantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            'String' result = apiInstance.getUsingGET(apiecoKey, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String tenantId = tenantId_example; // String |  
        try {
            'String' result = apiInstance.getUsingGET(apiecoKey, hesabamAccessToken, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#getUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *tenantId = tenantId_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Retrieve a tenant's active catalog
[apiInstance getUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    tenantId:tenantId
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var tenantId = tenantId_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUsingGET(apiecoKey, hesabamAccessToken, tenantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var tenantId = tenantId_example;  // String |  

            try
            {
                // Retrieve a tenant's active catalog
                'String' result = apiInstance.getUsingGET(apiecoKey, hesabamAccessToken, tenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.getUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$tenantId = tenantId_example; // String |  

try {
    $result = $api_instance->getUsingGET($apiecoKey, $hesabamAccessToken, $tenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->getUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $tenantId = tenantId_example; # String |  

eval { 
    my $result = $api_instance->getUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, tenantId => $tenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->getUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
tenantId = tenantId_example # String |  

try: 
    # Retrieve a tenant's active catalog
    api_response = api_instance.get_using_get(apiecoKey, hesabamAccessToken, tenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->getUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
tenantId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


removeUsingPOST

Remove products and plans from active tenant's catalog


/1.0/catalogs/remove

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/catalogs/remove"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        RemoveFromCatalog data = ; // RemoveFromCatalog |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.removeUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#removeUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        RemoveFromCatalog data = ; // RemoveFromCatalog |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.removeUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#removeUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
RemoveFromCatalog *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Remove products and plans from active tenant's catalog
[apiInstance removeUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {RemoveFromCatalog}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.removeUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new RemoveFromCatalog(); // RemoveFromCatalog |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Remove products and plans from active tenant's catalog
                'String' result = apiInstance.removeUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.removeUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // RemoveFromCatalog |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->removeUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->removeUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::RemoveFromCatalog->new(); # RemoveFromCatalog |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->removeUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->removeUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # RemoveFromCatalog |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Remove products and plans from active tenant's catalog
    api_response = api_instance.remove_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->removeUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 204 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


uploadUsingPOST

Upload a new catalog for tenant


/1.0/catalogs/upload

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/catalogs/upload"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CatalogApi;

import java.io.File;
import java.util.*;

public class CatalogApiExample {

    public static void main(String[] args) {
        
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        UploadCatalog data = ; // UploadCatalog |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.uploadUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#uploadUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CatalogApi;

public class CatalogApiExample {

    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        UploadCatalog data = ; // UploadCatalog |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.uploadUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#uploadUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
UploadCatalog *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

CatalogApi *apiInstance = [[CatalogApi alloc] init];

// Upload a new catalog for tenant
[apiInstance uploadUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.CatalogApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {UploadCatalog}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.uploadUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class uploadUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new CatalogApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new UploadCatalog(); // UploadCatalog |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Upload a new catalog for tenant
                'String' result = apiInstance.uploadUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CatalogApi.uploadUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CatalogApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // UploadCatalog |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->uploadUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->uploadUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CatalogApi;

my $api_instance = WWW::SwaggerClient::CatalogApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::UploadCatalog->new(); # UploadCatalog |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->uploadUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->uploadUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CatalogApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # UploadCatalog |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Upload a new catalog for tenant
    api_response = api_instance.upload_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->uploadUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


Invoice

getInvoiceByIdUsingGET

Retrieve an invoice by id


/1.0/invoices/{invoiceId}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/invoices/{invoiceId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

import java.io.File;
import java.util.*;

public class InvoiceApiExample {

    public static void main(String[] args) {
        
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String invoiceId = invoiceId_example; // String | invoiceId
        try {
            InvoiceModel result = apiInstance.getInvoiceByIdUsingGET(apiecoKey, hesabamAccessToken, invoiceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceByIdUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String invoiceId = invoiceId_example; // String | invoiceId
        try {
            InvoiceModel result = apiInstance.getInvoiceByIdUsingGET(apiecoKey, hesabamAccessToken, invoiceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceByIdUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *invoiceId = invoiceId_example; // invoiceId

InvoiceApi *apiInstance = [[InvoiceApi alloc] init];

// Retrieve an invoice by id
[apiInstance getInvoiceByIdUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    invoiceId:invoiceId
              completionHandler: ^(InvoiceModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.InvoiceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var invoiceId = invoiceId_example; // {String} invoiceId


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoiceByIdUsingGET(apiecoKey, hesabamAccessToken, invoiceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoiceByIdUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new InvoiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var invoiceId = invoiceId_example;  // String | invoiceId

            try
            {
                // Retrieve an invoice by id
                InvoiceModel result = apiInstance.getInvoiceByIdUsingGET(apiecoKey, hesabamAccessToken, invoiceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoiceByIdUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\InvoiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$invoiceId = invoiceId_example; // String | invoiceId

try {
    $result = $api_instance->getInvoiceByIdUsingGET($apiecoKey, $hesabamAccessToken, $invoiceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceApi->getInvoiceByIdUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InvoiceApi;

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $invoiceId = invoiceId_example; # String | invoiceId

eval { 
    my $result = $api_instance->getInvoiceByIdUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, invoiceId => $invoiceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoiceApi->getInvoiceByIdUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
invoiceId = invoiceId_example # String | invoiceId

try: 
    # Retrieve an invoice by id
    api_response = api_instance.get_invoice_by_id_using_get(apiecoKey, hesabamAccessToken, invoiceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoiceByIdUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
invoiceId*
String
invoiceId
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getInvoicesListByAccountUsingGET

Retrieve account's invoices


/1.0/invoices/by-account

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/invoices/by-account?page=&paymentStatus=&username="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

import java.io.File;
import java.util.*;

public class InvoiceApiExample {

    public static void main(String[] args) {
        
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String username = username_example; // String |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListByAccountUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String username = username_example; // String |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListByAccountUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *username = username_example; //  
String *paymentStatus = paymentStatus_example; //   (optional) (default to NONE)

InvoiceApi *apiInstance = [[InvoiceApi alloc] init];

// Retrieve account's invoices
[apiInstance getInvoicesListByAccountUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    username:username
    paymentStatus:paymentStatus
              completionHandler: ^(InvoiceListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.InvoiceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var username = username_example; // {String}  

var opts = { 
  'paymentStatus': paymentStatus_example // {String}  
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoicesListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoicesListByAccountUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new InvoiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var username = username_example;  // String |  
            var paymentStatus = paymentStatus_example;  // String |   (optional)  (default to NONE)

            try
            {
                // Retrieve account's invoices
                InvoiceListModel result = apiInstance.getInvoicesListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username, paymentStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoicesListByAccountUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\InvoiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$username = username_example; // String |  
$paymentStatus = paymentStatus_example; // String |  

try {
    $result = $api_instance->getInvoicesListByAccountUsingGET($apiecoKey, $hesabamAccessToken, $page, $username, $paymentStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceApi->getInvoicesListByAccountUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InvoiceApi;

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $username = username_example; # String |  
my $paymentStatus = paymentStatus_example; # String |  

eval { 
    my $result = $api_instance->getInvoicesListByAccountUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, username => $username, paymentStatus => $paymentStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoiceApi->getInvoicesListByAccountUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
username = username_example # String |  
paymentStatus = paymentStatus_example # String |   (optional) (default to NONE)

try: 
    # Retrieve account's invoices
    api_response = api_instance.get_invoices_list_by_account_using_get(apiecoKey, hesabamAccessToken, page, username, paymentStatus=paymentStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoicesListByAccountUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
paymentStatus
String
username*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getInvoicesListByConsumerUsingGET

Retrieve invoices for accounts of consumer


/1.0/invoices/by-consumer

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/invoices/by-consumer?page=&paymentStatus="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

import java.io.File;
import java.util.*;

public class InvoiceApiExample {

    public static void main(String[] args) {
        
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListByConsumerUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListByConsumerUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *paymentStatus = paymentStatus_example; //   (optional) (default to NONE)

InvoiceApi *apiInstance = [[InvoiceApi alloc] init];

// Retrieve invoices for accounts of consumer
[apiInstance getInvoicesListByConsumerUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    paymentStatus:paymentStatus
              completionHandler: ^(InvoiceListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.InvoiceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var opts = { 
  'paymentStatus': paymentStatus_example // {String}  
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoicesListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoicesListByConsumerUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new InvoiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var paymentStatus = paymentStatus_example;  // String |   (optional)  (default to NONE)

            try
            {
                // Retrieve invoices for accounts of consumer
                InvoiceListModel result = apiInstance.getInvoicesListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page, paymentStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoicesListByConsumerUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\InvoiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$paymentStatus = paymentStatus_example; // String |  

try {
    $result = $api_instance->getInvoicesListByConsumerUsingGET($apiecoKey, $hesabamAccessToken, $page, $paymentStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceApi->getInvoicesListByConsumerUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InvoiceApi;

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $paymentStatus = paymentStatus_example; # String |  

eval { 
    my $result = $api_instance->getInvoicesListByConsumerUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, paymentStatus => $paymentStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoiceApi->getInvoicesListByConsumerUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
paymentStatus = paymentStatus_example # String |   (optional) (default to NONE)

try: 
    # Retrieve invoices for accounts of consumer
    api_response = api_instance.get_invoices_list_by_consumer_using_get(apiecoKey, hesabamAccessToken, page, paymentStatus=paymentStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoicesListByConsumerUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
paymentStatus
String

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getInvoicesListBySubscriptionUsingGET

Retrieve invoices associated with a subscription


/1.0/invoices/by-subscription

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/invoices/by-subscription?page=&paymentStatus=&subscriptionId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

import java.io.File;
import java.util.*;

public class InvoiceApiExample {

    public static void main(String[] args) {
        
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String subscriptionId = subscriptionId_example; // String |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListBySubscriptionUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String subscriptionId = subscriptionId_example; // String |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListBySubscriptionUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *subscriptionId = subscriptionId_example; //  
String *paymentStatus = paymentStatus_example; //   (optional) (default to NONE)

InvoiceApi *apiInstance = [[InvoiceApi alloc] init];

// Retrieve invoices associated with a subscription
[apiInstance getInvoicesListBySubscriptionUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    subscriptionId:subscriptionId
    paymentStatus:paymentStatus
              completionHandler: ^(InvoiceListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.InvoiceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var subscriptionId = subscriptionId_example; // {String}  

var opts = { 
  'paymentStatus': paymentStatus_example // {String}  
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoicesListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoicesListBySubscriptionUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new InvoiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var subscriptionId = subscriptionId_example;  // String |  
            var paymentStatus = paymentStatus_example;  // String |   (optional)  (default to NONE)

            try
            {
                // Retrieve invoices associated with a subscription
                InvoiceListModel result = apiInstance.getInvoicesListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId, paymentStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoicesListBySubscriptionUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\InvoiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$subscriptionId = subscriptionId_example; // String |  
$paymentStatus = paymentStatus_example; // String |  

try {
    $result = $api_instance->getInvoicesListBySubscriptionUsingGET($apiecoKey, $hesabamAccessToken, $page, $subscriptionId, $paymentStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceApi->getInvoicesListBySubscriptionUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InvoiceApi;

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $subscriptionId = subscriptionId_example; # String |  
my $paymentStatus = paymentStatus_example; # String |  

eval { 
    my $result = $api_instance->getInvoicesListBySubscriptionUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, subscriptionId => $subscriptionId, paymentStatus => $paymentStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoiceApi->getInvoicesListBySubscriptionUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
subscriptionId = subscriptionId_example # String |  
paymentStatus = paymentStatus_example # String |   (optional) (default to NONE)

try: 
    # Retrieve invoices associated with a subscription
    api_response = api_instance.get_invoices_list_by_subscription_using_get(apiecoKey, hesabamAccessToken, page, subscriptionId, paymentStatus=paymentStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoicesListBySubscriptionUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
paymentStatus
String
subscriptionId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getInvoicesListByTenantUsingGET

Retrieve invoices for accounts of tenant


/1.0/invoices/by-tenant

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/invoices/by-tenant?page=&paymentStatus=&tenantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

import java.io.File;
import java.util.*;

public class InvoiceApiExample {

    public static void main(String[] args) {
        
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String tenantId = tenantId_example; // String |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListByTenantUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String tenantId = tenantId_example; // String |  
        String paymentStatus = paymentStatus_example; // String |  
        try {
            InvoiceListModel result = apiInstance.getInvoicesListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicesListByTenantUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *tenantId = tenantId_example; //  
String *paymentStatus = paymentStatus_example; //   (optional) (default to NONE)

InvoiceApi *apiInstance = [[InvoiceApi alloc] init];

// Retrieve invoices for accounts of tenant
[apiInstance getInvoicesListByTenantUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    tenantId:tenantId
    paymentStatus:paymentStatus
              completionHandler: ^(InvoiceListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.InvoiceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var tenantId = tenantId_example; // {String}  

var opts = { 
  'paymentStatus': paymentStatus_example // {String}  
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoicesListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoicesListByTenantUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new InvoiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var tenantId = tenantId_example;  // String |  
            var paymentStatus = paymentStatus_example;  // String |   (optional)  (default to NONE)

            try
            {
                // Retrieve invoices for accounts of tenant
                InvoiceListModel result = apiInstance.getInvoicesListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId, paymentStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoicesListByTenantUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\InvoiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$tenantId = tenantId_example; // String |  
$paymentStatus = paymentStatus_example; // String |  

try {
    $result = $api_instance->getInvoicesListByTenantUsingGET($apiecoKey, $hesabamAccessToken, $page, $tenantId, $paymentStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceApi->getInvoicesListByTenantUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InvoiceApi;

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $tenantId = tenantId_example; # String |  
my $paymentStatus = paymentStatus_example; # String |  

eval { 
    my $result = $api_instance->getInvoicesListByTenantUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, tenantId => $tenantId, paymentStatus => $paymentStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoiceApi->getInvoicesListByTenantUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
tenantId = tenantId_example # String |  
paymentStatus = paymentStatus_example # String |   (optional) (default to NONE)

try: 
    # Retrieve invoices for accounts of tenant
    api_response = api_instance.get_invoices_list_by_tenant_using_get(apiecoKey, hesabamAccessToken, page, tenantId, paymentStatus=paymentStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoicesListByTenantUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
paymentStatus
String
tenantId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


Payment

getPaymentsListByAccountUsingGET

Get list of payments for account


/1.0/payments/by-account

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/payments/by-account?page=&username="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String username = username_example; // String |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByAccountUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String username = username_example; // String |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByAccountUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *username = username_example; //  

PaymentApi *apiInstance = [[PaymentApi alloc] init];

// Get list of payments for account
[apiInstance getPaymentsListByAccountUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    username:username
              completionHandler: ^(PaymentListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var username = username_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPaymentsListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentsListByAccountUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var username = username_example;  // String |  

            try
            {
                // Get list of payments for account
                PaymentListModel result = apiInstance.getPaymentsListByAccountUsingGET(apiecoKey, hesabamAccessToken, page, username);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.getPaymentsListByAccountUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$username = username_example; // String |  

try {
    $result = $api_instance->getPaymentsListByAccountUsingGET($apiecoKey, $hesabamAccessToken, $page, $username);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->getPaymentsListByAccountUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $username = username_example; # String |  

eval { 
    my $result = $api_instance->getPaymentsListByAccountUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, username => $username);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->getPaymentsListByAccountUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
username = username_example # String |  

try: 
    # Get list of payments for account
    api_response = api_instance.get_payments_list_by_account_using_get(apiecoKey, hesabamAccessToken, page, username)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->getPaymentsListByAccountUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
username*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getPaymentsListByConsumerUsingGET

Get list of payments for consumer


/1.0/payments/by-consumer

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/payments/by-consumer?page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByConsumerUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByConsumerUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  

PaymentApi *apiInstance = [[PaymentApi alloc] init];

// Get list of payments for consumer
[apiInstance getPaymentsListByConsumerUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
              completionHandler: ^(PaymentListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPaymentsListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentsListByConsumerUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  

            try
            {
                // Get list of payments for consumer
                PaymentListModel result = apiInstance.getPaymentsListByConsumerUsingGET(apiecoKey, hesabamAccessToken, page);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.getPaymentsListByConsumerUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  

try {
    $result = $api_instance->getPaymentsListByConsumerUsingGET($apiecoKey, $hesabamAccessToken, $page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->getPaymentsListByConsumerUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  

eval { 
    my $result = $api_instance->getPaymentsListByConsumerUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->getPaymentsListByConsumerUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  

try: 
    # Get list of payments for consumer
    api_response = api_instance.get_payments_list_by_consumer_using_get(apiecoKey, hesabamAccessToken, page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->getPaymentsListByConsumerUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getPaymentsListByInvoiceUsingGET

Retrieve payments associated with an invoice


/1.0/payments/by-invoice

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/payments/by-invoice?invoiceId=&page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String invoiceId = invoiceId_example; // String |  
        Integer page = 56; // Integer |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByInvoiceUsingGET(apiecoKey, hesabamAccessToken, invoiceId, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByInvoiceUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String invoiceId = invoiceId_example; // String |  
        Integer page = 56; // Integer |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByInvoiceUsingGET(apiecoKey, hesabamAccessToken, invoiceId, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByInvoiceUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *invoiceId = invoiceId_example; //  
Integer *page = 56; //  

PaymentApi *apiInstance = [[PaymentApi alloc] init];

// Retrieve payments associated with an invoice
[apiInstance getPaymentsListByInvoiceUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    invoiceId:invoiceId
    page:page
              completionHandler: ^(PaymentListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var invoiceId = invoiceId_example; // {String}  

var page = 56; // {Integer}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPaymentsListByInvoiceUsingGET(apiecoKey, hesabamAccessToken, invoiceId, page, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentsListByInvoiceUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var invoiceId = invoiceId_example;  // String |  
            var page = 56;  // Integer |  

            try
            {
                // Retrieve payments associated with an invoice
                PaymentListModel result = apiInstance.getPaymentsListByInvoiceUsingGET(apiecoKey, hesabamAccessToken, invoiceId, page);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.getPaymentsListByInvoiceUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$invoiceId = invoiceId_example; // String |  
$page = 56; // Integer |  

try {
    $result = $api_instance->getPaymentsListByInvoiceUsingGET($apiecoKey, $hesabamAccessToken, $invoiceId, $page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->getPaymentsListByInvoiceUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $invoiceId = invoiceId_example; # String |  
my $page = 56; # Integer |  

eval { 
    my $result = $api_instance->getPaymentsListByInvoiceUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, invoiceId => $invoiceId, page => $page);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->getPaymentsListByInvoiceUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
invoiceId = invoiceId_example # String |  
page = 56 # Integer |  

try: 
    # Retrieve payments associated with an invoice
    api_response = api_instance.get_payments_list_by_invoice_using_get(apiecoKey, hesabamAccessToken, invoiceId, page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->getPaymentsListByInvoiceUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
invoiceId*
String
Required
page*
Integer (int32)
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getPaymentsListBySubscriptionUsingGET

Retrieve payments associated with a subscription


/1.0/payments/by-subscription

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/payments/by-subscription?page=&subscriptionId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String subscriptionId = subscriptionId_example; // String |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListBySubscriptionUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String subscriptionId = subscriptionId_example; // String |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListBySubscriptionUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *subscriptionId = subscriptionId_example; //  

PaymentApi *apiInstance = [[PaymentApi alloc] init];

// Retrieve payments associated with a subscription
[apiInstance getPaymentsListBySubscriptionUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    subscriptionId:subscriptionId
              completionHandler: ^(PaymentListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var subscriptionId = subscriptionId_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPaymentsListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentsListBySubscriptionUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var subscriptionId = subscriptionId_example;  // String |  

            try
            {
                // Retrieve payments associated with a subscription
                PaymentListModel result = apiInstance.getPaymentsListBySubscriptionUsingGET(apiecoKey, hesabamAccessToken, page, subscriptionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.getPaymentsListBySubscriptionUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$subscriptionId = subscriptionId_example; // String |  

try {
    $result = $api_instance->getPaymentsListBySubscriptionUsingGET($apiecoKey, $hesabamAccessToken, $page, $subscriptionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->getPaymentsListBySubscriptionUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $subscriptionId = subscriptionId_example; # String |  

eval { 
    my $result = $api_instance->getPaymentsListBySubscriptionUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, subscriptionId => $subscriptionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->getPaymentsListBySubscriptionUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
subscriptionId = subscriptionId_example # String |  

try: 
    # Retrieve payments associated with a subscription
    api_response = api_instance.get_payments_list_by_subscription_using_get(apiecoKey, hesabamAccessToken, page, subscriptionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->getPaymentsListBySubscriptionUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
subscriptionId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getPaymentsListByTenantUsingGET

Get list of payments for tenant


/1.0/payments/by-tenant

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/payments/by-tenant?page=&tenantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String tenantId = tenantId_example; // String |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByTenantUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String tenantId = tenantId_example; // String |  
        try {
            PaymentListModel result = apiInstance.getPaymentsListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getPaymentsListByTenantUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *tenantId = tenantId_example; //  

PaymentApi *apiInstance = [[PaymentApi alloc] init];

// Get list of payments for tenant
[apiInstance getPaymentsListByTenantUsingGETWith:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    tenantId:tenantId
              completionHandler: ^(PaymentListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var tenantId = tenantId_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPaymentsListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPaymentsListByTenantUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var tenantId = tenantId_example;  // String |  

            try
            {
                // Get list of payments for tenant
                PaymentListModel result = apiInstance.getPaymentsListByTenantUsingGET(apiecoKey, hesabamAccessToken, page, tenantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.getPaymentsListByTenantUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$tenantId = tenantId_example; // String |  

try {
    $result = $api_instance->getPaymentsListByTenantUsingGET($apiecoKey, $hesabamAccessToken, $page, $tenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->getPaymentsListByTenantUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $tenantId = tenantId_example; # String |  

eval { 
    my $result = $api_instance->getPaymentsListByTenantUsingGET(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, tenantId => $tenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->getPaymentsListByTenantUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
tenantId = tenantId_example # String |  

try: 
    # Get list of payments for tenant
    api_response = api_instance.get_payments_list_by_tenant_using_get(apiecoKey, hesabamAccessToken, page, tenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->getPaymentsListByTenantUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
tenantId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getUsingGET1

Retrieve a payment by id


/1.0/payments/{paymentId}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/payments/{paymentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String paymentId = paymentId_example; // String | paymentId
        try {
            PaymentModel result = apiInstance.getUsingGET1(apiecoKey, hesabamAccessToken, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getUsingGET1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String paymentId = paymentId_example; // String | paymentId
        try {
            PaymentModel result = apiInstance.getUsingGET1(apiecoKey, hesabamAccessToken, paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#getUsingGET1");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *paymentId = paymentId_example; // paymentId

PaymentApi *apiInstance = [[PaymentApi alloc] init];

// Retrieve a payment by id
[apiInstance getUsingGET1With:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    paymentId:paymentId
              completionHandler: ^(PaymentModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var paymentId = paymentId_example; // {String} paymentId


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUsingGET1(apiecoKey, hesabamAccessToken, paymentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUsingGET1Example
    {
        public void main()
        {
            
            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var paymentId = paymentId_example;  // String | paymentId

            try
            {
                // Retrieve a payment by id
                PaymentModel result = apiInstance.getUsingGET1(apiecoKey, hesabamAccessToken, paymentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.getUsingGET1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$paymentId = paymentId_example; // String | paymentId

try {
    $result = $api_instance->getUsingGET1($apiecoKey, $hesabamAccessToken, $paymentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->getUsingGET1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $paymentId = paymentId_example; # String | paymentId

eval { 
    my $result = $api_instance->getUsingGET1(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, paymentId => $paymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->getUsingGET1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
paymentId = paymentId_example # String | paymentId

try: 
    # Retrieve a payment by id
    api_response = api_instance.get_using_get1(apiecoKey, hesabamAccessToken, paymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->getUsingGET1: %s\n" % e)

Parameters

Path parameters
Name Description
paymentId*
String
paymentId
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


triggerPaymentUsingPOST

Trigger a payment for invoice


/1.0/payments/trigger

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/payments/trigger"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

import java.io.File;
import java.util.*;

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        TriggerPayment data = ; // TriggerPayment |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.triggerPaymentUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#triggerPaymentUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        TriggerPayment data = ; // TriggerPayment |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.triggerPaymentUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#triggerPaymentUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
TriggerPayment *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

PaymentApi *apiInstance = [[PaymentApi alloc] init];

// Trigger a payment for invoice
[apiInstance triggerPaymentUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PaymentApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {TriggerPayment}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.triggerPaymentUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class triggerPaymentUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new PaymentApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new TriggerPayment(); // TriggerPayment |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Trigger a payment for invoice
                'String' result = apiInstance.triggerPaymentUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.triggerPaymentUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PaymentApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // TriggerPayment |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->triggerPaymentUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->triggerPaymentUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::TriggerPayment->new(); # TriggerPayment |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->triggerPaymentUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PaymentApi->triggerPaymentUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # TriggerPayment |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Trigger a payment for invoice
    api_response = api_instance.trigger_payment_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->triggerPaymentUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


Subscription

createUsingPOST1

Create a subscription


/1.0/subscriptions

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/subscriptions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateSubscription data = ; // CreateSubscription |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createUsingPOST1(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#createUsingPOST1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateSubscription data = ; // CreateSubscription |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createUsingPOST1(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#createUsingPOST1");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CreateSubscription *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

SubscriptionApi *apiInstance = [[SubscriptionApi alloc] init];

// Create a subscription
[apiInstance createUsingPOST1With:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {CreateSubscription}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createUsingPOST1(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createUsingPOST1Example
    {
        public void main()
        {
            
            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new CreateSubscription(); // CreateSubscription |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Create a subscription
                'String' result = apiInstance.createUsingPOST1(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.createUsingPOST1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // CreateSubscription |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->createUsingPOST1($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->createUsingPOST1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::CreateSubscription->new(); # CreateSubscription |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->createUsingPOST1(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->createUsingPOST1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # CreateSubscription |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Create a subscription
    api_response = api_instance.create_using_post1(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->createUsingPOST1: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


createWithAddonUsingPOST

Create subscription with addon


/1.0/subscriptions/create-with-addon

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/subscriptions/create-with-addon"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateSubscriptionWithAddOn data = ; // CreateSubscriptionWithAddOn |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createWithAddonUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#createWithAddonUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateSubscriptionWithAddOn data = ; // CreateSubscriptionWithAddOn |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createWithAddonUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#createWithAddonUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CreateSubscriptionWithAddOn *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

SubscriptionApi *apiInstance = [[SubscriptionApi alloc] init];

// Create subscription with addon
[apiInstance createWithAddonUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {CreateSubscriptionWithAddOn}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createWithAddonUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createWithAddonUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new CreateSubscriptionWithAddOn(); // CreateSubscriptionWithAddOn |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Create subscription with addon
                'String' result = apiInstance.createWithAddonUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.createWithAddonUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // CreateSubscriptionWithAddOn |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->createWithAddonUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->createWithAddonUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::CreateSubscriptionWithAddOn->new(); # CreateSubscriptionWithAddOn |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->createWithAddonUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->createWithAddonUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # CreateSubscriptionWithAddOn |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Create subscription with addon
    api_response = api_instance.create_with_addon_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->createWithAddonUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getUsingGET2

Get a subscription


/1.0/subscriptions/{subscriptionId}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/subscriptions/{subscriptionId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String subscriptionId = subscriptionId_example; // String | subscriptionId
        try {
            SubscriptionDetailModel result = apiInstance.getUsingGET2(apiecoKey, hesabamAccessToken, subscriptionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#getUsingGET2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String subscriptionId = subscriptionId_example; // String | subscriptionId
        try {
            SubscriptionDetailModel result = apiInstance.getUsingGET2(apiecoKey, hesabamAccessToken, subscriptionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#getUsingGET2");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *subscriptionId = subscriptionId_example; // subscriptionId

SubscriptionApi *apiInstance = [[SubscriptionApi alloc] init];

// Get a subscription
[apiInstance getUsingGET2With:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    subscriptionId:subscriptionId
              completionHandler: ^(SubscriptionDetailModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var subscriptionId = subscriptionId_example; // {String} subscriptionId


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUsingGET2(apiecoKey, hesabamAccessToken, subscriptionId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUsingGET2Example
    {
        public void main()
        {
            
            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var subscriptionId = subscriptionId_example;  // String | subscriptionId

            try
            {
                // Get a subscription
                SubscriptionDetailModel result = apiInstance.getUsingGET2(apiecoKey, hesabamAccessToken, subscriptionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.getUsingGET2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$subscriptionId = subscriptionId_example; // String | subscriptionId

try {
    $result = $api_instance->getUsingGET2($apiecoKey, $hesabamAccessToken, $subscriptionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->getUsingGET2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $subscriptionId = subscriptionId_example; # String | subscriptionId

eval { 
    my $result = $api_instance->getUsingGET2(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, subscriptionId => $subscriptionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->getUsingGET2: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
subscriptionId = subscriptionId_example # String | subscriptionId

try: 
    # Get a subscription
    api_response = api_instance.get_using_get2(apiecoKey, hesabamAccessToken, subscriptionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->getUsingGET2: %s\n" % e)

Parameters

Path parameters
Name Description
subscriptionId*
String
subscriptionId
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getsUsingGET1

Get list of subscription


/1.0/subscriptions

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/subscriptions?page=&username="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubscriptionApi;

import java.io.File;
import java.util.*;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String username = username_example; // String |  
        try {
            SubscriptionListModel result = apiInstance.getsUsingGET1(apiecoKey, hesabamAccessToken, page, username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#getsUsingGET1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubscriptionApi;

public class SubscriptionApiExample {

    public static void main(String[] args) {
        SubscriptionApi apiInstance = new SubscriptionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String username = username_example; // String |  
        try {
            SubscriptionListModel result = apiInstance.getsUsingGET1(apiecoKey, hesabamAccessToken, page, username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubscriptionApi#getsUsingGET1");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *username = username_example; //  

SubscriptionApi *apiInstance = [[SubscriptionApi alloc] init];

// Get list of subscription
[apiInstance getsUsingGET1With:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
    username:username
              completionHandler: ^(SubscriptionListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.SubscriptionApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var username = username_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getsUsingGET1(apiecoKey, hesabamAccessToken, page, username, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getsUsingGET1Example
    {
        public void main()
        {
            
            var apiInstance = new SubscriptionApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var username = username_example;  // String |  

            try
            {
                // Get list of subscription
                SubscriptionListModel result = apiInstance.getsUsingGET1(apiecoKey, hesabamAccessToken, page, username);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubscriptionApi.getsUsingGET1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SubscriptionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$username = username_example; // String |  

try {
    $result = $api_instance->getsUsingGET1($apiecoKey, $hesabamAccessToken, $page, $username);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubscriptionApi->getsUsingGET1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubscriptionApi;

my $api_instance = WWW::SwaggerClient::SubscriptionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $username = username_example; # String |  

eval { 
    my $result = $api_instance->getsUsingGET1(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page, username => $username);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubscriptionApi->getsUsingGET1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SubscriptionApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
username = username_example # String |  

try: 
    # Get list of subscription
    api_response = api_instance.gets_using_get1(apiecoKey, hesabamAccessToken, page, username)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubscriptionApi->getsUsingGET1: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required
username*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


Tenant

createUsingPOST2

Add a new tenant


/1.0/tenants

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/tenants"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TenantApi;

import java.io.File;
import java.util.*;

public class TenantApiExample {

    public static void main(String[] args) {
        
        TenantApi apiInstance = new TenantApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateTenant data = ; // CreateTenant |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createUsingPOST2(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#createUsingPOST2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TenantApi;

public class TenantApiExample {

    public static void main(String[] args) {
        TenantApi apiInstance = new TenantApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateTenant data = ; // CreateTenant |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.createUsingPOST2(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#createUsingPOST2");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CreateTenant *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

TenantApi *apiInstance = [[TenantApi alloc] init];

// Add a new tenant
[apiInstance createUsingPOST2With:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.TenantApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {CreateTenant}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createUsingPOST2(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createUsingPOST2Example
    {
        public void main()
        {
            
            var apiInstance = new TenantApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new CreateTenant(); // CreateTenant |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Add a new tenant
                'String' result = apiInstance.createUsingPOST2(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.createUsingPOST2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TenantApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // CreateTenant |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->createUsingPOST2($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantApi->createUsingPOST2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TenantApi;

my $api_instance = WWW::SwaggerClient::TenantApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::CreateTenant->new(); # CreateTenant |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->createUsingPOST2(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantApi->createUsingPOST2: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TenantApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # CreateTenant |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Add a new tenant
    api_response = api_instance.create_using_post2(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantApi->createUsingPOST2: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getsUsingGET2

Get list of tenants


/1.0/tenants

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/tenants?page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TenantApi;

import java.io.File;
import java.util.*;

public class TenantApiExample {

    public static void main(String[] args) {
        
        TenantApi apiInstance = new TenantApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        try {
            TenantListModel result = apiInstance.getsUsingGET2(apiecoKey, hesabamAccessToken, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#getsUsingGET2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TenantApi;

public class TenantApiExample {

    public static void main(String[] args) {
        TenantApi apiInstance = new TenantApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        try {
            TenantListModel result = apiInstance.getsUsingGET2(apiecoKey, hesabamAccessToken, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#getsUsingGET2");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  

TenantApi *apiInstance = [[TenantApi alloc] init];

// Get list of tenants
[apiInstance getsUsingGET2With:apiecoKey
    hesabamAccessToken:hesabamAccessToken
    page:page
              completionHandler: ^(TenantListModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.TenantApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getsUsingGET2(apiecoKey, hesabamAccessToken, page, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getsUsingGET2Example
    {
        public void main()
        {
            
            var apiInstance = new TenantApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  

            try
            {
                // Get list of tenants
                TenantListModel result = apiInstance.getsUsingGET2(apiecoKey, hesabamAccessToken, page);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.getsUsingGET2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TenantApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  

try {
    $result = $api_instance->getsUsingGET2($apiecoKey, $hesabamAccessToken, $page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantApi->getsUsingGET2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TenantApi;

my $api_instance = WWW::SwaggerClient::TenantApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  

eval { 
    my $result = $api_instance->getsUsingGET2(apiecoKey => $apiecoKey, hesabamAccessToken => $hesabamAccessToken, page => $page);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantApi->getsUsingGET2: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TenantApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  

try: 
    # Get list of tenants
    api_response = api_instance.gets_using_get2(apiecoKey, hesabamAccessToken, page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantApi->getsUsingGET2: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
page*
Integer (int32)
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


Usage

getDetailUsingGET

Get list of usage detail by unit between start and end date


/1.0/usages/detail

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/usages/detail?endDate=&page=&startDate=&subscriptionId=&unit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsageApi;

import java.io.File;
import java.util.*;

public class UsageApiExample {

    public static void main(String[] args) {
        
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String endDate = endDate_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String startDate = startDate_example; // String |  
        String subscriptionId = subscriptionId_example; // String |  
        String unit = unit_example; // String |  
        try {
            UsageUnitModel result = apiInstance.getDetailUsingGET(apiecoKey, endDate, hesabamAccessToken, page, startDate, subscriptionId, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#getDetailUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsageApi;

public class UsageApiExample {

    public static void main(String[] args) {
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String endDate = endDate_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        Integer page = 56; // Integer |  
        String startDate = startDate_example; // String |  
        String subscriptionId = subscriptionId_example; // String |  
        String unit = unit_example; // String |  
        try {
            UsageUnitModel result = apiInstance.getDetailUsingGET(apiecoKey, endDate, hesabamAccessToken, page, startDate, subscriptionId, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#getDetailUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *endDate = endDate_example; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  
Integer *page = 56; //  
String *startDate = startDate_example; //  
String *subscriptionId = subscriptionId_example; //  
String *unit = unit_example; //  

UsageApi *apiInstance = [[UsageApi alloc] init];

// Get list of usage detail by unit between start and end date
[apiInstance getDetailUsingGETWith:apiecoKey
    endDate:endDate
    hesabamAccessToken:hesabamAccessToken
    page:page
    startDate:startDate
    subscriptionId:subscriptionId
    unit:unit
              completionHandler: ^(UsageUnitModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UsageApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var endDate = endDate_example; // {String}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var page = 56; // {Integer}  

var startDate = startDate_example; // {String}  

var subscriptionId = subscriptionId_example; // {String}  

var unit = unit_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDetailUsingGET(apiecoKey, endDate, hesabamAccessToken, page, startDate, subscriptionId, unit, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getDetailUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new UsageApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var endDate = endDate_example;  // String |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var page = 56;  // Integer |  
            var startDate = startDate_example;  // String |  
            var subscriptionId = subscriptionId_example;  // String |  
            var unit = unit_example;  // String |  

            try
            {
                // Get list of usage detail by unit between start and end date
                UsageUnitModel result = apiInstance.getDetailUsingGET(apiecoKey, endDate, hesabamAccessToken, page, startDate, subscriptionId, unit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsageApi.getDetailUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsageApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$endDate = endDate_example; // String |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$page = 56; // Integer |  
$startDate = startDate_example; // String |  
$subscriptionId = subscriptionId_example; // String |  
$unit = unit_example; // String |  

try {
    $result = $api_instance->getDetailUsingGET($apiecoKey, $endDate, $hesabamAccessToken, $page, $startDate, $subscriptionId, $unit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsageApi->getDetailUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsageApi;

my $api_instance = WWW::SwaggerClient::UsageApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $endDate = endDate_example; # String |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $page = 56; # Integer |  
my $startDate = startDate_example; # String |  
my $subscriptionId = subscriptionId_example; # String |  
my $unit = unit_example; # String |  

eval { 
    my $result = $api_instance->getDetailUsingGET(apiecoKey => $apiecoKey, endDate => $endDate, hesabamAccessToken => $hesabamAccessToken, page => $page, startDate => $startDate, subscriptionId => $subscriptionId, unit => $unit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsageApi->getDetailUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UsageApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
endDate = endDate_example # String |  
hesabamAccessToken = hesabamAccessToken_example # String |  
page = 56 # Integer |  
startDate = startDate_example # String |  
subscriptionId = subscriptionId_example # String |  
unit = unit_example # String |  

try: 
    # Get list of usage detail by unit between start and end date
    api_response = api_instance.get_detail_using_get(apiecoKey, endDate, hesabamAccessToken, page, startDate, subscriptionId, unit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsageApi->getDetailUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
endDate*
String
Required
page*
Integer (int32)
Required
startDate*
String
Required
subscriptionId*
String
Required
unit*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getListUsingGET

Get list of total usages per unit between start and end date


/1.0/usages

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/usages?endDate=&startDate=&subscriptionId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsageApi;

import java.io.File;
import java.util.*;

public class UsageApiExample {

    public static void main(String[] args) {
        
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String endDate = endDate_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String startDate = startDate_example; // String |  
        String subscriptionId = subscriptionId_example; // String |  
        try {
            UsageUnitModel result = apiInstance.getListUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#getListUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsageApi;

public class UsageApiExample {

    public static void main(String[] args) {
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String endDate = endDate_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String startDate = startDate_example; // String |  
        String subscriptionId = subscriptionId_example; // String |  
        try {
            UsageUnitModel result = apiInstance.getListUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#getListUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *endDate = endDate_example; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *startDate = startDate_example; //  
String *subscriptionId = subscriptionId_example; //  

UsageApi *apiInstance = [[UsageApi alloc] init];

// Get list of total usages per unit between start and end date
[apiInstance getListUsingGETWith:apiecoKey
    endDate:endDate
    hesabamAccessToken:hesabamAccessToken
    startDate:startDate
    subscriptionId:subscriptionId
              completionHandler: ^(UsageUnitModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UsageApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var endDate = endDate_example; // {String}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var startDate = startDate_example; // {String}  

var subscriptionId = subscriptionId_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getListUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getListUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new UsageApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var endDate = endDate_example;  // String |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var startDate = startDate_example;  // String |  
            var subscriptionId = subscriptionId_example;  // String |  

            try
            {
                // Get list of total usages per unit between start and end date
                UsageUnitModel result = apiInstance.getListUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsageApi.getListUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsageApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$endDate = endDate_example; // String |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$startDate = startDate_example; // String |  
$subscriptionId = subscriptionId_example; // String |  

try {
    $result = $api_instance->getListUsingGET($apiecoKey, $endDate, $hesabamAccessToken, $startDate, $subscriptionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsageApi->getListUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsageApi;

my $api_instance = WWW::SwaggerClient::UsageApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $endDate = endDate_example; # String |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $startDate = startDate_example; # String |  
my $subscriptionId = subscriptionId_example; # String |  

eval { 
    my $result = $api_instance->getListUsingGET(apiecoKey => $apiecoKey, endDate => $endDate, hesabamAccessToken => $hesabamAccessToken, startDate => $startDate, subscriptionId => $subscriptionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsageApi->getListUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UsageApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
endDate = endDate_example # String |  
hesabamAccessToken = hesabamAccessToken_example # String |  
startDate = startDate_example # String |  
subscriptionId = subscriptionId_example # String |  

try: 
    # Get list of total usages per unit between start and end date
    api_response = api_instance.get_list_using_get(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsageApi->getListUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
endDate*
String
Required
startDate*
String
Required
subscriptionId*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


getTotalByUnitUsingGET

Get total usages by unit between start and end date


/1.0/usages/by-unit

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/hesabam/1.0/usages/by-unit?endDate=&startDate=&subscriptionId=&unit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsageApi;

import java.io.File;
import java.util.*;

public class UsageApiExample {

    public static void main(String[] args) {
        
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String endDate = endDate_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String startDate = startDate_example; // String |  
        String subscriptionId = subscriptionId_example; // String |  
        String unit = unit_example; // String |  
        try {
            UsageRolledUpModel result = apiInstance.getTotalByUnitUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#getTotalByUnitUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsageApi;

public class UsageApiExample {

    public static void main(String[] args) {
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String endDate = endDate_example; // String |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        String startDate = startDate_example; // String |  
        String subscriptionId = subscriptionId_example; // String |  
        String unit = unit_example; // String |  
        try {
            UsageRolledUpModel result = apiInstance.getTotalByUnitUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId, unit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#getTotalByUnitUsingGET");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *endDate = endDate_example; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  
String *startDate = startDate_example; //  
String *subscriptionId = subscriptionId_example; //  
String *unit = unit_example; //  

UsageApi *apiInstance = [[UsageApi alloc] init];

// Get total usages by unit between start and end date
[apiInstance getTotalByUnitUsingGETWith:apiecoKey
    endDate:endDate
    hesabamAccessToken:hesabamAccessToken
    startDate:startDate
    subscriptionId:subscriptionId
    unit:unit
              completionHandler: ^(UsageRolledUpModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UsageApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var endDate = endDate_example; // {String}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  

var startDate = startDate_example; // {String}  

var subscriptionId = subscriptionId_example; // {String}  

var unit = unit_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTotalByUnitUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId, unit, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTotalByUnitUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new UsageApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var endDate = endDate_example;  // String |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  
            var startDate = startDate_example;  // String |  
            var subscriptionId = subscriptionId_example;  // String |  
            var unit = unit_example;  // String |  

            try
            {
                // Get total usages by unit between start and end date
                UsageRolledUpModel result = apiInstance.getTotalByUnitUsingGET(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId, unit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsageApi.getTotalByUnitUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsageApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$endDate = endDate_example; // String |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  
$startDate = startDate_example; // String |  
$subscriptionId = subscriptionId_example; // String |  
$unit = unit_example; // String |  

try {
    $result = $api_instance->getTotalByUnitUsingGET($apiecoKey, $endDate, $hesabamAccessToken, $startDate, $subscriptionId, $unit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsageApi->getTotalByUnitUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsageApi;

my $api_instance = WWW::SwaggerClient::UsageApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $endDate = endDate_example; # String |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  
my $startDate = startDate_example; # String |  
my $subscriptionId = subscriptionId_example; # String |  
my $unit = unit_example; # String |  

eval { 
    my $result = $api_instance->getTotalByUnitUsingGET(apiecoKey => $apiecoKey, endDate => $endDate, hesabamAccessToken => $hesabamAccessToken, startDate => $startDate, subscriptionId => $subscriptionId, unit => $unit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsageApi->getTotalByUnitUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UsageApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
endDate = endDate_example # String |  
hesabamAccessToken = hesabamAccessToken_example # String |  
startDate = startDate_example # String |  
subscriptionId = subscriptionId_example # String |  
unit = unit_example # String |  

try: 
    # Get total usages by unit between start and end date
    api_response = api_instance.get_total_by_unit_using_get(apiecoKey, endDate, hesabamAccessToken, startDate, subscriptionId, unit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsageApi->getTotalByUnitUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Query parameters
Name Description
endDate*
String
Required
startDate*
String
Required
subscriptionId*
String
Required
unit*
String
Required

Responses

Status: 200 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


recordUsingPOST

Record usage


/1.0/usages/record

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/usages/record"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UsageApi;

import java.io.File;
import java.util.*;

public class UsageApiExample {

    public static void main(String[] args) {
        
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        RecordUsage data = ; // RecordUsage |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.recordUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#recordUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UsageApi;

public class UsageApiExample {

    public static void main(String[] args) {
        UsageApi apiInstance = new UsageApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        RecordUsage data = ; // RecordUsage |  
        String hesabamAccessToken = hesabamAccessToken_example; // String |  
        try {
            'String' result = apiInstance.recordUsingPOST(apiecoKey, data, hesabamAccessToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsageApi#recordUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
RecordUsage *data = ; //  
String *hesabamAccessToken = hesabamAccessToken_example; //  

UsageApi *apiInstance = [[UsageApi alloc] init];

// Record usage
[apiInstance recordUsingPOSTWith:apiecoKey
    data:data
    hesabamAccessToken:hesabamAccessToken
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UsageApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {RecordUsage}  

var hesabamAccessToken = hesabamAccessToken_example; // {String}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.recordUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class recordUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new UsageApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new RecordUsage(); // RecordUsage |  
            var hesabamAccessToken = hesabamAccessToken_example;  // String |  

            try
            {
                // Record usage
                'String' result = apiInstance.recordUsingPOST(apiecoKey, data, hesabamAccessToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UsageApi.recordUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UsageApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // RecordUsage |  
$hesabamAccessToken = hesabamAccessToken_example; // String |  

try {
    $result = $api_instance->recordUsingPOST($apiecoKey, $data, $hesabamAccessToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsageApi->recordUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UsageApi;

my $api_instance = WWW::SwaggerClient::UsageApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::RecordUsage->new(); # RecordUsage |  
my $hesabamAccessToken = hesabamAccessToken_example; # String |  

eval { 
    my $result = $api_instance->recordUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsageApi->recordUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UsageApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # RecordUsage |  
hesabamAccessToken = hesabamAccessToken_example # String |  

try: 
    # Record usage
    api_response = api_instance.record_using_post(apiecoKey, data, hesabamAccessToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsageApi->recordUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
hesabam-access-token*
String
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 400 - Bad request

Status: 401 - Unauthorized request

Status: 500 - Internal server error


User

createUsingPOST3

Add a new user (to make api requests)


/1.0/users/root

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/users/root"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateUser data = ; // CreateUser |  
        try {
            'String' result = apiInstance.createUsingPOST3(apiecoKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUsingPOST3");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        CreateUser data = ; // CreateUser |  
        try {
            'String' result = apiInstance.createUsingPOST3(apiecoKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUsingPOST3");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CreateUser *data = ; //  

UserApi *apiInstance = [[UserApi alloc] init];

// Add a new user (to make api requests)
[apiInstance createUsingPOST3With:apiecoKey
    data:data
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UserApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {CreateUser}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createUsingPOST3(apiecoKey, data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createUsingPOST3Example
    {
        public void main()
        {
            
            var apiInstance = new UserApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new CreateUser(); // CreateUser |  

            try
            {
                // Add a new user (to make api requests)
                'String' result = apiInstance.createUsingPOST3(apiecoKey, data);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.createUsingPOST3: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // CreateUser |  

try {
    $result = $api_instance->createUsingPOST3($apiecoKey, $data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->createUsingPOST3: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::CreateUser->new(); # CreateUser |  

eval { 
    my $result = $api_instance->createUsingPOST3(apiecoKey => $apiecoKey, data => $data);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->createUsingPOST3: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # CreateUser |  

try: 
    # Add a new user (to make api requests)
    api_response = api_instance.create_using_post3(apiecoKey, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->createUsingPOST3: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
data *

Responses

Status: 201 - Successful operation

Status: 401 - Unauthorized request

Status: 500 - Internal server error


loginUsingPOST

Login a user


/1.0/users/login

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/hesabam/1.0/users/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        LoginUser data = ; // LoginUser |  
        try {
            'String' result = apiInstance.loginUsingPOST(apiecoKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#loginUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        LoginUser data = ; // LoginUser |  
        try {
            'String' result = apiInstance.loginUsingPOST(apiecoKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#loginUsingPOST");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
LoginUser *data = ; //  

UserApi *apiInstance = [[UserApi alloc] init];

// Login a user
[apiInstance loginUsingPOSTWith:apiecoKey
    data:data
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UserApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var data = ; // {LoginUser}  


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.loginUsingPOST(apiecoKey, data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class loginUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new UserApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var data = new LoginUser(); // LoginUser |  

            try
            {
                // Login a user
                'String' result = apiInstance.loginUsingPOST(apiecoKey, data);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.loginUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // LoginUser |  

try {
    $result = $api_instance->loginUsingPOST($apiecoKey, $data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->loginUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::LoginUser->new(); # LoginUser |  

eval { 
    my $result = $api_instance->loginUsingPOST(apiecoKey => $apiecoKey, data => $data);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->loginUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data =  # LoginUser |  

try: 
    # Login a user
    api_response = api_instance.login_using_post(apiecoKey, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->loginUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
data *

Responses

Status: 200 - Successful operation

Status: 401 - Unauthorized request

Status: 500 - Internal server error