TRYB Loyalty API v2.0.0

Cards

deleteApiDeleteCard

Delete card


/api/v2/cards/{id}

Usage and SDK Samples

curl -X DELETE\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.deleteApiDeleteCard(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#deleteApiDeleteCard");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.deleteApiDeleteCard(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#deleteApiDeleteCard");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Delete card
[apiInstance deleteApiDeleteCardWith:id
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 

            try
            {
                // Delete card
                inline_response_200_2 result = apiInstance.deleteApiDeleteCard(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.deleteApiDeleteCard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->deleteApiDeleteCard(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->deleteApiDeleteCard: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 

try: 
    # Delete card
    api_response = api_instance.delete_api_delete_card(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->deleteApiDeleteCard: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetCard

Get card

Get card information by id (serial number)


/api/v2/cards/{id}

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        try {
            inline_response_200 result = apiInstance.getApiGetCard(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getApiGetCard");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        try {
            inline_response_200 result = apiInstance.getApiGetCard(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getApiGetCard");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Get card
[apiInstance getApiGetCardWith:id
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 

            try
            {
                // Get card
                inline_response_200 result = apiInstance.getApiGetCard(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.getApiGetCard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getApiGetCard(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->getApiGetCard: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 

try: 
    # Get card
    api_response = api_instance.get_api_get_card(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->getApiGetCard: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetCardList

List of cards

More description


/api/v2/cards

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/cards?templateId=&customerId=&customerEmail=&customerPhone=&page=&itemsPerPage="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        Integer templateId = 56; // Integer | Filter by templateId
        uuid customerId = ; // uuid | Filter by customerId
        String customerEmail = customerEmail_example; // String | Filter by customer email
        String customerPhone = customerPhone_example; // String | Filter by customer phone
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_1 result = apiInstance.getApiGetCardList(templateId, customerId, customerEmail, customerPhone, page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getApiGetCardList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        Integer templateId = 56; // Integer | Filter by templateId
        uuid customerId = ; // uuid | Filter by customerId
        String customerEmail = customerEmail_example; // String | Filter by customer email
        String customerPhone = customerPhone_example; // String | Filter by customer phone
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_1 result = apiInstance.getApiGetCardList(templateId, customerId, customerEmail, customerPhone, page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#getApiGetCardList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
Integer *templateId = 56; // Filter by templateId (optional)
uuid *customerId = ; // Filter by customerId (optional)
String *customerEmail = customerEmail_example; // Filter by customer email (optional)
String *customerPhone = customerPhone_example; // Filter by customer phone (optional)
Integer *page = 56; // Page number (optional) (default to 1)
Integer *itemsPerPage = 56; // Items per page (optional) (default to 30)

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

// List of cards
[apiInstance getApiGetCardListWith:templateId
    customerId:customerId
    customerEmail:customerEmail
    customerPhone:customerPhone
    page:page
    itemsPerPage:itemsPerPage
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var opts = { 
  'templateId': 56, // {{Integer}} Filter by templateId
  'customerId': , // {{uuid}} Filter by customerId
  'customerEmail': customerEmail_example, // {{String}} Filter by customer email
  'customerPhone': customerPhone_example, // {{String}} Filter by customer phone
  'page': 56, // {{Integer}} Page number
  'itemsPerPage': 56 // {{Integer}} Items per page
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiGetCardList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var templateId = 56;  // Integer | Filter by templateId (optional) 
            var customerId = new uuid(); // uuid | Filter by customerId (optional) 
            var customerEmail = customerEmail_example;  // String | Filter by customer email (optional) 
            var customerPhone = customerPhone_example;  // String | Filter by customer phone (optional) 
            var page = 56;  // Integer | Page number (optional)  (default to 1)
            var itemsPerPage = 56;  // Integer | Items per page (optional)  (default to 30)

            try
            {
                // List of cards
                inline_response_200_1 result = apiInstance.getApiGetCardList(templateId, customerId, customerEmail, customerPhone, page, itemsPerPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.getApiGetCardList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$templateId = 56; // Integer | Filter by templateId
$customerId = ; // uuid | Filter by customerId
$customerEmail = customerEmail_example; // String | Filter by customer email
$customerPhone = customerPhone_example; // String | Filter by customer phone
$page = 56; // Integer | Page number
$itemsPerPage = 56; // Integer | Items per page

try {
    $result = $api_instance->getApiGetCardList($templateId, $customerId, $customerEmail, $customerPhone, $page, $itemsPerPage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardsApi->getApiGetCardList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CardsApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $templateId = 56; # Integer | Filter by templateId
my $customerId = ; # uuid | Filter by customerId
my $customerEmail = customerEmail_example; # String | Filter by customer email
my $customerPhone = customerPhone_example; # String | Filter by customer phone
my $page = 56; # Integer | Page number
my $itemsPerPage = 56; # Integer | Items per page

eval { 
    my $result = $api_instance->getApiGetCardList(templateId => $templateId, customerId => $customerId, customerEmail => $customerEmail, customerPhone => $customerPhone, page => $page, itemsPerPage => $itemsPerPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->getApiGetCardList: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
templateId = 56 # Integer | Filter by templateId (optional)
customerId =  # uuid | Filter by customerId (optional)
customerEmail = customerEmail_example # String | Filter by customer email (optional)
customerPhone = customerPhone_example # String | Filter by customer phone (optional)
page = 56 # Integer | Page number (optional) (default to 1)
itemsPerPage = 56 # Integer | Items per page (optional) (default to 30)

try: 
    # List of cards
    api_response = api_instance.get_api_get_card_list(templateId=templateId, customerId=customerId, customerEmail=customerEmail, customerPhone=customerPhone, page=page, itemsPerPage=itemsPerPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->getApiGetCardList: %s\n" % e)

Parameters

Query parameters
Name Description
templateId
Integer
Filter by templateId
customerId
uuid
Filter by customerId
customerEmail
String
Filter by customer email
customerPhone
String
Filter by customer phone
page
Integer
Page number
itemsPerPage
Integer
Items per page

Responses

Status: 200 - Successful response


patchApiPatchCard

Edit card


/api/v2/cards/{id}

Usage and SDK Samples

curl -X PATCH\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        EditCardInput body = ; // EditCardInput | 
        try {
            inline_response_200_3 result = apiInstance.patchApiPatchCard(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#patchApiPatchCard");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        EditCardInput body = ; // EditCardInput | 
        try {
            inline_response_200_3 result = apiInstance.patchApiPatchCard(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#patchApiPatchCard");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
EditCardInput *body = ; //  (optional)

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

// Edit card
[apiInstance patchApiPatchCardWith:id
    body:body
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{EditCardInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.patchApiPatchCard(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new EditCardInput(); // EditCardInput |  (optional) 

            try
            {
                // Edit card
                inline_response_200_3 result = apiInstance.patchApiPatchCard(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.patchApiPatchCard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // EditCardInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::EditCardInput->new(); # EditCardInput | 

eval { 
    my $result = $api_instance->patchApiPatchCard(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->patchApiPatchCard: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # EditCardInput |  (optional)

try: 
    # Edit card
    api_response = api_instance.patch_api_patch_card(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->patchApiPatchCard: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCard

Create card for customer


/api/v2/cards

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

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

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        CreateCardInput body = ; // CreateCardInput | 
        try {
            inline_response_201 result = apiInstance.postApiPostCard(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCard");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
CreateCardInput *body = ; //  (optional)

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

// Create card for customer
[apiInstance postApiPostCardWith:body
              completionHandler: ^(inline_response_201 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var opts = { 
  'body':  // {{CreateCardInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCard(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var body = new CreateCardInput(); // CreateCardInput |  (optional) 

            try
            {
                // Create card for customer
                inline_response_201 result = apiInstance.postApiPostCard(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$body = ; // CreateCardInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

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

eval { 
    my $result = $api_instance->postApiPostCard(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCard: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

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

try: 
    # Create card for customer
    api_response = api_instance.post_api_post_card(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCard: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - Successful response


postApiPostCardAddAmount

Add amount to card


/api/v2/cards/{id}/add-transaction-amount

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/add-transaction-amount"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualAmountInput body = ; // CardAccrualAmountInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddAmount(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddAmount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualAmountInput body = ; // CardAccrualAmountInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddAmount(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddAmount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualAmountInput *body = ; //  (optional)

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

// Add amount to card
[apiInstance postApiPostCardAddAmountWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualAmountInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardAddAmount(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualAmountInput(); // CardAccrualAmountInput |  (optional) 

            try
            {
                // Add amount to card
                inline_response_200 result = apiInstance.postApiPostCardAddAmount(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardAddAmount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualAmountInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualAmountInput->new(); # CardAccrualAmountInput | 

eval { 
    my $result = $api_instance->postApiPostCardAddAmount(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardAddAmount: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualAmountInput |  (optional)

try: 
    # Add amount to card
    api_response = api_instance.post_api_post_card_add_amount(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardAddAmount: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardAddPoint

Add point to card


/api/v2/cards/{id}/add-point

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/add-point"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualPointInput body = ; // CardAccrualPointInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddPoint(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddPoint");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualPointInput body = ; // CardAccrualPointInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddPoint(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddPoint");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualPointInput *body = ; //  (optional)

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

// Add point to card
[apiInstance postApiPostCardAddPointWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualPointInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardAddPoint(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualPointInput(); // CardAccrualPointInput |  (optional) 

            try
            {
                // Add point to card
                inline_response_200 result = apiInstance.postApiPostCardAddPoint(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardAddPoint: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualPointInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualPointInput->new(); # CardAccrualPointInput | 

eval { 
    my $result = $api_instance->postApiPostCardAddPoint(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardAddPoint: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualPointInput |  (optional)

try: 
    # Add point to card
    api_response = api_instance.post_api_post_card_add_point(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardAddPoint: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardAddPurchase

Add visit to card


/api/v2/cards/{id}/add-purchase

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/add-purchase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardPurchaseInput body = ; // CardPurchaseInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddPurchase(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddPurchase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardPurchaseInput body = ; // CardPurchaseInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddPurchase(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddPurchase");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardPurchaseInput *body = ; //  (optional)

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

// Add visit to card
[apiInstance postApiPostCardAddPurchaseWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardPurchaseInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardAddPurchase(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardPurchaseInput(); // CardPurchaseInput |  (optional) 

            try
            {
                // Add visit to card
                inline_response_200 result = apiInstance.postApiPostCardAddPurchase(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardAddPurchase: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardPurchaseInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardPurchaseInput->new(); # CardPurchaseInput | 

eval { 
    my $result = $api_instance->postApiPostCardAddPurchase(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardAddPurchase: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardPurchaseInput |  (optional)

try: 
    # Add visit to card
    api_response = api_instance.post_api_post_card_add_purchase(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardAddPurchase: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardAddReward

Add reward to card


/api/v2/cards/{id}/add-reward

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/add-reward"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualRewardInput body = ; // CardAccrualRewardInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddReward(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddReward");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualRewardInput body = ; // CardAccrualRewardInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddReward(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddReward");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualRewardInput *body = ; //  (optional)

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

// Add reward to card
[apiInstance postApiPostCardAddRewardWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualRewardInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardAddReward(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualRewardInput(); // CardAccrualRewardInput |  (optional) 

            try
            {
                // Add reward to card
                inline_response_200 result = apiInstance.postApiPostCardAddReward(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardAddReward: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualRewardInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualRewardInput->new(); # CardAccrualRewardInput | 

eval { 
    my $result = $api_instance->postApiPostCardAddReward(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardAddReward: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualRewardInput |  (optional)

try: 
    # Add reward to card
    api_response = api_instance.post_api_post_card_add_reward(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardAddReward: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardAddScores

Add scores to card


/api/v2/cards/{id}/add-scores

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/add-scores"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualScoresInput body = ; // CardAccrualScoresInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddScores(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddScores");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualScoresInput body = ; // CardAccrualScoresInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddScores(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddScores");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualScoresInput *body = ; //  (optional)

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

// Add scores to card
[apiInstance postApiPostCardAddScoresWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualScoresInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardAddScores(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualScoresInput(); // CardAccrualScoresInput |  (optional) 

            try
            {
                // Add scores to card
                inline_response_200 result = apiInstance.postApiPostCardAddScores(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardAddScores: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualScoresInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualScoresInput->new(); # CardAccrualScoresInput | 

eval { 
    my $result = $api_instance->postApiPostCardAddScores(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardAddScores: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualScoresInput |  (optional)

try: 
    # Add scores to card
    api_response = api_instance.post_api_post_card_add_scores(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardAddScores: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardAddStamp

Add stamp to card


/api/v2/cards/{id}/add-stamp

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/add-stamp"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualStampInput body = ; // CardAccrualStampInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddStamp(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddStamp");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualStampInput body = ; // CardAccrualStampInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddStamp(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddStamp");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualStampInput *body = ; //  (optional)

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

// Add stamp to card
[apiInstance postApiPostCardAddStampWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualStampInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardAddStamp(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualStampInput(); // CardAccrualStampInput |  (optional) 

            try
            {
                // Add stamp to card
                inline_response_200 result = apiInstance.postApiPostCardAddStamp(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardAddStamp: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualStampInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualStampInput->new(); # CardAccrualStampInput | 

eval { 
    my $result = $api_instance->postApiPostCardAddStamp(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardAddStamp: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualStampInput |  (optional)

try: 
    # Add stamp to card
    api_response = api_instance.post_api_post_card_add_stamp(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardAddStamp: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardAddVisit

Add visit to card


/api/v2/cards/{id}/add-visit

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/add-visit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualVisitInput body = ; // CardAccrualVisitInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddVisit(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddVisit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualVisitInput body = ; // CardAccrualVisitInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardAddVisit(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardAddVisit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualVisitInput *body = ; //  (optional)

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

// Add visit to card
[apiInstance postApiPostCardAddVisitWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualVisitInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardAddVisit(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualVisitInput(); // CardAccrualVisitInput |  (optional) 

            try
            {
                // Add visit to card
                inline_response_200 result = apiInstance.postApiPostCardAddVisit(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardAddVisit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualVisitInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualVisitInput->new(); # CardAccrualVisitInput | 

eval { 
    my $result = $api_instance->postApiPostCardAddVisit(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardAddVisit: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualVisitInput |  (optional)

try: 
    # Add visit to card
    api_response = api_instance.post_api_post_card_add_visit(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardAddVisit: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardReceiveReward

Receive reward


/api/v2/cards/{id}/receive-reward

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/receive-reward"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardReceiveRewardInput body = ; // CardReceiveRewardInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardReceiveReward(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardReceiveReward");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardReceiveRewardInput body = ; // CardReceiveRewardInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardReceiveReward(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardReceiveReward");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardReceiveRewardInput *body = ; //  (optional)

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

// Receive reward
[apiInstance postApiPostCardReceiveRewardWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardReceiveRewardInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardReceiveReward(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardReceiveRewardInput(); // CardReceiveRewardInput |  (optional) 

            try
            {
                // Receive reward
                inline_response_200 result = apiInstance.postApiPostCardReceiveReward(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardReceiveReward: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardReceiveRewardInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardReceiveRewardInput->new(); # CardReceiveRewardInput | 

eval { 
    my $result = $api_instance->postApiPostCardReceiveReward(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardReceiveReward: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardReceiveRewardInput |  (optional)

try: 
    # Receive reward
    api_response = api_instance.post_api_post_card_receive_reward(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardReceiveReward: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardRedeemCoupon

Redeem coupon


/api/v2/cards/{id}/redeem-coupon

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/redeem-coupon"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualInput body = ; // CardAccrualInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardRedeemCoupon(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardRedeemCoupon");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualInput body = ; // CardAccrualInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardRedeemCoupon(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardRedeemCoupon");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualInput *body = ; //  (optional)

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

// Redeem coupon
[apiInstance postApiPostCardRedeemCouponWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardRedeemCoupon(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualInput(); // CardAccrualInput |  (optional) 

            try
            {
                // Redeem coupon
                inline_response_200 result = apiInstance.postApiPostCardRedeemCoupon(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardRedeemCoupon: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualInput->new(); # CardAccrualInput | 

eval { 
    my $result = $api_instance->postApiPostCardRedeemCoupon(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardRedeemCoupon: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualInput |  (optional)

try: 
    # Redeem coupon
    api_response = api_instance.post_api_post_card_redeem_coupon(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardRedeemCoupon: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardSubtractAmount

Subtract amount from card


/api/v2/cards/{id}/subtract-transaction-amount

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/subtract-transaction-amount"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualAmountInput body = ; // CardAccrualAmountInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractAmount(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractAmount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualAmountInput body = ; // CardAccrualAmountInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractAmount(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractAmount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualAmountInput *body = ; //  (optional)

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

// Subtract amount from card
[apiInstance postApiPostCardSubtractAmountWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualAmountInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardSubtractAmount(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualAmountInput(); // CardAccrualAmountInput |  (optional) 

            try
            {
                // Subtract amount from card
                inline_response_200 result = apiInstance.postApiPostCardSubtractAmount(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardSubtractAmount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualAmountInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualAmountInput->new(); # CardAccrualAmountInput | 

eval { 
    my $result = $api_instance->postApiPostCardSubtractAmount(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardSubtractAmount: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualAmountInput |  (optional)

try: 
    # Subtract amount from card
    api_response = api_instance.post_api_post_card_subtract_amount(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardSubtractAmount: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardSubtractPoint

Subtract point from card


/api/v2/cards/{id}/subtract-point

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/subtract-point"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualPointInput body = ; // CardAccrualPointInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractPoint(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractPoint");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualPointInput body = ; // CardAccrualPointInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractPoint(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractPoint");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualPointInput *body = ; //  (optional)

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

// Subtract point from card
[apiInstance postApiPostCardSubtractPointWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualPointInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardSubtractPoint(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualPointInput(); // CardAccrualPointInput |  (optional) 

            try
            {
                // Subtract point from card
                inline_response_200 result = apiInstance.postApiPostCardSubtractPoint(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardSubtractPoint: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualPointInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualPointInput->new(); # CardAccrualPointInput | 

eval { 
    my $result = $api_instance->postApiPostCardSubtractPoint(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardSubtractPoint: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualPointInput |  (optional)

try: 
    # Subtract point from card
    api_response = api_instance.post_api_post_card_subtract_point(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardSubtractPoint: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardSubtractReward

Subtract reward from card


/api/v2/cards/{id}/subtract-reward

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/subtract-reward"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualRewardInput body = ; // CardAccrualRewardInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractReward(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractReward");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualRewardInput body = ; // CardAccrualRewardInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractReward(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractReward");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualRewardInput *body = ; //  (optional)

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

// Subtract reward from card
[apiInstance postApiPostCardSubtractRewardWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualRewardInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardSubtractReward(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualRewardInput(); // CardAccrualRewardInput |  (optional) 

            try
            {
                // Subtract reward from card
                inline_response_200 result = apiInstance.postApiPostCardSubtractReward(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardSubtractReward: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualRewardInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualRewardInput->new(); # CardAccrualRewardInput | 

eval { 
    my $result = $api_instance->postApiPostCardSubtractReward(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardSubtractReward: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualRewardInput |  (optional)

try: 
    # Subtract reward from card
    api_response = api_instance.post_api_post_card_subtract_reward(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardSubtractReward: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardSubtractScores

Subtract scores from card


/api/v2/cards/{id}/subtract-scores

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/subtract-scores"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualScoresInput body = ; // CardAccrualScoresInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractScores(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractScores");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualScoresInput body = ; // CardAccrualScoresInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractScores(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractScores");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualScoresInput *body = ; //  (optional)

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

// Subtract scores from card
[apiInstance postApiPostCardSubtractScoresWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualScoresInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardSubtractScores(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualScoresInput(); // CardAccrualScoresInput |  (optional) 

            try
            {
                // Subtract scores from card
                inline_response_200 result = apiInstance.postApiPostCardSubtractScores(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardSubtractScores: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualScoresInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualScoresInput->new(); # CardAccrualScoresInput | 

eval { 
    my $result = $api_instance->postApiPostCardSubtractScores(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardSubtractScores: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualScoresInput |  (optional)

try: 
    # Subtract scores from card
    api_response = api_instance.post_api_post_card_subtract_scores(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardSubtractScores: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardSubtractStamp

Subtract stamp from card


/api/v2/cards/{id}/subtract-stamp

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/subtract-stamp"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualStampInput body = ; // CardAccrualStampInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractStamp(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractStamp");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualStampInput body = ; // CardAccrualStampInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractStamp(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractStamp");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualStampInput *body = ; //  (optional)

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

// Subtract stamp from card
[apiInstance postApiPostCardSubtractStampWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualStampInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardSubtractStamp(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualStampInput(); // CardAccrualStampInput |  (optional) 

            try
            {
                // Subtract stamp from card
                inline_response_200 result = apiInstance.postApiPostCardSubtractStamp(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardSubtractStamp: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualStampInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualStampInput->new(); # CardAccrualStampInput | 

eval { 
    my $result = $api_instance->postApiPostCardSubtractStamp(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardSubtractStamp: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualStampInput |  (optional)

try: 
    # Subtract stamp from card
    api_response = api_instance.post_api_post_card_subtract_stamp(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardSubtractStamp: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCardSubtractVisit

Subtract visit from card


/api/v2/cards/{id}/subtract-visit

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/subtract-visit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualVisitInput body = ; // CardAccrualVisitInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractVisit(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractVisit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardAccrualVisitInput body = ; // CardAccrualVisitInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostCardSubtractVisit(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostCardSubtractVisit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardAccrualVisitInput *body = ; //  (optional)

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

// Subtract visit from card
[apiInstance postApiPostCardSubtractVisitWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardAccrualVisitInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCardSubtractVisit(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardAccrualVisitInput(); // CardAccrualVisitInput |  (optional) 

            try
            {
                // Subtract visit from card
                inline_response_200 result = apiInstance.postApiPostCardSubtractVisit(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostCardSubtractVisit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardAccrualVisitInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardAccrualVisitInput->new(); # CardAccrualVisitInput | 

eval { 
    my $result = $api_instance->postApiPostCardSubtractVisit(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostCardSubtractVisit: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardAccrualVisitInput |  (optional)

try: 
    # Subtract visit from card
    api_response = api_instance.post_api_post_card_subtract_visit(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostCardSubtractVisit: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostSetExpirationDate

Set card expiration date


/api/v2/cards/{id}/set-expiration-date

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/cards/{id}/set-expiration-date"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsApi;

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

public class CardsApiExample {

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

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

        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardSetExpirationDateInput body = ; // CardSetExpirationDateInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostSetExpirationDate(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostSetExpirationDate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsApi;

public class CardsApiExample {

    public static void main(String[] args) {
        CardsApi apiInstance = new CardsApi();
        String id = id_example; // String | 
        CardSetExpirationDateInput body = ; // CardSetExpirationDateInput | 
        try {
            inline_response_200 result = apiInstance.postApiPostSetExpirationDate(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsApi#postApiPostSetExpirationDate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
CardSetExpirationDateInput *body = ; //  (optional)

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

// Set card expiration date
[apiInstance postApiPostSetExpirationDateWith:id
    body:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CardsApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{CardSetExpirationDateInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostSetExpirationDate(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CardsApi();
            var id = id_example;  // String | 
            var body = new CardSetExpirationDateInput(); // CardSetExpirationDateInput |  (optional) 

            try
            {
                // Set card expiration date
                inline_response_200 result = apiInstance.postApiPostSetExpirationDate(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsApi.postApiPostSetExpirationDate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCardsApi();
$id = id_example; // String | 
$body = ; // CardSetExpirationDateInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::CardSetExpirationDateInput->new(); # CardSetExpirationDateInput | 

eval { 
    my $result = $api_instance->postApiPostSetExpirationDate(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsApi->postApiPostSetExpirationDate: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsApi()
id = id_example # String | 
body =  # CardSetExpirationDateInput |  (optional)

try: 
    # Set card expiration date
    api_response = api_instance.post_api_post_set_expiration_date(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->postApiPostSetExpirationDate: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


Companies

deleteApiDeleteCompany

Delete company


/api/v2/companies/{id}

Usage and SDK Samples

curl -X DELETE\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/companies/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompaniesApi;

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

public class CompaniesApiExample {

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

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

        CompaniesApi apiInstance = new CompaniesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.deleteApiDeleteCompany(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#deleteApiDeleteCompany");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompaniesApi;

public class CompaniesApiExample {

    public static void main(String[] args) {
        CompaniesApi apiInstance = new CompaniesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.deleteApiDeleteCompany(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#deleteApiDeleteCompany");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Delete company
[apiInstance deleteApiDeleteCompanyWith:id
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CompaniesApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CompaniesApi();
            var id = id_example;  // String | 

            try
            {
                // Delete company
                inline_response_200_6 result = apiInstance.deleteApiDeleteCompany(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompaniesApi.deleteApiDeleteCompany: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCompaniesApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CompaniesApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->deleteApiDeleteCompany(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CompaniesApi->deleteApiDeleteCompany: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CompaniesApi()
id = id_example # String | 

try: 
    # Delete company
    api_response = api_instance.delete_api_delete_company(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompaniesApi->deleteApiDeleteCompany: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetCompany

Get company


/api/v2/companies/{id}

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/companies/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompaniesApi;

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

public class CompaniesApiExample {

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

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

        CompaniesApi apiInstance = new CompaniesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.getApiGetCompany(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#getApiGetCompany");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompaniesApi;

public class CompaniesApiExample {

    public static void main(String[] args) {
        CompaniesApi apiInstance = new CompaniesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_5 result = apiInstance.getApiGetCompany(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#getApiGetCompany");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Get company
[apiInstance getApiGetCompanyWith:id
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CompaniesApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CompaniesApi();
            var id = id_example;  // String | 

            try
            {
                // Get company
                inline_response_200_5 result = apiInstance.getApiGetCompany(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompaniesApi.getApiGetCompany: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCompaniesApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CompaniesApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getApiGetCompany(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CompaniesApi->getApiGetCompany: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CompaniesApi()
id = id_example # String | 

try: 
    # Get company
    api_response = api_instance.get_api_get_company(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompaniesApi->getApiGetCompany: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetCompanyList

List of companies


/api/v2/companies

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/companies?page=&itemsPerPage="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompaniesApi;

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

public class CompaniesApiExample {

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

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

        CompaniesApi apiInstance = new CompaniesApi();
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_4 result = apiInstance.getApiGetCompanyList(page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#getApiGetCompanyList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompaniesApi;

public class CompaniesApiExample {

    public static void main(String[] args) {
        CompaniesApi apiInstance = new CompaniesApi();
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_4 result = apiInstance.getApiGetCompanyList(page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#getApiGetCompanyList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
Integer *page = 56; // Page number (optional) (default to 1)
Integer *itemsPerPage = 56; // Items per page (optional) (default to 30)

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

// List of companies
[apiInstance getApiGetCompanyListWith:page
    itemsPerPage:itemsPerPage
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CompaniesApi()
var opts = { 
  'page': 56, // {{Integer}} Page number
  'itemsPerPage': 56 // {{Integer}} Items per page
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiGetCompanyList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CompaniesApi();
            var page = 56;  // Integer | Page number (optional)  (default to 1)
            var itemsPerPage = 56;  // Integer | Items per page (optional)  (default to 30)

            try
            {
                // List of companies
                inline_response_200_4 result = apiInstance.getApiGetCompanyList(page, itemsPerPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompaniesApi.getApiGetCompanyList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCompaniesApi();
$page = 56; // Integer | Page number
$itemsPerPage = 56; // Integer | Items per page

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CompaniesApi->new();
my $page = 56; # Integer | Page number
my $itemsPerPage = 56; # Integer | Items per page

eval { 
    my $result = $api_instance->getApiGetCompanyList(page => $page, itemsPerPage => $itemsPerPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CompaniesApi->getApiGetCompanyList: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CompaniesApi()
page = 56 # Integer | Page number (optional) (default to 1)
itemsPerPage = 56 # Integer | Items per page (optional) (default to 30)

try: 
    # List of companies
    api_response = api_instance.get_api_get_company_list(page=page, itemsPerPage=itemsPerPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompaniesApi->getApiGetCompanyList: %s\n" % e)

Parameters

Query parameters
Name Description
page
Integer
Page number
itemsPerPage
Integer
Items per page

Responses

Status: 200 - Successful response


patchApiPatchCompany

Edit company


/api/v2/companies/{id}

Usage and SDK Samples

curl -X PATCH\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/companies/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompaniesApi;

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

public class CompaniesApiExample {

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

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

        CompaniesApi apiInstance = new CompaniesApi();
        String id = id_example; // String | 
        EditCompanyInput body = ; // EditCompanyInput | 
        try {
            inline_response_200_5 result = apiInstance.patchApiPatchCompany(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#patchApiPatchCompany");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompaniesApi;

public class CompaniesApiExample {

    public static void main(String[] args) {
        CompaniesApi apiInstance = new CompaniesApi();
        String id = id_example; // String | 
        EditCompanyInput body = ; // EditCompanyInput | 
        try {
            inline_response_200_5 result = apiInstance.patchApiPatchCompany(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#patchApiPatchCompany");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
EditCompanyInput *body = ; //  (optional)

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

// Edit company
[apiInstance patchApiPatchCompanyWith:id
    body:body
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CompaniesApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{EditCompanyInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.patchApiPatchCompany(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CompaniesApi();
            var id = id_example;  // String | 
            var body = new EditCompanyInput(); // EditCompanyInput |  (optional) 

            try
            {
                // Edit company
                inline_response_200_5 result = apiInstance.patchApiPatchCompany(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompaniesApi.patchApiPatchCompany: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCompaniesApi();
$id = id_example; // String | 
$body = ; // EditCompanyInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CompaniesApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::EditCompanyInput->new(); # EditCompanyInput | 

eval { 
    my $result = $api_instance->patchApiPatchCompany(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CompaniesApi->patchApiPatchCompany: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CompaniesApi()
id = id_example # String | 
body =  # EditCompanyInput |  (optional)

try: 
    # Edit company
    api_response = api_instance.patch_api_patch_company(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompaniesApi->patchApiPatchCompany: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiPostCompany

Create company


/api/v2/companies

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/companies"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompaniesApi;

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

public class CompaniesApiExample {

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

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

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

public class CompaniesApiExample {

    public static void main(String[] args) {
        CompaniesApi apiInstance = new CompaniesApi();
        CreateCompanyInput body = ; // CreateCompanyInput | 
        try {
            inline_response_201_1 result = apiInstance.postApiPostCompany(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompaniesApi#postApiPostCompany");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
CreateCompanyInput *body = ; //  (optional)

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

// Create company
[apiInstance postApiPostCompanyWith:body
              completionHandler: ^(inline_response_201_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CompaniesApi()
var opts = { 
  'body':  // {{CreateCompanyInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostCompany(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CompaniesApi();
            var body = new CreateCompanyInput(); // CreateCompanyInput |  (optional) 

            try
            {
                // Create company
                inline_response_201_1 result = apiInstance.postApiPostCompany(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompaniesApi.postApiPostCompany: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCompaniesApi();
$body = ; // CreateCompanyInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

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

eval { 
    my $result = $api_instance->postApiPostCompany(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CompaniesApi->postApiPostCompany: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

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

try: 
    # Create company
    api_response = api_instance.post_api_post_company(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompaniesApi->postApiPostCompany: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - Successful response


Customers

deleteApiDeleteCustomer

Delete customer


/api/v2/customers/{id}

Usage and SDK Samples

curl -X DELETE\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

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

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

        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        try {
            inline_response_200_9 result = apiInstance.deleteApiDeleteCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#deleteApiDeleteCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        try {
            inline_response_200_9 result = apiInstance.deleteApiDeleteCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#deleteApiDeleteCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Delete customer
[apiInstance deleteApiDeleteCustomerWith:id
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CustomersApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CustomersApi();
            var id = id_example;  // String | 

            try
            {
                // Delete customer
                inline_response_200_9 result = apiInstance.deleteApiDeleteCustomer(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.deleteApiDeleteCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCustomersApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->deleteApiDeleteCustomer(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->deleteApiDeleteCustomer: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | 

try: 
    # Delete customer
    api_response = api_instance.delete_api_delete_customer(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->deleteApiDeleteCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetCustomer

Get customer


/api/v2/customers/{id}

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

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

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

        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.getApiGetCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getApiGetCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.getApiGetCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getApiGetCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Get customer
[apiInstance getApiGetCustomerWith:id
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CustomersApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CustomersApi();
            var id = id_example;  // String | 

            try
            {
                // Get customer
                inline_response_200_8 result = apiInstance.getApiGetCustomer(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.getApiGetCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCustomersApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getApiGetCustomer(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->getApiGetCustomer: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | 

try: 
    # Get customer
    api_response = api_instance.get_api_get_customer(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->getApiGetCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetCustomerList

List of customers


/api/v2/customers

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/customers?phone=&email=&page=&itemsPerPage="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

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

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

        CustomersApi apiInstance = new CustomersApi();
        String phone = phone_example; // String | Filter by phone
        String email = email_example; // String | Filter by email
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_7 result = apiInstance.getApiGetCustomerList(phone, email, page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getApiGetCustomerList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String phone = phone_example; // String | Filter by phone
        String email = email_example; // String | Filter by email
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_7 result = apiInstance.getApiGetCustomerList(phone, email, page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getApiGetCustomerList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *phone = phone_example; // Filter by phone (optional)
String *email = email_example; // Filter by email (optional)
Integer *page = 56; // Page number (optional) (default to 1)
Integer *itemsPerPage = 56; // Items per page (optional) (default to 30)

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

// List of customers
[apiInstance getApiGetCustomerListWith:phone
    email:email
    page:page
    itemsPerPage:itemsPerPage
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CustomersApi()
var opts = { 
  'phone': phone_example, // {{String}} Filter by phone
  'email': email_example, // {{String}} Filter by email
  'page': 56, // {{Integer}} Page number
  'itemsPerPage': 56 // {{Integer}} Items per page
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiGetCustomerList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CustomersApi();
            var phone = phone_example;  // String | Filter by phone (optional) 
            var email = email_example;  // String | Filter by email (optional) 
            var page = 56;  // Integer | Page number (optional)  (default to 1)
            var itemsPerPage = 56;  // Integer | Items per page (optional)  (default to 30)

            try
            {
                // List of customers
                inline_response_200_7 result = apiInstance.getApiGetCustomerList(phone, email, page, itemsPerPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.getApiGetCustomerList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCustomersApi();
$phone = phone_example; // String | Filter by phone
$email = email_example; // String | Filter by email
$page = 56; // Integer | Page number
$itemsPerPage = 56; // Integer | Items per page

try {
    $result = $api_instance->getApiGetCustomerList($phone, $email, $page, $itemsPerPage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->getApiGetCustomerList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $phone = phone_example; # String | Filter by phone
my $email = email_example; # String | Filter by email
my $page = 56; # Integer | Page number
my $itemsPerPage = 56; # Integer | Items per page

eval { 
    my $result = $api_instance->getApiGetCustomerList(phone => $phone, email => $email, page => $page, itemsPerPage => $itemsPerPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->getApiGetCustomerList: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
phone = phone_example # String | Filter by phone (optional)
email = email_example # String | Filter by email (optional)
page = 56 # Integer | Page number (optional) (default to 1)
itemsPerPage = 56 # Integer | Items per page (optional) (default to 30)

try: 
    # List of customers
    api_response = api_instance.get_api_get_customer_list(phone=phone, email=email, page=page, itemsPerPage=itemsPerPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->getApiGetCustomerList: %s\n" % e)

Parameters

Query parameters
Name Description
phone
String
Filter by phone
email
String
Filter by email
page
Integer
Page number
itemsPerPage
Integer
Items per page

Responses

Status: 200 - Successful response


patchApiEditCustomer

Edit customer


/api/v2/customers/{id}

Usage and SDK Samples

curl -X PATCH\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

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

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

        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        EditCustomerInput body = ; // EditCustomerInput | 
        try {
            inline_response_200_10 result = apiInstance.patchApiEditCustomer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#patchApiEditCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | 
        EditCustomerInput body = ; // EditCustomerInput | 
        try {
            inline_response_200_10 result = apiInstance.patchApiEditCustomer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#patchApiEditCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 
EditCustomerInput *body = ; //  (optional)

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

// Edit customer
[apiInstance patchApiEditCustomerWith:id
    body:body
              completionHandler: ^(inline_response_200_10 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CustomersApi()
var id = id_example; // {{String}} 
var opts = { 
  'body':  // {{EditCustomerInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.patchApiEditCustomer(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CustomersApi();
            var id = id_example;  // String | 
            var body = new EditCustomerInput(); // EditCustomerInput |  (optional) 

            try
            {
                // Edit customer
                inline_response_200_10 result = apiInstance.patchApiEditCustomer(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.patchApiEditCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCustomersApi();
$id = id_example; // String | 
$body = ; // EditCustomerInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::EditCustomerInput->new(); # EditCustomerInput | 

eval { 
    my $result = $api_instance->patchApiEditCustomer(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->patchApiEditCustomer: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | 
body =  # EditCustomerInput |  (optional)

try: 
    # Edit customer
    api_response = api_instance.patch_api_edit_customer(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->patchApiEditCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - Successful response


postApiCreateCustomer

Create customer


/api/v2/customers

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/customers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

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

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

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

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        CreateCustomerInput body = ; // CreateCustomerInput | 
        try {
            inline_response_201_2 result = apiInstance.postApiCreateCustomer(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#postApiCreateCustomer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
CreateCustomerInput *body = ; //  (optional)

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

// Create customer
[apiInstance postApiCreateCustomerWith:body
              completionHandler: ^(inline_response_201_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.CustomersApi()
var opts = { 
  'body':  // {{CreateCustomerInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiCreateCustomer(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new CustomersApi();
            var body = new CreateCustomerInput(); // CreateCustomerInput |  (optional) 

            try
            {
                // Create customer
                inline_response_201_2 result = apiInstance.postApiCreateCustomer(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.postApiCreateCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiCustomersApi();
$body = ; // CreateCustomerInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

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

eval { 
    my $result = $api_instance->postApiCreateCustomer(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->postApiCreateCustomer: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

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

try: 
    # Create customer
    api_response = api_instance.post_api_create_customer(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->postApiCreateCustomer: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - Successful response


Operations

getApiGetOperationList

List of operations

More description


/api/v2/operations

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/operations?templateId=&customerId=&cardId=&startDate=&endDate=&page=&itemsPerPage="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OperationsApi;

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

public class OperationsApiExample {

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

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

        OperationsApi apiInstance = new OperationsApi();
        Integer templateId = 56; // Integer | Filter by templateId
        uuid customerId = ; // uuid | Filter by customerId
        String cardId = cardId_example; // String | Filter by cardId
        date startDate = 2013-10-20; // date | Start date (format Y-m-d)
        date endDate = 2013-10-20; // date | End date (format Y-m-d)
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_11 result = apiInstance.getApiGetOperationList(templateId, customerId, cardId, startDate, endDate, page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#getApiGetOperationList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OperationsApi;

public class OperationsApiExample {

    public static void main(String[] args) {
        OperationsApi apiInstance = new OperationsApi();
        Integer templateId = 56; // Integer | Filter by templateId
        uuid customerId = ; // uuid | Filter by customerId
        String cardId = cardId_example; // String | Filter by cardId
        date startDate = 2013-10-20; // date | Start date (format Y-m-d)
        date endDate = 2013-10-20; // date | End date (format Y-m-d)
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_11 result = apiInstance.getApiGetOperationList(templateId, customerId, cardId, startDate, endDate, page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#getApiGetOperationList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
Integer *templateId = 56; // Filter by templateId (optional)
uuid *customerId = ; // Filter by customerId (optional)
String *cardId = cardId_example; // Filter by cardId (optional)
date *startDate = 2013-10-20; // Start date (format Y-m-d) (optional)
date *endDate = 2013-10-20; // End date (format Y-m-d) (optional)
Integer *page = 56; // Page number (optional) (default to 1)
Integer *itemsPerPage = 56; // Items per page (optional) (default to 30)

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

// List of operations
[apiInstance getApiGetOperationListWith:templateId
    customerId:customerId
    cardId:cardId
    startDate:startDate
    endDate:endDate
    page:page
    itemsPerPage:itemsPerPage
              completionHandler: ^(inline_response_200_11 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.OperationsApi()
var opts = { 
  'templateId': 56, // {{Integer}} Filter by templateId
  'customerId': , // {{uuid}} Filter by customerId
  'cardId': cardId_example, // {{String}} Filter by cardId
  'startDate': 2013-10-20, // {{date}} Start date (format Y-m-d)
  'endDate': 2013-10-20, // {{date}} End date (format Y-m-d)
  'page': 56, // {{Integer}} Page number
  'itemsPerPage': 56 // {{Integer}} Items per page
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiGetOperationList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new OperationsApi();
            var templateId = 56;  // Integer | Filter by templateId (optional) 
            var customerId = new uuid(); // uuid | Filter by customerId (optional) 
            var cardId = cardId_example;  // String | Filter by cardId (optional) 
            var startDate = 2013-10-20;  // date | Start date (format Y-m-d) (optional) 
            var endDate = 2013-10-20;  // date | End date (format Y-m-d) (optional) 
            var page = 56;  // Integer | Page number (optional)  (default to 1)
            var itemsPerPage = 56;  // Integer | Items per page (optional)  (default to 30)

            try
            {
                // List of operations
                inline_response_200_11 result = apiInstance.getApiGetOperationList(templateId, customerId, cardId, startDate, endDate, page, itemsPerPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OperationsApi.getApiGetOperationList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiOperationsApi();
$templateId = 56; // Integer | Filter by templateId
$customerId = ; // uuid | Filter by customerId
$cardId = cardId_example; // String | Filter by cardId
$startDate = 2013-10-20; // date | Start date (format Y-m-d)
$endDate = 2013-10-20; // date | End date (format Y-m-d)
$page = 56; // Integer | Page number
$itemsPerPage = 56; // Integer | Items per page

try {
    $result = $api_instance->getApiGetOperationList($templateId, $customerId, $cardId, $startDate, $endDate, $page, $itemsPerPage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationsApi->getApiGetOperationList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OperationsApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OperationsApi->new();
my $templateId = 56; # Integer | Filter by templateId
my $customerId = ; # uuid | Filter by customerId
my $cardId = cardId_example; # String | Filter by cardId
my $startDate = 2013-10-20; # date | Start date (format Y-m-d)
my $endDate = 2013-10-20; # date | End date (format Y-m-d)
my $page = 56; # Integer | Page number
my $itemsPerPage = 56; # Integer | Items per page

eval { 
    my $result = $api_instance->getApiGetOperationList(templateId => $templateId, customerId => $customerId, cardId => $cardId, startDate => $startDate, endDate => $endDate, page => $page, itemsPerPage => $itemsPerPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationsApi->getApiGetOperationList: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OperationsApi()
templateId = 56 # Integer | Filter by templateId (optional)
customerId =  # uuid | Filter by customerId (optional)
cardId = cardId_example # String | Filter by cardId (optional)
startDate = 2013-10-20 # date | Start date (format Y-m-d) (optional)
endDate = 2013-10-20 # date | End date (format Y-m-d) (optional)
page = 56 # Integer | Page number (optional) (default to 1)
itemsPerPage = 56 # Integer | Items per page (optional) (default to 30)

try: 
    # List of operations
    api_response = api_instance.get_api_get_operation_list(templateId=templateId, customerId=customerId, cardId=cardId, startDate=startDate, endDate=endDate, page=page, itemsPerPage=itemsPerPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationsApi->getApiGetOperationList: %s\n" % e)

Parameters

Query parameters
Name Description
templateId
Integer
Filter by templateId
customerId
uuid
Filter by customerId
cardId
String
Filter by cardId
startDate
date (date)
Start date (format Y-m-d)
endDate
date (date)
End date (format Y-m-d)
page
Integer
Page number
itemsPerPage
Integer
Items per page

Responses

Status: 200 - Successful response


Pushes

getApiGetPush

Get push


/api/v2/pushes/{id}

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/pushes/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PushesApi;

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

public class PushesApiExample {

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

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

        PushesApi apiInstance = new PushesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_13 result = apiInstance.getApiGetPush(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushesApi#getApiGetPush");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PushesApi;

public class PushesApiExample {

    public static void main(String[] args) {
        PushesApi apiInstance = new PushesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_13 result = apiInstance.getApiGetPush(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushesApi#getApiGetPush");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Get push
[apiInstance getApiGetPushWith:id
              completionHandler: ^(inline_response_200_13 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.PushesApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new PushesApi();
            var id = id_example;  // String | 

            try
            {
                // Get push
                inline_response_200_13 result = apiInstance.getApiGetPush(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PushesApi.getApiGetPush: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiPushesApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PushesApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getApiGetPush(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PushesApi->getApiGetPush: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PushesApi()
id = id_example # String | 

try: 
    # Get push
    api_response = api_instance.get_api_get_push(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PushesApi->getApiGetPush: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetPushList

List of push messages


/api/v2/pushes

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/pushes?page=&itemsPerPage="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PushesApi;

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

public class PushesApiExample {

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

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

        PushesApi apiInstance = new PushesApi();
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_12 result = apiInstance.getApiGetPushList(page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushesApi#getApiGetPushList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PushesApi;

public class PushesApiExample {

    public static void main(String[] args) {
        PushesApi apiInstance = new PushesApi();
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_12 result = apiInstance.getApiGetPushList(page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushesApi#getApiGetPushList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
Integer *page = 56; // Page number (optional) (default to 1)
Integer *itemsPerPage = 56; // Items per page (optional) (default to 30)

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

// List of push messages
[apiInstance getApiGetPushListWith:page
    itemsPerPage:itemsPerPage
              completionHandler: ^(inline_response_200_12 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.PushesApi()
var opts = { 
  'page': 56, // {{Integer}} Page number
  'itemsPerPage': 56 // {{Integer}} Items per page
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiGetPushList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new PushesApi();
            var page = 56;  // Integer | Page number (optional)  (default to 1)
            var itemsPerPage = 56;  // Integer | Items per page (optional)  (default to 30)

            try
            {
                // List of push messages
                inline_response_200_12 result = apiInstance.getApiGetPushList(page, itemsPerPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PushesApi.getApiGetPushList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiPushesApi();
$page = 56; // Integer | Page number
$itemsPerPage = 56; // Integer | Items per page

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PushesApi->new();
my $page = 56; # Integer | Page number
my $itemsPerPage = 56; # Integer | Items per page

eval { 
    my $result = $api_instance->getApiGetPushList(page => $page, itemsPerPage => $itemsPerPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PushesApi->getApiGetPushList: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PushesApi()
page = 56 # Integer | Page number (optional) (default to 1)
itemsPerPage = 56 # Integer | Items per page (optional) (default to 30)

try: 
    # List of push messages
    api_response = api_instance.get_api_get_push_list(page=page, itemsPerPage=itemsPerPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PushesApi->getApiGetPushList: %s\n" % e)

Parameters

Query parameters
Name Description
page
Integer
Page number
itemsPerPage
Integer
Items per page

Responses

Status: 200 - Successful response


postApiPostPush

Send push


/api/v2/pushes

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/pushes"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PushesApi;

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

public class PushesApiExample {

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

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

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

public class PushesApiExample {

    public static void main(String[] args) {
        PushesApi apiInstance = new PushesApi();
        PushInput body = ; // PushInput | 
        try {
            inline_response_201_3 result = apiInstance.postApiPostPush(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PushesApi#postApiPostPush");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
PushInput *body = ; //  (optional)

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

// Send push
[apiInstance postApiPostPushWith:body
              completionHandler: ^(inline_response_201_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.PushesApi()
var opts = { 
  'body':  // {{PushInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostPush(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new PushesApi();
            var body = new PushInput(); // PushInput |  (optional) 

            try
            {
                // Send push
                inline_response_201_3 result = apiInstance.postApiPostPush(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PushesApi.postApiPostPush: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiPushesApi();
$body = ; // PushInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

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

eval { 
    my $result = $api_instance->postApiPostPush(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PushesApi->postApiPostPush: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

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

try: 
    # Send push
    api_response = api_instance.post_api_post_push(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PushesApi->postApiPostPush: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - Successful response


Sms

postApiPostSms

Send SMS to customer


/api/v2/sms

Usage and SDK Samples

curl -X POST\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.digitalwallet.cards/api/v2/sms"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SmsApi;

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

public class SmsApiExample {

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

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

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

public class SmsApiExample {

    public static void main(String[] args) {
        SmsApi apiInstance = new SmsApi();
        SmsInput body = ; // SmsInput | 
        try {
            inline_response_201_4 result = apiInstance.postApiPostSms(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SmsApi#postApiPostSms");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
SmsInput *body = ; //  (optional)

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

// Send SMS to customer
[apiInstance postApiPostSmsWith:body
              completionHandler: ^(inline_response_201_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.SmsApi()
var opts = { 
  'body':  // {{SmsInput}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postApiPostSms(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new SmsApi();
            var body = new SmsInput(); // SmsInput |  (optional) 

            try
            {
                // Send SMS to customer
                inline_response_201_4 result = apiInstance.postApiPostSms(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SmsApi.postApiPostSms: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiSmsApi();
$body = ; // SmsInput | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

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

eval { 
    my $result = $api_instance->postApiPostSms(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SmsApi->postApiPostSms: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

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

try: 
    # Send SMS to customer
    api_response = api_instance.post_api_post_sms(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SmsApi->postApiPostSms: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - Successful response


Tariffs

getApiGetTariff

Get tariff


/api/v2/tariffs/{id}

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/tariffs/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TariffsApi;

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

public class TariffsApiExample {

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

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

        TariffsApi apiInstance = new TariffsApi();
        String id = id_example; // String | 
        try {
            inline_response_200_14 result = apiInstance.getApiGetTariff(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TariffsApi#getApiGetTariff");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TariffsApi;

public class TariffsApiExample {

    public static void main(String[] args) {
        TariffsApi apiInstance = new TariffsApi();
        String id = id_example; // String | 
        try {
            inline_response_200_14 result = apiInstance.getApiGetTariff(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TariffsApi#getApiGetTariff");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Get tariff
[apiInstance getApiGetTariffWith:id
              completionHandler: ^(inline_response_200_14 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.TariffsApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new TariffsApi();
            var id = id_example;  // String | 

            try
            {
                // Get tariff
                inline_response_200_14 result = apiInstance.getApiGetTariff(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TariffsApi.getApiGetTariff: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiTariffsApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TariffsApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getApiGetTariff(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TariffsApi->getApiGetTariff: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TariffsApi()
id = id_example # String | 

try: 
    # Get tariff
    api_response = api_instance.get_api_get_tariff(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TariffsApi->getApiGetTariff: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetTariffList

List of tariffs


/api/v2/tariffs

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/tariffs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TariffsApi;

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

public class TariffsApiExample {

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

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

        TariffsApi apiInstance = new TariffsApi();
        try {
            inline_response_200_15 result = apiInstance.getApiGetTariffList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TariffsApi#getApiGetTariffList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TariffsApi;

public class TariffsApiExample {

    public static void main(String[] args) {
        TariffsApi apiInstance = new TariffsApi();
        try {
            inline_response_200_15 result = apiInstance.getApiGetTariffList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TariffsApi#getApiGetTariffList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];

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

// List of tariffs
[apiInstance getApiGetTariffListWithCompletionHandler: 
              ^(inline_response_200_15 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new TariffsApi();

            try
            {
                // List of tariffs
                inline_response_200_15 result = apiInstance.getApiGetTariffList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TariffsApi.getApiGetTariffList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiTariffsApi();

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TariffsApi->new();

eval { 
    my $result = $api_instance->getApiGetTariffList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TariffsApi->getApiGetTariffList: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TariffsApi()

try: 
    # List of tariffs
    api_response = api_instance.get_api_get_tariff_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TariffsApi->getApiGetTariffList: %s\n" % e)

Parameters

Responses

Status: 200 - Successful response


Templates

getApiGetTemplate

Get template


/api/v2/templates/{id}

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/templates/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplatesApi;

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

public class TemplatesApiExample {

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

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

        TemplatesApi apiInstance = new TemplatesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_16 result = apiInstance.getApiGetTemplate(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplatesApi#getApiGetTemplate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplatesApi;

public class TemplatesApiExample {

    public static void main(String[] args) {
        TemplatesApi apiInstance = new TemplatesApi();
        String id = id_example; // String | 
        try {
            inline_response_200_16 result = apiInstance.getApiGetTemplate(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplatesApi#getApiGetTemplate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *id = id_example; // 

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

// Get template
[apiInstance getApiGetTemplateWith:id
              completionHandler: ^(inline_response_200_16 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.TemplatesApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new TemplatesApi();
            var id = id_example;  // String | 

            try
            {
                // Get template
                inline_response_200_16 result = apiInstance.getApiGetTemplate(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplatesApi.getApiGetTemplate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiTemplatesApi();
$id = id_example; // String | 

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TemplatesApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getApiGetTemplate(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TemplatesApi->getApiGetTemplate: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TemplatesApi()
id = id_example # String | 

try: 
    # Get template
    api_response = api_instance.get_api_get_template(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplatesApi->getApiGetTemplate: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - Successful response


getApiGetTemplateList

List of templates


/api/v2/templates

Usage and SDK Samples

curl -X GET\
-H "X-API-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.digitalwallet.cards/api/v2/templates?page=&itemsPerPage="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TemplatesApi;

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

public class TemplatesApiExample {

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

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

        TemplatesApi apiInstance = new TemplatesApi();
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_17 result = apiInstance.getApiGetTemplateList(page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplatesApi#getApiGetTemplateList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TemplatesApi;

public class TemplatesApiExample {

    public static void main(String[] args) {
        TemplatesApi apiInstance = new TemplatesApi();
        Integer page = 56; // Integer | Page number
        Integer itemsPerPage = 56; // Integer | Items per page
        try {
            inline_response_200_17 result = apiInstance.getApiGetTemplateList(page, itemsPerPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TemplatesApi#getApiGetTemplateList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
Integer *page = 56; // Page number (optional) (default to 1)
Integer *itemsPerPage = 56; // Items per page (optional) (default to 30)

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

// List of templates
[apiInstance getApiGetTemplateListWith:page
    itemsPerPage:itemsPerPage
              completionHandler: ^(inline_response_200_17 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TrybLoyaltyApiV200 = require('tryb_loyalty_api_v200');
var defaultClient = TrybLoyaltyApiV200.ApiClient.instance;

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

var api = new TrybLoyaltyApiV200.TemplatesApi()
var opts = { 
  'page': 56, // {{Integer}} Page number
  'itemsPerPage': 56 // {{Integer}} Items per page
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiGetTemplateList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");

            var apiInstance = new TemplatesApi();
            var page = 56;  // Integer | Page number (optional)  (default to 1)
            var itemsPerPage = 56;  // Integer | Items per page (optional)  (default to 30)

            try
            {
                // List of templates
                inline_response_200_17 result = apiInstance.getApiGetTemplateList(page, itemsPerPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TemplatesApi.getApiGetTemplateList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$api_instance = new Swagger\Client\ApiTemplatesApi();
$page = 56; // Integer | Page number
$itemsPerPage = 56; // Integer | Items per page

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TemplatesApi->new();
my $page = 56; # Integer | Page number
my $itemsPerPage = 56; # Integer | Items per page

eval { 
    my $result = $api_instance->getApiGetTemplateList(page => $page, itemsPerPage => $itemsPerPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TemplatesApi->getApiGetTemplateList: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TemplatesApi()
page = 56 # Integer | Page number (optional) (default to 1)
itemsPerPage = 56 # Integer | Items per page (optional) (default to 30)

try: 
    # List of templates
    api_response = api_instance.get_api_get_template_list(page=page, itemsPerPage=itemsPerPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TemplatesApi->getApiGetTemplateList: %s\n" % e)

Parameters

Query parameters
Name Description
page
Integer
Page number
itemsPerPage
Integer
Items per page

Responses

Status: 200 - Successful response