Bitcoin
8098.00 USD
6893.00 EUR
Litecoin
70.57 USD
59.97 EUR
Ethereum
362.00 USD
308.02 EUR
Dashcoin
493.80 USD
422.12 EUR

API

API overview


Methods


Start

TierraPay API allows you to create an application that provides management of debit cards.

For the convenience of using the TierraPay API, we suggest using the PHP class. You can download it here. For the correct operation of the class, you will need a curl library and json functions, as a rule, they are integrated into the PHP language.

Activation

To activate the API, you need to contact us via support@tierrapay.com. After that we will send you the application identifier (сlientId) and the secret (secret) that will be needed for authorization.

Use

As an example, below is the code that will order a Virtual Card USD.

Example (php)
<?php
require_once dirname(__FILE__).'/class.tierrapay.php';

$model=new TierraPay(1,'Ohs6s23s');

$ret=$model->send('setQueueCardCreate',array(
	'cardCurrency'=>'usd',
	'cardType'=>1,
));