getPurchaseDetailsUsingGET
getPurchaseDetails
/developers/bank/api/v1/purchase
Usage and SDK Samples
curl -X GET "https://api.apieco.irpackpay/developers/bank/api/v1/purchase?payer_id=&reference_code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BankEndpointApi;
import java.io.File;
import java.util.*;
public class BankEndpointApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2schema
OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
oauth2schema.setAccessToken("YOUR ACCESS TOKEN");
BankEndpointApi apiInstance = new BankEndpointApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String payerId = payerId_example; // String | payer id is optional field, that you can use that if you send the username in purchase request
String referenceCode = referenceCode_example; // String | reference_code created in purchase request and returned to you in call back or return to site link
try {
ReportResponseDTO result = apiInstance.getPurchaseDetailsUsingGET(apiecoKey, payerId, referenceCode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BankEndpointApi#getPurchaseDetailsUsingGET");
e.printStackTrace();
}
}
}
import io.swagger.client.api.BankEndpointApi;
public class BankEndpointApiExample {
public static void main(String[] args) {
BankEndpointApi apiInstance = new BankEndpointApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String payerId = payerId_example; // String | payer id is optional field, that you can use that if you send the username in purchase request
String referenceCode = referenceCode_example; // String | reference_code created in purchase request and returned to you in call back or return to site link
try {
ReportResponseDTO result = apiInstance.getPurchaseDetailsUsingGET(apiecoKey, payerId, referenceCode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BankEndpointApi#getPurchaseDetailsUsingGET");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
String *payerId = payerId_example; // payer id is optional field, that you can use that if you send the username in purchase request (optional) (default to 989121110000)
String *referenceCode = referenceCode_example; // reference_code created in purchase request and returned to you in call back or return to site link (optional)
BankEndpointApi *apiInstance = [[BankEndpointApi alloc] init];
// getPurchaseDetails
[apiInstance getPurchaseDetailsUsingGETWith:apiecoKey
payerId:payerId
referenceCode:referenceCode
completionHandler: ^(ReportResponseDTO output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PackPayRestApIs = require('pack_pay_rest_ap_is');
var defaultClient = PackPayRestApIs.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"
var api = new PackPayRestApIs.BankEndpointApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var opts = {
'payerId': payerId_example, // {String} payer id is optional field, that you can use that if you send the username in purchase request
'referenceCode': referenceCode_example // {String} reference_code created in purchase request and returned to you in call back or return to site link
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getPurchaseDetailsUsingGET(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getPurchaseDetailsUsingGETExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2schema
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BankEndpointApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var payerId = payerId_example; // String | payer id is optional field, that you can use that if you send the username in purchase request (optional) (default to 989121110000)
var referenceCode = referenceCode_example; // String | reference_code created in purchase request and returned to you in call back or return to site link (optional)
try
{
// getPurchaseDetails
ReportResponseDTO result = apiInstance.getPurchaseDetailsUsingGET(apiecoKey, payerId, referenceCode);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BankEndpointApi.getPurchaseDetailsUsingGET: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\Api\BankEndpointApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$payerId = payerId_example; // String | payer id is optional field, that you can use that if you send the username in purchase request
$referenceCode = referenceCode_example; // String | reference_code created in purchase request and returned to you in call back or return to site link
try {
$result = $api_instance->getPurchaseDetailsUsingGET($apiecoKey, $payerId, $referenceCode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BankEndpointApi->getPurchaseDetailsUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BankEndpointApi;
# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::BankEndpointApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $payerId = payerId_example; # String | payer id is optional field, that you can use that if you send the username in purchase request
my $referenceCode = referenceCode_example; # String | reference_code created in purchase request and returned to you in call back or return to site link
eval {
my $result = $api_instance->getPurchaseDetailsUsingGET(apiecoKey => $apiecoKey, payerId => $payerId, referenceCode => $referenceCode);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BankEndpointApi->getPurchaseDetailsUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.BankEndpointApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
payerId = payerId_example # String | payer id is optional field, that you can use that if you send the username in purchase request (optional) (default to 989121110000)
referenceCode = referenceCode_example # String | reference_code created in purchase request and returned to you in call back or return to site link (optional)
try:
# getPurchaseDetails
api_response = api_instance.get_purchase_details_using_get(apiecoKey, payerId=payerId, referenceCode=referenceCode)
pprint(api_response)
except ApiException as e:
print("Exception when calling BankEndpointApi->getPurchaseDetailsUsingGET: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Name | Description |
---|---|
payer_id |
String
payer id is optional field, that you can use that if you send the username in purchase request
|
reference_code |
String
reference_code created in purchase request and returned to you in call back or return to site link
|