مستندات سرویس‌های پلتفرم مالی پی‌پینگ

Coupon

createCoupon

ساخت یک کد تخفیف جدید


/v1/coupon

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        CouponCreateViewModel body = ; // CouponCreateViewModel | مشخصات کد تخفیف
        try {
            CodeViewModel result = apiInstance.createCoupon(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#createCoupon");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        CouponCreateViewModel body = ; // CouponCreateViewModel | مشخصات کد تخفیف
        try {
            CodeViewModel result = apiInstance.createCoupon(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#createCoupon");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CouponCreateViewModel *body = ; // مشخصات کد تخفیف (optional)

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

// ساخت یک کد تخفیف جدید
[apiInstance createCouponWith:body
              completionHandler: ^(CodeViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()

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

namespace Example
{
    public class createCouponExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var body = new CouponCreateViewModel(); // CouponCreateViewModel | مشخصات کد تخفیف (optional) 

            try
            {
                // ساخت یک کد تخفیف جدید
                CodeViewModel result = apiInstance.createCoupon(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.createCoupon: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$body = ; // CouponCreateViewModel | مشخصات کد تخفیف

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $body = WWW::SwaggerClient::Object::CouponCreateViewModel->new(); # CouponCreateViewModel | مشخصات کد تخفیف

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
body =  # CouponCreateViewModel | مشخصات کد تخفیف (optional)

try: 
    # ساخت یک کد تخفیف جدید
    api_response = api_instance.create_coupon(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CouponApi->createCoupon: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - کد تخفیف با موفقیت ساخته شد


deleteCoupon

حذف یک کد تخفیف


/v1/coupon/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        String code = code_example; // String | شناسه کد تخفیف
        try {
            apiInstance.deleteCoupon(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#deleteCoupon");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        String code = code_example; // String | شناسه کد تخفیف
        try {
            apiInstance.deleteCoupon(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#deleteCoupon");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // شناسه کد تخفیف

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

// حذف یک کد تخفیف
[apiInstance deleteCouponWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()
var code = code_example; // {{String}} شناسه کد تخفیف

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

namespace Example
{
    public class deleteCouponExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var code = code_example;  // String | شناسه کد تخفیف

            try
            {
                // حذف یک کد تخفیف
                apiInstance.deleteCoupon(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.deleteCoupon: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$code = code_example; // String | شناسه کد تخفیف

try {
    $api_instance->deleteCoupon($code);
} catch (Exception $e) {
    echo 'Exception when calling CouponApi->deleteCoupon: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CouponApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $code = code_example; # String | شناسه کد تخفیف

eval { 
    $api_instance->deleteCoupon(code => $code);
};
if ($@) {
    warn "Exception when calling CouponApi->deleteCoupon: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
code = code_example # String | شناسه کد تخفیف

try: 
    # حذف یک کد تخفیف
    api_instance.delete_coupon(code)
except ApiException as e:
    print("Exception when calling CouponApi->deleteCoupon: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
شناسه کد تخفیف
Required

Responses

Status: 200 - کد تخفیف با موفقیت حذف شد


editCoupon

بروزرسانی کد تخفیف


/v1/coupon

Usage and SDK Samples

curl -X PUT -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        CouponEditViewModel body = ; // CouponEditViewModel | مشخصات کد تخفیف
        try {
            apiInstance.editCoupon(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#editCoupon");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        CouponEditViewModel body = ; // CouponEditViewModel | مشخصات کد تخفیف
        try {
            apiInstance.editCoupon(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#editCoupon");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CouponEditViewModel *body = ; // مشخصات کد تخفیف (optional)

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

// بروزرسانی کد تخفیف
[apiInstance editCouponWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()

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

namespace Example
{
    public class editCouponExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var body = new CouponEditViewModel(); // CouponEditViewModel | مشخصات کد تخفیف (optional) 

            try
            {
                // بروزرسانی کد تخفیف
                apiInstance.editCoupon(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.editCoupon: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$body = ; // CouponEditViewModel | مشخصات کد تخفیف

try {
    $api_instance->editCoupon($body);
} catch (Exception $e) {
    echo 'Exception when calling CouponApi->editCoupon: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CouponApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $body = WWW::SwaggerClient::Object::CouponEditViewModel->new(); # CouponEditViewModel | مشخصات کد تخفیف

eval { 
    $api_instance->editCoupon(body => $body);
};
if ($@) {
    warn "Exception when calling CouponApi->editCoupon: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
body =  # CouponEditViewModel | مشخصات کد تخفیف (optional)

try: 
    # بروزرسانی کد تخفیف
    api_instance.edit_coupon(body=body)
except ApiException as e:
    print("Exception when calling CouponApi->editCoupon: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - کد تخفیف با موفقیت بروزرسانی شد


getCouponBuyersCount

دریافت تعداد خرید‌های یک کد تخفیف


/v1/coupon/{couponCode}/BuyersListCount

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon/{couponCode}/BuyersListCount"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        String couponCode = couponCode_example; // String | شناسه کد تخفیف
        try {
            CountViewModel result = apiInstance.getCouponBuyersCount(couponCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponBuyersCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        String couponCode = couponCode_example; // String | شناسه کد تخفیف
        try {
            CountViewModel result = apiInstance.getCouponBuyersCount(couponCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponBuyersCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *couponCode = couponCode_example; // شناسه کد تخفیف

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

// دریافت تعداد خرید‌های یک کد تخفیف
[apiInstance getCouponBuyersCountWith:couponCode
              completionHandler: ^(CountViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()
var couponCode = couponCode_example; // {{String}} شناسه کد تخفیف

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

namespace Example
{
    public class getCouponBuyersCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var couponCode = couponCode_example;  // String | شناسه کد تخفیف

            try
            {
                // دریافت تعداد خرید‌های یک کد تخفیف
                CountViewModel result = apiInstance.getCouponBuyersCount(couponCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.getCouponBuyersCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$couponCode = couponCode_example; // String | شناسه کد تخفیف

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $couponCode = couponCode_example; # String | شناسه کد تخفیف

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
couponCode = couponCode_example # String | شناسه کد تخفیف

try: 
    # دریافت تعداد خرید‌های یک کد تخفیف
    api_response = api_instance.get_coupon_buyers_count(couponCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CouponApi->getCouponBuyersCount: %s\n" % e)

Parameters

Path parameters
Name Description
couponCode*
String
شناسه کد تخفیف
Required

Responses

Status: 200 - تعداد خریدهای یک کد تخفیف با موفقیت نمایش داده شد


getCouponBuyersList

دریافت لیست پرداخت‌های انجام شده یک کد تخفیف


/v1/coupon/{couponCode}/BuyersList

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon/{couponCode}/BuyersList?offset=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        String couponCode = couponCode_example; // String | شناسه کد تخفیف
        Integer offset = 56; // Integer | شماره ابتدا لیست
        Integer limit = 56; // Integer | شماره انتها لیست
        try {
            array[BuyerDetailsViewModel] result = apiInstance.getCouponBuyersList(couponCode, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponBuyersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        String couponCode = couponCode_example; // String | شناسه کد تخفیف
        Integer offset = 56; // Integer | شماره ابتدا لیست
        Integer limit = 56; // Integer | شماره انتها لیست
        try {
            array[BuyerDetailsViewModel] result = apiInstance.getCouponBuyersList(couponCode, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponBuyersList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *couponCode = couponCode_example; // شناسه کد تخفیف
Integer *offset = 56; // شماره ابتدا لیست (optional)
Integer *limit = 56; // شماره انتها لیست (optional)

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

// دریافت لیست پرداخت‌های انجام شده یک کد تخفیف
[apiInstance getCouponBuyersListWith:couponCode
    offset:offset
    limit:limit
              completionHandler: ^(array[BuyerDetailsViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()
var couponCode = couponCode_example; // {{String}} شناسه کد تخفیف
var opts = { 
  'offset': 56, // {{Integer}} شماره ابتدا لیست
  'limit': 56 // {{Integer}} شماره انتها لیست
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCouponBuyersList(couponCode, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCouponBuyersListExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var couponCode = couponCode_example;  // String | شناسه کد تخفیف
            var offset = 56;  // Integer | شماره ابتدا لیست (optional) 
            var limit = 56;  // Integer | شماره انتها لیست (optional) 

            try
            {
                // دریافت لیست پرداخت‌های انجام شده یک کد تخفیف
                array[BuyerDetailsViewModel] result = apiInstance.getCouponBuyersList(couponCode, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.getCouponBuyersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$couponCode = couponCode_example; // String | شناسه کد تخفیف
$offset = 56; // Integer | شماره ابتدا لیست
$limit = 56; // Integer | شماره انتها لیست

try {
    $result = $api_instance->getCouponBuyersList($couponCode, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CouponApi->getCouponBuyersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CouponApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $couponCode = couponCode_example; # String | شناسه کد تخفیف
my $offset = 56; # Integer | شماره ابتدا لیست
my $limit = 56; # Integer | شماره انتها لیست

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
couponCode = couponCode_example # String | شناسه کد تخفیف
offset = 56 # Integer | شماره ابتدا لیست (optional)
limit = 56 # Integer | شماره انتها لیست (optional)

try: 
    # دریافت لیست پرداخت‌های انجام شده یک کد تخفیف
    api_response = api_instance.get_coupon_buyers_list(couponCode, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CouponApi->getCouponBuyersList: %s\n" % e)

Parameters

Path parameters
Name Description
couponCode*
String
شناسه کد تخفیف
Required
Query parameters
Name Description
offset
Integer (int32)
شماره ابتدا لیست
limit
Integer (int32)
شماره انتها لیست

Responses

Status: 200 - لیست خریدهای این کد تخفیف با موفقیت نمایش داده شد


getCouponDetails

نمایش یک کد تخفیف


/v1/coupon/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        String code = code_example; // String | شناسه کد تخفیف
        try {
            CouponDetailViewModel result = apiInstance.getCouponDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponDetails");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        String code = code_example; // String | شناسه کد تخفیف
        try {
            CouponDetailViewModel result = apiInstance.getCouponDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // شناسه کد تخفیف

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

// نمایش یک کد تخفیف
[apiInstance getCouponDetailsWith:code
              completionHandler: ^(CouponDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()
var code = code_example; // {{String}} شناسه کد تخفیف

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

namespace Example
{
    public class getCouponDetailsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var code = code_example;  // String | شناسه کد تخفیف

            try
            {
                // نمایش یک کد تخفیف
                CouponDetailViewModel result = apiInstance.getCouponDetails(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.getCouponDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$code = code_example; // String | شناسه کد تخفیف

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $code = code_example; # String | شناسه کد تخفیف

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
code = code_example # String | شناسه کد تخفیف

try: 
    # نمایش یک کد تخفیف
    api_response = api_instance.get_coupon_details(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CouponApi->getCouponDetails: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
شناسه کد تخفیف
Required

Responses

Status: 200 - کد تخفیف با موفقیت نمایش داده شد


getCouponList

نمایش لیست کدهای تخفیف


/v1/coupon/List

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon/List?offset=&limit=&witharchived=&search=&productcode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        Integer offset = 56; // Integer | شماره ابتدا لیست
        Integer limit = 56; // Integer | شماره انتها لیست
        Boolean witharchived = true; // Boolean | اضافه شدن کدهای تخفیف‌ آرشیو شده
        String search = search_example; // String | کیلدواژه جستجو در کدهای تخفیف
        String productcode = productcode_example; // String | 
        try {
            array[CouponListItemViewModel] result = apiInstance.getCouponList(offset, limit, witharchived, search, productcode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        Integer offset = 56; // Integer | شماره ابتدا لیست
        Integer limit = 56; // Integer | شماره انتها لیست
        Boolean witharchived = true; // Boolean | اضافه شدن کدهای تخفیف‌ آرشیو شده
        String search = search_example; // String | کیلدواژه جستجو در کدهای تخفیف
        String productcode = productcode_example; // String | 
        try {
            array[CouponListItemViewModel] result = apiInstance.getCouponList(offset, limit, witharchived, search, productcode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *offset = 56; // شماره ابتدا لیست (optional)
Integer *limit = 56; // شماره انتها لیست (optional)
Boolean *witharchived = true; // اضافه شدن کدهای تخفیف‌ آرشیو شده (optional)
String *search = search_example; // کیلدواژه جستجو در کدهای تخفیف (optional)
String *productcode = productcode_example; //  (optional)

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

// نمایش لیست کدهای تخفیف
[apiInstance getCouponListWith:offset
    limit:limit
    witharchived:witharchived
    search:search
    productcode:productcode
              completionHandler: ^(array[CouponListItemViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()
var opts = { 
  'offset': 56, // {{Integer}} شماره ابتدا لیست
  'limit': 56, // {{Integer}} شماره انتها لیست
  'witharchived': true, // {{Boolean}} اضافه شدن کدهای تخفیف‌ آرشیو شده
  'search': search_example, // {{String}} کیلدواژه جستجو در کدهای تخفیف
  'productcode': productcode_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCouponList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCouponListExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var offset = 56;  // Integer | شماره ابتدا لیست (optional) 
            var limit = 56;  // Integer | شماره انتها لیست (optional) 
            var witharchived = true;  // Boolean | اضافه شدن کدهای تخفیف‌ آرشیو شده (optional) 
            var search = search_example;  // String | کیلدواژه جستجو در کدهای تخفیف (optional) 
            var productcode = productcode_example;  // String |  (optional) 

            try
            {
                // نمایش لیست کدهای تخفیف
                array[CouponListItemViewModel] result = apiInstance.getCouponList(offset, limit, witharchived, search, productcode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.getCouponList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$offset = 56; // Integer | شماره ابتدا لیست
$limit = 56; // Integer | شماره انتها لیست
$witharchived = true; // Boolean | اضافه شدن کدهای تخفیف‌ آرشیو شده
$search = search_example; // String | کیلدواژه جستجو در کدهای تخفیف
$productcode = productcode_example; // String | 

try {
    $result = $api_instance->getCouponList($offset, $limit, $witharchived, $search, $productcode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CouponApi->getCouponList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CouponApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $offset = 56; # Integer | شماره ابتدا لیست
my $limit = 56; # Integer | شماره انتها لیست
my $witharchived = true; # Boolean | اضافه شدن کدهای تخفیف‌ آرشیو شده
my $search = search_example; # String | کیلدواژه جستجو در کدهای تخفیف
my $productcode = productcode_example; # String | 

eval { 
    my $result = $api_instance->getCouponList(offset => $offset, limit => $limit, witharchived => $witharchived, search => $search, productcode => $productcode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CouponApi->getCouponList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
offset = 56 # Integer | شماره ابتدا لیست (optional)
limit = 56 # Integer | شماره انتها لیست (optional)
witharchived = true # Boolean | اضافه شدن کدهای تخفیف‌ آرشیو شده (optional)
search = search_example # String | کیلدواژه جستجو در کدهای تخفیف (optional)
productcode = productcode_example # String |  (optional)

try: 
    # نمایش لیست کدهای تخفیف
    api_response = api_instance.get_coupon_list(offset=offset, limit=limit, witharchived=witharchived, search=search, productcode=productcode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CouponApi->getCouponList: %s\n" % e)

Parameters

Query parameters
Name Description
offset
Integer (int32)
شماره ابتدا لیست
limit
Integer (int32)
شماره انتها لیست
witharchived
Boolean
اضافه شدن کدهای تخفیف‌ آرشیو شده
search
productcode
String

Responses

Status: 200 - لیست کدهای تخفیف با موفقیت نمایش داده شد


getCouponListCount

دریافت تعداد کدهای تخفیف


/v1/coupon/ListCount

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/coupon/ListCount?witharchived=&search="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CouponApi;

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

public class CouponApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CouponApi apiInstance = new CouponApi();
        Boolean witharchived = true; // Boolean | 
        String search = search_example; // String | 
        try {
            CountViewModel result = apiInstance.getCouponListCount(witharchived, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponListCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CouponApi;

public class CouponApiExample {

    public static void main(String[] args) {
        CouponApi apiInstance = new CouponApi();
        Boolean witharchived = true; // Boolean | 
        String search = search_example; // String | 
        try {
            CountViewModel result = apiInstance.getCouponListCount(witharchived, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CouponApi#getCouponListCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Boolean *witharchived = true; //  (optional)
String *search = search_example; //  (optional)

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

// دریافت تعداد کدهای تخفیف
[apiInstance getCouponListCountWith:witharchived
    search:search
              completionHandler: ^(CountViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CouponApi()
var opts = { 
  'witharchived': true, // {{Boolean}} 
  'search': search_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCouponListCount(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCouponListCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CouponApi();
            var witharchived = true;  // Boolean |  (optional) 
            var search = search_example;  // String |  (optional) 

            try
            {
                // دریافت تعداد کدهای تخفیف
                CountViewModel result = apiInstance.getCouponListCount(witharchived, search);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CouponApi.getCouponListCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCouponApi();
$witharchived = true; // Boolean | 
$search = search_example; // String | 

try {
    $result = $api_instance->getCouponListCount($witharchived, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CouponApi->getCouponListCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CouponApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CouponApi->new();
my $witharchived = true; # Boolean | 
my $search = search_example; # String | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CouponApi()
witharchived = true # Boolean |  (optional)
search = search_example # String |  (optional)

try: 
    # دریافت تعداد کدهای تخفیف
    api_response = api_instance.get_coupon_list_count(witharchived=witharchived, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CouponApi->getCouponListCount: %s\n" % e)

Parameters

Query parameters
Name Description
witharchived
Boolean
search

Responses

Status: 200 - تعداد کدهای تخفیف با موفقیت نمایش داده شد


Customer

createCustomer

مشتری جدید


/v1/customer

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/customer"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomerApi;

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

public class CustomerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CustomerApi apiInstance = new CustomerApi();
        CustomerCreateViewModel body = ; // CustomerCreateViewModel | مشخصات مشتری
        try {
            CustomerDetailViewModel result = apiInstance.createCustomer(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#createCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomerApi;

public class CustomerApiExample {

    public static void main(String[] args) {
        CustomerApi apiInstance = new CustomerApi();
        CustomerCreateViewModel body = ; // CustomerCreateViewModel | مشخصات مشتری
        try {
            CustomerDetailViewModel result = apiInstance.createCustomer(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#createCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CustomerCreateViewModel *body = ; // مشخصات مشتری (optional)

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

// مشتری جدید
[apiInstance createCustomerWith:body
              completionHandler: ^(CustomerDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CustomerApi()

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

namespace Example
{
    public class createCustomerExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomerApi();
            var body = new CustomerCreateViewModel(); // CustomerCreateViewModel | مشخصات مشتری (optional) 

            try
            {
                // مشتری جدید
                CustomerDetailViewModel result = apiInstance.createCustomer(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomerApi.createCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCustomerApi();
$body = ; // CustomerCreateViewModel | مشخصات مشتری

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CustomerApi->new();
my $body = WWW::SwaggerClient::Object::CustomerCreateViewModel->new(); # CustomerCreateViewModel | مشخصات مشتری

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CustomerApi()
body =  # CustomerCreateViewModel | مشخصات مشتری (optional)

try: 
    # مشتری جدید
    api_response = api_instance.create_customer(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->createCustomer: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - نمایش مشخصات مشتری


deleteCustomer

حذف مشتری


/v1/customer/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/customer/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomerApi;

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

public class CustomerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CustomerApi apiInstance = new CustomerApi();
        String code = code_example; // String | کلید یکتا مشتری
        try {
            'String' result = apiInstance.deleteCustomer(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#deleteCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomerApi;

public class CustomerApiExample {

    public static void main(String[] args) {
        CustomerApi apiInstance = new CustomerApi();
        String code = code_example; // String | کلید یکتا مشتری
        try {
            'String' result = apiInstance.deleteCustomer(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#deleteCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتا مشتری

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

// حذف مشتری
[apiInstance deleteCustomerWith:code
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CustomerApi()
var code = code_example; // {{String}} کلید یکتا مشتری

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

namespace Example
{
    public class deleteCustomerExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomerApi();
            var code = code_example;  // String | کلید یکتا مشتری

            try
            {
                // حذف مشتری
                'String' result = apiInstance.deleteCustomer(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomerApi.deleteCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCustomerApi();
$code = code_example; // String | کلید یکتا مشتری

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CustomerApi->new();
my $code = code_example; # String | کلید یکتا مشتری

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CustomerApi()
code = code_example # String | کلید یکتا مشتری

try: 
    # حذف مشتری
    api_response = api_instance.delete_customer(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->deleteCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتا مشتری
Required

Responses

Status: 200 - نمایش کلید یکتای مشتری


editCustomer

بروزرسانی مشخصات مشتری


/v1/customer/{code}

Usage and SDK Samples

curl -X PUT -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/customer/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomerApi;

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

public class CustomerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CustomerApi apiInstance = new CustomerApi();
        String code = code_example; // String | کلید یکتا مشتری
        CustomerEditViewModel body = ; // CustomerEditViewModel | مشخصات بروز شده مشتری
        try {
            CustomerDetailViewModel result = apiInstance.editCustomer(code, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#editCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomerApi;

public class CustomerApiExample {

    public static void main(String[] args) {
        CustomerApi apiInstance = new CustomerApi();
        String code = code_example; // String | کلید یکتا مشتری
        CustomerEditViewModel body = ; // CustomerEditViewModel | مشخصات بروز شده مشتری
        try {
            CustomerDetailViewModel result = apiInstance.editCustomer(code, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#editCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتا مشتری
CustomerEditViewModel *body = ; // مشخصات بروز شده مشتری (optional)

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

// بروزرسانی مشخصات مشتری
[apiInstance editCustomerWith:code
    body:body
              completionHandler: ^(CustomerDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CustomerApi()
var code = code_example; // {{String}} کلید یکتا مشتری

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

namespace Example
{
    public class editCustomerExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomerApi();
            var code = code_example;  // String | کلید یکتا مشتری
            var body = new CustomerEditViewModel(); // CustomerEditViewModel | مشخصات بروز شده مشتری (optional) 

            try
            {
                // بروزرسانی مشخصات مشتری
                CustomerDetailViewModel result = apiInstance.editCustomer(code, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomerApi.editCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCustomerApi();
$code = code_example; // String | کلید یکتا مشتری
$body = ; // CustomerEditViewModel | مشخصات بروز شده مشتری

try {
    $result = $api_instance->editCustomer($code, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->editCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomerApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CustomerApi->new();
my $code = code_example; # String | کلید یکتا مشتری
my $body = WWW::SwaggerClient::Object::CustomerEditViewModel->new(); # CustomerEditViewModel | مشخصات بروز شده مشتری

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CustomerApi()
code = code_example # String | کلید یکتا مشتری
body =  # CustomerEditViewModel | مشخصات بروز شده مشتری (optional)

try: 
    # بروزرسانی مشخصات مشتری
    api_response = api_instance.edit_customer(code, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->editCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتا مشتری
Required
Body parameters
Name Description
body

Responses

Status: 200 - نمایش مشخصات مشتری


getCustomerDetails

مشخصات مشتری


/v1/customer/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/customer/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomerApi;

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

public class CustomerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CustomerApi apiInstance = new CustomerApi();
        String code = code_example; // String | کد مشتری ارسال نمایید
        try {
            CustomerDetailViewModel result = apiInstance.getCustomerDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#getCustomerDetails");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomerApi;

public class CustomerApiExample {

    public static void main(String[] args) {
        CustomerApi apiInstance = new CustomerApi();
        String code = code_example; // String | کد مشتری ارسال نمایید
        try {
            CustomerDetailViewModel result = apiInstance.getCustomerDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#getCustomerDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد مشتری ارسال نمایید

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

// مشخصات مشتری
[apiInstance getCustomerDetailsWith:code
              completionHandler: ^(CustomerDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CustomerApi()
var code = code_example; // {{String}} کد مشتری ارسال نمایید

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

namespace Example
{
    public class getCustomerDetailsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomerApi();
            var code = code_example;  // String | کد مشتری ارسال نمایید

            try
            {
                // مشخصات مشتری
                CustomerDetailViewModel result = apiInstance.getCustomerDetails(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomerApi.getCustomerDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCustomerApi();
$code = code_example; // String | کد مشتری ارسال نمایید

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CustomerApi->new();
my $code = code_example; # String | کد مشتری ارسال نمایید

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CustomerApi()
code = code_example # String | کد مشتری ارسال نمایید

try: 
    # مشخصات مشتری
    api_response = api_instance.get_customer_details(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->getCustomerDetails: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد مشتری ارسال نمایید
Required

Responses

Status: 200 - نمایش مشخصات مشتری


getCustomerList

لیست مشتریان


/v1/customer/List

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/customer/List?offset=&limit=&search=&customerType=&withPhoto=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomerApi;

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

public class CustomerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CustomerApi apiInstance = new CustomerApi();
        Integer offset = 56; // Integer | شروع صفحه از شماره 1
        Integer limit = 56; // Integer | تعداد سطر بازگشت داده ها مثال : 10
        String search = search_example; // String | متن مورد نظر جهت جستجو
        Integer customerType = 56; // Integer | نوع مشتری - حقیقی یا حقوقی
        Boolean withPhoto = true; // Boolean | با آدرس تصویر مشتری
        String code = code_example; // String | کد مشتری
        try {
            array[CustomerListItemViewModel] result = apiInstance.getCustomerList(offset, limit, search, customerType, withPhoto, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#getCustomerList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomerApi;

public class CustomerApiExample {

    public static void main(String[] args) {
        CustomerApi apiInstance = new CustomerApi();
        Integer offset = 56; // Integer | شروع صفحه از شماره 1
        Integer limit = 56; // Integer | تعداد سطر بازگشت داده ها مثال : 10
        String search = search_example; // String | متن مورد نظر جهت جستجو
        Integer customerType = 56; // Integer | نوع مشتری - حقیقی یا حقوقی
        Boolean withPhoto = true; // Boolean | با آدرس تصویر مشتری
        String code = code_example; // String | کد مشتری
        try {
            array[CustomerListItemViewModel] result = apiInstance.getCustomerList(offset, limit, search, customerType, withPhoto, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#getCustomerList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *offset = 56; // شروع صفحه از شماره 1 (optional)
Integer *limit = 56; // تعداد سطر بازگشت داده ها مثال : 10 (optional)
String *search = search_example; // متن مورد نظر جهت جستجو (optional)
Integer *customerType = 56; // نوع مشتری - حقیقی یا حقوقی (optional)
Boolean *withPhoto = true; // با آدرس تصویر مشتری (optional)
String *code = code_example; // کد مشتری (optional)

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

// لیست مشتریان
[apiInstance getCustomerListWith:offset
    limit:limit
    search:search
    customerType:customerType
    withPhoto:withPhoto
    code:code
              completionHandler: ^(array[CustomerListItemViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CustomerApi()
var opts = { 
  'offset': 56, // {{Integer}} شروع صفحه از شماره 1
  'limit': 56, // {{Integer}} تعداد سطر بازگشت داده ها مثال : 10
  'search': search_example, // {{String}} متن مورد نظر جهت جستجو
  'customerType': 56, // {{Integer}} نوع مشتری - حقیقی یا حقوقی
  'withPhoto': true, // {{Boolean}} با آدرس تصویر مشتری
  'code': code_example // {{String}} کد مشتری
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCustomerList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCustomerListExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomerApi();
            var offset = 56;  // Integer | شروع صفحه از شماره 1 (optional) 
            var limit = 56;  // Integer | تعداد سطر بازگشت داده ها مثال : 10 (optional) 
            var search = search_example;  // String | متن مورد نظر جهت جستجو (optional) 
            var customerType = 56;  // Integer | نوع مشتری - حقیقی یا حقوقی (optional) 
            var withPhoto = true;  // Boolean | با آدرس تصویر مشتری (optional) 
            var code = code_example;  // String | کد مشتری (optional) 

            try
            {
                // لیست مشتریان
                array[CustomerListItemViewModel] result = apiInstance.getCustomerList(offset, limit, search, customerType, withPhoto, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomerApi.getCustomerList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCustomerApi();
$offset = 56; // Integer | شروع صفحه از شماره 1
$limit = 56; // Integer | تعداد سطر بازگشت داده ها مثال : 10
$search = search_example; // String | متن مورد نظر جهت جستجو
$customerType = 56; // Integer | نوع مشتری - حقیقی یا حقوقی
$withPhoto = true; // Boolean | با آدرس تصویر مشتری
$code = code_example; // String | کد مشتری

try {
    $result = $api_instance->getCustomerList($offset, $limit, $search, $customerType, $withPhoto, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->getCustomerList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomerApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CustomerApi->new();
my $offset = 56; # Integer | شروع صفحه از شماره 1
my $limit = 56; # Integer | تعداد سطر بازگشت داده ها مثال : 10
my $search = search_example; # String | متن مورد نظر جهت جستجو
my $customerType = 56; # Integer | نوع مشتری - حقیقی یا حقوقی
my $withPhoto = true; # Boolean | با آدرس تصویر مشتری
my $code = code_example; # String | کد مشتری

eval { 
    my $result = $api_instance->getCustomerList(offset => $offset, limit => $limit, search => $search, customerType => $customerType, withPhoto => $withPhoto, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomerApi->getCustomerList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CustomerApi()
offset = 56 # Integer | شروع صفحه از شماره 1 (optional)
limit = 56 # Integer | تعداد سطر بازگشت داده ها مثال : 10 (optional)
search = search_example # String | متن مورد نظر جهت جستجو (optional)
customerType = 56 # Integer | نوع مشتری - حقیقی یا حقوقی (optional)
withPhoto = true # Boolean | با آدرس تصویر مشتری (optional)
code = code_example # String | کد مشتری (optional)

try: 
    # لیست مشتریان
    api_response = api_instance.get_customer_list(offset=offset, limit=limit, search=search, customerType=customerType, withPhoto=withPhoto, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->getCustomerList: %s\n" % e)

Parameters

Query parameters
Name Description
offset
Integer (int32)
شروع صفحه از شماره 1
limit
Integer (int32)
تعداد سطر بازگشت داده ها مثال : 10
search
customerType
Integer (int32)
نوع مشتری - حقیقی یا حقوقی
withPhoto
Boolean
با آدرس تصویر مشتری
code
String
کد مشتری

Responses

Status: 200 - نمایش لیست مشتریان


getCustomerListCount

تعداد مشتریان


/v1/customer/ListCount

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/customer/ListCount?search=&customerType=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomerApi;

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

public class CustomerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        CustomerApi apiInstance = new CustomerApi();
        String search = search_example; // String | متن مورد نظر جهت جستجو
        Integer customerType = 56; // Integer | نوع مشتری - حقیقی یا حقوقی
        String code = code_example; // String | کد مشتری
        try {
            ListCountViewModel result = apiInstance.getCustomerListCount(search, customerType, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#getCustomerListCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomerApi;

public class CustomerApiExample {

    public static void main(String[] args) {
        CustomerApi apiInstance = new CustomerApi();
        String search = search_example; // String | متن مورد نظر جهت جستجو
        Integer customerType = 56; // Integer | نوع مشتری - حقیقی یا حقوقی
        String code = code_example; // String | کد مشتری
        try {
            ListCountViewModel result = apiInstance.getCustomerListCount(search, customerType, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomerApi#getCustomerListCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *search = search_example; // متن مورد نظر جهت جستجو (optional)
Integer *customerType = 56; // نوع مشتری - حقیقی یا حقوقی (optional)
String *code = code_example; // کد مشتری (optional)

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

// تعداد مشتریان
[apiInstance getCustomerListCountWith:search
    customerType:customerType
    code:code
              completionHandler: ^(ListCountViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.CustomerApi()
var opts = { 
  'search': search_example, // {{String}} متن مورد نظر جهت جستجو
  'customerType': 56, // {{Integer}} نوع مشتری - حقیقی یا حقوقی
  'code': code_example // {{String}} کد مشتری
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCustomerListCount(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCustomerListCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new CustomerApi();
            var search = search_example;  // String | متن مورد نظر جهت جستجو (optional) 
            var customerType = 56;  // Integer | نوع مشتری - حقیقی یا حقوقی (optional) 
            var code = code_example;  // String | کد مشتری (optional) 

            try
            {
                // تعداد مشتریان
                ListCountViewModel result = apiInstance.getCustomerListCount(search, customerType, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomerApi.getCustomerListCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiCustomerApi();
$search = search_example; // String | متن مورد نظر جهت جستجو
$customerType = 56; // Integer | نوع مشتری - حقیقی یا حقوقی
$code = code_example; // String | کد مشتری

try {
    $result = $api_instance->getCustomerListCount($search, $customerType, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->getCustomerListCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomerApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::CustomerApi->new();
my $search = search_example; # String | متن مورد نظر جهت جستجو
my $customerType = 56; # Integer | نوع مشتری - حقیقی یا حقوقی
my $code = code_example; # String | کد مشتری

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.CustomerApi()
search = search_example # String | متن مورد نظر جهت جستجو (optional)
customerType = 56 # Integer | نوع مشتری - حقیقی یا حقوقی (optional)
code = code_example # String | کد مشتری (optional)

try: 
    # تعداد مشتریان
    api_response = api_instance.get_customer_list_count(search=search, customerType=customerType, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->getCustomerListCount: %s\n" % e)

Parameters

Query parameters
Name Description
search
customerType
Integer (int32)
نوع مشتری - حقیقی یا حقوقی
code
String
کد مشتری

Responses

Status: 200 - نمایش تعداد مشتریان


Invoice

cancelInvoice

درخواست لغو فاکتور


/v1/Invoice/Cancel

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Cancel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        InvoiceCancelRequest body = ; // InvoiceCancelRequest | 
        try {
            InvoiceCancelResponse result = apiInstance.cancelInvoice(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#cancelInvoice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        InvoiceCancelRequest body = ; // InvoiceCancelRequest | 
        try {
            InvoiceCancelResponse result = apiInstance.cancelInvoice(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#cancelInvoice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
InvoiceCancelRequest *body = ; //  (optional)

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

// درخواست لغو فاکتور
[apiInstance cancelInvoiceWith:body
              completionHandler: ^(InvoiceCancelResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()

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

namespace Example
{
    public class cancelInvoiceExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var body = new InvoiceCancelRequest(); // InvoiceCancelRequest |  (optional) 

            try
            {
                // درخواست لغو فاکتور
                InvoiceCancelResponse result = apiInstance.cancelInvoice(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.cancelInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$body = ; // InvoiceCancelRequest | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $body = WWW::SwaggerClient::Object::InvoiceCancelRequest->new(); # InvoiceCancelRequest | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
body =  # InvoiceCancelRequest |  (optional)

try: 
    # درخواست لغو فاکتور
    api_response = api_instance.cancel_invoice(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->cancelInvoice: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - نمایش فاکتور


createInvoice

فاکتور جدید


/v1/Invoice

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        InvoiceCreateViewModel body = ; // InvoiceCreateViewModel | مشخصات فاکتور
        try {
            array[InvoiceDetailViewModel] result = apiInstance.createInvoice(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#createInvoice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        InvoiceCreateViewModel body = ; // InvoiceCreateViewModel | مشخصات فاکتور
        try {
            array[InvoiceDetailViewModel] result = apiInstance.createInvoice(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#createInvoice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
InvoiceCreateViewModel *body = ; // مشخصات فاکتور (optional)

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

// فاکتور جدید
[apiInstance createInvoiceWith:body
              completionHandler: ^(array[InvoiceDetailViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()

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

namespace Example
{
    public class createInvoiceExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var body = new InvoiceCreateViewModel(); // InvoiceCreateViewModel | مشخصات فاکتور (optional) 

            try
            {
                // فاکتور جدید
                array[InvoiceDetailViewModel] result = apiInstance.createInvoice(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.createInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$body = ; // InvoiceCreateViewModel | مشخصات فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $body = WWW::SwaggerClient::Object::InvoiceCreateViewModel->new(); # InvoiceCreateViewModel | مشخصات فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
body =  # InvoiceCreateViewModel | مشخصات فاکتور (optional)

try: 
    # فاکتور جدید
    api_response = api_instance.create_invoice(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->createInvoice: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - نمایش فاکتور


deleteInvoice

حذف فاکتور


/v1/Invoice/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            'String' result = apiInstance.deleteInvoice(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#deleteInvoice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            'String' result = apiInstance.deleteInvoice(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#deleteInvoice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای فاکتور

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

// حذف فاکتور
[apiInstance deleteInvoiceWith:code
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var code = code_example; // {{String}} کلید یکتای فاکتور

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

namespace Example
{
    public class deleteInvoiceExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var code = code_example;  // String | کلید یکتای فاکتور

            try
            {
                // حذف فاکتور
                'String' result = apiInstance.deleteInvoice(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.deleteInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$code = code_example; // String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $code = code_example; # String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
code = code_example # String | کلید یکتای فاکتور

try: 
    # حذف فاکتور
    api_response = api_instance.delete_invoice(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->deleteInvoice: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای فاکتور
Required

Responses

Status: 200 - نمایش کلید یکتای فاکتور


editInvoice

بروزرسانی فاکتور


/v1/Invoice/{code}

Usage and SDK Samples

curl -X PUT -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        InvoiceEditViewModel body = ; // InvoiceEditViewModel | فاکتور بروز شده
        try {
            InvoiceDetailViewModel result = apiInstance.editInvoice(code, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#editInvoice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        InvoiceEditViewModel body = ; // InvoiceEditViewModel | فاکتور بروز شده
        try {
            InvoiceDetailViewModel result = apiInstance.editInvoice(code, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#editInvoice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای فاکتور
InvoiceEditViewModel *body = ; // فاکتور بروز شده (optional)

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

// بروزرسانی فاکتور
[apiInstance editInvoiceWith:code
    body:body
              completionHandler: ^(InvoiceDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var code = code_example; // {{String}} کلید یکتای فاکتور

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

namespace Example
{
    public class editInvoiceExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var code = code_example;  // String | کلید یکتای فاکتور
            var body = new InvoiceEditViewModel(); // InvoiceEditViewModel | فاکتور بروز شده (optional) 

            try
            {
                // بروزرسانی فاکتور
                InvoiceDetailViewModel result = apiInstance.editInvoice(code, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.editInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$code = code_example; // String | کلید یکتای فاکتور
$body = ; // InvoiceEditViewModel | فاکتور بروز شده

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $code = code_example; # String | کلید یکتای فاکتور
my $body = WWW::SwaggerClient::Object::InvoiceEditViewModel->new(); # InvoiceEditViewModel | فاکتور بروز شده

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
code = code_example # String | کلید یکتای فاکتور
body =  # InvoiceEditViewModel | فاکتور بروز شده (optional)

try: 
    # بروزرسانی فاکتور
    api_response = api_instance.edit_invoice(code, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->editInvoice: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای فاکتور
Required
Body parameters
Name Description
body

Responses

Status: 200 - نمایش فاکتور


getInvoiceBuyer

دریافت مشخصات پرداخت کننده فاکتور


/v1/Invoice/Buyer/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Buyer/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | 
        try {
            CustomerDetailViewModel result = apiInstance.getInvoiceBuyer(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceBuyer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | 
        try {
            CustomerDetailViewModel result = apiInstance.getInvoiceBuyer(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceBuyer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // 

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

// دریافت مشخصات پرداخت کننده فاکتور
[apiInstance getInvoiceBuyerWith:code
              completionHandler: ^(CustomerDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var code = code_example; // {{String}} 

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

namespace Example
{
    public class getInvoiceBuyerExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var code = code_example;  // String | 

            try
            {
                // دریافت مشخصات پرداخت کننده فاکتور
                CustomerDetailViewModel result = apiInstance.getInvoiceBuyer(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoiceBuyer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$code = code_example; // String | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $code = code_example; # String | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
code = code_example # String | 

try: 
    # دریافت مشخصات پرداخت کننده فاکتور
    api_response = api_instance.get_invoice_buyer(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoiceBuyer: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Required

Responses

Status: 200 - مشخصات پرداخت کننده فاکتور


getInvoiceDetails

دریافت فاکتور


/v1/Invoice/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoiceDetailViewModel result = apiInstance.getInvoiceDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceDetails");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoiceDetailViewModel result = apiInstance.getInvoiceDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای فاکتور

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

// دریافت فاکتور
[apiInstance getInvoiceDetailsWith:code
              completionHandler: ^(InvoiceDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var code = code_example; // {{String}} کلید یکتای فاکتور

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

namespace Example
{
    public class getInvoiceDetailsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var code = code_example;  // String | کلید یکتای فاکتور

            try
            {
                // دریافت فاکتور
                InvoiceDetailViewModel result = apiInstance.getInvoiceDetails(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoiceDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$code = code_example; // String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $code = code_example; # String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
code = code_example # String | کلید یکتای فاکتور

try: 
    # دریافت فاکتور
    api_response = api_instance.get_invoice_details(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoiceDetails: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای فاکتور
Required

Responses

Status: 200 - نمایش فاکتور


getInvoiceList

لیست فاکتور ها


/v1/Invoice/List

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/List?offset=&limit=&status=&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            array[InvoiceListItemViewModel] result = apiInstance.getInvoiceList(offset, limit, status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            array[InvoiceListItemViewModel] result = apiInstance.getInvoiceList(offset, limit, status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *offset = 56; //  (optional)
Integer *limit = 56; //  (optional)
Integer *status = 56; // فیلتر وضعیت (optional)
Boolean *isArchived = true; // فیلتر بایگانی (optional)
Boolean *searchByDueDate = true; // فیلتر با تاریخ سررسید (optional)
Boolean *searchByCreateDate = true; // فیلتر با تاریخ ثبت (optional)
Date *searchDateFrom = 2013-10-20T19:20:30+01:00; // شروع از تاریخ (optional)
Date *searchDateTo = 2013-10-20T19:20:30+01:00; // تا تاریخ (optional)
String *search = search_example; // متن جستجو (optional)
String *addressBookCode = addressBookCode_example; // فیلتر بر اساس کد مشتری (optional)
String *invoiceCode = invoiceCode_example; // فیلتر براساس کد فاکتور (optional)

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

// لیست فاکتور ها
[apiInstance getInvoiceListWith:offset
    limit:limit
    status:status
    isArchived:isArchived
    searchByDueDate:searchByDueDate
    searchByCreateDate:searchByCreateDate
    searchDateFrom:searchDateFrom
    searchDateTo:searchDateTo
    search:search
    addressBookCode:addressBookCode
    invoiceCode:invoiceCode
              completionHandler: ^(array[InvoiceListItemViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var opts = { 
  'offset': 56, // {{Integer}} 
  'limit': 56, // {{Integer}} 
  'status': 56, // {{Integer}} فیلتر وضعیت
  'isArchived': true, // {{Boolean}} فیلتر بایگانی
  'searchByDueDate': true, // {{Boolean}} فیلتر با تاریخ سررسید
  'searchByCreateDate': true, // {{Boolean}} فیلتر با تاریخ ثبت
  'searchDateFrom': 2013-10-20T19:20:30+01:00, // {{Date}} شروع از تاریخ
  'searchDateTo': 2013-10-20T19:20:30+01:00, // {{Date}} تا تاریخ
  'search': search_example, // {{String}} متن جستجو
  'addressBookCode': addressBookCode_example, // {{String}} فیلتر بر اساس کد مشتری
  'invoiceCode': invoiceCode_example // {{String}} فیلتر براساس کد فاکتور
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoiceList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoiceListExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var offset = 56;  // Integer |  (optional) 
            var limit = 56;  // Integer |  (optional) 
            var status = 56;  // Integer | فیلتر وضعیت (optional) 
            var isArchived = true;  // Boolean | فیلتر بایگانی (optional) 
            var searchByDueDate = true;  // Boolean | فیلتر با تاریخ سررسید (optional) 
            var searchByCreateDate = true;  // Boolean | فیلتر با تاریخ ثبت (optional) 
            var searchDateFrom = 2013-10-20T19:20:30+01:00;  // Date | شروع از تاریخ (optional) 
            var searchDateTo = 2013-10-20T19:20:30+01:00;  // Date | تا تاریخ (optional) 
            var search = search_example;  // String | متن جستجو (optional) 
            var addressBookCode = addressBookCode_example;  // String | فیلتر بر اساس کد مشتری (optional) 
            var invoiceCode = invoiceCode_example;  // String | فیلتر براساس کد فاکتور (optional) 

            try
            {
                // لیست فاکتور ها
                array[InvoiceListItemViewModel] result = apiInstance.getInvoiceList(offset, limit, status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoiceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$offset = 56; // Integer | 
$limit = 56; // Integer | 
$status = 56; // Integer | فیلتر وضعیت
$isArchived = true; // Boolean | فیلتر بایگانی
$searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
$searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
$searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
$searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
$search = search_example; // String | متن جستجو
$addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
$invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور

try {
    $result = $api_instance->getInvoiceList($offset, $limit, $status, $isArchived, $searchByDueDate, $searchByCreateDate, $searchDateFrom, $searchDateTo, $search, $addressBookCode, $invoiceCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceApi->getInvoiceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InvoiceApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $offset = 56; # Integer | 
my $limit = 56; # Integer | 
my $status = 56; # Integer | فیلتر وضعیت
my $isArchived = true; # Boolean | فیلتر بایگانی
my $searchByDueDate = true; # Boolean | فیلتر با تاریخ سررسید
my $searchByCreateDate = true; # Boolean | فیلتر با تاریخ ثبت
my $searchDateFrom = 2013-10-20T19:20:30+01:00; # Date | شروع از تاریخ
my $searchDateTo = 2013-10-20T19:20:30+01:00; # Date | تا تاریخ
my $search = search_example; # String | متن جستجو
my $addressBookCode = addressBookCode_example; # String | فیلتر بر اساس کد مشتری
my $invoiceCode = invoiceCode_example; # String | فیلتر براساس کد فاکتور

eval { 
    my $result = $api_instance->getInvoiceList(offset => $offset, limit => $limit, status => $status, isArchived => $isArchived, searchByDueDate => $searchByDueDate, searchByCreateDate => $searchByCreateDate, searchDateFrom => $searchDateFrom, searchDateTo => $searchDateTo, search => $search, addressBookCode => $addressBookCode, invoiceCode => $invoiceCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoiceApi->getInvoiceList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
offset = 56 # Integer |  (optional)
limit = 56 # Integer |  (optional)
status = 56 # Integer | فیلتر وضعیت (optional)
isArchived = true # Boolean | فیلتر بایگانی (optional)
searchByDueDate = true # Boolean | فیلتر با تاریخ سررسید (optional)
searchByCreateDate = true # Boolean | فیلتر با تاریخ ثبت (optional)
searchDateFrom = 2013-10-20T19:20:30+01:00 # Date | شروع از تاریخ (optional)
searchDateTo = 2013-10-20T19:20:30+01:00 # Date | تا تاریخ (optional)
search = search_example # String | متن جستجو (optional)
addressBookCode = addressBookCode_example # String | فیلتر بر اساس کد مشتری (optional)
invoiceCode = invoiceCode_example # String | فیلتر براساس کد فاکتور (optional)

try: 
    # لیست فاکتور ها
    api_response = api_instance.get_invoice_list(offset=offset, limit=limit, status=status, isArchived=isArchived, searchByDueDate=searchByDueDate, searchByCreateDate=searchByCreateDate, searchDateFrom=searchDateFrom, searchDateTo=searchDateTo, search=search, addressBookCode=addressBookCode, invoiceCode=invoiceCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoiceList: %s\n" % e)

Parameters

Query parameters
Name Description
offset
Integer (int32)
limit
Integer (int32)
status
Integer (int32)
فیلتر وضعیت
isArchived
Boolean
فیلتر بایگانی
searchByDueDate
Boolean
فیلتر با تاریخ سررسید
searchByCreateDate
Boolean
فیلتر با تاریخ ثبت
searchDateFrom
Date (date-time)
شروع از تاریخ
searchDateTo
Date (date-time)
تا تاریخ
search
addressBookCode
String
فیلتر بر اساس کد مشتری
invoiceCode
String
فیلتر براساس کد فاکتور

Responses

Status: 200 - نمایش لیست فاکتور ها


getInvoiceListCount

تعداد فاکتور ها


/v1/Invoice/ListCount

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/ListCount?status=&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            ListCountViewModel result = apiInstance.getInvoiceListCount(status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceListCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            ListCountViewModel result = apiInstance.getInvoiceListCount(status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoiceListCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *status = 56; // فیلتر وضعیت (optional)
Boolean *isArchived = true; // فیلتر بایگانی (optional)
Boolean *searchByDueDate = true; // فیلتر با تاریخ سررسید (optional)
Boolean *searchByCreateDate = true; // فیلتر با تاریخ ثبت (optional)
Date *searchDateFrom = 2013-10-20T19:20:30+01:00; // شروع از تاریخ (optional)
Date *searchDateTo = 2013-10-20T19:20:30+01:00; // تا تاریخ (optional)
String *search = search_example; // متن جستجو (optional)
String *addressBookCode = addressBookCode_example; // فیلتر بر اساس کد مشتری (optional)
String *invoiceCode = invoiceCode_example; // فیلتر براساس کد فاکتور (optional)

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

// تعداد فاکتور ها
[apiInstance getInvoiceListCountWith:status
    isArchived:isArchived
    searchByDueDate:searchByDueDate
    searchByCreateDate:searchByCreateDate
    searchDateFrom:searchDateFrom
    searchDateTo:searchDateTo
    search:search
    addressBookCode:addressBookCode
    invoiceCode:invoiceCode
              completionHandler: ^(ListCountViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var opts = { 
  'status': 56, // {{Integer}} فیلتر وضعیت
  'isArchived': true, // {{Boolean}} فیلتر بایگانی
  'searchByDueDate': true, // {{Boolean}} فیلتر با تاریخ سررسید
  'searchByCreateDate': true, // {{Boolean}} فیلتر با تاریخ ثبت
  'searchDateFrom': 2013-10-20T19:20:30+01:00, // {{Date}} شروع از تاریخ
  'searchDateTo': 2013-10-20T19:20:30+01:00, // {{Date}} تا تاریخ
  'search': search_example, // {{String}} متن جستجو
  'addressBookCode': addressBookCode_example, // {{String}} فیلتر بر اساس کد مشتری
  'invoiceCode': invoiceCode_example // {{String}} فیلتر براساس کد فاکتور
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoiceListCount(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoiceListCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var status = 56;  // Integer | فیلتر وضعیت (optional) 
            var isArchived = true;  // Boolean | فیلتر بایگانی (optional) 
            var searchByDueDate = true;  // Boolean | فیلتر با تاریخ سررسید (optional) 
            var searchByCreateDate = true;  // Boolean | فیلتر با تاریخ ثبت (optional) 
            var searchDateFrom = 2013-10-20T19:20:30+01:00;  // Date | شروع از تاریخ (optional) 
            var searchDateTo = 2013-10-20T19:20:30+01:00;  // Date | تا تاریخ (optional) 
            var search = search_example;  // String | متن جستجو (optional) 
            var addressBookCode = addressBookCode_example;  // String | فیلتر بر اساس کد مشتری (optional) 
            var invoiceCode = invoiceCode_example;  // String | فیلتر براساس کد فاکتور (optional) 

            try
            {
                // تعداد فاکتور ها
                ListCountViewModel result = apiInstance.getInvoiceListCount(status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoiceListCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$status = 56; // Integer | فیلتر وضعیت
$isArchived = true; // Boolean | فیلتر بایگانی
$searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
$searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
$searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
$searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
$search = search_example; // String | متن جستجو
$addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
$invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور

try {
    $result = $api_instance->getInvoiceListCount($status, $isArchived, $searchByDueDate, $searchByCreateDate, $searchDateFrom, $searchDateTo, $search, $addressBookCode, $invoiceCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceApi->getInvoiceListCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InvoiceApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $status = 56; # Integer | فیلتر وضعیت
my $isArchived = true; # Boolean | فیلتر بایگانی
my $searchByDueDate = true; # Boolean | فیلتر با تاریخ سررسید
my $searchByCreateDate = true; # Boolean | فیلتر با تاریخ ثبت
my $searchDateFrom = 2013-10-20T19:20:30+01:00; # Date | شروع از تاریخ
my $searchDateTo = 2013-10-20T19:20:30+01:00; # Date | تا تاریخ
my $search = search_example; # String | متن جستجو
my $addressBookCode = addressBookCode_example; # String | فیلتر بر اساس کد مشتری
my $invoiceCode = invoiceCode_example; # String | فیلتر براساس کد فاکتور

eval { 
    my $result = $api_instance->getInvoiceListCount(status => $status, isArchived => $isArchived, searchByDueDate => $searchByDueDate, searchByCreateDate => $searchByCreateDate, searchDateFrom => $searchDateFrom, searchDateTo => $searchDateTo, search => $search, addressBookCode => $addressBookCode, invoiceCode => $invoiceCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InvoiceApi->getInvoiceListCount: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
status = 56 # Integer | فیلتر وضعیت (optional)
isArchived = true # Boolean | فیلتر بایگانی (optional)
searchByDueDate = true # Boolean | فیلتر با تاریخ سررسید (optional)
searchByCreateDate = true # Boolean | فیلتر با تاریخ ثبت (optional)
searchDateFrom = 2013-10-20T19:20:30+01:00 # Date | شروع از تاریخ (optional)
searchDateTo = 2013-10-20T19:20:30+01:00 # Date | تا تاریخ (optional)
search = search_example # String | متن جستجو (optional)
addressBookCode = addressBookCode_example # String | فیلتر بر اساس کد مشتری (optional)
invoiceCode = invoiceCode_example # String | فیلتر براساس کد فاکتور (optional)

try: 
    # تعداد فاکتور ها
    api_response = api_instance.get_invoice_list_count(status=status, isArchived=isArchived, searchByDueDate=searchByDueDate, searchByCreateDate=searchByCreateDate, searchDateFrom=searchDateFrom, searchDateTo=searchDateTo, search=search, addressBookCode=addressBookCode, invoiceCode=invoiceCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoiceListCount: %s\n" % e)

Parameters

Query parameters
Name Description
status
Integer (int32)
فیلتر وضعیت
isArchived
Boolean
فیلتر بایگانی
searchByDueDate
Boolean
فیلتر با تاریخ سررسید
searchByCreateDate
Boolean
فیلتر با تاریخ ثبت
searchDateFrom
Date (date-time)
شروع از تاریخ
searchDateTo
Date (date-time)
تا تاریخ
search
addressBookCode
String
فیلتر بر اساس کد مشتری
invoiceCode
String
فیلتر براساس کد فاکتور

Responses

Status: 200 - نمایش تعداد فاکتور ها


getInvoicePdf

فاکتور غیر رسمی pdf درخواست


/v1/Invoice/Pdf/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Pdf/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoicePdfResponseViewModel result = apiInstance.getInvoicePdf(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicePdf");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoicePdfResponseViewModel result = apiInstance.getInvoicePdf(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#getInvoicePdf");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای فاکتور

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

// فاکتور غیر رسمی pdf درخواست
[apiInstance getInvoicePdfWith:code
              completionHandler: ^(InvoicePdfResponseViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var code = code_example; // {{String}} کلید یکتای فاکتور

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

namespace Example
{
    public class getInvoicePdfExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var code = code_example;  // String | کلید یکتای فاکتور

            try
            {
                // فاکتور غیر رسمی pdf درخواست
                InvoicePdfResponseViewModel result = apiInstance.getInvoicePdf(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.getInvoicePdf: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$code = code_example; // String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $code = code_example; # String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
code = code_example # String | کلید یکتای فاکتور

try: 
    # فاکتور غیر رسمی pdf درخواست
    api_response = api_instance.get_invoice_pdf(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->getInvoicePdf: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای فاکتور
Required

Responses

Status: 200 - نمایش مشخصات فایل فاکتور غیر رسمی


remindeInvoice

ارسال یادآوری فاکتور


/v1/Invoice/Reminder/{code}

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Reminder/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoiceSendReminderResponseViewModel result = apiInstance.remindeInvoice(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#remindeInvoice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoiceSendReminderResponseViewModel result = apiInstance.remindeInvoice(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#remindeInvoice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای فاکتور

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

// ارسال یادآوری فاکتور
[apiInstance remindeInvoiceWith:code
              completionHandler: ^(InvoiceSendReminderResponseViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var code = code_example; // {{String}} کلید یکتای فاکتور

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

namespace Example
{
    public class remindeInvoiceExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var code = code_example;  // String | کلید یکتای فاکتور

            try
            {
                // ارسال یادآوری فاکتور
                InvoiceSendReminderResponseViewModel result = apiInstance.remindeInvoice(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.remindeInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$code = code_example; // String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $code = code_example; # String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
code = code_example # String | کلید یکتای فاکتور

try: 
    # ارسال یادآوری فاکتور
    api_response = api_instance.reminde_invoice(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->remindeInvoice: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای فاکتور
Required

Responses

Status: 200 - نمایش وضعیت ارسال یادآوری فاکتور


sendInvoice

ارسال فاکتور


/v1/Invoice/Send/{code}

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Send/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InvoiceApi;

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

public class InvoiceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoiceSendInvoiceResponseViewModel result = apiInstance.sendInvoice(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#sendInvoice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InvoiceApi;

public class InvoiceApiExample {

    public static void main(String[] args) {
        InvoiceApi apiInstance = new InvoiceApi();
        String code = code_example; // String | کلید یکتای فاکتور
        try {
            InvoiceSendInvoiceResponseViewModel result = apiInstance.sendInvoice(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InvoiceApi#sendInvoice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای فاکتور

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

// ارسال فاکتور
[apiInstance sendInvoiceWith:code
              completionHandler: ^(InvoiceSendInvoiceResponseViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.InvoiceApi()
var code = code_example; // {{String}} کلید یکتای فاکتور

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

namespace Example
{
    public class sendInvoiceExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new InvoiceApi();
            var code = code_example;  // String | کلید یکتای فاکتور

            try
            {
                // ارسال فاکتور
                InvoiceSendInvoiceResponseViewModel result = apiInstance.sendInvoice(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InvoiceApi.sendInvoice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiInvoiceApi();
$code = code_example; // String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::InvoiceApi->new();
my $code = code_example; # String | کلید یکتای فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.InvoiceApi()
code = code_example # String | کلید یکتای فاکتور

try: 
    # ارسال فاکتور
    api_response = api_instance.send_invoice(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InvoiceApi->sendInvoice: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای فاکتور
Required

Responses

Status: 200 - نمایش وضعیت ارسال فاکتور


Payment

cancelPayment

برای لغو کردن یک کد پرداخت می توانید از این متد استفاده کنید


/v1/pay/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/pay/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        PaymentApi apiInstance = new PaymentApi();
        String code = code_example; // String | کد پرداخت
        try {
            apiInstance.cancelPayment(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#cancelPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String code = code_example; // String | کد پرداخت
        try {
            apiInstance.cancelPayment(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#cancelPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد پرداخت

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

// برای لغو کردن یک کد پرداخت می توانید از این متد استفاده کنید
[apiInstance cancelPaymentWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.PaymentApi()
var code = code_example; // {{String}} کد پرداخت

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

namespace Example
{
    public class cancelPaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PaymentApi();
            var code = code_example;  // String | کد پرداخت

            try
            {
                // برای لغو کردن یک کد پرداخت می توانید از این متد استفاده کنید
                apiInstance.cancelPayment(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.cancelPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPaymentApi();
$code = code_example; // String | کد پرداخت

try {
    $api_instance->cancelPayment($code);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->cancelPayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $code = code_example; # String | کد پرداخت

eval { 
    $api_instance->cancelPayment(code => $code);
};
if ($@) {
    warn "Exception when calling PaymentApi->cancelPayment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
code = code_example # String | کد پرداخت

try: 
    # برای لغو کردن یک کد پرداخت می توانید از این متد استفاده کنید
    api_instance.cancel_payment(code)
except ApiException as e:
    print("Exception when calling PaymentApi->cancelPayment: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد پرداخت
Required

Responses

Status: 200 - عملیات لغو با موفقیت انجام شد


createBlockPayment

ساخت پرداخت مسدود شده

به کمک این متد می تواندی برای پرادخت به چند نفر، کد پرداخت تولید کنید، که این یک پرادخت مسدود شده می باشد و امکان جابجایی آن تا فراخوانی متد UnBlockMoney امکان پذیر نمی باشد.


/v1/pay/BlockMoney

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/pay/BlockMoney"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        PaymentApi apiInstance = new PaymentApi();
        CreateMultiPaymentViewModel body = ; // CreateMultiPaymentViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.createBlockPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createBlockPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        CreateMultiPaymentViewModel body = ; // CreateMultiPaymentViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.createBlockPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createBlockPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CreateMultiPaymentViewModel *body = ; // مشخصات پرداخت (optional)

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

// ساخت پرداخت مسدود شده
[apiInstance createBlockPaymentWith:body
              completionHandler: ^(PaymentResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.PaymentApi()

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

namespace Example
{
    public class createBlockPaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PaymentApi();
            var body = new CreateMultiPaymentViewModel(); // CreateMultiPaymentViewModel | مشخصات پرداخت (optional) 

            try
            {
                // ساخت پرداخت مسدود شده
                PaymentResult result = apiInstance.createBlockPayment(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.createBlockPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPaymentApi();
$body = ; // CreateMultiPaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $body = WWW::SwaggerClient::Object::CreateMultiPaymentViewModel->new(); # CreateMultiPaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
body =  # CreateMultiPaymentViewModel | مشخصات پرداخت (optional)

try: 
    # ساخت پرداخت مسدود شده
    api_response = api_instance.create_block_payment(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->createBlockPayment: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - پرداخت پول جدید با موفقیت ساخته شد


createIdPosPayment

ساخت پرداخت شناسه دار

از این متد می تواند برای ساخت یک پرادخت شناسه دار که به کمک دستگاه Pos پرداخت آن انجام می شود، استفاده کرد


/v1/pos

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/pos"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        PaymentApi apiInstance = new PaymentApi();
        CreatePaymentViewModel body = ; // CreatePaymentViewModel | مشخصات پرداخت
        try {
            IPosPayResult result = apiInstance.createIdPosPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createIdPosPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        CreatePaymentViewModel body = ; // CreatePaymentViewModel | مشخصات پرداخت
        try {
            IPosPayResult result = apiInstance.createIdPosPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createIdPosPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CreatePaymentViewModel *body = ; // مشخصات پرداخت (optional)

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

// ساخت پرداخت شناسه دار
[apiInstance createIdPosPaymentWith:body
              completionHandler: ^(IPosPayResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.PaymentApi()

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

namespace Example
{
    public class createIdPosPaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PaymentApi();
            var body = new CreatePaymentViewModel(); // CreatePaymentViewModel | مشخصات پرداخت (optional) 

            try
            {
                // ساخت پرداخت شناسه دار
                IPosPayResult result = apiInstance.createIdPosPayment(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.createIdPosPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPaymentApi();
$body = ; // CreatePaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $body = WWW::SwaggerClient::Object::CreatePaymentViewModel->new(); # CreatePaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
body =  # CreatePaymentViewModel | مشخصات پرداخت (optional)

try: 
    # ساخت پرداخت شناسه دار
    api_response = api_instance.create_id_pos_payment(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->createIdPosPayment: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - پرداخت پول جدید با موفقیت ساخته شد


createMultiPayment

ساخت پرداخت تسهیمی

به کمک این متد می توانید برای یک پرداخت چند نفره (تسهیمی) کد پرداخت ایجاد کنید. فراخوانی این متد برای شما یک کد 4 حرفی تولید می کند. پس از ساخت یک پرداخت، برای ورود به درگاه بانک تنها کافیست کاربر را به همراه کد ساخته شده به آدرس https://api.payping.ir/v1/pay/gotoipg/{code} هدایت نمایید. پس از اتمام فرایند در درگاه بانکی، کاربر به آدرسی که در ReturnUrl توسط شما مشخص شده است هدایت می شود که حاوی دو پارامتر Refid, ClientRefId در قسمت QueryString آدرس می باشد. Refid مقداری است که برای تایید پرداخت (متد Verify) باید از آن استفاده کرد و ClientRefId نیز همان مقداری است که در هنگام ساخته شدن پرداخت جدید از شما دریافت شده است.


/v1/pay/multi

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/pay/multi"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        PaymentApi apiInstance = new PaymentApi();
        CreateMultiPaymentViewModel body = ; // CreateMultiPaymentViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.createMultiPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createMultiPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        CreateMultiPaymentViewModel body = ; // CreateMultiPaymentViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.createMultiPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createMultiPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CreateMultiPaymentViewModel *body = ; // مشخصات پرداخت (optional)

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

// ساخت پرداخت تسهیمی
[apiInstance createMultiPaymentWith:body
              completionHandler: ^(PaymentResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.PaymentApi()

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

namespace Example
{
    public class createMultiPaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PaymentApi();
            var body = new CreateMultiPaymentViewModel(); // CreateMultiPaymentViewModel | مشخصات پرداخت (optional) 

            try
            {
                // ساخت پرداخت تسهیمی
                PaymentResult result = apiInstance.createMultiPayment(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.createMultiPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPaymentApi();
$body = ; // CreateMultiPaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $body = WWW::SwaggerClient::Object::CreateMultiPaymentViewModel->new(); # CreateMultiPaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
body =  # CreateMultiPaymentViewModel | مشخصات پرداخت (optional)

try: 
    # ساخت پرداخت تسهیمی
    api_response = api_instance.create_multi_payment(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->createMultiPayment: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - پرداخت پول جدید با موفقیت ساخته شد


createSinglePayment

ساخت پرداخت

به کمک این متد می توانید برای یک نفر کد پرداخت ایجاد کنید. فراخوانی این متد برای شما یک کد 4 حرفی تولید می کند. پس از ساخت یک پرداخت، برای ورود به درگاه بانک تنها کافیست کاربر را به همراه کد ساخته شده به آدرس https://api.payping.ir/v1/pay/gotoipg/{code} هدایت نمایید. پس از اتمام فرایند در درگاه بانکی، کاربر به آدرسی که در ReturnUrl توسط شما مشخص شده است هدایت می شود که حاوی دو پارامتر Refid, ClientRefId در قسمت QueryString آدرس می باشد. Refid مقداری است که برای تایید پرداخت (متد Verify) باید از آن استفاده کرد و ClientRefId نیز همان مقداری است که در هنگام ساخته شدن پرداخت جدید از شما دریافت شده است.


/v1/pay

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/pay"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        PaymentApi apiInstance = new PaymentApi();
        CreatePaymentViewModel body = ; // CreatePaymentViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.createSinglePayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createSinglePayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        CreatePaymentViewModel body = ; // CreatePaymentViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.createSinglePayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#createSinglePayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CreatePaymentViewModel *body = ; // مشخصات پرداخت (optional)

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

// ساخت پرداخت
[apiInstance createSinglePaymentWith:body
              completionHandler: ^(PaymentResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.PaymentApi()

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

namespace Example
{
    public class createSinglePaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PaymentApi();
            var body = new CreatePaymentViewModel(); // CreatePaymentViewModel | مشخصات پرداخت (optional) 

            try
            {
                // ساخت پرداخت
                PaymentResult result = apiInstance.createSinglePayment(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.createSinglePayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPaymentApi();
$body = ; // CreatePaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $body = WWW::SwaggerClient::Object::CreatePaymentViewModel->new(); # CreatePaymentViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
body =  # CreatePaymentViewModel | مشخصات پرداخت (optional)

try: 
    # ساخت پرداخت
    api_response = api_instance.create_single_payment(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->createSinglePayment: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - پرداخت پول جدید با موفقیت ساخته شد


unBlockPayment

آزاد سازی پول مسدود شده

به کمک این متد، می توانید پول مسدود شده توسط متد BlockMoney را از حالت مسدودی آزاد نمایید.


/v1/pay/UnBlockMoney

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/pay/UnBlockMoney"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        PaymentApi apiInstance = new PaymentApi();
        UnBlockMoneyViewModel body = ; // UnBlockMoneyViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.unBlockPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#unBlockPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        UnBlockMoneyViewModel body = ; // UnBlockMoneyViewModel | مشخصات پرداخت
        try {
            PaymentResult result = apiInstance.unBlockPayment(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#unBlockPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
UnBlockMoneyViewModel *body = ; // مشخصات پرداخت (optional)

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

// آزاد سازی پول مسدود شده
[apiInstance unBlockPaymentWith:body
              completionHandler: ^(PaymentResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.PaymentApi()

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

namespace Example
{
    public class unBlockPaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PaymentApi();
            var body = new UnBlockMoneyViewModel(); // UnBlockMoneyViewModel | مشخصات پرداخت (optional) 

            try
            {
                // آزاد سازی پول مسدود شده
                PaymentResult result = apiInstance.unBlockPayment(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.unBlockPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPaymentApi();
$body = ; // UnBlockMoneyViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $body = WWW::SwaggerClient::Object::UnBlockMoneyViewModel->new(); # UnBlockMoneyViewModel | مشخصات پرداخت

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
body =  # UnBlockMoneyViewModel | مشخصات پرداخت (optional)

try: 
    # آزاد سازی پول مسدود شده
    api_response = api_instance.un_block_payment(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->unBlockPayment: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - پرداخت پول جدید با موفقیت ساخته شد


verifyPayment

تایید پرداخت

از این متد برای تایید پرداخت موفق پس از بازگشت از درگاه بانکی استفاده می شود. در صورتی که این متد تا 10 دقیقه پس از پرداخت فراخوانی نشود پرداخت باطل شده و پول به حساب پرداخت کننده باز خواهد گشت


/v1/pay/verify

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/pay/verify"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        PaymentApi apiInstance = new PaymentApi();
        VerifyPaymentViewModel body = ; // VerifyPaymentViewModel | مشخصات پرداخت
        try {
            apiInstance.verifyPayment(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#verifyPayment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        VerifyPaymentViewModel body = ; // VerifyPaymentViewModel | مشخصات پرداخت
        try {
            apiInstance.verifyPayment(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#verifyPayment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
VerifyPaymentViewModel *body = ; // مشخصات پرداخت (optional)

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

// تایید پرداخت
[apiInstance verifyPaymentWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.PaymentApi()

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

namespace Example
{
    public class verifyPaymentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PaymentApi();
            var body = new VerifyPaymentViewModel(); // VerifyPaymentViewModel | مشخصات پرداخت (optional) 

            try
            {
                // تایید پرداخت
                apiInstance.verifyPayment(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.verifyPayment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPaymentApi();
$body = ; // VerifyPaymentViewModel | مشخصات پرداخت

try {
    $api_instance->verifyPayment($body);
} catch (Exception $e) {
    echo 'Exception when calling PaymentApi->verifyPayment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PaymentApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $body = WWW::SwaggerClient::Object::VerifyPaymentViewModel->new(); # VerifyPaymentViewModel | مشخصات پرداخت

eval { 
    $api_instance->verifyPayment(body => $body);
};
if ($@) {
    warn "Exception when calling PaymentApi->verifyPayment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
body =  # VerifyPaymentViewModel | مشخصات پرداخت (optional)

try: 
    # تایید پرداخت
    api_instance.verify_payment(body=body)
except ApiException as e:
    print("Exception when calling PaymentApi->verifyPayment: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - تاییدیه آیتم مالی با موفقیت انجام شد


Product

createProduct

ساخت یک آیتم‌ مالی جدید


/v1/product

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/product"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ProductApi apiInstance = new ProductApi();
        ProductCreateViewModel body = ; // ProductCreateViewModel | مشخصات آیتم مالی
        try {
            CodeViewModel result = apiInstance.createProduct(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#createProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        ProductCreateViewModel body = ; // ProductCreateViewModel | مشخصات آیتم مالی
        try {
            CodeViewModel result = apiInstance.createProduct(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#createProduct");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ProductCreateViewModel *body = ; // مشخصات آیتم مالی (optional)

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

// ساخت یک آیتم‌ مالی جدید
[apiInstance createProductWith:body
              completionHandler: ^(CodeViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ProductApi()

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

namespace Example
{
    public class createProductExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ProductApi();
            var body = new ProductCreateViewModel(); // ProductCreateViewModel | مشخصات آیتم مالی (optional) 

            try
            {
                // ساخت یک آیتم‌ مالی جدید
                CodeViewModel result = apiInstance.createProduct(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.createProduct: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiProductApi();
$body = ; // ProductCreateViewModel | مشخصات آیتم مالی

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $body = WWW::SwaggerClient::Object::ProductCreateViewModel->new(); # ProductCreateViewModel | مشخصات آیتم مالی

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
body =  # ProductCreateViewModel | مشخصات آیتم مالی (optional)

try: 
    # ساخت یک آیتم‌ مالی جدید
    api_response = api_instance.create_product(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->createProduct: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - آیتم مالی با موفقیت ساخته شد


deleteProduct

حذف یک آیتم مالی


/v1/product/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/product/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ProductApi apiInstance = new ProductApi();
        String code = code_example; // String | کد آیتم مالی
        try {
            apiInstance.deleteProduct(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#deleteProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        String code = code_example; // String | کد آیتم مالی
        try {
            apiInstance.deleteProduct(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#deleteProduct");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد آیتم مالی

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

// حذف یک آیتم مالی
[apiInstance deleteProductWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ProductApi()
var code = code_example; // {{String}} کد آیتم مالی

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

namespace Example
{
    public class deleteProductExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ProductApi();
            var code = code_example;  // String | کد آیتم مالی

            try
            {
                // حذف یک آیتم مالی
                apiInstance.deleteProduct(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.deleteProduct: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiProductApi();
$code = code_example; // String | کد آیتم مالی

try {
    $api_instance->deleteProduct($code);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->deleteProduct: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $code = code_example; # String | کد آیتم مالی

eval { 
    $api_instance->deleteProduct(code => $code);
};
if ($@) {
    warn "Exception when calling ProductApi->deleteProduct: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
code = code_example # String | کد آیتم مالی

try: 
    # حذف یک آیتم مالی
    api_instance.delete_product(code)
except ApiException as e:
    print("Exception when calling ProductApi->deleteProduct: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد آیتم مالی
Required

Responses

Status: 200 - آیتم مالی با موفقیت حذف شد


editProduct

بروزرسانی آیتم مالی


/v1/product

Usage and SDK Samples

curl -X PUT -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/product"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ProductApi apiInstance = new ProductApi();
        ProductEditViewModel body = ; // ProductEditViewModel | مشخصات آیتم مالی
        try {
            apiInstance.editProduct(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#editProduct");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        ProductEditViewModel body = ; // ProductEditViewModel | مشخصات آیتم مالی
        try {
            apiInstance.editProduct(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#editProduct");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ProductEditViewModel *body = ; // مشخصات آیتم مالی (optional)

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

// بروزرسانی آیتم مالی
[apiInstance editProductWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ProductApi()

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

namespace Example
{
    public class editProductExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ProductApi();
            var body = new ProductEditViewModel(); // ProductEditViewModel | مشخصات آیتم مالی (optional) 

            try
            {
                // بروزرسانی آیتم مالی
                apiInstance.editProduct(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.editProduct: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiProductApi();
$body = ; // ProductEditViewModel | مشخصات آیتم مالی

try {
    $api_instance->editProduct($body);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->editProduct: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $body = WWW::SwaggerClient::Object::ProductEditViewModel->new(); # ProductEditViewModel | مشخصات آیتم مالی

eval { 
    $api_instance->editProduct(body => $body);
};
if ($@) {
    warn "Exception when calling ProductApi->editProduct: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
body =  # ProductEditViewModel | مشخصات آیتم مالی (optional)

try: 
    # بروزرسانی آیتم مالی
    api_instance.edit_product(body=body)
except ApiException as e:
    print("Exception when calling ProductApi->editProduct: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - آیتم‌ مالی با موفقیت بروزرسانی شد


getProductDetails

نمایش یک آیتم مالی


/v1/product/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/product/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ProductApi apiInstance = new ProductApi();
        String code = code_example; // String | کد آیتم مالی
        try {
            ProductFullDeatilViewModel result = apiInstance.getProductDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#getProductDetails");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        String code = code_example; // String | کد آیتم مالی
        try {
            ProductFullDeatilViewModel result = apiInstance.getProductDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#getProductDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد آیتم مالی

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

// نمایش یک آیتم مالی
[apiInstance getProductDetailsWith:code
              completionHandler: ^(ProductFullDeatilViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ProductApi()
var code = code_example; // {{String}} کد آیتم مالی

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

namespace Example
{
    public class getProductDetailsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ProductApi();
            var code = code_example;  // String | کد آیتم مالی

            try
            {
                // نمایش یک آیتم مالی
                ProductFullDeatilViewModel result = apiInstance.getProductDetails(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.getProductDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiProductApi();
$code = code_example; // String | کد آیتم مالی

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $code = code_example; # String | کد آیتم مالی

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
code = code_example # String | کد آیتم مالی

try: 
    # نمایش یک آیتم مالی
    api_response = api_instance.get_product_details(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->getProductDetails: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد آیتم مالی
Required

Responses

Status: 200 - آیتم مالی با موفقیت نمایش داده شد


getProductList

دریافت لیست آیتم‌های مالی


/v1/product/List

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/product/List?offset=&limit=&witharchived=&search="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ProductApi apiInstance = new ProductApi();
        Integer offset = 56; // Integer | شماره ابتدا لیست
        Integer limit = 56; // Integer | شماره انتها لیست
        Boolean witharchived = true; // Boolean | اضافه شدن آیتم‌های آرشیو شده
        String search = search_example; // String | کیلدواژه جستجو در آیتم‌های مالی
        try {
            array[ProductListItemViewModel] result = apiInstance.getProductList(offset, limit, witharchived, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#getProductList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        Integer offset = 56; // Integer | شماره ابتدا لیست
        Integer limit = 56; // Integer | شماره انتها لیست
        Boolean witharchived = true; // Boolean | اضافه شدن آیتم‌های آرشیو شده
        String search = search_example; // String | کیلدواژه جستجو در آیتم‌های مالی
        try {
            array[ProductListItemViewModel] result = apiInstance.getProductList(offset, limit, witharchived, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#getProductList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *offset = 56; // شماره ابتدا لیست (optional)
Integer *limit = 56; // شماره انتها لیست (optional)
Boolean *witharchived = true; // اضافه شدن آیتم‌های آرشیو شده (optional)
String *search = search_example; // کیلدواژه جستجو در آیتم‌های مالی (optional)

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

// دریافت لیست آیتم‌های مالی
[apiInstance getProductListWith:offset
    limit:limit
    witharchived:witharchived
    search:search
              completionHandler: ^(array[ProductListItemViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ProductApi()
var opts = { 
  'offset': 56, // {{Integer}} شماره ابتدا لیست
  'limit': 56, // {{Integer}} شماره انتها لیست
  'witharchived': true, // {{Boolean}} اضافه شدن آیتم‌های آرشیو شده
  'search': search_example // {{String}} کیلدواژه جستجو در آیتم‌های مالی
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProductList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProductListExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ProductApi();
            var offset = 56;  // Integer | شماره ابتدا لیست (optional) 
            var limit = 56;  // Integer | شماره انتها لیست (optional) 
            var witharchived = true;  // Boolean | اضافه شدن آیتم‌های آرشیو شده (optional) 
            var search = search_example;  // String | کیلدواژه جستجو در آیتم‌های مالی (optional) 

            try
            {
                // دریافت لیست آیتم‌های مالی
                array[ProductListItemViewModel] result = apiInstance.getProductList(offset, limit, witharchived, search);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.getProductList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiProductApi();
$offset = 56; // Integer | شماره ابتدا لیست
$limit = 56; // Integer | شماره انتها لیست
$witharchived = true; // Boolean | اضافه شدن آیتم‌های آرشیو شده
$search = search_example; // String | کیلدواژه جستجو در آیتم‌های مالی

try {
    $result = $api_instance->getProductList($offset, $limit, $witharchived, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->getProductList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $offset = 56; # Integer | شماره ابتدا لیست
my $limit = 56; # Integer | شماره انتها لیست
my $witharchived = true; # Boolean | اضافه شدن آیتم‌های آرشیو شده
my $search = search_example; # String | کیلدواژه جستجو در آیتم‌های مالی

eval { 
    my $result = $api_instance->getProductList(offset => $offset, limit => $limit, witharchived => $witharchived, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductApi->getProductList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
offset = 56 # Integer | شماره ابتدا لیست (optional)
limit = 56 # Integer | شماره انتها لیست (optional)
witharchived = true # Boolean | اضافه شدن آیتم‌های آرشیو شده (optional)
search = search_example # String | کیلدواژه جستجو در آیتم‌های مالی (optional)

try: 
    # دریافت لیست آیتم‌های مالی
    api_response = api_instance.get_product_list(offset=offset, limit=limit, witharchived=witharchived, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->getProductList: %s\n" % e)

Parameters

Query parameters
Name Description
offset
Integer (int32)
شماره ابتدا لیست
limit
Integer (int32)
شماره انتها لیست
witharchived
Boolean
اضافه شدن آیتم‌های آرشیو شده
search

Responses

Status: 200 - لیست آیتم‌های مالی با موفقیت نمایش داده شد


Report

getPaymentDetails

نمایش جزئیات تراکنش


/v1/report/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/report/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportApi;

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

public class ReportApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ReportApi apiInstance = new ReportApi();
        String code = code_example; // String | کد پرداخت
        try {
            PaymentDetailsViewModel result = apiInstance.getPaymentDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#getPaymentDetails");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportApi;

public class ReportApiExample {

    public static void main(String[] args) {
        ReportApi apiInstance = new ReportApi();
        String code = code_example; // String | کد پرداخت
        try {
            PaymentDetailsViewModel result = apiInstance.getPaymentDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#getPaymentDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد پرداخت

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

// نمایش جزئیات تراکنش
[apiInstance getPaymentDetailsWith:code
              completionHandler: ^(PaymentDetailsViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ReportApi()
var code = code_example; // {{String}} کد پرداخت

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

namespace Example
{
    public class getPaymentDetailsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportApi();
            var code = code_example;  // String | کد پرداخت

            try
            {
                // نمایش جزئیات تراکنش
                PaymentDetailsViewModel result = apiInstance.getPaymentDetails(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportApi.getPaymentDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReportApi();
$code = code_example; // String | کد پرداخت

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportApi->new();
my $code = code_example; # String | کد پرداخت

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportApi()
code = code_example # String | کد پرداخت

try: 
    # نمایش جزئیات تراکنش
    api_response = api_instance.get_payment_details(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportApi->getPaymentDetails: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد پرداخت
Required

Responses

Status: 200 - جزئیات تراکنش با موفقیت ساخته شد


transactionsReport

گزارش تراکنش ها

از این متد برای نمایش جزئیات تراکنش های کاربر استفاده می شود


/v1/report/TransactionReport

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/report/TransactionReport"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportApi;

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

public class ReportApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ReportApi apiInstance = new ReportApi();
        TransactionReportModel body = ; // TransactionReportModel | 
        try {
            array[TransactionReportViewModel] result = apiInstance.transactionsReport(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#transactionsReport");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportApi;

public class ReportApiExample {

    public static void main(String[] args) {
        ReportApi apiInstance = new ReportApi();
        TransactionReportModel body = ; // TransactionReportModel | 
        try {
            array[TransactionReportViewModel] result = apiInstance.transactionsReport(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#transactionsReport");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
TransactionReportModel *body = ; //  (optional)

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

// گزارش تراکنش ها
[apiInstance transactionsReportWith:body
              completionHandler: ^(array[TransactionReportViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ReportApi()

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

namespace Example
{
    public class transactionsReportExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportApi();
            var body = new TransactionReportModel(); // TransactionReportModel |  (optional) 

            try
            {
                // گزارش تراکنش ها
                array[TransactionReportViewModel] result = apiInstance.transactionsReport(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportApi.transactionsReport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReportApi();
$body = ; // TransactionReportModel | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportApi->new();
my $body = WWW::SwaggerClient::Object::TransactionReportModel->new(); # TransactionReportModel | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportApi()
body =  # TransactionReportModel |  (optional)

try: 
    # گزارش تراکنش ها
    api_response = api_instance.transactions_report(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportApi->transactionsReport: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - لیسات تراکنش ها با موفقیت ساخته شد


transactionsReportCount

تعداد تراکنش ها

از این متد برای نمایش تعداد تراکنش های برگشت داده شده از متد TransactionReport استفاده می شود


/v1/report/TransactionReportCount

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/report/TransactionReportCount"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportApi;

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

public class ReportApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ReportApi apiInstance = new ReportApi();
        BaseTransactionReport body = ; // BaseTransactionReport | 
        try {
            ResultViewModel result = apiInstance.transactionsReportCount(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#transactionsReportCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportApi;

public class ReportApiExample {

    public static void main(String[] args) {
        ReportApi apiInstance = new ReportApi();
        BaseTransactionReport body = ; // BaseTransactionReport | 
        try {
            ResultViewModel result = apiInstance.transactionsReportCount(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#transactionsReportCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
BaseTransactionReport *body = ; //  (optional)

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

// تعداد تراکنش ها
[apiInstance transactionsReportCountWith:body
              completionHandler: ^(ResultViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ReportApi()

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

namespace Example
{
    public class transactionsReportCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportApi();
            var body = new BaseTransactionReport(); // BaseTransactionReport |  (optional) 

            try
            {
                // تعداد تراکنش ها
                ResultViewModel result = apiInstance.transactionsReportCount(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportApi.transactionsReportCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReportApi();
$body = ; // BaseTransactionReport | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportApi->new();
my $body = WWW::SwaggerClient::Object::BaseTransactionReport->new(); # BaseTransactionReport | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportApi()
body =  # BaseTransactionReport |  (optional)

try: 
    # تعداد تراکنش ها
    api_response = api_instance.transactions_report_count(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportApi->transactionsReportCount: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - تعداد تراکنش ها با موفقیت ساخته شد


withdrawTransactionsCount

تعداد لیست تسویه حساب

به کمک این متد می توانید تعداد لیست درخواست های تسویه شده و در انتظار تسویه را که از متد WithdrawTransactions دریافت کرده اید را نمایش دهید


/v1/report/WithdrawTransactionsCount

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/report/WithdrawTransactionsCount"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportApi;

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

public class ReportApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ReportApi apiInstance = new ReportApi();
        BaseTransactionReport body = ; // BaseTransactionReport | 
        try {
            ResultViewModel result = apiInstance.withdrawTransactionsCount(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#withdrawTransactionsCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportApi;

public class ReportApiExample {

    public static void main(String[] args) {
        ReportApi apiInstance = new ReportApi();
        BaseTransactionReport body = ; // BaseTransactionReport | 
        try {
            ResultViewModel result = apiInstance.withdrawTransactionsCount(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#withdrawTransactionsCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
BaseTransactionReport *body = ; //  (optional)

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

// تعداد لیست تسویه حساب
[apiInstance withdrawTransactionsCountWith:body
              completionHandler: ^(ResultViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ReportApi()

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

namespace Example
{
    public class withdrawTransactionsCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportApi();
            var body = new BaseTransactionReport(); // BaseTransactionReport |  (optional) 

            try
            {
                // تعداد لیست تسویه حساب
                ResultViewModel result = apiInstance.withdrawTransactionsCount(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportApi.withdrawTransactionsCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReportApi();
$body = ; // BaseTransactionReport | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportApi->new();
my $body = WWW::SwaggerClient::Object::BaseTransactionReport->new(); # BaseTransactionReport | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportApi()
body =  # BaseTransactionReport |  (optional)

try: 
    # تعداد لیست تسویه حساب
    api_response = api_instance.withdraw_transactions_count(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportApi->withdrawTransactionsCount: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - جزئیات تسویه با موفقیت نمایش داده شد


withdrawTransactionsReport

دریافت لیست تسویه حساب

به کمک این متد می توانید لیست درخواست های تسویه شده و در انتظار تسویه را نمایش دهید


/v1/report/WithdrawTransactions

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/report/WithdrawTransactions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportApi;

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

public class ReportApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ReportApi apiInstance = new ReportApi();
        TransactionReportModel body = ; // TransactionReportModel | 
        try {
            array[TransactionWithdrawDetailsViewModel] result = apiInstance.withdrawTransactionsReport(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#withdrawTransactionsReport");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportApi;

public class ReportApiExample {

    public static void main(String[] args) {
        ReportApi apiInstance = new ReportApi();
        TransactionReportModel body = ; // TransactionReportModel | 
        try {
            array[TransactionWithdrawDetailsViewModel] result = apiInstance.withdrawTransactionsReport(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportApi#withdrawTransactionsReport");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
TransactionReportModel *body = ; //  (optional)

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

// دریافت لیست تسویه حساب
[apiInstance withdrawTransactionsReportWith:body
              completionHandler: ^(array[TransactionWithdrawDetailsViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ReportApi()

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

namespace Example
{
    public class withdrawTransactionsReportExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReportApi();
            var body = new TransactionReportModel(); // TransactionReportModel |  (optional) 

            try
            {
                // دریافت لیست تسویه حساب
                array[TransactionWithdrawDetailsViewModel] result = apiInstance.withdrawTransactionsReport(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportApi.withdrawTransactionsReport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReportApi();
$body = ; // TransactionReportModel | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReportApi->new();
my $body = WWW::SwaggerClient::Object::TransactionReportModel->new(); # TransactionReportModel | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReportApi()
body =  # TransactionReportModel |  (optional)

try: 
    # دریافت لیست تسویه حساب
    api_response = api_instance.withdraw_transactions_report(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportApi->withdrawTransactionsReport: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - جزئیات تسویه با موفقیت نمایش داده شد


Request

cancelRequest

لغو درخواست پول

برای لغو کردن یک کد درخواست می توانید از این متد استفاده کنید


/v1/request/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/request/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RequestApi;

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

public class RequestApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        RequestApi apiInstance = new RequestApi();
        String code = code_example; // String | کد درخواست
        try {
            apiInstance.cancelRequest(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#cancelRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RequestApi;

public class RequestApiExample {

    public static void main(String[] args) {
        RequestApi apiInstance = new RequestApi();
        String code = code_example; // String | کد درخواست
        try {
            apiInstance.cancelRequest(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#cancelRequest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد درخواست

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

// لغو درخواست پول
[apiInstance cancelRequestWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.RequestApi()
var code = code_example; // {{String}} کد درخواست

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

namespace Example
{
    public class cancelRequestExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RequestApi();
            var code = code_example;  // String | کد درخواست

            try
            {
                // لغو درخواست پول
                apiInstance.cancelRequest(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RequestApi.cancelRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiRequestApi();
$code = code_example; // String | کد درخواست

try {
    $api_instance->cancelRequest($code);
} catch (Exception $e) {
    echo 'Exception when calling RequestApi->cancelRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RequestApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::RequestApi->new();
my $code = code_example; # String | کد درخواست

eval { 
    $api_instance->cancelRequest(code => $code);
};
if ($@) {
    warn "Exception when calling RequestApi->cancelRequest: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.RequestApi()
code = code_example # String | کد درخواست

try: 
    # لغو درخواست پول
    api_instance.cancel_request(code)
except ApiException as e:
    print("Exception when calling RequestApi->cancelRequest: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد درخواست
Required

Responses

Status: 200 - درخواست با موفقیت کنسل شد


createMultiRequest

ارسال درخواست پول برای چند نفر

از این متد برای ارسال لینک درخواست پول برای چند نفر بصورت پیامک یا ایمیل استفاده می شود


/v1/request/multi

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/request/multi"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RequestApi;

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

public class RequestApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        RequestApi apiInstance = new RequestApi();
        CreateMultiRequestViewModel body = ; // CreateMultiRequestViewModel | مشخصات درخواست گنندگان پول
        try {
            array[MultiRequestViewModel] result = apiInstance.createMultiRequest(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#createMultiRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RequestApi;

public class RequestApiExample {

    public static void main(String[] args) {
        RequestApi apiInstance = new RequestApi();
        CreateMultiRequestViewModel body = ; // CreateMultiRequestViewModel | مشخصات درخواست گنندگان پول
        try {
            array[MultiRequestViewModel] result = apiInstance.createMultiRequest(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#createMultiRequest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CreateMultiRequestViewModel *body = ; // مشخصات درخواست گنندگان پول (optional)

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

// ارسال درخواست پول برای چند نفر
[apiInstance createMultiRequestWith:body
              completionHandler: ^(array[MultiRequestViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.RequestApi()

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

namespace Example
{
    public class createMultiRequestExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RequestApi();
            var body = new CreateMultiRequestViewModel(); // CreateMultiRequestViewModel | مشخصات درخواست گنندگان پول (optional) 

            try
            {
                // ارسال درخواست پول برای چند نفر
                array[MultiRequestViewModel] result = apiInstance.createMultiRequest(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RequestApi.createMultiRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiRequestApi();
$body = ; // CreateMultiRequestViewModel | مشخصات درخواست گنندگان پول

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::RequestApi->new();
my $body = WWW::SwaggerClient::Object::CreateMultiRequestViewModel->new(); # CreateMultiRequestViewModel | مشخصات درخواست گنندگان پول

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.RequestApi()
body =  # CreateMultiRequestViewModel | مشخصات درخواست گنندگان پول (optional)

try: 
    # ارسال درخواست پول برای چند نفر
    api_response = api_instance.create_multi_request(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RequestApi->createMultiRequest: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - درخواست پول با موفقیت انجام شد


createRequest

ارسال درخواست پول

از این متد برای ارسال لینک درخواست پول برای یک نفر بصورت پیامک یا ایمیل استفاده می شود


/v1/request

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/request"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RequestApi;

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

public class RequestApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        RequestApi apiInstance = new RequestApi();
        CreateRequestViewModel body = ; // CreateRequestViewModel | مشخصات درخواست پول
        try {
            RequestResult result = apiInstance.createRequest(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#createRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RequestApi;

public class RequestApiExample {

    public static void main(String[] args) {
        RequestApi apiInstance = new RequestApi();
        CreateRequestViewModel body = ; // CreateRequestViewModel | مشخصات درخواست پول
        try {
            RequestResult result = apiInstance.createRequest(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#createRequest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
CreateRequestViewModel *body = ; // مشخصات درخواست پول (optional)

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

// ارسال درخواست پول
[apiInstance createRequestWith:body
              completionHandler: ^(RequestResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.RequestApi()

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

namespace Example
{
    public class createRequestExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RequestApi();
            var body = new CreateRequestViewModel(); // CreateRequestViewModel | مشخصات درخواست پول (optional) 

            try
            {
                // ارسال درخواست پول
                RequestResult result = apiInstance.createRequest(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RequestApi.createRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiRequestApi();
$body = ; // CreateRequestViewModel | مشخصات درخواست پول

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::RequestApi->new();
my $body = WWW::SwaggerClient::Object::CreateRequestViewModel->new(); # CreateRequestViewModel | مشخصات درخواست پول

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.RequestApi()
body =  # CreateRequestViewModel | مشخصات درخواست پول (optional)

try: 
    # ارسال درخواست پول
    api_response = api_instance.create_request(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RequestApi->createRequest: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - ساخت درخواست پول جدید با موفقیت انجام شد


sendReminder

یادآوری مجدد درخواست پول

از این متد برای ارسال مجدد پیامک یا ایمیل لینک درخواست پول استفاده می شود


/v1/request/{code}/SendReminder

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/request/{code}/SendReminder"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RequestApi;

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

public class RequestApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        RequestApi apiInstance = new RequestApi();
        String code = code_example; // String | کد درخواست
        try {
            apiInstance.sendReminder(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#sendReminder");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RequestApi;

public class RequestApiExample {

    public static void main(String[] args) {
        RequestApi apiInstance = new RequestApi();
        String code = code_example; // String | کد درخواست
        try {
            apiInstance.sendReminder(code);
        } catch (ApiException e) {
            System.err.println("Exception when calling RequestApi#sendReminder");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد درخواست

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

// یادآوری مجدد درخواست پول
[apiInstance sendReminderWith:code
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.RequestApi()
var code = code_example; // {{String}} کد درخواست

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

namespace Example
{
    public class sendReminderExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new RequestApi();
            var code = code_example;  // String | کد درخواست

            try
            {
                // یادآوری مجدد درخواست پول
                apiInstance.sendReminder(code);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RequestApi.sendReminder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiRequestApi();
$code = code_example; // String | کد درخواست

try {
    $api_instance->sendReminder($code);
} catch (Exception $e) {
    echo 'Exception when calling RequestApi->sendReminder: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RequestApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::RequestApi->new();
my $code = code_example; # String | کد درخواست

eval { 
    $api_instance->sendReminder(code => $code);
};
if ($@) {
    warn "Exception when calling RequestApi->sendReminder: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.RequestApi()
code = code_example # String | کد درخواست

try: 
    # یادآوری مجدد درخواست پول
    api_instance.send_reminder(code)
except ApiException as e:
    print("Exception when calling RequestApi->sendReminder: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد درخواست
Required

Responses

Status: 200 - یادآوری با موفقیت انجام شد


Schedule

createInvoiceSchedule

فاکتور زمانبندی شده جدید


/v1/Invoice/Schedule

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Schedule"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleApi;

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

public class ScheduleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ScheduleApi apiInstance = new ScheduleApi();
        InvoiceCreateScheduleViewModel body = ; // InvoiceCreateScheduleViewModel | مشخصات فاکتور زمانبندی شده
        try {
            InvoiceDetailViewModel result = apiInstance.createInvoiceSchedule(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#createInvoiceSchedule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleApi;

public class ScheduleApiExample {

    public static void main(String[] args) {
        ScheduleApi apiInstance = new ScheduleApi();
        InvoiceCreateScheduleViewModel body = ; // InvoiceCreateScheduleViewModel | مشخصات فاکتور زمانبندی شده
        try {
            InvoiceDetailViewModel result = apiInstance.createInvoiceSchedule(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#createInvoiceSchedule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
InvoiceCreateScheduleViewModel *body = ; // مشخصات فاکتور زمانبندی شده (optional)

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

// فاکتور زمانبندی شده جدید
[apiInstance createInvoiceScheduleWith:body
              completionHandler: ^(InvoiceDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ScheduleApi()

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

namespace Example
{
    public class createInvoiceScheduleExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ScheduleApi();
            var body = new InvoiceCreateScheduleViewModel(); // InvoiceCreateScheduleViewModel | مشخصات فاکتور زمانبندی شده (optional) 

            try
            {
                // فاکتور زمانبندی شده جدید
                InvoiceDetailViewModel result = apiInstance.createInvoiceSchedule(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleApi.createInvoiceSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiScheduleApi();
$body = ; // InvoiceCreateScheduleViewModel | مشخصات فاکتور زمانبندی شده

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ScheduleApi->new();
my $body = WWW::SwaggerClient::Object::InvoiceCreateScheduleViewModel->new(); # InvoiceCreateScheduleViewModel | مشخصات فاکتور زمانبندی شده

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ScheduleApi()
body =  # InvoiceCreateScheduleViewModel | مشخصات فاکتور زمانبندی شده (optional)

try: 
    # فاکتور زمانبندی شده جدید
    api_response = api_instance.create_invoice_schedule(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduleApi->createInvoiceSchedule: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - نمایش فاکتور زمانبندی شده


deleteInvoiceSchedule

حذف فاکتور زمانبندی شده


/v1/Invoice/DeleteSchedule/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/DeleteSchedule/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleApi;

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

public class ScheduleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ScheduleApi apiInstance = new ScheduleApi();
        String code = code_example; // String | کلید یکتای فاکتور زمانبندی شده
        try {
            'String' result = apiInstance.deleteInvoiceSchedule(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#deleteInvoiceSchedule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleApi;

public class ScheduleApiExample {

    public static void main(String[] args) {
        ScheduleApi apiInstance = new ScheduleApi();
        String code = code_example; // String | کلید یکتای فاکتور زمانبندی شده
        try {
            'String' result = apiInstance.deleteInvoiceSchedule(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#deleteInvoiceSchedule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای فاکتور زمانبندی شده

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

// حذف فاکتور زمانبندی شده
[apiInstance deleteInvoiceScheduleWith:code
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ScheduleApi()
var code = code_example; // {{String}} کلید یکتای فاکتور زمانبندی شده

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

namespace Example
{
    public class deleteInvoiceScheduleExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ScheduleApi();
            var code = code_example;  // String | کلید یکتای فاکتور زمانبندی شده

            try
            {
                // حذف فاکتور زمانبندی شده
                'String' result = apiInstance.deleteInvoiceSchedule(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleApi.deleteInvoiceSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiScheduleApi();
$code = code_example; // String | کلید یکتای فاکتور زمانبندی شده

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ScheduleApi->new();
my $code = code_example; # String | کلید یکتای فاکتور زمانبندی شده

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ScheduleApi()
code = code_example # String | کلید یکتای فاکتور زمانبندی شده

try: 
    # حذف فاکتور زمانبندی شده
    api_response = api_instance.delete_invoice_schedule(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduleApi->deleteInvoiceSchedule: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای فاکتور زمانبندی شده
Required

Responses

Status: 200 - نمایش کلید یکتای فاکتور زمانبندی شده


getInvoiceListSchedule

لیست فاکتور ها زمانبندی شده


/v1/Invoice/ListSchedule

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/ListSchedule?offset=&limit=&status=&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleApi;

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

public class ScheduleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ScheduleApi apiInstance = new ScheduleApi();
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            array[InvoiceListItemViewModel] result = apiInstance.getInvoiceListSchedule(offset, limit, status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#getInvoiceListSchedule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleApi;

public class ScheduleApiExample {

    public static void main(String[] args) {
        ScheduleApi apiInstance = new ScheduleApi();
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            array[InvoiceListItemViewModel] result = apiInstance.getInvoiceListSchedule(offset, limit, status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#getInvoiceListSchedule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *offset = 56; //  (optional)
Integer *limit = 56; //  (optional)
Integer *status = 56; // فیلتر وضعیت (optional)
Boolean *isArchived = true; // فیلتر بایگانی (optional)
Boolean *searchByDueDate = true; // فیلتر با تاریخ سررسید (optional)
Boolean *searchByCreateDate = true; // فیلتر با تاریخ ثبت (optional)
Date *searchDateFrom = 2013-10-20T19:20:30+01:00; // شروع از تاریخ (optional)
Date *searchDateTo = 2013-10-20T19:20:30+01:00; // تا تاریخ (optional)
String *search = search_example; // متن جستجو (optional)
String *addressBookCode = addressBookCode_example; // فیلتر بر اساس کد مشتری (optional)
String *invoiceCode = invoiceCode_example; // فیلتر براساس کد فاکتور (optional)

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

// لیست فاکتور ها زمانبندی شده
[apiInstance getInvoiceListScheduleWith:offset
    limit:limit
    status:status
    isArchived:isArchived
    searchByDueDate:searchByDueDate
    searchByCreateDate:searchByCreateDate
    searchDateFrom:searchDateFrom
    searchDateTo:searchDateTo
    search:search
    addressBookCode:addressBookCode
    invoiceCode:invoiceCode
              completionHandler: ^(array[InvoiceListItemViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ScheduleApi()
var opts = { 
  'offset': 56, // {{Integer}} 
  'limit': 56, // {{Integer}} 
  'status': 56, // {{Integer}} فیلتر وضعیت
  'isArchived': true, // {{Boolean}} فیلتر بایگانی
  'searchByDueDate': true, // {{Boolean}} فیلتر با تاریخ سررسید
  'searchByCreateDate': true, // {{Boolean}} فیلتر با تاریخ ثبت
  'searchDateFrom': 2013-10-20T19:20:30+01:00, // {{Date}} شروع از تاریخ
  'searchDateTo': 2013-10-20T19:20:30+01:00, // {{Date}} تا تاریخ
  'search': search_example, // {{String}} متن جستجو
  'addressBookCode': addressBookCode_example, // {{String}} فیلتر بر اساس کد مشتری
  'invoiceCode': invoiceCode_example // {{String}} فیلتر براساس کد فاکتور
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoiceListSchedule(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoiceListScheduleExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ScheduleApi();
            var offset = 56;  // Integer |  (optional) 
            var limit = 56;  // Integer |  (optional) 
            var status = 56;  // Integer | فیلتر وضعیت (optional) 
            var isArchived = true;  // Boolean | فیلتر بایگانی (optional) 
            var searchByDueDate = true;  // Boolean | فیلتر با تاریخ سررسید (optional) 
            var searchByCreateDate = true;  // Boolean | فیلتر با تاریخ ثبت (optional) 
            var searchDateFrom = 2013-10-20T19:20:30+01:00;  // Date | شروع از تاریخ (optional) 
            var searchDateTo = 2013-10-20T19:20:30+01:00;  // Date | تا تاریخ (optional) 
            var search = search_example;  // String | متن جستجو (optional) 
            var addressBookCode = addressBookCode_example;  // String | فیلتر بر اساس کد مشتری (optional) 
            var invoiceCode = invoiceCode_example;  // String | فیلتر براساس کد فاکتور (optional) 

            try
            {
                // لیست فاکتور ها زمانبندی شده
                array[InvoiceListItemViewModel] result = apiInstance.getInvoiceListSchedule(offset, limit, status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleApi.getInvoiceListSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiScheduleApi();
$offset = 56; // Integer | 
$limit = 56; // Integer | 
$status = 56; // Integer | فیلتر وضعیت
$isArchived = true; // Boolean | فیلتر بایگانی
$searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
$searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
$searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
$searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
$search = search_example; // String | متن جستجو
$addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
$invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور

try {
    $result = $api_instance->getInvoiceListSchedule($offset, $limit, $status, $isArchived, $searchByDueDate, $searchByCreateDate, $searchDateFrom, $searchDateTo, $search, $addressBookCode, $invoiceCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScheduleApi->getInvoiceListSchedule: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScheduleApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ScheduleApi->new();
my $offset = 56; # Integer | 
my $limit = 56; # Integer | 
my $status = 56; # Integer | فیلتر وضعیت
my $isArchived = true; # Boolean | فیلتر بایگانی
my $searchByDueDate = true; # Boolean | فیلتر با تاریخ سررسید
my $searchByCreateDate = true; # Boolean | فیلتر با تاریخ ثبت
my $searchDateFrom = 2013-10-20T19:20:30+01:00; # Date | شروع از تاریخ
my $searchDateTo = 2013-10-20T19:20:30+01:00; # Date | تا تاریخ
my $search = search_example; # String | متن جستجو
my $addressBookCode = addressBookCode_example; # String | فیلتر بر اساس کد مشتری
my $invoiceCode = invoiceCode_example; # String | فیلتر براساس کد فاکتور

eval { 
    my $result = $api_instance->getInvoiceListSchedule(offset => $offset, limit => $limit, status => $status, isArchived => $isArchived, searchByDueDate => $searchByDueDate, searchByCreateDate => $searchByCreateDate, searchDateFrom => $searchDateFrom, searchDateTo => $searchDateTo, search => $search, addressBookCode => $addressBookCode, invoiceCode => $invoiceCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScheduleApi->getInvoiceListSchedule: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ScheduleApi()
offset = 56 # Integer |  (optional)
limit = 56 # Integer |  (optional)
status = 56 # Integer | فیلتر وضعیت (optional)
isArchived = true # Boolean | فیلتر بایگانی (optional)
searchByDueDate = true # Boolean | فیلتر با تاریخ سررسید (optional)
searchByCreateDate = true # Boolean | فیلتر با تاریخ ثبت (optional)
searchDateFrom = 2013-10-20T19:20:30+01:00 # Date | شروع از تاریخ (optional)
searchDateTo = 2013-10-20T19:20:30+01:00 # Date | تا تاریخ (optional)
search = search_example # String | متن جستجو (optional)
addressBookCode = addressBookCode_example # String | فیلتر بر اساس کد مشتری (optional)
invoiceCode = invoiceCode_example # String | فیلتر براساس کد فاکتور (optional)

try: 
    # لیست فاکتور ها زمانبندی شده
    api_response = api_instance.get_invoice_list_schedule(offset=offset, limit=limit, status=status, isArchived=isArchived, searchByDueDate=searchByDueDate, searchByCreateDate=searchByCreateDate, searchDateFrom=searchDateFrom, searchDateTo=searchDateTo, search=search, addressBookCode=addressBookCode, invoiceCode=invoiceCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduleApi->getInvoiceListSchedule: %s\n" % e)

Parameters

Query parameters
Name Description
offset
Integer (int32)
limit
Integer (int32)
status
Integer (int32)
فیلتر وضعیت
isArchived
Boolean
فیلتر بایگانی
searchByDueDate
Boolean
فیلتر با تاریخ سررسید
searchByCreateDate
Boolean
فیلتر با تاریخ ثبت
searchDateFrom
Date (date-time)
شروع از تاریخ
searchDateTo
Date (date-time)
تا تاریخ
search
addressBookCode
String
فیلتر بر اساس کد مشتری
invoiceCode
String
فیلتر براساس کد فاکتور

Responses

Status: 200 - نمایش لیست فاکتور ها زمانبندی شده


getInvoiceListScheduleCount

تعداد فاکتور ها زمانبندی شده


/v1/Invoice/ListScheduleCount

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/ListScheduleCount?status=&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleApi;

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

public class ScheduleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ScheduleApi apiInstance = new ScheduleApi();
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            ListCountViewModel result = apiInstance.getInvoiceListScheduleCount(status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#getInvoiceListScheduleCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleApi;

public class ScheduleApiExample {

    public static void main(String[] args) {
        ScheduleApi apiInstance = new ScheduleApi();
        Integer status = 56; // Integer | فیلتر وضعیت
        Boolean isArchived = true; // Boolean | فیلتر بایگانی
        Boolean searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
        Boolean searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
        Date searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
        Date searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
        String search = search_example; // String | متن جستجو
        String addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
        String invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور
        try {
            ListCountViewModel result = apiInstance.getInvoiceListScheduleCount(status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#getInvoiceListScheduleCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *status = 56; // فیلتر وضعیت (optional)
Boolean *isArchived = true; // فیلتر بایگانی (optional)
Boolean *searchByDueDate = true; // فیلتر با تاریخ سررسید (optional)
Boolean *searchByCreateDate = true; // فیلتر با تاریخ ثبت (optional)
Date *searchDateFrom = 2013-10-20T19:20:30+01:00; // شروع از تاریخ (optional)
Date *searchDateTo = 2013-10-20T19:20:30+01:00; // تا تاریخ (optional)
String *search = search_example; // متن جستجو (optional)
String *addressBookCode = addressBookCode_example; // فیلتر بر اساس کد مشتری (optional)
String *invoiceCode = invoiceCode_example; // فیلتر براساس کد فاکتور (optional)

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

// تعداد فاکتور ها زمانبندی شده
[apiInstance getInvoiceListScheduleCountWith:status
    isArchived:isArchived
    searchByDueDate:searchByDueDate
    searchByCreateDate:searchByCreateDate
    searchDateFrom:searchDateFrom
    searchDateTo:searchDateTo
    search:search
    addressBookCode:addressBookCode
    invoiceCode:invoiceCode
              completionHandler: ^(ListCountViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ScheduleApi()
var opts = { 
  'status': 56, // {{Integer}} فیلتر وضعیت
  'isArchived': true, // {{Boolean}} فیلتر بایگانی
  'searchByDueDate': true, // {{Boolean}} فیلتر با تاریخ سررسید
  'searchByCreateDate': true, // {{Boolean}} فیلتر با تاریخ ثبت
  'searchDateFrom': 2013-10-20T19:20:30+01:00, // {{Date}} شروع از تاریخ
  'searchDateTo': 2013-10-20T19:20:30+01:00, // {{Date}} تا تاریخ
  'search': search_example, // {{String}} متن جستجو
  'addressBookCode': addressBookCode_example, // {{String}} فیلتر بر اساس کد مشتری
  'invoiceCode': invoiceCode_example // {{String}} فیلتر براساس کد فاکتور
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInvoiceListScheduleCount(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getInvoiceListScheduleCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ScheduleApi();
            var status = 56;  // Integer | فیلتر وضعیت (optional) 
            var isArchived = true;  // Boolean | فیلتر بایگانی (optional) 
            var searchByDueDate = true;  // Boolean | فیلتر با تاریخ سررسید (optional) 
            var searchByCreateDate = true;  // Boolean | فیلتر با تاریخ ثبت (optional) 
            var searchDateFrom = 2013-10-20T19:20:30+01:00;  // Date | شروع از تاریخ (optional) 
            var searchDateTo = 2013-10-20T19:20:30+01:00;  // Date | تا تاریخ (optional) 
            var search = search_example;  // String | متن جستجو (optional) 
            var addressBookCode = addressBookCode_example;  // String | فیلتر بر اساس کد مشتری (optional) 
            var invoiceCode = invoiceCode_example;  // String | فیلتر براساس کد فاکتور (optional) 

            try
            {
                // تعداد فاکتور ها زمانبندی شده
                ListCountViewModel result = apiInstance.getInvoiceListScheduleCount(status, isArchived, searchByDueDate, searchByCreateDate, searchDateFrom, searchDateTo, search, addressBookCode, invoiceCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleApi.getInvoiceListScheduleCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiScheduleApi();
$status = 56; // Integer | فیلتر وضعیت
$isArchived = true; // Boolean | فیلتر بایگانی
$searchByDueDate = true; // Boolean | فیلتر با تاریخ سررسید
$searchByCreateDate = true; // Boolean | فیلتر با تاریخ ثبت
$searchDateFrom = 2013-10-20T19:20:30+01:00; // Date | شروع از تاریخ
$searchDateTo = 2013-10-20T19:20:30+01:00; // Date | تا تاریخ
$search = search_example; // String | متن جستجو
$addressBookCode = addressBookCode_example; // String | فیلتر بر اساس کد مشتری
$invoiceCode = invoiceCode_example; // String | فیلتر براساس کد فاکتور

try {
    $result = $api_instance->getInvoiceListScheduleCount($status, $isArchived, $searchByDueDate, $searchByCreateDate, $searchDateFrom, $searchDateTo, $search, $addressBookCode, $invoiceCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScheduleApi->getInvoiceListScheduleCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScheduleApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ScheduleApi->new();
my $status = 56; # Integer | فیلتر وضعیت
my $isArchived = true; # Boolean | فیلتر بایگانی
my $searchByDueDate = true; # Boolean | فیلتر با تاریخ سررسید
my $searchByCreateDate = true; # Boolean | فیلتر با تاریخ ثبت
my $searchDateFrom = 2013-10-20T19:20:30+01:00; # Date | شروع از تاریخ
my $searchDateTo = 2013-10-20T19:20:30+01:00; # Date | تا تاریخ
my $search = search_example; # String | متن جستجو
my $addressBookCode = addressBookCode_example; # String | فیلتر بر اساس کد مشتری
my $invoiceCode = invoiceCode_example; # String | فیلتر براساس کد فاکتور

eval { 
    my $result = $api_instance->getInvoiceListScheduleCount(status => $status, isArchived => $isArchived, searchByDueDate => $searchByDueDate, searchByCreateDate => $searchByCreateDate, searchDateFrom => $searchDateFrom, searchDateTo => $searchDateTo, search => $search, addressBookCode => $addressBookCode, invoiceCode => $invoiceCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScheduleApi->getInvoiceListScheduleCount: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ScheduleApi()
status = 56 # Integer | فیلتر وضعیت (optional)
isArchived = true # Boolean | فیلتر بایگانی (optional)
searchByDueDate = true # Boolean | فیلتر با تاریخ سررسید (optional)
searchByCreateDate = true # Boolean | فیلتر با تاریخ ثبت (optional)
searchDateFrom = 2013-10-20T19:20:30+01:00 # Date | شروع از تاریخ (optional)
searchDateTo = 2013-10-20T19:20:30+01:00 # Date | تا تاریخ (optional)
search = search_example # String | متن جستجو (optional)
addressBookCode = addressBookCode_example # String | فیلتر بر اساس کد مشتری (optional)
invoiceCode = invoiceCode_example # String | فیلتر براساس کد فاکتور (optional)

try: 
    # تعداد فاکتور ها زمانبندی شده
    api_response = api_instance.get_invoice_list_schedule_count(status=status, isArchived=isArchived, searchByDueDate=searchByDueDate, searchByCreateDate=searchByCreateDate, searchDateFrom=searchDateFrom, searchDateTo=searchDateTo, search=search, addressBookCode=addressBookCode, invoiceCode=invoiceCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduleApi->getInvoiceListScheduleCount: %s\n" % e)

Parameters

Query parameters
Name Description
status
Integer (int32)
فیلتر وضعیت
isArchived
Boolean
فیلتر بایگانی
searchByDueDate
Boolean
فیلتر با تاریخ سررسید
searchByCreateDate
Boolean
فیلتر با تاریخ ثبت
searchDateFrom
Date (date-time)
شروع از تاریخ
searchDateTo
Date (date-time)
تا تاریخ
search
addressBookCode
String
فیلتر بر اساس کد مشتری
invoiceCode
String
فیلتر براساس کد فاکتور

Responses

Status: 200 - نمایش تعداد فاکتور ها زمانبندی شده


getInvoiceSchedule

دریافت فاکتور زمانبندی شده


/v1/Invoice/Schedule/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Schedule/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleApi;

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

public class ScheduleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ScheduleApi apiInstance = new ScheduleApi();
        String code = code_example; // String | 
        try {
            ScheduleInvoiceWithChilds result = apiInstance.getInvoiceSchedule(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#getInvoiceSchedule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleApi;

public class ScheduleApiExample {

    public static void main(String[] args) {
        ScheduleApi apiInstance = new ScheduleApi();
        String code = code_example; // String | 
        try {
            ScheduleInvoiceWithChilds result = apiInstance.getInvoiceSchedule(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#getInvoiceSchedule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // 

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

// دریافت فاکتور زمانبندی شده
[apiInstance getInvoiceScheduleWith:code
              completionHandler: ^(ScheduleInvoiceWithChilds output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ScheduleApi()
var code = code_example; // {{String}} 

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

namespace Example
{
    public class getInvoiceScheduleExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ScheduleApi();
            var code = code_example;  // String | 

            try
            {
                // دریافت فاکتور زمانبندی شده
                ScheduleInvoiceWithChilds result = apiInstance.getInvoiceSchedule(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleApi.getInvoiceSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiScheduleApi();
$code = code_example; // String | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ScheduleApi->new();
my $code = code_example; # String | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ScheduleApi()
code = code_example # String | 

try: 
    # دریافت فاکتور زمانبندی شده
    api_response = api_instance.get_invoice_schedule(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduleApi->getInvoiceSchedule: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Required

Responses

Status: 200 - فاکتور زمانبندی شده


invoiceSubschedulers

دریافت اطلاعات زمانبندی شده فاکتور


/v1/Invoice/Subschedulers/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/Subschedulers/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleApi;

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

public class ScheduleApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        ScheduleApi apiInstance = new ScheduleApi();
        String code = code_example; // String | 
        try {
            array[InvoiceSubSchulderDetailViewModel] result = apiInstance.invoiceSubschedulers(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#invoiceSubschedulers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleApi;

public class ScheduleApiExample {

    public static void main(String[] args) {
        ScheduleApi apiInstance = new ScheduleApi();
        String code = code_example; // String | 
        try {
            array[InvoiceSubSchulderDetailViewModel] result = apiInstance.invoiceSubschedulers(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#invoiceSubschedulers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // 

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

// دریافت اطلاعات زمانبندی شده فاکتور
[apiInstance invoiceSubschedulersWith:code
              completionHandler: ^(array[InvoiceSubSchulderDetailViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.ScheduleApi()
var code = code_example; // {{String}} 

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

namespace Example
{
    public class invoiceSubschedulersExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ScheduleApi();
            var code = code_example;  // String | 

            try
            {
                // دریافت اطلاعات زمانبندی شده فاکتور
                array[InvoiceSubSchulderDetailViewModel] result = apiInstance.invoiceSubschedulers(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleApi.invoiceSubschedulers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiScheduleApi();
$code = code_example; // String | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ScheduleApi->new();
my $code = code_example; # String | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ScheduleApi()
code = code_example # String | 

try: 
    # دریافت اطلاعات زمانبندی شده فاکتور
    api_response = api_instance.invoice_subschedulers(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduleApi->invoiceSubschedulers: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Required

Responses

Status: 200 - اطلاعات زمانبندی شده فاکتور


Template

createTemplate

ساخت قالب جدید


/v1/Template

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Template"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        InvoiceTemplateCreateViewModel body = ; // InvoiceTemplateCreateViewModel | مشخصات قالب
        try {
            InvoiceTemplateDetailViewModel result = apiInstance.createTemplate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#createTemplate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        InvoiceTemplateCreateViewModel body = ; // InvoiceTemplateCreateViewModel | مشخصات قالب
        try {
            InvoiceTemplateDetailViewModel result = apiInstance.createTemplate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#createTemplate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
InvoiceTemplateCreateViewModel *body = ; // مشخصات قالب (optional)

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

// ساخت قالب جدید
[apiInstance createTemplateWith:body
              completionHandler: ^(InvoiceTemplateDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()

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

namespace Example
{
    public class createTemplateExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var body = new InvoiceTemplateCreateViewModel(); // InvoiceTemplateCreateViewModel | مشخصات قالب (optional) 

            try
            {
                // ساخت قالب جدید
                InvoiceTemplateDetailViewModel result = apiInstance.createTemplate(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.createTemplate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$body = ; // InvoiceTemplateCreateViewModel | مشخصات قالب

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $body = WWW::SwaggerClient::Object::InvoiceTemplateCreateViewModel->new(); # InvoiceTemplateCreateViewModel | مشخصات قالب

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
body =  # InvoiceTemplateCreateViewModel | مشخصات قالب (optional)

try: 
    # ساخت قالب جدید
    api_response = api_instance.create_template(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->createTemplate: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - نمایش قالب


deleteTemplate

حذف قالب


/v1/Template/{code}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Template/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        String code = code_example; // String | کلید یکتای قالب
        try {
            'String' result = apiInstance.deleteTemplate(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#deleteTemplate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        String code = code_example; // String | کلید یکتای قالب
        try {
            'String' result = apiInstance.deleteTemplate(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#deleteTemplate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای قالب

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

// حذف قالب
[apiInstance deleteTemplateWith:code
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()
var code = code_example; // {{String}} کلید یکتای قالب

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

namespace Example
{
    public class deleteTemplateExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var code = code_example;  // String | کلید یکتای قالب

            try
            {
                // حذف قالب
                'String' result = apiInstance.deleteTemplate(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.deleteTemplate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$code = code_example; // String | کلید یکتای قالب

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $code = code_example; # String | کلید یکتای قالب

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
code = code_example # String | کلید یکتای قالب

try: 
    # حذف قالب
    api_response = api_instance.delete_template(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->deleteTemplate: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای قالب
Required

Responses

Status: 200 - نمایش کلید یکتای قالب


editTemplate

بروزرسانی قالب


/v1/Template/{code}

Usage and SDK Samples

curl -X PUT -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Template/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        String code = code_example; // String | کلید یکتای قالب
        InvoiceTemplateEditViewModel body = ; // InvoiceTemplateEditViewModel | قالب بروز شده
        try {
            InvoiceTemplateDetailViewModel result = apiInstance.editTemplate(code, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#editTemplate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        String code = code_example; // String | کلید یکتای قالب
        InvoiceTemplateEditViewModel body = ; // InvoiceTemplateEditViewModel | قالب بروز شده
        try {
            InvoiceTemplateDetailViewModel result = apiInstance.editTemplate(code, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#editTemplate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای قالب
InvoiceTemplateEditViewModel *body = ; // قالب بروز شده (optional)

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

// بروزرسانی قالب
[apiInstance editTemplateWith:code
    body:body
              completionHandler: ^(InvoiceTemplateDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()
var code = code_example; // {{String}} کلید یکتای قالب

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

namespace Example
{
    public class editTemplateExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var code = code_example;  // String | کلید یکتای قالب
            var body = new InvoiceTemplateEditViewModel(); // InvoiceTemplateEditViewModel | قالب بروز شده (optional) 

            try
            {
                // بروزرسانی قالب
                InvoiceTemplateDetailViewModel result = apiInstance.editTemplate(code, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.editTemplate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$code = code_example; // String | کلید یکتای قالب
$body = ; // InvoiceTemplateEditViewModel | قالب بروز شده

try {
    $result = $api_instance->editTemplate($code, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TemplateApi->editTemplate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TemplateApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $code = code_example; # String | کلید یکتای قالب
my $body = WWW::SwaggerClient::Object::InvoiceTemplateEditViewModel->new(); # InvoiceTemplateEditViewModel | قالب بروز شده

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
code = code_example # String | کلید یکتای قالب
body =  # InvoiceTemplateEditViewModel | قالب بروز شده (optional)

try: 
    # بروزرسانی قالب
    api_response = api_instance.edit_template(code, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->editTemplate: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای قالب
Required
Body parameters
Name Description
body

Responses

Status: 200 - نمایش قالب


getTemplateDetails

دریافت جزئیات قالب


/v1/Template/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Template/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        String code = code_example; // String | کلید یکتای قالب
        try {
            InvoiceTemplateDetailViewModel result = apiInstance.getTemplateDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#getTemplateDetails");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        String code = code_example; // String | کلید یکتای قالب
        try {
            InvoiceTemplateDetailViewModel result = apiInstance.getTemplateDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#getTemplateDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کلید یکتای قالب

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

// دریافت جزئیات قالب
[apiInstance getTemplateDetailsWith:code
              completionHandler: ^(InvoiceTemplateDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()
var code = code_example; // {{String}} کلید یکتای قالب

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

namespace Example
{
    public class getTemplateDetailsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var code = code_example;  // String | کلید یکتای قالب

            try
            {
                // دریافت جزئیات قالب
                InvoiceTemplateDetailViewModel result = apiInstance.getTemplateDetails(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.getTemplateDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$code = code_example; // String | کلید یکتای قالب

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $code = code_example; # String | کلید یکتای قالب

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
code = code_example # String | کلید یکتای قالب

try: 
    # دریافت جزئیات قالب
    api_response = api_instance.get_template_details(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->getTemplateDetails: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کلید یکتای قالب
Required

Responses

Status: 200 - نمایش قالب


getTemplateList

لیست قالب ها


/v1/Template/List

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Template/List?offset=&limit=&search=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        Integer offset = 56; // Integer | شروع صفحه از شماره 1
        Integer limit = 56; // Integer | تعداد سطر بازگشت داده ها مثال : 10
        String search = search_example; // String | متن مورد نظر جهت جستجو
        String code = code_example; // String | کد قالب
        try {
            array[InvoiceTemplateListItemViewModel] result = apiInstance.getTemplateList(offset, limit, search, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#getTemplateList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        Integer offset = 56; // Integer | شروع صفحه از شماره 1
        Integer limit = 56; // Integer | تعداد سطر بازگشت داده ها مثال : 10
        String search = search_example; // String | متن مورد نظر جهت جستجو
        String code = code_example; // String | کد قالب
        try {
            array[InvoiceTemplateListItemViewModel] result = apiInstance.getTemplateList(offset, limit, search, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#getTemplateList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *offset = 56; // شروع صفحه از شماره 1 (optional)
Integer *limit = 56; // تعداد سطر بازگشت داده ها مثال : 10 (optional)
String *search = search_example; // متن مورد نظر جهت جستجو (optional)
String *code = code_example; // کد قالب (optional)

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

// لیست قالب ها
[apiInstance getTemplateListWith:offset
    limit:limit
    search:search
    code:code
              completionHandler: ^(array[InvoiceTemplateListItemViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()
var opts = { 
  'offset': 56, // {{Integer}} شروع صفحه از شماره 1
  'limit': 56, // {{Integer}} تعداد سطر بازگشت داده ها مثال : 10
  'search': search_example, // {{String}} متن مورد نظر جهت جستجو
  'code': code_example // {{String}} کد قالب
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTemplateList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTemplateListExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var offset = 56;  // Integer | شروع صفحه از شماره 1 (optional) 
            var limit = 56;  // Integer | تعداد سطر بازگشت داده ها مثال : 10 (optional) 
            var search = search_example;  // String | متن مورد نظر جهت جستجو (optional) 
            var code = code_example;  // String | کد قالب (optional) 

            try
            {
                // لیست قالب ها
                array[InvoiceTemplateListItemViewModel] result = apiInstance.getTemplateList(offset, limit, search, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.getTemplateList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$offset = 56; // Integer | شروع صفحه از شماره 1
$limit = 56; // Integer | تعداد سطر بازگشت داده ها مثال : 10
$search = search_example; // String | متن مورد نظر جهت جستجو
$code = code_example; // String | کد قالب

try {
    $result = $api_instance->getTemplateList($offset, $limit, $search, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TemplateApi->getTemplateList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TemplateApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $offset = 56; # Integer | شروع صفحه از شماره 1
my $limit = 56; # Integer | تعداد سطر بازگشت داده ها مثال : 10
my $search = search_example; # String | متن مورد نظر جهت جستجو
my $code = code_example; # String | کد قالب

eval { 
    my $result = $api_instance->getTemplateList(offset => $offset, limit => $limit, search => $search, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TemplateApi->getTemplateList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
offset = 56 # Integer | شروع صفحه از شماره 1 (optional)
limit = 56 # Integer | تعداد سطر بازگشت داده ها مثال : 10 (optional)
search = search_example # String | متن مورد نظر جهت جستجو (optional)
code = code_example # String | کد قالب (optional)

try: 
    # لیست قالب ها
    api_response = api_instance.get_template_list(offset=offset, limit=limit, search=search, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->getTemplateList: %s\n" % e)

Parameters

Query parameters
Name Description
offset
Integer (int32)
شروع صفحه از شماره 1
limit
Integer (int32)
تعداد سطر بازگشت داده ها مثال : 10
search
code
String
کد قالب

Responses

Status: 200 - نمایش قالب ها


getTemplateListCount

تعداد قالب ها


/v1/Template/ListCount

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Template/ListCount?search=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        String search = search_example; // String | متن مورد نظر جهت جستجو
        String code = code_example; // String | کد قالب
        try {
            ListCountViewModel result = apiInstance.getTemplateListCount(search, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#getTemplateListCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        String search = search_example; // String | متن مورد نظر جهت جستجو
        String code = code_example; // String | کد قالب
        try {
            ListCountViewModel result = apiInstance.getTemplateListCount(search, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#getTemplateListCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *search = search_example; // متن مورد نظر جهت جستجو (optional)
String *code = code_example; // کد قالب (optional)

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

// تعداد قالب ها
[apiInstance getTemplateListCountWith:search
    code:code
              completionHandler: ^(ListCountViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()
var opts = { 
  'search': search_example, // {{String}} متن مورد نظر جهت جستجو
  'code': code_example // {{String}} کد قالب
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTemplateListCount(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTemplateListCountExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var search = search_example;  // String | متن مورد نظر جهت جستجو (optional) 
            var code = code_example;  // String | کد قالب (optional) 

            try
            {
                // تعداد قالب ها
                ListCountViewModel result = apiInstance.getTemplateListCount(search, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.getTemplateListCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$search = search_example; // String | متن مورد نظر جهت جستجو
$code = code_example; // String | کد قالب

try {
    $result = $api_instance->getTemplateListCount($search, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TemplateApi->getTemplateListCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TemplateApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $search = search_example; # String | متن مورد نظر جهت جستجو
my $code = code_example; # String | کد قالب

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
search = search_example # String | متن مورد نظر جهت جستجو (optional)
code = code_example # String | کد قالب (optional)

try: 
    # تعداد قالب ها
    api_response = api_instance.get_template_list_count(search=search, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->getTemplateListCount: %s\n" % e)

Parameters

Query parameters
Name Description
search
code
String
کد قالب

Responses

Status: 200 - نمایش تعداد قالب ها


invoiceSendByTemplateAdvance

ارسال فاکتور جدید با استفاده از قالب - پیشرفته


/v1/Invoice/SendByTemplateAdvance

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/SendByTemplateAdvance"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        InvoiceSendByTemplate body = ; // InvoiceSendByTemplate | مشخصات فاکتور
        try {
            array[InvoiceDetailViewModel] result = apiInstance.invoiceSendByTemplateAdvance(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#invoiceSendByTemplateAdvance");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        InvoiceSendByTemplate body = ; // InvoiceSendByTemplate | مشخصات فاکتور
        try {
            array[InvoiceDetailViewModel] result = apiInstance.invoiceSendByTemplateAdvance(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#invoiceSendByTemplateAdvance");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
InvoiceSendByTemplate *body = ; // مشخصات فاکتور (optional)

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

// ارسال فاکتور جدید با استفاده از قالب - پیشرفته
[apiInstance invoiceSendByTemplateAdvanceWith:body
              completionHandler: ^(array[InvoiceDetailViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()

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

namespace Example
{
    public class invoiceSendByTemplateAdvanceExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var body = new InvoiceSendByTemplate(); // InvoiceSendByTemplate | مشخصات فاکتور (optional) 

            try
            {
                // ارسال فاکتور جدید با استفاده از قالب - پیشرفته
                array[InvoiceDetailViewModel] result = apiInstance.invoiceSendByTemplateAdvance(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.invoiceSendByTemplateAdvance: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$body = ; // InvoiceSendByTemplate | مشخصات فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $body = WWW::SwaggerClient::Object::InvoiceSendByTemplate->new(); # InvoiceSendByTemplate | مشخصات فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
body =  # InvoiceSendByTemplate | مشخصات فاکتور (optional)

try: 
    # ارسال فاکتور جدید با استفاده از قالب - پیشرفته
    api_response = api_instance.invoice_send_by_template_advance(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->invoiceSendByTemplateAdvance: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - نمایش فاکتور


invoiceSendByTemplateSimple

ارسال فاکتور جدید با استفاده از قالب - سریع


/v1/Invoice/SendByTemplateSimple

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Invoice/SendByTemplateSimple"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplateApi;

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

public class TemplateApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        TemplateApi apiInstance = new TemplateApi();
        InvoiceSendByTemplateSimple body = ; // InvoiceSendByTemplateSimple | مشخصات فاکتور
        try {
            InvoiceDetailViewModel result = apiInstance.invoiceSendByTemplateSimple(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#invoiceSendByTemplateSimple");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplateApi;

public class TemplateApiExample {

    public static void main(String[] args) {
        TemplateApi apiInstance = new TemplateApi();
        InvoiceSendByTemplateSimple body = ; // InvoiceSendByTemplateSimple | مشخصات فاکتور
        try {
            InvoiceDetailViewModel result = apiInstance.invoiceSendByTemplateSimple(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplateApi#invoiceSendByTemplateSimple");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
InvoiceSendByTemplateSimple *body = ; // مشخصات فاکتور (optional)

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

// ارسال فاکتور جدید با استفاده از قالب - سریع
[apiInstance invoiceSendByTemplateSimpleWith:body
              completionHandler: ^(InvoiceDetailViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.TemplateApi()

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

namespace Example
{
    public class invoiceSendByTemplateSimpleExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TemplateApi();
            var body = new InvoiceSendByTemplateSimple(); // InvoiceSendByTemplateSimple | مشخصات فاکتور (optional) 

            try
            {
                // ارسال فاکتور جدید با استفاده از قالب - سریع
                InvoiceDetailViewModel result = apiInstance.invoiceSendByTemplateSimple(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplateApi.invoiceSendByTemplateSimple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiTemplateApi();
$body = ; // InvoiceSendByTemplateSimple | مشخصات فاکتور

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TemplateApi->new();
my $body = WWW::SwaggerClient::Object::InvoiceSendByTemplateSimple->new(); # InvoiceSendByTemplateSimple | مشخصات فاکتور

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TemplateApi()
body =  # InvoiceSendByTemplateSimple | مشخصات فاکتور (optional)

try: 
    # ارسال فاکتور جدید با استفاده از قالب - سریع
    api_response = api_instance.invoice_send_by_template_simple(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplateApi->invoiceSendByTemplateSimple: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - نمایش فاکتور


Upload

uploadInvoiceAttachment

آپلود فایل‌ ضمیمه یک فاکتور

محدودیت‌های فایل‌های ورودی: محدودیت ندارد.


/v1/Upload/InvoiceAttachment

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Upload/InvoiceAttachment"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UploadApi;

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

public class UploadApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        UploadApi apiInstance = new UploadApi();
        byte[] file = file_example; // byte[] | 
        try {
            apiInstance.uploadInvoiceAttachment(file);
        } catch (ApiException e) {
            System.err.println("Exception when calling UploadApi#uploadInvoiceAttachment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UploadApi;

public class UploadApiExample {

    public static void main(String[] args) {
        UploadApi apiInstance = new UploadApi();
        byte[] file = file_example; // byte[] | 
        try {
            apiInstance.uploadInvoiceAttachment(file);
        } catch (ApiException e) {
            System.err.println("Exception when calling UploadApi#uploadInvoiceAttachment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)

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

// آپلود فایل‌ ضمیمه یک فاکتور
[apiInstance uploadInvoiceAttachmentWith:file
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.UploadApi()

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

namespace Example
{
    public class uploadInvoiceAttachmentExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new UploadApi();
            var file = file_example;  // byte[] |  (optional) 

            try
            {
                // آپلود فایل‌ ضمیمه یک فاکتور
                apiInstance.uploadInvoiceAttachment(file);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UploadApi.uploadInvoiceAttachment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiUploadApi();
$file = file_example; // byte[] | 

try {
    $api_instance->uploadInvoiceAttachment($file);
} catch (Exception $e) {
    echo 'Exception when calling UploadApi->uploadInvoiceAttachment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UploadApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::UploadApi->new();
my $file = file_example; # byte[] | 

eval { 
    $api_instance->uploadInvoiceAttachment(file => $file);
};
if ($@) {
    warn "Exception when calling UploadApi->uploadInvoiceAttachment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.UploadApi()
file = file_example # byte[] |  (optional)

try: 
    # آپلود فایل‌ ضمیمه یک فاکتور
    api_instance.upload_invoice_attachment(file=file)
except ApiException as e:
    print("Exception when calling UploadApi->uploadInvoiceAttachment: %s\n" % e)

Parameters

Form parameters
Name Description
file
byte[] (binary)

Responses

Status: 200 - فایل ضمیمه فاکتور با موفقیت آپلود شد


uploadItem

آپلود عکس یک آیتم‌مالی

محدودیت‌های فایل‌های ورودی: JPG, PNG, JPEG


/v1/Upload/Item

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Upload/Item"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UploadApi;

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

public class UploadApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        UploadApi apiInstance = new UploadApi();
        byte[] file = file_example; // byte[] | 
        try {
            apiInstance.uploadItem(file);
        } catch (ApiException e) {
            System.err.println("Exception when calling UploadApi#uploadItem");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UploadApi;

public class UploadApiExample {

    public static void main(String[] args) {
        UploadApi apiInstance = new UploadApi();
        byte[] file = file_example; // byte[] | 
        try {
            apiInstance.uploadItem(file);
        } catch (ApiException e) {
            System.err.println("Exception when calling UploadApi#uploadItem");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)

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

// آپلود عکس یک آیتم‌مالی
[apiInstance uploadItemWith:file
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.UploadApi()

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

namespace Example
{
    public class uploadItemExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new UploadApi();
            var file = file_example;  // byte[] |  (optional) 

            try
            {
                // آپلود عکس یک آیتم‌مالی
                apiInstance.uploadItem(file);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UploadApi.uploadItem: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiUploadApi();
$file = file_example; // byte[] | 

try {
    $api_instance->uploadItem($file);
} catch (Exception $e) {
    echo 'Exception when calling UploadApi->uploadItem: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UploadApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::UploadApi->new();
my $file = file_example; # byte[] | 

eval { 
    $api_instance->uploadItem(file => $file);
};
if ($@) {
    warn "Exception when calling UploadApi->uploadItem: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.UploadApi()
file = file_example # byte[] |  (optional)

try: 
    # آپلود عکس یک آیتم‌مالی
    api_instance.upload_item(file=file)
except ApiException as e:
    print("Exception when calling UploadApi->uploadItem: %s\n" % e)

Parameters

Form parameters
Name Description
file
byte[] (binary)

Responses

Status: 200 - عکس آیتم‌مالی با موفقیت آپلود شد


uploadProfilePic

آپلود عکس پروفایل کاربری

محدودیت‌های فایل‌های ورودی: JPG, PNG, JPEG


/v1/Upload/ProfilePic

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/Upload/ProfilePic"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UploadApi;

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

public class UploadApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        UploadApi apiInstance = new UploadApi();
        byte[] file = file_example; // byte[] | 
        try {
            apiInstance.uploadProfilePic(file);
        } catch (ApiException e) {
            System.err.println("Exception when calling UploadApi#uploadProfilePic");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UploadApi;

public class UploadApiExample {

    public static void main(String[] args) {
        UploadApi apiInstance = new UploadApi();
        byte[] file = file_example; // byte[] | 
        try {
            apiInstance.uploadProfilePic(file);
        } catch (ApiException e) {
            System.err.println("Exception when calling UploadApi#uploadProfilePic");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //  (optional)

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

// آپلود عکس پروفایل کاربری
[apiInstance uploadProfilePicWith:file
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.UploadApi()

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

namespace Example
{
    public class uploadProfilePicExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new UploadApi();
            var file = file_example;  // byte[] |  (optional) 

            try
            {
                // آپلود عکس پروفایل کاربری
                apiInstance.uploadProfilePic(file);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UploadApi.uploadProfilePic: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiUploadApi();
$file = file_example; // byte[] | 

try {
    $api_instance->uploadProfilePic($file);
} catch (Exception $e) {
    echo 'Exception when calling UploadApi->uploadProfilePic: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UploadApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::UploadApi->new();
my $file = file_example; # byte[] | 

eval { 
    $api_instance->uploadProfilePic(file => $file);
};
if ($@) {
    warn "Exception when calling UploadApi->uploadProfilePic: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.UploadApi()
file = file_example # byte[] |  (optional)

try: 
    # آپلود عکس پروفایل کاربری
    api_instance.upload_profile_pic(file=file)
except ApiException as e:
    print("Exception when calling UploadApi->uploadProfilePic: %s\n" % e)

Parameters

Form parameters
Name Description
file
byte[] (binary)

Responses

Status: 200 - عکس کاربر با موفقیت آپلود شد


Withdraw

createWithdraw

درخواست تسویه حساب

به کمک این متد می توانید یک درخواست تسویه با مبلغ دلخواه ایجاد نمایید


/v1/withdraw/{amount}

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/withdraw/{amount}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WithdrawApi;

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

public class WithdrawApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        WithdrawApi apiInstance = new WithdrawApi();
        Integer amount = 56; // Integer | مبلغ تسویه حساب
        try {
            WithdrawResult result = apiInstance.createWithdraw(amount);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WithdrawApi#createWithdraw");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WithdrawApi;

public class WithdrawApiExample {

    public static void main(String[] args) {
        WithdrawApi apiInstance = new WithdrawApi();
        Integer amount = 56; // Integer | مبلغ تسویه حساب
        try {
            WithdrawResult result = apiInstance.createWithdraw(amount);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WithdrawApi#createWithdraw");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Integer *amount = 56; // مبلغ تسویه حساب

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

// درخواست تسویه حساب
[apiInstance createWithdrawWith:amount
              completionHandler: ^(WithdrawResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.WithdrawApi()
var amount = 56; // {{Integer}} مبلغ تسویه حساب

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

namespace Example
{
    public class createWithdrawExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WithdrawApi();
            var amount = 56;  // Integer | مبلغ تسویه حساب

            try
            {
                // درخواست تسویه حساب
                WithdrawResult result = apiInstance.createWithdraw(amount);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WithdrawApi.createWithdraw: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiWithdrawApi();
$amount = 56; // Integer | مبلغ تسویه حساب

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WithdrawApi->new();
my $amount = 56; # Integer | مبلغ تسویه حساب

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WithdrawApi()
amount = 56 # Integer | مبلغ تسویه حساب

try: 
    # درخواست تسویه حساب
    api_response = api_instance.create_withdraw(amount)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WithdrawApi->createWithdraw: %s\n" % e)

Parameters

Path parameters
Name Description
amount*
Integer (int32)
مبلغ تسویه حساب
Required

Responses

Status: 200 - تسویه حساب جدید با موفقیت ساخته شد


getWithdrawDetails

نمایش جزئیات درخواست تسویه

از این متد برای نمایش لیست تسویه ها


/v1/withdraw/{code}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/payping-api/v1/withdraw/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WithdrawApi;

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

public class WithdrawApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Configure OAuth2 access token for authorization: oauth2
        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
        oauth2.setAccessToken("YOUR ACCESS TOKEN");

        WithdrawApi apiInstance = new WithdrawApi();
        String code = code_example; // String | کد درخواست تسویه
        try {
            WithdrawDetailsViewModel result = apiInstance.getWithdrawDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WithdrawApi#getWithdrawDetails");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WithdrawApi;

public class WithdrawApiExample {

    public static void main(String[] args) {
        WithdrawApi apiInstance = new WithdrawApi();
        String code = code_example; // String | کد درخواست تسویه
        try {
            WithdrawDetailsViewModel result = apiInstance.getWithdrawDetails(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WithdrawApi#getWithdrawDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *code = code_example; // کد درخواست تسویه

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

// نمایش جزئیات درخواست تسویه
[apiInstance getWithdrawDetailsWith:code
              completionHandler: ^(WithdrawDetailsViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var _ = require('____');
var defaultClient = _.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

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

var api = new _.WithdrawApi()
var code = code_example; // {{String}} کد درخواست تسویه

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

namespace Example
{
    public class getWithdrawDetailsExample
    {
        public void main()
        {

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WithdrawApi();
            var code = code_example;  // String | کد درخواست تسویه

            try
            {
                // نمایش جزئیات درخواست تسویه
                WithdrawDetailsViewModel result = apiInstance.getWithdrawDetails(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WithdrawApi.getWithdrawDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiWithdrawApi();
$code = code_example; // String | کد درخواست تسویه

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
# Configure OAuth2 access token for authorization: oauth2
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WithdrawApi->new();
my $code = code_example; # String | کد درخواست تسویه

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WithdrawApi()
code = code_example # String | کد درخواست تسویه

try: 
    # نمایش جزئیات درخواست تسویه
    api_response = api_instance.get_withdraw_details(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WithdrawApi->getWithdrawDetails: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
کد درخواست تسویه
Required

Responses

Status: 200 - جزئیات تسویه با موفقیت نمایش داده شد