PackPay Rest APIs

BankEndpoint

getPurchaseDetailsUsingGET

getPurchaseDetails


/developers/bank/api/v1/purchase

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/developers/bank/api/v1/purchase?payer_id=&reference_code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BankEndpointApi;

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

public class BankEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        BankEndpointApi apiInstance = new BankEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String payerId = payerId_example; // String | payer id is optional field, that you can use that if you send the username in purchase request
        String referenceCode = referenceCode_example; // String | reference_code created in purchase request and returned to you in call back or return to site link
        try {
            ReportResponseDTO result = apiInstance.getPurchaseDetailsUsingGET(apiecoKey, payerId, referenceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BankEndpointApi#getPurchaseDetailsUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BankEndpointApi;

public class BankEndpointApiExample {

    public static void main(String[] args) {
        BankEndpointApi apiInstance = new BankEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String payerId = payerId_example; // String | payer id is optional field, that you can use that if you send the username in purchase request
        String referenceCode = referenceCode_example; // String | reference_code created in purchase request and returned to you in call back or return to site link
        try {
            ReportResponseDTO result = apiInstance.getPurchaseDetailsUsingGET(apiecoKey, payerId, referenceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BankEndpointApi#getPurchaseDetailsUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *payerId = payerId_example; // payer id is optional field, that you can use that if you send the username in purchase request (optional) (default to 989121110000)
String *referenceCode = referenceCode_example; // reference_code created in purchase request and returned to you in call back or return to site link (optional)

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

// getPurchaseDetails
[apiInstance getPurchaseDetailsUsingGETWith:apiecoKey
    payerId:payerId
    referenceCode:referenceCode
              completionHandler: ^(ReportResponseDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.BankEndpointApi()

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

var opts = { 
  'payerId': payerId_example, // {String} payer id is optional field, that you can use that if you send the username in purchase request
  'referenceCode': referenceCode_example // {String} reference_code created in purchase request and returned to you in call back or return to site link
};

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

namespace Example
{
    public class getPurchaseDetailsUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BankEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var payerId = payerId_example;  // String | payer id is optional field, that you can use that if you send the username in purchase request (optional)  (default to 989121110000)
            var referenceCode = referenceCode_example;  // String | reference_code created in purchase request and returned to you in call back or return to site link (optional) 

            try
            {
                // getPurchaseDetails
                ReportResponseDTO result = apiInstance.getPurchaseDetailsUsingGET(apiecoKey, payerId, referenceCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BankEndpointApi.getPurchaseDetailsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\BankEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$payerId = payerId_example; // String | payer id is optional field, that you can use that if you send the username in purchase request
$referenceCode = referenceCode_example; // String | reference_code created in purchase request and returned to you in call back or return to site link

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

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BankEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $payerId = payerId_example; # String | payer id is optional field, that you can use that if you send the username in purchase request
my $referenceCode = referenceCode_example; # String | reference_code created in purchase request and returned to you in call back or return to site link

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

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BankEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
payerId = payerId_example # String | payer id is optional field, that you can use that if you send the username in purchase request (optional) (default to 989121110000)
referenceCode = referenceCode_example # String | reference_code created in purchase request and returned to you in call back or return to site link (optional)

try: 
    # getPurchaseDetails
    api_response = api_instance.get_purchase_details_using_get(apiecoKey, payerId=payerId, referenceCode=referenceCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BankEndpointApi->getPurchaseDetailsUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
payer_id
String
payer id is optional field, that you can use that if you send the username in purchase request
reference_code
String
reference_code created in purchase request and returned to you in call back or return to site link

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


purchaseWithSuggestedPriceRequestUsingPOST

Purchase


/developers/bank/api/v1/purchase

Usage and SDK Samples

curl -X POST "https://api.apieco.irpackpay/developers/bank/api/v1/purchase?amount=&callback_url=&payer_id=&payer_name="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BankEndpointApi;

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

public class BankEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        BankEndpointApi apiInstance = new BankEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Integer amount = 56; // Integer | Amount determined how much you want to charge your user
        String callbackUrl = callbackUrl_example; // String | callback url that set for returning to your site with reference code
        String payerId = payerId_example; // String | payer id is optional field, that you can send it for next reports
        String payerName = payerName_example; // String | payer name is optional field, that you can send it for next reports
        try {
            SwaggerPurchaseResponse result = apiInstance.purchaseWithSuggestedPriceRequestUsingPOST(apiecoKey, amount, callbackUrl, payerId, payerName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BankEndpointApi#purchaseWithSuggestedPriceRequestUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BankEndpointApi;

public class BankEndpointApiExample {

    public static void main(String[] args) {
        BankEndpointApi apiInstance = new BankEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Integer amount = 56; // Integer | Amount determined how much you want to charge your user
        String callbackUrl = callbackUrl_example; // String | callback url that set for returning to your site with reference code
        String payerId = payerId_example; // String | payer id is optional field, that you can send it for next reports
        String payerName = payerName_example; // String | payer name is optional field, that you can send it for next reports
        try {
            SwaggerPurchaseResponse result = apiInstance.purchaseWithSuggestedPriceRequestUsingPOST(apiecoKey, amount, callbackUrl, payerId, payerName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BankEndpointApi#purchaseWithSuggestedPriceRequestUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Integer *amount = 56; // Amount determined how much you want to charge your user (optional) (default to 1000)
String *callbackUrl = callbackUrl_example; // callback url that set for returning to your site with reference code (optional) (default to http://packpay.ir)
String *payerId = payerId_example; // payer id is optional field, that you can send it for next reports (optional) (default to 989121110000)
String *payerName = payerName_example; // payer name is optional field, that you can send it for next reports (optional) (default to 989121110000)

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

// Purchase
[apiInstance purchaseWithSuggestedPriceRequestUsingPOSTWith:apiecoKey
    amount:amount
    callbackUrl:callbackUrl
    payerId:payerId
    payerName:payerName
              completionHandler: ^(SwaggerPurchaseResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.BankEndpointApi()

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

var opts = { 
  'amount': 56, // {Integer} Amount determined how much you want to charge your user
  'callbackUrl': callbackUrl_example, // {String} callback url that set for returning to your site with reference code
  'payerId': payerId_example, // {String} payer id is optional field, that you can send it for next reports
  'payerName': payerName_example // {String} payer name is optional field, that you can send it for next reports
};

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

namespace Example
{
    public class purchaseWithSuggestedPriceRequestUsingPOSTExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BankEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var amount = 56;  // Integer | Amount determined how much you want to charge your user (optional)  (default to 1000)
            var callbackUrl = callbackUrl_example;  // String | callback url that set for returning to your site with reference code (optional)  (default to http://packpay.ir)
            var payerId = payerId_example;  // String | payer id is optional field, that you can send it for next reports (optional)  (default to 989121110000)
            var payerName = payerName_example;  // String | payer name is optional field, that you can send it for next reports (optional)  (default to 989121110000)

            try
            {
                // Purchase
                SwaggerPurchaseResponse result = apiInstance.purchaseWithSuggestedPriceRequestUsingPOST(apiecoKey, amount, callbackUrl, payerId, payerName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BankEndpointApi.purchaseWithSuggestedPriceRequestUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\BankEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$amount = 56; // Integer | Amount determined how much you want to charge your user
$callbackUrl = callbackUrl_example; // String | callback url that set for returning to your site with reference code
$payerId = payerId_example; // String | payer id is optional field, that you can send it for next reports
$payerName = payerName_example; // String | payer name is optional field, that you can send it for next reports

try {
    $result = $api_instance->purchaseWithSuggestedPriceRequestUsingPOST($apiecoKey, $amount, $callbackUrl, $payerId, $payerName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BankEndpointApi->purchaseWithSuggestedPriceRequestUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BankEndpointApi;

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BankEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $amount = 56; # Integer | Amount determined how much you want to charge your user
my $callbackUrl = callbackUrl_example; # String | callback url that set for returning to your site with reference code
my $payerId = payerId_example; # String | payer id is optional field, that you can send it for next reports
my $payerName = payerName_example; # String | payer name is optional field, that you can send it for next reports

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

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BankEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
amount = 56 # Integer | Amount determined how much you want to charge your user (optional) (default to 1000)
callbackUrl = callbackUrl_example # String | callback url that set for returning to your site with reference code (optional) (default to http://packpay.ir)
payerId = payerId_example # String | payer id is optional field, that you can send it for next reports (optional) (default to 989121110000)
payerName = payerName_example # String | payer name is optional field, that you can send it for next reports (optional) (default to 989121110000)

try: 
    # Purchase
    api_response = api_instance.purchase_with_suggested_price_request_using_post(apiecoKey, amount=amount, callbackUrl=callbackUrl, payerId=payerId, payerName=payerName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BankEndpointApi->purchaseWithSuggestedPriceRequestUsingPOST: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
amount
Integer (int32)
Amount determined how much you want to charge your user
callback_url
String
callback url that set for returning to your site with reference code
payer_id
String
payer id is optional field, that you can send it for next reports
payer_name
String
payer name is optional field, that you can send it for next reports

Responses

Status: 200 - purchase

Status: 201 - Created

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found


GamificationEndpoint

assignCoinUsingPOST

Assign Coin


/developers/api/coin/assignment/{playerId}

Usage and SDK Samples

curl -X POST "https://api.apieco.irpackpay/developers/api/coin/assignment/{playerId}?coinValue="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GamificationEndpointApi;

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

public class GamificationEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        GamificationEndpointApi apiInstance = new GamificationEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long coinValue = 789; // Long | coinValue
        String playerId = playerId_example; // String | playerId
        try {
            SwaggerCoinOKResponse result = apiInstance.assignCoinUsingPOST(apiecoKey, coinValue, playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamificationEndpointApi#assignCoinUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GamificationEndpointApi;

public class GamificationEndpointApiExample {

    public static void main(String[] args) {
        GamificationEndpointApi apiInstance = new GamificationEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long coinValue = 789; // Long | coinValue
        String playerId = playerId_example; // String | playerId
        try {
            SwaggerCoinOKResponse result = apiInstance.assignCoinUsingPOST(apiecoKey, coinValue, playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamificationEndpointApi#assignCoinUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Long *coinValue = 789; // coinValue
String *playerId = playerId_example; // playerId

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

// Assign Coin
[apiInstance assignCoinUsingPOSTWith:apiecoKey
    coinValue:coinValue
    playerId:playerId
              completionHandler: ^(SwaggerCoinOKResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.GamificationEndpointApi()

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

var coinValue = 789; // {Long} coinValue

var playerId = playerId_example; // {String} playerId


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

namespace Example
{
    public class assignCoinUsingPOSTExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new GamificationEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var coinValue = 789;  // Long | coinValue
            var playerId = playerId_example;  // String | playerId

            try
            {
                // Assign Coin
                SwaggerCoinOKResponse result = apiInstance.assignCoinUsingPOST(apiecoKey, coinValue, playerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GamificationEndpointApi.assignCoinUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\GamificationEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$coinValue = 789; // Long | coinValue
$playerId = playerId_example; // String | playerId

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

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::GamificationEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $coinValue = 789; # Long | coinValue
my $playerId = playerId_example; # String | playerId

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

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.GamificationEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
coinValue = 789 # Long | coinValue
playerId = playerId_example # String | playerId

try: 
    # Assign Coin
    api_response = api_instance.assign_coin_using_post(apiecoKey, coinValue, playerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GamificationEndpointApi->assignCoinUsingPOST: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
String
playerId
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
coinValue*
Long (int64)
coinValue
Required

Responses

Status: 200 - Assign coin to user

Status: 201 - Created

Status: 400 - Bad request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


consumeCoinUsingPOST

Consume Coin


/developers/api/coin/consumption/{playerId}

Usage and SDK Samples

curl -X POST "https://api.apieco.irpackpay/developers/api/coin/consumption/{playerId}?coinValue="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GamificationEndpointApi;

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

public class GamificationEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        GamificationEndpointApi apiInstance = new GamificationEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long coinValue = 789; // Long | coinValue
        String playerId = playerId_example; // String | playerId
        try {
            SwaggerCoinOKResponse result = apiInstance.consumeCoinUsingPOST(apiecoKey, coinValue, playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamificationEndpointApi#consumeCoinUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GamificationEndpointApi;

public class GamificationEndpointApiExample {

    public static void main(String[] args) {
        GamificationEndpointApi apiInstance = new GamificationEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long coinValue = 789; // Long | coinValue
        String playerId = playerId_example; // String | playerId
        try {
            SwaggerCoinOKResponse result = apiInstance.consumeCoinUsingPOST(apiecoKey, coinValue, playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamificationEndpointApi#consumeCoinUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Long *coinValue = 789; // coinValue
String *playerId = playerId_example; // playerId

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

// Consume Coin
[apiInstance consumeCoinUsingPOSTWith:apiecoKey
    coinValue:coinValue
    playerId:playerId
              completionHandler: ^(SwaggerCoinOKResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.GamificationEndpointApi()

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

var coinValue = 789; // {Long} coinValue

var playerId = playerId_example; // {String} playerId


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

namespace Example
{
    public class consumeCoinUsingPOSTExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new GamificationEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var coinValue = 789;  // Long | coinValue
            var playerId = playerId_example;  // String | playerId

            try
            {
                // Consume Coin
                SwaggerCoinOKResponse result = apiInstance.consumeCoinUsingPOST(apiecoKey, coinValue, playerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GamificationEndpointApi.consumeCoinUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\GamificationEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$coinValue = 789; // Long | coinValue
$playerId = playerId_example; // String | playerId

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

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::GamificationEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $coinValue = 789; # Long | coinValue
my $playerId = playerId_example; # String | playerId

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

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.GamificationEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
coinValue = 789 # Long | coinValue
playerId = playerId_example # String | playerId

try: 
    # Consume Coin
    api_response = api_instance.consume_coin_using_post(apiecoKey, coinValue, playerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GamificationEndpointApi->consumeCoinUsingPOST: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
String
playerId
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
coinValue*
Long (int64)
coinValue
Required

Responses

Status: 200 - Consume coin from user

Status: 201 - Created

Status: 400 - Bad request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


getPlayerInformationUsingGET

Get Player Coin


/developers/api/coin/player/{playerId}

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/developers/api/coin/player/{playerId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GamificationEndpointApi;

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

public class GamificationEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        GamificationEndpointApi apiInstance = new GamificationEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String playerId = playerId_example; // String | playerId
        try {
            SwaggerCoinOKResponse result = apiInstance.getPlayerInformationUsingGET(apiecoKey, playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamificationEndpointApi#getPlayerInformationUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GamificationEndpointApi;

public class GamificationEndpointApiExample {

    public static void main(String[] args) {
        GamificationEndpointApi apiInstance = new GamificationEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String playerId = playerId_example; // String | playerId
        try {
            SwaggerCoinOKResponse result = apiInstance.getPlayerInformationUsingGET(apiecoKey, playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamificationEndpointApi#getPlayerInformationUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *playerId = playerId_example; // playerId

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

// Get Player Coin
[apiInstance getPlayerInformationUsingGETWith:apiecoKey
    playerId:playerId
              completionHandler: ^(SwaggerCoinOKResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.GamificationEndpointApi()

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

var playerId = playerId_example; // {String} playerId


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

namespace Example
{
    public class getPlayerInformationUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new GamificationEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var playerId = playerId_example;  // String | playerId

            try
            {
                // Get Player Coin
                SwaggerCoinOKResponse result = apiInstance.getPlayerInformationUsingGET(apiecoKey, playerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GamificationEndpointApi.getPlayerInformationUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\GamificationEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$playerId = playerId_example; // String | playerId

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

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::GamificationEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $playerId = playerId_example; # String | playerId

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

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try: 
    # Get Player Coin
    api_response = api_instance.get_player_information_using_get(apiecoKey, playerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GamificationEndpointApi->getPlayerInformationUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
String
playerId
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - Assign coin to user

Status: 400 - Bad request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


ReportingEndpoint

consumableBatchReportUsingGET

Show report for consumable based purchase report


/v1/reporting/consumable/batch

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/v1/reporting/consumable/batch?fromDate=&limit=&offset=&phoneNo=&productCode=&serviceCode=&toDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportingEndpointApi;

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

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long fromDate = 789; // Long | fromDate
        Integer limit = 56; // Integer | limit
        Integer offset = 56; // Integer | offset
        String phoneNo = phoneNo_example; // String | phoneNo
        String productCode = productCode_example; // String | productCode
        String serviceCode = serviceCode_example; // String | serviceCode
        Long toDate = 789; // Long | toDate
        try {
            SwaggerConsumeBatchReportResponse result = apiInstance.consumableBatchReportUsingGET(apiecoKey, fromDate, limit, offset, phoneNo, productCode, serviceCode, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#consumableBatchReportUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportingEndpointApi;

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long fromDate = 789; // Long | fromDate
        Integer limit = 56; // Integer | limit
        Integer offset = 56; // Integer | offset
        String phoneNo = phoneNo_example; // String | phoneNo
        String productCode = productCode_example; // String | productCode
        String serviceCode = serviceCode_example; // String | serviceCode
        Long toDate = 789; // Long | toDate
        try {
            SwaggerConsumeBatchReportResponse result = apiInstance.consumableBatchReportUsingGET(apiecoKey, fromDate, limit, offset, phoneNo, productCode, serviceCode, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#consumableBatchReportUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Long *fromDate = 789; // fromDate (optional)
Integer *limit = 56; // limit (optional) (default to 50)
Integer *offset = 56; // offset (optional) (default to 1)
String *phoneNo = phoneNo_example; // phoneNo (optional)
String *productCode = productCode_example; // productCode (optional)
String *serviceCode = serviceCode_example; // serviceCode (optional)
Long *toDate = 789; // toDate (optional)

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

// Show report for consumable based purchase report
[apiInstance consumableBatchReportUsingGETWith:apiecoKey
    fromDate:fromDate
    limit:limit
    offset:offset
    phoneNo:phoneNo
    productCode:productCode
    serviceCode:serviceCode
    toDate:toDate
              completionHandler: ^(SwaggerConsumeBatchReportResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.ReportingEndpointApi()

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

var opts = { 
  'fromDate': 789, // {Long} fromDate
  'limit': 56, // {Integer} limit
  'offset': 56, // {Integer} offset
  'phoneNo': phoneNo_example, // {String} phoneNo
  'productCode': productCode_example, // {String} productCode
  'serviceCode': serviceCode_example, // {String} serviceCode
  'toDate': 789 // {Long} toDate
};

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

namespace Example
{
    public class consumableBatchReportUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportingEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var fromDate = 789;  // Long | fromDate (optional) 
            var limit = 56;  // Integer | limit (optional)  (default to 50)
            var offset = 56;  // Integer | offset (optional)  (default to 1)
            var phoneNo = phoneNo_example;  // String | phoneNo (optional) 
            var productCode = productCode_example;  // String | productCode (optional) 
            var serviceCode = serviceCode_example;  // String | serviceCode (optional) 
            var toDate = 789;  // Long | toDate (optional) 

            try
            {
                // Show report for consumable based purchase report
                SwaggerConsumeBatchReportResponse result = apiInstance.consumableBatchReportUsingGET(apiecoKey, fromDate, limit, offset, phoneNo, productCode, serviceCode, toDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportingEndpointApi.consumableBatchReportUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\ReportingEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$fromDate = 789; // Long | fromDate
$limit = 56; // Integer | limit
$offset = 56; // Integer | offset
$phoneNo = phoneNo_example; // String | phoneNo
$productCode = productCode_example; // String | productCode
$serviceCode = serviceCode_example; // String | serviceCode
$toDate = 789; // Long | toDate

try {
    $result = $api_instance->consumableBatchReportUsingGET($apiecoKey, $fromDate, $limit, $offset, $phoneNo, $productCode, $serviceCode, $toDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportingEndpointApi->consumableBatchReportUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReportingEndpointApi;

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportingEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $fromDate = 789; # Long | fromDate
my $limit = 56; # Integer | limit
my $offset = 56; # Integer | offset
my $phoneNo = phoneNo_example; # String | phoneNo
my $productCode = productCode_example; # String | productCode
my $serviceCode = serviceCode_example; # String | serviceCode
my $toDate = 789; # Long | toDate

eval { 
    my $result = $api_instance->consumableBatchReportUsingGET(apiecoKey => $apiecoKey, fromDate => $fromDate, limit => $limit, offset => $offset, phoneNo => $phoneNo, productCode => $productCode, serviceCode => $serviceCode, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportingEndpointApi->consumableBatchReportUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportingEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
fromDate = 789 # Long | fromDate (optional)
limit = 56 # Integer | limit (optional) (default to 50)
offset = 56 # Integer | offset (optional) (default to 1)
phoneNo = phoneNo_example # String | phoneNo (optional)
productCode = productCode_example # String | productCode (optional)
serviceCode = serviceCode_example # String | serviceCode (optional)
toDate = 789 # Long | toDate (optional)

try: 
    # Show report for consumable based purchase report
    api_response = api_instance.consumable_batch_report_using_get(apiecoKey, fromDate=fromDate, limit=limit, offset=offset, phoneNo=phoneNo, productCode=productCode, serviceCode=serviceCode, toDate=toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingEndpointApi->consumableBatchReportUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
fromDate
Long (int64)
fromDate
limit
Integer (int32)
limit
offset
Integer (int32)
offset
phoneNo
String
phoneNo
productCode
String
productCode
serviceCode
String
serviceCode
toDate
Long (int64)
toDate

Responses

Status: 200 - Get time based report

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


consumablePurchaseReportRequestUsingGET

Get consumable purchase report


/v1/reporting/consumable/purchase/service/{service_code}/product/{product_code}/operator/{operator_key}

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/v1/reporting/consumable/purchase/service/{service_code}/product/{product_code}/operator/{operator_key}?entrance_path=&subscriber_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportingEndpointApi;

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

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String entrancePath = entrancePath_example; // String | entrance_path
        String operatorKey = operatorKey_example; // String | operator_key
        String productCode = productCode_example; // String | product_code
        String serviceCode = serviceCode_example; // String | service_code
        String subscriberId = subscriberId_example; // String | subscriber_id
        try {
            SwaggerSingleConsumableReportResponse result = apiInstance.consumablePurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#consumablePurchaseReportRequestUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportingEndpointApi;

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String entrancePath = entrancePath_example; // String | entrance_path
        String operatorKey = operatorKey_example; // String | operator_key
        String productCode = productCode_example; // String | product_code
        String serviceCode = serviceCode_example; // String | service_code
        String subscriberId = subscriberId_example; // String | subscriber_id
        try {
            SwaggerSingleConsumableReportResponse result = apiInstance.consumablePurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#consumablePurchaseReportRequestUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *entrancePath = entrancePath_example; // entrance_path
String *operatorKey = operatorKey_example; // operator_key
String *productCode = productCode_example; // product_code
String *serviceCode = serviceCode_example; // service_code
String *subscriberId = subscriberId_example; // subscriber_id

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

// Get consumable purchase report
[apiInstance consumablePurchaseReportRequestUsingGETWith:apiecoKey
    entrancePath:entrancePath
    operatorKey:operatorKey
    productCode:productCode
    serviceCode:serviceCode
    subscriberId:subscriberId
              completionHandler: ^(SwaggerSingleConsumableReportResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.ReportingEndpointApi()

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

var entrancePath = entrancePath_example; // {String} entrance_path

var operatorKey = operatorKey_example; // {String} operator_key

var productCode = productCode_example; // {String} product_code

var serviceCode = serviceCode_example; // {String} service_code

var subscriberId = subscriberId_example; // {String} subscriber_id


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

namespace Example
{
    public class consumablePurchaseReportRequestUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportingEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var entrancePath = entrancePath_example;  // String | entrance_path
            var operatorKey = operatorKey_example;  // String | operator_key
            var productCode = productCode_example;  // String | product_code
            var serviceCode = serviceCode_example;  // String | service_code
            var subscriberId = subscriberId_example;  // String | subscriber_id

            try
            {
                // Get consumable purchase report
                SwaggerSingleConsumableReportResponse result = apiInstance.consumablePurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportingEndpointApi.consumablePurchaseReportRequestUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\ReportingEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$entrancePath = entrancePath_example; // String | entrance_path
$operatorKey = operatorKey_example; // String | operator_key
$productCode = productCode_example; // String | product_code
$serviceCode = serviceCode_example; // String | service_code
$subscriberId = subscriberId_example; // String | subscriber_id

try {
    $result = $api_instance->consumablePurchaseReportRequestUsingGET($apiecoKey, $entrancePath, $operatorKey, $productCode, $serviceCode, $subscriberId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportingEndpointApi->consumablePurchaseReportRequestUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReportingEndpointApi;

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportingEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $entrancePath = entrancePath_example; # String | entrance_path
my $operatorKey = operatorKey_example; # String | operator_key
my $productCode = productCode_example; # String | product_code
my $serviceCode = serviceCode_example; # String | service_code
my $subscriberId = subscriberId_example; # String | subscriber_id

eval { 
    my $result = $api_instance->consumablePurchaseReportRequestUsingGET(apiecoKey => $apiecoKey, entrancePath => $entrancePath, operatorKey => $operatorKey, productCode => $productCode, serviceCode => $serviceCode, subscriberId => $subscriberId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportingEndpointApi->consumablePurchaseReportRequestUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportingEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
entrancePath = entrancePath_example # String | entrance_path
operatorKey = operatorKey_example # String | operator_key
productCode = productCode_example # String | product_code
serviceCode = serviceCode_example # String | service_code
subscriberId = subscriberId_example # String | subscriber_id

try: 
    # Get consumable purchase report
    api_response = api_instance.consumable_purchase_report_request_using_get(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingEndpointApi->consumablePurchaseReportRequestUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
operator_key*
String
operator_key
Required
product_code*
String
product_code
Required
service_code*
String
service_code
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
entrance_path*
String
entrance_path
Required
subscriber_id*
String
subscriber_id
Required

Responses

Status: 200 - Get time based report

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


nonconsumablePurchaseReportRequestUsingGET

Get non-consumable purchase report


/v1/reporting/nonconsumable/purchase/service/{service_code}/product/{product_code}/operator/{operator_key}

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/v1/reporting/nonconsumable/purchase/service/{service_code}/product/{product_code}/operator/{operator_key}?entrance_path=&subscriber_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportingEndpointApi;

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

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String entrancePath = entrancePath_example; // String | entrance_path
        String operatorKey = operatorKey_example; // String | operator_key
        String productCode = productCode_example; // String | product_code
        String serviceCode = serviceCode_example; // String | service_code
        String subscriberId = subscriberId_example; // String | subscriber_id
        try {
            SwaggerSingleNonConsumableReportResponse result = apiInstance.nonconsumablePurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#nonconsumablePurchaseReportRequestUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportingEndpointApi;

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String entrancePath = entrancePath_example; // String | entrance_path
        String operatorKey = operatorKey_example; // String | operator_key
        String productCode = productCode_example; // String | product_code
        String serviceCode = serviceCode_example; // String | service_code
        String subscriberId = subscriberId_example; // String | subscriber_id
        try {
            SwaggerSingleNonConsumableReportResponse result = apiInstance.nonconsumablePurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#nonconsumablePurchaseReportRequestUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *entrancePath = entrancePath_example; // entrance_path
String *operatorKey = operatorKey_example; // operator_key
String *productCode = productCode_example; // product_code
String *serviceCode = serviceCode_example; // service_code
String *subscriberId = subscriberId_example; // subscriber_id

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

// Get non-consumable purchase report
[apiInstance nonconsumablePurchaseReportRequestUsingGETWith:apiecoKey
    entrancePath:entrancePath
    operatorKey:operatorKey
    productCode:productCode
    serviceCode:serviceCode
    subscriberId:subscriberId
              completionHandler: ^(SwaggerSingleNonConsumableReportResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.ReportingEndpointApi()

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

var entrancePath = entrancePath_example; // {String} entrance_path

var operatorKey = operatorKey_example; // {String} operator_key

var productCode = productCode_example; // {String} product_code

var serviceCode = serviceCode_example; // {String} service_code

var subscriberId = subscriberId_example; // {String} subscriber_id


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

namespace Example
{
    public class nonconsumablePurchaseReportRequestUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportingEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var entrancePath = entrancePath_example;  // String | entrance_path
            var operatorKey = operatorKey_example;  // String | operator_key
            var productCode = productCode_example;  // String | product_code
            var serviceCode = serviceCode_example;  // String | service_code
            var subscriberId = subscriberId_example;  // String | subscriber_id

            try
            {
                // Get non-consumable purchase report
                SwaggerSingleNonConsumableReportResponse result = apiInstance.nonconsumablePurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportingEndpointApi.nonconsumablePurchaseReportRequestUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\ReportingEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$entrancePath = entrancePath_example; // String | entrance_path
$operatorKey = operatorKey_example; // String | operator_key
$productCode = productCode_example; // String | product_code
$serviceCode = serviceCode_example; // String | service_code
$subscriberId = subscriberId_example; // String | subscriber_id

try {
    $result = $api_instance->nonconsumablePurchaseReportRequestUsingGET($apiecoKey, $entrancePath, $operatorKey, $productCode, $serviceCode, $subscriberId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportingEndpointApi->nonconsumablePurchaseReportRequestUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReportingEndpointApi;

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportingEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $entrancePath = entrancePath_example; # String | entrance_path
my $operatorKey = operatorKey_example; # String | operator_key
my $productCode = productCode_example; # String | product_code
my $serviceCode = serviceCode_example; # String | service_code
my $subscriberId = subscriberId_example; # String | subscriber_id

eval { 
    my $result = $api_instance->nonconsumablePurchaseReportRequestUsingGET(apiecoKey => $apiecoKey, entrancePath => $entrancePath, operatorKey => $operatorKey, productCode => $productCode, serviceCode => $serviceCode, subscriberId => $subscriberId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportingEndpointApi->nonconsumablePurchaseReportRequestUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportingEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
entrancePath = entrancePath_example # String | entrance_path
operatorKey = operatorKey_example # String | operator_key
productCode = productCode_example # String | product_code
serviceCode = serviceCode_example # String | service_code
subscriberId = subscriberId_example # String | subscriber_id

try: 
    # Get non-consumable purchase report
    api_response = api_instance.nonconsumable_purchase_report_request_using_get(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingEndpointApi->nonconsumablePurchaseReportRequestUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
operator_key*
String
operator_key
Required
product_code*
String
product_code
Required
service_code*
String
service_code
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
entrance_path*
String
entrance_path
Required
subscriber_id*
String
subscriber_id
Required

Responses

Status: 200 - Get time based report

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


subscriptionBatchReportUsingGET

Show report for subscription based purchase report


/v1/reporting/subscription/batch

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/v1/reporting/subscription/batch?autoCharge=&limit=&offset=&phoneNo=&productCode=&productStatus=&serviceCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportingEndpointApi;

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

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String autoCharge = autoCharge_example; // String | autoCharge
        Integer limit = 56; // Integer | limit
        Integer offset = 56; // Integer | offset
        String phoneNo = phoneNo_example; // String | phoneNo
        String productCode = productCode_example; // String | productCode
        String productStatus = productStatus_example; // String | productStatus
        String serviceCode = serviceCode_example; // String | serviceCode
        try {
            SwaggerSubscriptionBatchReportResponse result = apiInstance.subscriptionBatchReportUsingGET(apiecoKey, autoCharge, limit, offset, phoneNo, productCode, productStatus, serviceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#subscriptionBatchReportUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportingEndpointApi;

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String autoCharge = autoCharge_example; // String | autoCharge
        Integer limit = 56; // Integer | limit
        Integer offset = 56; // Integer | offset
        String phoneNo = phoneNo_example; // String | phoneNo
        String productCode = productCode_example; // String | productCode
        String productStatus = productStatus_example; // String | productStatus
        String serviceCode = serviceCode_example; // String | serviceCode
        try {
            SwaggerSubscriptionBatchReportResponse result = apiInstance.subscriptionBatchReportUsingGET(apiecoKey, autoCharge, limit, offset, phoneNo, productCode, productStatus, serviceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#subscriptionBatchReportUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *autoCharge = autoCharge_example; // autoCharge (optional)
Integer *limit = 56; // limit (optional) (default to 50)
Integer *offset = 56; // offset (optional) (default to 1)
String *phoneNo = phoneNo_example; // phoneNo (optional)
String *productCode = productCode_example; // productCode (optional)
String *productStatus = productStatus_example; // productStatus (optional)
String *serviceCode = serviceCode_example; // serviceCode (optional)

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

// Show report for subscription based purchase report
[apiInstance subscriptionBatchReportUsingGETWith:apiecoKey
    autoCharge:autoCharge
    limit:limit
    offset:offset
    phoneNo:phoneNo
    productCode:productCode
    productStatus:productStatus
    serviceCode:serviceCode
              completionHandler: ^(SwaggerSubscriptionBatchReportResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.ReportingEndpointApi()

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

var opts = { 
  'autoCharge': autoCharge_example, // {String} autoCharge
  'limit': 56, // {Integer} limit
  'offset': 56, // {Integer} offset
  'phoneNo': phoneNo_example, // {String} phoneNo
  'productCode': productCode_example, // {String} productCode
  'productStatus': productStatus_example, // {String} productStatus
  'serviceCode': serviceCode_example // {String} serviceCode
};

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

namespace Example
{
    public class subscriptionBatchReportUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportingEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var autoCharge = autoCharge_example;  // String | autoCharge (optional) 
            var limit = 56;  // Integer | limit (optional)  (default to 50)
            var offset = 56;  // Integer | offset (optional)  (default to 1)
            var phoneNo = phoneNo_example;  // String | phoneNo (optional) 
            var productCode = productCode_example;  // String | productCode (optional) 
            var productStatus = productStatus_example;  // String | productStatus (optional) 
            var serviceCode = serviceCode_example;  // String | serviceCode (optional) 

            try
            {
                // Show report for subscription based purchase report
                SwaggerSubscriptionBatchReportResponse result = apiInstance.subscriptionBatchReportUsingGET(apiecoKey, autoCharge, limit, offset, phoneNo, productCode, productStatus, serviceCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportingEndpointApi.subscriptionBatchReportUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\ReportingEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$autoCharge = autoCharge_example; // String | autoCharge
$limit = 56; // Integer | limit
$offset = 56; // Integer | offset
$phoneNo = phoneNo_example; // String | phoneNo
$productCode = productCode_example; // String | productCode
$productStatus = productStatus_example; // String | productStatus
$serviceCode = serviceCode_example; // String | serviceCode

try {
    $result = $api_instance->subscriptionBatchReportUsingGET($apiecoKey, $autoCharge, $limit, $offset, $phoneNo, $productCode, $productStatus, $serviceCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportingEndpointApi->subscriptionBatchReportUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReportingEndpointApi;

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportingEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $autoCharge = autoCharge_example; # String | autoCharge
my $limit = 56; # Integer | limit
my $offset = 56; # Integer | offset
my $phoneNo = phoneNo_example; # String | phoneNo
my $productCode = productCode_example; # String | productCode
my $productStatus = productStatus_example; # String | productStatus
my $serviceCode = serviceCode_example; # String | serviceCode

eval { 
    my $result = $api_instance->subscriptionBatchReportUsingGET(apiecoKey => $apiecoKey, autoCharge => $autoCharge, limit => $limit, offset => $offset, phoneNo => $phoneNo, productCode => $productCode, productStatus => $productStatus, serviceCode => $serviceCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportingEndpointApi->subscriptionBatchReportUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportingEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
autoCharge = autoCharge_example # String | autoCharge (optional)
limit = 56 # Integer | limit (optional) (default to 50)
offset = 56 # Integer | offset (optional) (default to 1)
phoneNo = phoneNo_example # String | phoneNo (optional)
productCode = productCode_example # String | productCode (optional)
productStatus = productStatus_example # String | productStatus (optional)
serviceCode = serviceCode_example # String | serviceCode (optional)

try: 
    # Show report for subscription based purchase report
    api_response = api_instance.subscription_batch_report_using_get(apiecoKey, autoCharge=autoCharge, limit=limit, offset=offset, phoneNo=phoneNo, productCode=productCode, productStatus=productStatus, serviceCode=serviceCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingEndpointApi->subscriptionBatchReportUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
autoCharge
String
autoCharge
limit
Integer (int32)
limit
offset
Integer (int32)
offset
phoneNo
String
phoneNo
productCode
String
productCode
productStatus
String
productStatus
serviceCode
String
serviceCode

Responses

Status: 200 - Get time based report

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


subscriptionPurchaseReportRequestUsingGET

Get subscription purchase report


/v1/reporting/subscription/service/{service_code}/product/{product_code}/operator/{operator_key}

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/v1/reporting/subscription/service/{service_code}/product/{product_code}/operator/{operator_key}?entrance_path=&subscriber_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportingEndpointApi;

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

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String entrancePath = entrancePath_example; // String | entrance_path
        String operatorKey = operatorKey_example; // String | operator_key
        String productCode = productCode_example; // String | product_code
        String serviceCode = serviceCode_example; // String | service_code
        String subscriberId = subscriberId_example; // String | subscriber_id
        try {
            SwaggerSingleSubscriptionReportResponse result = apiInstance.subscriptionPurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#subscriptionPurchaseReportRequestUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportingEndpointApi;

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String entrancePath = entrancePath_example; // String | entrance_path
        String operatorKey = operatorKey_example; // String | operator_key
        String productCode = productCode_example; // String | product_code
        String serviceCode = serviceCode_example; // String | service_code
        String subscriberId = subscriberId_example; // String | subscriber_id
        try {
            SwaggerSingleSubscriptionReportResponse result = apiInstance.subscriptionPurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#subscriptionPurchaseReportRequestUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *entrancePath = entrancePath_example; // entrance_path
String *operatorKey = operatorKey_example; // operator_key
String *productCode = productCode_example; // product_code
String *serviceCode = serviceCode_example; // service_code
String *subscriberId = subscriberId_example; // subscriber_id

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

// Get subscription purchase report
[apiInstance subscriptionPurchaseReportRequestUsingGETWith:apiecoKey
    entrancePath:entrancePath
    operatorKey:operatorKey
    productCode:productCode
    serviceCode:serviceCode
    subscriberId:subscriberId
              completionHandler: ^(SwaggerSingleSubscriptionReportResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.ReportingEndpointApi()

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

var entrancePath = entrancePath_example; // {String} entrance_path

var operatorKey = operatorKey_example; // {String} operator_key

var productCode = productCode_example; // {String} product_code

var serviceCode = serviceCode_example; // {String} service_code

var subscriberId = subscriberId_example; // {String} subscriber_id


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

namespace Example
{
    public class subscriptionPurchaseReportRequestUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportingEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var entrancePath = entrancePath_example;  // String | entrance_path
            var operatorKey = operatorKey_example;  // String | operator_key
            var productCode = productCode_example;  // String | product_code
            var serviceCode = serviceCode_example;  // String | service_code
            var subscriberId = subscriberId_example;  // String | subscriber_id

            try
            {
                // Get subscription purchase report
                SwaggerSingleSubscriptionReportResponse result = apiInstance.subscriptionPurchaseReportRequestUsingGET(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportingEndpointApi.subscriptionPurchaseReportRequestUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\ReportingEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$entrancePath = entrancePath_example; // String | entrance_path
$operatorKey = operatorKey_example; // String | operator_key
$productCode = productCode_example; // String | product_code
$serviceCode = serviceCode_example; // String | service_code
$subscriberId = subscriberId_example; // String | subscriber_id

try {
    $result = $api_instance->subscriptionPurchaseReportRequestUsingGET($apiecoKey, $entrancePath, $operatorKey, $productCode, $serviceCode, $subscriberId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportingEndpointApi->subscriptionPurchaseReportRequestUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReportingEndpointApi;

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportingEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $entrancePath = entrancePath_example; # String | entrance_path
my $operatorKey = operatorKey_example; # String | operator_key
my $productCode = productCode_example; # String | product_code
my $serviceCode = serviceCode_example; # String | service_code
my $subscriberId = subscriberId_example; # String | subscriber_id

eval { 
    my $result = $api_instance->subscriptionPurchaseReportRequestUsingGET(apiecoKey => $apiecoKey, entrancePath => $entrancePath, operatorKey => $operatorKey, productCode => $productCode, serviceCode => $serviceCode, subscriberId => $subscriberId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportingEndpointApi->subscriptionPurchaseReportRequestUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportingEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
entrancePath = entrancePath_example # String | entrance_path
operatorKey = operatorKey_example # String | operator_key
productCode = productCode_example # String | product_code
serviceCode = serviceCode_example # String | service_code
subscriberId = subscriberId_example # String | subscriber_id

try: 
    # Get subscription purchase report
    api_response = api_instance.subscription_purchase_report_request_using_get(apiecoKey, entrancePath, operatorKey, productCode, serviceCode, subscriberId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingEndpointApi->subscriptionPurchaseReportRequestUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
operator_key*
String
operator_key
Required
product_code*
String
product_code
Required
service_code*
String
service_code
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
entrance_path*
String
entrance_path
Required
subscriber_id*
String
subscriber_id
Required

Responses

Status: 200 - Get time based report

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


timeBasedBatchReportUsingGET

Show report for time-based purchase report


/v1/reporting/time-based/batch

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/v1/reporting/time-based/batch?fromDate=&limit=&offset=&phoneNo=&productCode=&serviceCode=&toDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportingEndpointApi;

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

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long fromDate = 789; // Long | fromDate
        Integer limit = 56; // Integer | limit
        Integer offset = 56; // Integer | offset
        String phoneNo = phoneNo_example; // String | phoneNo
        String productCode = productCode_example; // String | productCode
        String serviceCode = serviceCode_example; // String | serviceCode
        Long toDate = 789; // Long | toDate
        try {
            SwaggerTimeBatchReportResponse result = apiInstance.timeBasedBatchReportUsingGET(apiecoKey, fromDate, limit, offset, phoneNo, productCode, serviceCode, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#timeBasedBatchReportUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportingEndpointApi;

public class ReportingEndpointApiExample {

    public static void main(String[] args) {
        ReportingEndpointApi apiInstance = new ReportingEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Long fromDate = 789; // Long | fromDate
        Integer limit = 56; // Integer | limit
        Integer offset = 56; // Integer | offset
        String phoneNo = phoneNo_example; // String | phoneNo
        String productCode = productCode_example; // String | productCode
        String serviceCode = serviceCode_example; // String | serviceCode
        Long toDate = 789; // Long | toDate
        try {
            SwaggerTimeBatchReportResponse result = apiInstance.timeBasedBatchReportUsingGET(apiecoKey, fromDate, limit, offset, phoneNo, productCode, serviceCode, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportingEndpointApi#timeBasedBatchReportUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Long *fromDate = 789; // fromDate (optional)
Integer *limit = 56; // limit (optional) (default to 50)
Integer *offset = 56; // offset (optional) (default to 1)
String *phoneNo = phoneNo_example; // phoneNo (optional)
String *productCode = productCode_example; // productCode (optional)
String *serviceCode = serviceCode_example; // serviceCode (optional)
Long *toDate = 789; // toDate (optional)

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

// Show report for time-based purchase report
[apiInstance timeBasedBatchReportUsingGETWith:apiecoKey
    fromDate:fromDate
    limit:limit
    offset:offset
    phoneNo:phoneNo
    productCode:productCode
    serviceCode:serviceCode
    toDate:toDate
              completionHandler: ^(SwaggerTimeBatchReportResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.ReportingEndpointApi()

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

var opts = { 
  'fromDate': 789, // {Long} fromDate
  'limit': 56, // {Integer} limit
  'offset': 56, // {Integer} offset
  'phoneNo': phoneNo_example, // {String} phoneNo
  'productCode': productCode_example, // {String} productCode
  'serviceCode': serviceCode_example, // {String} serviceCode
  'toDate': 789 // {Long} toDate
};

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

namespace Example
{
    public class timeBasedBatchReportUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportingEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var fromDate = 789;  // Long | fromDate (optional) 
            var limit = 56;  // Integer | limit (optional)  (default to 50)
            var offset = 56;  // Integer | offset (optional)  (default to 1)
            var phoneNo = phoneNo_example;  // String | phoneNo (optional) 
            var productCode = productCode_example;  // String | productCode (optional) 
            var serviceCode = serviceCode_example;  // String | serviceCode (optional) 
            var toDate = 789;  // Long | toDate (optional) 

            try
            {
                // Show report for time-based purchase report
                SwaggerTimeBatchReportResponse result = apiInstance.timeBasedBatchReportUsingGET(apiecoKey, fromDate, limit, offset, phoneNo, productCode, serviceCode, toDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportingEndpointApi.timeBasedBatchReportUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\ReportingEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$fromDate = 789; // Long | fromDate
$limit = 56; // Integer | limit
$offset = 56; // Integer | offset
$phoneNo = phoneNo_example; // String | phoneNo
$productCode = productCode_example; // String | productCode
$serviceCode = serviceCode_example; // String | serviceCode
$toDate = 789; // Long | toDate

try {
    $result = $api_instance->timeBasedBatchReportUsingGET($apiecoKey, $fromDate, $limit, $offset, $phoneNo, $productCode, $serviceCode, $toDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReportingEndpointApi->timeBasedBatchReportUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReportingEndpointApi;

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportingEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $fromDate = 789; # Long | fromDate
my $limit = 56; # Integer | limit
my $offset = 56; # Integer | offset
my $phoneNo = phoneNo_example; # String | phoneNo
my $productCode = productCode_example; # String | productCode
my $serviceCode = serviceCode_example; # String | serviceCode
my $toDate = 789; # Long | toDate

eval { 
    my $result = $api_instance->timeBasedBatchReportUsingGET(apiecoKey => $apiecoKey, fromDate => $fromDate, limit => $limit, offset => $offset, phoneNo => $phoneNo, productCode => $productCode, serviceCode => $serviceCode, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportingEndpointApi->timeBasedBatchReportUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportingEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
fromDate = 789 # Long | fromDate (optional)
limit = 56 # Integer | limit (optional) (default to 50)
offset = 56 # Integer | offset (optional) (default to 1)
phoneNo = phoneNo_example # String | phoneNo (optional)
productCode = productCode_example # String | productCode (optional)
serviceCode = serviceCode_example # String | serviceCode (optional)
toDate = 789 # Long | toDate (optional)

try: 
    # Show report for time-based purchase report
    api_response = api_instance.time_based_batch_report_using_get(apiecoKey, fromDate=fromDate, limit=limit, offset=offset, phoneNo=phoneNo, productCode=productCode, serviceCode=serviceCode, toDate=toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingEndpointApi->timeBasedBatchReportUsingGET: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
fromDate
Long (int64)
fromDate
limit
Integer (int32)
limit
offset
Integer (int32)
offset
phoneNo
String
phoneNo
productCode
String
productCode
serviceCode
String
serviceCode
toDate
Long (int64)
toDate

Responses

Status: 200 - Get time based report

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Internal Error


WalletEndpoint

updateWalletUsingPOST

Update Wallet Balance


/v1/wallet/subscriber/{user_number}/service/{service_code}

Usage and SDK Samples

curl -X POST "https://api.apieco.irpackpay/v1/wallet/subscriber/{user_number}/service/{service_code}?credit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WalletEndpointApi;

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

public class WalletEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        WalletEndpointApi apiInstance = new WalletEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Integer credit = 56; // Integer | credit
        String serviceCode = serviceCode_example; // String | service_code
        String userNumber = userNumber_example; // String | user_number
        try {
            SwaggerUpdateWalletResponse result = apiInstance.updateWalletUsingPOST(apiecoKey, credit, serviceCode, userNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletEndpointApi#updateWalletUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WalletEndpointApi;

public class WalletEndpointApiExample {

    public static void main(String[] args) {
        WalletEndpointApi apiInstance = new WalletEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Integer credit = 56; // Integer | credit
        String serviceCode = serviceCode_example; // String | service_code
        String userNumber = userNumber_example; // String | user_number
        try {
            SwaggerUpdateWalletResponse result = apiInstance.updateWalletUsingPOST(apiecoKey, credit, serviceCode, userNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletEndpointApi#updateWalletUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Integer *credit = 56; // credit
String *serviceCode = serviceCode_example; // service_code
String *userNumber = userNumber_example; // user_number

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

// Update Wallet Balance
[apiInstance updateWalletUsingPOSTWith:apiecoKey
    credit:credit
    serviceCode:serviceCode
    userNumber:userNumber
              completionHandler: ^(SwaggerUpdateWalletResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.WalletEndpointApi()

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

var credit = 56; // {Integer} credit

var serviceCode = serviceCode_example; // {String} service_code

var userNumber = userNumber_example; // {String} user_number


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

namespace Example
{
    public class updateWalletUsingPOSTExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WalletEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var credit = 56;  // Integer | credit
            var serviceCode = serviceCode_example;  // String | service_code
            var userNumber = userNumber_example;  // String | user_number

            try
            {
                // Update Wallet Balance
                SwaggerUpdateWalletResponse result = apiInstance.updateWalletUsingPOST(apiecoKey, credit, serviceCode, userNumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WalletEndpointApi.updateWalletUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\WalletEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$credit = 56; // Integer | credit
$serviceCode = serviceCode_example; // String | service_code
$userNumber = userNumber_example; // String | user_number

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

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WalletEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $credit = 56; # Integer | credit
my $serviceCode = serviceCode_example; # String | service_code
my $userNumber = userNumber_example; # String | user_number

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

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WalletEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
credit = 56 # Integer | credit
serviceCode = serviceCode_example # String | service_code
userNumber = userNumber_example # String | user_number

try: 
    # Update Wallet Balance
    api_response = api_instance.update_wallet_using_post(apiecoKey, credit, serviceCode, userNumber)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WalletEndpointApi->updateWalletUsingPOST: %s\n" % e)

Parameters

Path parameters
Name Description
service_code*
String
service_code
Required
user_number*
String
user_number
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Query parameters
Name Description
credit*
Integer (int32)
credit
Required

Responses

Status: 200 - Update Wallet Balance

Status: 201 - Created

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found


walletBalanceUsingGET

Show Wallet Balance


/v1/wallet/subscriber/{user_number}/service/{service_code}

Usage and SDK Samples

curl -X GET "https://api.apieco.irpackpay/v1/wallet/subscriber/{user_number}/service/{service_code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WalletEndpointApi;

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

public class WalletEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: oauth2schema
        OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
        oauth2schema.setAccessToken("YOUR ACCESS TOKEN");

        WalletEndpointApi apiInstance = new WalletEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String serviceCode = serviceCode_example; // String | service_code
        String userNumber = userNumber_example; // String | user_number
        try {
            SwaggerGetWalletResponse result = apiInstance.walletBalanceUsingGET(apiecoKey, serviceCode, userNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletEndpointApi#walletBalanceUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WalletEndpointApi;

public class WalletEndpointApiExample {

    public static void main(String[] args) {
        WalletEndpointApi apiInstance = new WalletEndpointApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String serviceCode = serviceCode_example; // String | service_code
        String userNumber = userNumber_example; // String | user_number
        try {
            SwaggerGetWalletResponse result = apiInstance.walletBalanceUsingGET(apiecoKey, serviceCode, userNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletEndpointApi#walletBalanceUsingGET");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *serviceCode = serviceCode_example; // service_code
String *userNumber = userNumber_example; // user_number

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

// Show Wallet Balance
[apiInstance walletBalanceUsingGETWith:apiecoKey
    serviceCode:serviceCode
    userNumber:userNumber
              completionHandler: ^(SwaggerGetWalletResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"

var api = new PackPayRestApIs.WalletEndpointApi()

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

var serviceCode = serviceCode_example; // {String} service_code

var userNumber = userNumber_example; // {String} user_number


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

namespace Example
{
    public class walletBalanceUsingGETExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: oauth2schema
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WalletEndpointApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
            var serviceCode = serviceCode_example;  // String | service_code
            var userNumber = userNumber_example;  // String | user_number

            try
            {
                // Show Wallet Balance
                SwaggerGetWalletResponse result = apiInstance.walletBalanceUsingGET(apiecoKey, serviceCode, userNumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WalletEndpointApi.walletBalanceUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\WalletEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$serviceCode = serviceCode_example; // String | service_code
$userNumber = userNumber_example; // String | user_number

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

# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WalletEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $serviceCode = serviceCode_example; # String | service_code
my $userNumber = userNumber_example; # String | user_number

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

# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WalletEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
serviceCode = serviceCode_example # String | service_code
userNumber = userNumber_example # String | user_number

try: 
    # Show Wallet Balance
    api_response = api_instance.wallet_balance_using_get(apiecoKey, serviceCode, userNumber)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WalletEndpointApi->walletBalanceUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
service_code*
String
service_code
Required
user_number*
String
user_number
Required
Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - Update Wallet Balance

Status: 400 - Bad Request

Status: 401 - Unauthorized Request

Status: 403 - Forbidden

Status: 404 - Not Found