diff --git a/README.md b/README.md
index cc394d8..4eb4c4d 100644
--- a/README.md
+++ b/README.md
@@ -1,195 +1,486 @@
-# Cryptopay API #
+# Cryptopay PHP Library
-The official PHP library for Cryptopay API.
+The official PHP library for the Cryptopay API.
-### Table of Сontents ###
+Cryptopay is a payment gateway and business wallet that allows merchants to automate the processes of accepting cryptocurrency payments and payouts from their customers, as well as making currency exchange transactions and receiving data on the transaction history and account balance statuses for reporting.
-* [Versions](#versions)
-* [Documentation](#documentation)
-* [Setup](#setup)
-* [Request / Response](#request--response)
-* [Exception](#exceptions)
+For more information, please visit [Cryptopay API docs](https://developers.cryptopay.me).
+
+# Table of contents
+
+* [Installation](#installation)
+* [Configuration](#configuration)
* [Usage](#usage)
-* [Examples](#examples)
-* [Webhooks](#webhooks)
-* [Testing and Contributing](#testing)
+ * [Accounts](#accountsapi)
+ * [Channels](#channelsapi)
+ * [CoinWithdrawals](#coinwithdrawalsapi)
+ * [Coins](#coinsapi)
+ * [Customers](#customersapi)
+ * [ExchangeTransfers](#exchangetransfersapi)
+ * [Invoices](#invoicesapi)
+ * [Rates](#ratesapi)
+ * [Risks](#risksapi)
+ * [Transactions](#transactionsapi)
+* [Callbacks](#callbacks)
+# Installation
-
-### VERSIONS ###
+## Requirements
-Client works with PHP version 7.4 or higher and depends on:
-* "guzzlehttp/guzzle": 7.2 or higher
-* "vlucas/phpdotenv": "5.2" or higher
-* "squizlabs/php_codesniffer": 3.5 or higher
+* PHP 7.4+
-
-### Documentation ###
-For more details visit [CryptopayAPI](https://developers.cryptopay.me)
+## Composer
-To start using this library, register an account on
- [Cryptopay Sandbox](https://business-sandbox.cryptopay.me/)
- [Guide](https://developers.cryptopay.me/guides/creating-a-test-account)
-or
- [Cryptopay Live](https://business.cryptopay.me/)
+You can install the library via [Composer](https://getcomposer.org). Run the following command:
-You should have the following 3 parameters:
-~~~~
-ApiKey, ApiSecret, CallbackApiSecret
-~~~~
+```
+composer require cryptopay-dev/cryptopay
+```
-
-### Setup ###
+To use the library, use Composer's autoload:
-1. Make sure you have [composer](https://getcomposer.org/download/) installed
+```php
+require_once 'vendor/autoload.php';
+```
-2. Go to project folder
- cd ~/projects/your_project_name
+# Configuration
-3. Run composer require "cryptopay-dev/cryptopay"
+## Create API credentials
- (3) Or you can add it manually.
+Learn mode about API credentials at [Developers guide](https://developers.cryptopay.me/guides/api-credentials).
- Open your composer.json file and add a line in the end of "require" section
+## Configure library
- "require": {
- ...,
- "cryptopay-dev/cryptopay": "master"
- },
+```php
+require_once 'vendor/autoload.php';
-4. After the package is successful installed, you need to configure it.
+use Cryptopay\Config\Config;
+use Cryptopay\Cryptopay;
- If you use a PHP framework such as Laravel, composer packages will be included automatically.
- Otherwise, you need to require a path to "vendor/autoload.php" in a file that your code is located.
+$config = (new Config())
+ ->withApiKey('API_KEY_VALUE')
+ ->withApiSecret('YOUR_SECRET_VALUE')
+ ->withBaseUrl('https://business-sandbox.cryptopay.me')
+ ->withCallbackSecret('YOUR_CALLBACK_SECRET_VALUE')
+ ->withTimeout(10);
- After that initialize the package with the following parameters:
+$cryptopay = new Cryptopay($config);
+```
- $config = (new Config())
- ->withApiKey('API_KEY_VALUE')
- ->withApiSecret('YOUR_SECRET_VALUE')
- ->withBaseUrl('https://business-sandbox.cryptopay.me')
- ->withCallbackSecret('YOUR_CALLBACK_SECRET_VALUE')
- ->withTimeout(10);
+Example: [examples/Init.php](https://github.com/cryptopay-dev/cryptopay-php/blob/master/examples/Init.php)
- $cryptopay = new Cryptopay($config);
+# Usage
- You can also pass: baseUrl, CallbackApiSecret, timeout values.
+## Accounts
- Example: [examples/Init.php](https://github.com/cryptopay-dev/cryptopay-php/blob/master/examples/Init.php)
- Well done - you're good to go.
+### List accounts
-5. Alternatively, you can use a .env file with parameters to configure it.
- To do so, you should omit initialization in Step 4.
+```php
+$result = $cryptopay->accounts->all();
+```
- Create a new "config" folder in the Project folder. If the "config" folder already exists, open it and create a new 'cryptopay.env' file.
+### List account transactions
- The structure of config/cryptopay.env:
- CRYPTOPAY_API_KEY=API_KEY_VALUE
- CRYPTOPAY_API_SECRET=YOUR_SECRET_VALUE
- CRYPTOPAY_BASE_URL=https://business-sandbox.cryptopay.me
- CRYPTOPAY_TIMEOUT=10
- CRYPTOPAY_CALLBACK_SECRET=YOUR_CALLBACK_SECRET_VALUE
+```php
+$accountId = '31804390-d44e-49e9-8698-ca781e0eb806';
- Then init Cryptopay library in your project:
+$result = $cryptopay->accounts->allTransactions($accountId);
+```
- $config = (new ConfigEnv())->init();
- $cryptopay = new Cryptopay($config);
+## Channels
- Example: [examples/InitWithEnv.php](https://github.com/cryptopay-dev/cryptopay-php/blob/master/examples/InitWithEnv.php)
+A channel is a static cryptocurrency address that may be assigned to each one of your customers.
-
-### Request / Response ###
-All requests are signed with [Authorization](https://developers.cryptopay.me/guides/api-basics/authentication)
-algorythm and then sent to the API through GuzzleClient.
+[Channels API docs](https://developers.cryptopay.me/guides/channels)
-By default, Cryptopay API returns JSON response. This package transforms json response to object and return it to the client.
+### List channels
-
-### Exceptions ###
-Exception Structure
-~~~~
-\Exception
- \Cryptopay\CryptopayException
- \Cryptopay\Exceptions\ConfigException
- \Cryptopay\Exceptions\CallbackExceptions
- \Cryptopay\Exceptions\ForbiddenException
- \Cryptopay\Exceptions\RequestException
- \Cryptopay\Exceptions\UuidException
- \Cryptopay\Exceptions\DirectoryException
-~~~~
-Exception class | Response Code
------------------------ | -------------
-RequestException | *
-ConfigException | 422
-CallbackException | 422
-ForbiddenException | 403
-UuidException | 422
-DirectoryException | 422
+```php
+$result = $cryptopay->channels->all();
+```
-
-### Usage ###
+### Create a channel
-~~~
- 'Channel name',
+ 'pay_currency' => 'BTC',
+ 'receiver_currency' => 'EUR'
+];
+
+$result = $cryptopay->channels->create($params);
+```
+
+### List channel payments
+
+
+```php
+$channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+
+$result = $cryptopay->channels->allPayments($channelId);
+```
+
+### Retrieve a channel
+
+
+```php
+$channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+
+$result = $cryptopay->channels->retrieve($channelId);
+```
+
+### Retrieve a channel by custom id
+
+
+```php
+$customId = 'CHANNEL-123';
+
+$result = $cryptopay->channels->retrieveByCustomId($customId);
+```
+
+### Retrieve a channel payment
+
+
+```php
+$channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+$channelPaymentId = '704291ec-0b90-4118-89aa-0c9681c3213c';
+
+$result = $cryptopay->channels->retrievePayment($channelId, $channelPaymentId);
+```
+
+### Update a channel
+
+
+```php
+$channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+$params = ['status' => 'disabled'];
+
+$result = $cryptopay->channels->update($channelId, $params);
+```
+
+## CoinWithdrawals
+
+In addition to accepting payments through the Cryptopay payment gateway, it is also possible to make payments to your customers in any of the cryptocurrency currently supported by Cryptopay. In Cryptopay, these payments are called “Coin Withdrawal”. The process of requesting coin withdrawal is almost the same for a customer in Cashier as the process of making a deposit with one exception - the customer will need to specify the address of the wallet he wants to send the cryptocurrency to.
+
+[Coin withdrawals API docs](https://developers.cryptopay.me/guides/payouts)
+
+### List withdrawals
+
+
+```php
+$result = $cryptopay->coinWithdrawals->all();
+```
+
+### Commit a withdrawal
+
+
+```php
+$coinWithdrawal = $cryptopay->coinWithdrawals->create([
+ 'address' => '2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ',
+ 'charged_amount' => '100.0',
+ 'charged_currency' => 'EUR',
+ 'received_currency' => 'BTC',
+ 'force_commit' => false
+])->data;
+
+$result = $cryptopay->coinWithdrawals->commit($coinWithdrawal->id);
+```
+
+### Create a withdrawal
+
+[Documentation](https://developers.cryptopay.me/guides/payouts/create-a-coin-withdrawal)
+
+```php
+$params = [
+ 'address' => '2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ',
+ 'charged_amount' => '100.0',
+ 'charged_currency' => 'EUR',
+ 'received_currency' => 'BTC',
+ 'force_commit' => true
+];
+
+$result = $cryptopay->coinWithdrawals->create($params);
+```
+
+### List network fees
+
+
+```php
+$result = $cryptopay->coinWithdrawals->allNetworkFees();
+```
+
+### Retrieve a withdrawal
+
+
+```php
+$coinWithdrawalId = '3cf9d1c4-6191-4826-8cae-2c717810c7e9';
+
+$result = $cryptopay->coinWithdrawals->retrieve($coinWithdrawalId);
+```
+
+### Retrieve a withdrawal by custom id
+
+
+```php
+$customId = 'PAYMENT-123';
+
+$result = $cryptopay->coinWithdrawals->retrieveByCustomId($customId);
+```
+
+## Coins
+
+
+### List supported coins
+
+
+```php
+$result = $cryptopay->coins->all();
+```
+
+## Customers
+
+Customer objects allow you to reject High-Risk transactions automatically, and to track multiple transactions, that are associated with the same customer.
+
+
+### List customers
+
+
+```php
+$result = $cryptopay->customers->all();
+```
+
+### Create a customer
+
+
+```php
+$params = [
+ 'id' => '56c8cb4112bc7df178ae804fa75f712b',
+ 'currency' => 'EUR'
+];
+
+$result = $cryptopay->customers->create($params);
+```
+
+### Retrieve a customer
+
+
+```php
+$customerId = "CUSTOMER-123";
+
+$result = $cryptopay->customers->retrieve($customerId);
+```
- use Cryptopay\Config\Config;
- use Cryptopay\Cryptopay;
+### Update a customer
- //Configuration for Cryptopay
- $config = (new Config())
- ->withApiKey('API_KEY_VALUE')
- ->withApiSecret('YOUR_SECRET_VALUE')
- ->withBaseUrl('https://business-sandbox.cryptopay.me')
- ->withCallbackSecret('YOUR_CALLBACK_SECRET_VALUE')
- ->withTimeout(10);
- $cryptopay = new Cryptopay($config);
+```php
+$customerId = 'CUSTOMER-123';
+$params = [
+ 'addresses' => [
+ [
+ 'address' => '2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ',
+ 'currency' => 'BTC',
+ 'network' => 'bitcoin'
+ ]
+ ]
+];
- try {
- $response = $cryptopay->getInvoices('366fcd88-2d90-47b3-bdfb-5d3e3e8d8550');
- } catch (CryptopayException $e) {
- echo sprintf("Cant get invoices list. Error: %s \n", $exception->getMessage());
- die();
- }
- print_r($response);
-~~~
+$result = $cryptopay->customers->update($customerId, $params);
+```
-
-### Examples ###
+## ExchangeTransfers
-You can find more examples in `examples` folder.
-
-### Callbacks ###
+### Commit an exchange transfer
+
+
+```php
+$exchangeTransfer = $cryptopay->exchangeTransfers->create([
+ 'charged_currency' => 'EUR',
+ 'charged_amount' => '100.0',
+ 'received_currency' => 'BTC',
+ 'received_amount' => null,
+ 'force_commit' => false
+])->data;
+
+$result = $cryptopay->exchangeTransfers->commit($exchangeTransfer->id);
+```
+
+### Create an exchange transfer
+
+
+```php
+$params = [
+ 'charged_currency' => 'EUR',
+ 'charged_amount' => '100.0',
+ 'received_currency' => 'BTC',
+ 'received_amount' => null,
+ 'force_commit' => true
+];
+
+$result = $cryptopay->exchangeTransfers->create($params);
+```
+
+### Retrieve an exchange transfer
+
+
+```php
+$exchangeTransferId = '2c090f99-7cc1-40da-9bca-7caa57b4ebfb';
+
+$result = $cryptopay->exchangeTransfers->retrieve($exchangeTransferId);
+```
+
+## Invoices
+
+An invoice is a request for a cryptocurrency payment which contains a unique BTC, LTC, ETH or XRP address and the amount that has to be paid while the invoice is valid.
+
+[Invoices API docs](https://developers.cryptopay.me/guides/invoices)
+
+### List invoices
+
+
+```php
+$result = $cryptopay->invoices->all();
+```
+
+### Commit invoice recalculation
+
+
+```php
+$invoiceId = '8dd53e0f-0725-48b4-b0a7-1840aa67b5bb';
+$recalculation = $cryptopay->invoices->createRecalculation($invoiceId)->data;
+
+$result = $cryptopay->invoices->commitRecalculation($invoiceId, $recalculation->id);
+```
+
+### Create an invoice
+
+
+```php
+$params = [
+ 'price_amount' => '100.0',
+ 'price_currency' => 'EUR',
+ 'pay_currency' => 'BTC'
+];
+
+$result = $cryptopay->invoices->create($params);
+```
+
+### Create invoice recalculation
+
+
+```php
+$invoiceId = '29a563ad-b417-445c-b8f6-b6c806bb039b';
+$params = ['force_commit' => true];
+
+$result = $cryptopay->invoices->createRecalculation($invoiceId, $params);
+```
+
+### Create invoice refund
+
+
+```php
+$invoiceId = '331646a6-c8b5-430d-adfb-021d11ff6cd0';
+$params = ['address' => '0xf3532c1fd002665ec54d46a50787e0c69c76cd44'];
+
+$result = $cryptopay->invoices->createRefund($invoiceId, $params);
+```
+
+### List invoice refunds
+
+
+```php
+$invoiceId = '7e274430-e20f-4321-8748-20824287ae44';
+
+$result = $cryptopay->invoices->allRefunds($invoiceId);
+```
+
+### Retrieve an invoice
+
+
+```php
+$invoiceId = 'c8233d57-78c8-4c36-b35e-940ae9067c78';
+
+$result = $cryptopay->invoices->retrieve($invoiceId);
+```
+
+### Retrieve an invoice by custom_id
+
+
+```php
+$customId = 'PAYMENT-123';
+
+$result = $cryptopay->invoices->retrieveByCustomId($customId);
+```
+
+## Rates
+
+
+### Retrieve all rates
+
+
+```php
+$result = $cryptopay->rates->all();
+```
+
+### Retrieve a pair rate
+
+
+```php
+$result = $cryptopay->rates->retrieve('BTC', 'EUR');
+```
+
+## Risks
+
+[Risks API docs](https://developers.cryptopay.me/guides/risks)
+
+### Score a coin address
+
+
+```php
+$params = [
+ 'address' => '2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ',
+ 'currency' => 'BTC',
+ 'type' => 'source_of_funds'
+];
+
+$result = $cryptopay->risks->score($params);
+```
+
+## Transactions
+
+[Transactions API docs](https://developers.cryptopay.me/guides/transactions)
+
+### List transactions
+
+
+```php
+$result = $cryptopay->transactions->all();
+```
+
+
+# Callbacks
[Documentation](https://developers.cryptopay.me/guides/api-basics/callbacks)
-All callbacks need to be validated with
-[signature](https://developers.cryptopay.me/guides/api-basics/authentication/signature)
+All callbacks needs to be validated with [signature](https://developers.cryptopay.me/guides/api-basics/authentication/signature)
- validateCallback($callbackJson, $headers);
- ?>
+// Get CallbackJson
+$callbackJson = file_get_contents('php://input');
-If the signature is wrong, the package validation will throw ForbiddenException.
-Otherwise, it will return object
+// Get headers
+$headers = getallheaders();
-
-### Testing ###
-To run test type in terminal
+$cryptopay->validateCallback($callbackJson, $headers);
+```
-composer test
+If the signature is wrong, the package validation will throw ForbiddenException. Otherwise, it will return object.
diff --git a/composer.json b/composer.json
index 674e4a9..4587f05 100644
--- a/composer.json
+++ b/composer.json
@@ -14,7 +14,8 @@
"require-dev": {
"phpunit/phpunit": "^9",
"mockery/mockery": "^1.4",
- "squizlabs/php_codesniffer": "^3.5"
+ "squizlabs/php_codesniffer": "^3.5",
+ "php-vcr/php-vcr": "^1.5"
},
"scripts": {
"lint": "./vendor/bin/phpcs .",
diff --git a/examples/Init.php b/examples/Init.php
index 7e77f2b..f85621e 100644
--- a/examples/Init.php
+++ b/examples/Init.php
@@ -7,8 +7,8 @@
use Cryptopay\Cryptopay;
$config = (new Config())
- ->withApiKey('API_KEY_VALUE')
- ->withApiSecret('YOUR_SECRET_VALUE')
+ ->withApiKey(getenv('CRYPTOPAY_API_KEY'))
+ ->withApiSecret(getenv('CRYPTOPAY_API_SECRET'))
->withBaseUrl('https://business-sandbox.cryptopay.me')
->withCallbackSecret('YOUR_CALLBACK_SECRET_VALUE')
->withTimeout(10);
diff --git a/examples/Invoices.php b/examples/Invoices.php
new file mode 100644
index 0000000..00527a6
--- /dev/null
+++ b/examples/Invoices.php
@@ -0,0 +1,18 @@
+invoices->create([
+ 'price_amount' => '100',
+ 'price_currency' => 'EUR',
+ 'pay_currency' => 'BTC'
+ ]);
+} catch (CryptopayException $exception) {
+ echo sprintf("Unable to create Invoice. %s \n", $exception->getMessage());
+ die();
+}
+
+print_r($response);
diff --git a/examples/Transactions.php b/examples/Transactions.php
new file mode 100644
index 0000000..93cdd73
--- /dev/null
+++ b/examples/Transactions.php
@@ -0,0 +1,16 @@
+transactions->all([
+ 'status' => 'unresolved'
+ ]);
+} catch (CryptopayException $exception) {
+ echo sprintf("Unable to get transactions list. %s \n", $exception->getMessage());
+ die();
+}
+
+print_r($response);
diff --git a/examples/Account/list.php b/examples/deprecated/Account/list.php
similarity index 100%
rename from examples/Account/list.php
rename to examples/deprecated/Account/list.php
diff --git a/examples/Account/transactions.php b/examples/deprecated/Account/transactions.php
similarity index 100%
rename from examples/Account/transactions.php
rename to examples/deprecated/Account/transactions.php
diff --git a/examples/Callback/callback.php b/examples/deprecated/Callback/callback.php
similarity index 100%
rename from examples/Callback/callback.php
rename to examples/deprecated/Callback/callback.php
diff --git a/examples/Channel/channel_payment.php b/examples/deprecated/Channel/channel_payment.php
similarity index 100%
rename from examples/Channel/channel_payment.php
rename to examples/deprecated/Channel/channel_payment.php
diff --git a/examples/Channel/channel_payments.php b/examples/deprecated/Channel/channel_payments.php
similarity index 100%
rename from examples/Channel/channel_payments.php
rename to examples/deprecated/Channel/channel_payments.php
diff --git a/examples/Channel/create.php b/examples/deprecated/Channel/create.php
similarity index 100%
rename from examples/Channel/create.php
rename to examples/deprecated/Channel/create.php
diff --git a/examples/Channel/custom.php b/examples/deprecated/Channel/custom.php
similarity index 100%
rename from examples/Channel/custom.php
rename to examples/deprecated/Channel/custom.php
diff --git a/examples/Channel/get.php b/examples/deprecated/Channel/get.php
similarity index 100%
rename from examples/Channel/get.php
rename to examples/deprecated/Channel/get.php
diff --git a/examples/Channel/list.php b/examples/deprecated/Channel/list.php
similarity index 100%
rename from examples/Channel/list.php
rename to examples/deprecated/Channel/list.php
diff --git a/examples/Channel/update.php b/examples/deprecated/Channel/update.php
similarity index 100%
rename from examples/Channel/update.php
rename to examples/deprecated/Channel/update.php
diff --git a/examples/CoinWithdrawal/commit.php b/examples/deprecated/CoinWithdrawal/commit.php
similarity index 100%
rename from examples/CoinWithdrawal/commit.php
rename to examples/deprecated/CoinWithdrawal/commit.php
diff --git a/examples/CoinWithdrawal/create.php b/examples/deprecated/CoinWithdrawal/create.php
similarity index 100%
rename from examples/CoinWithdrawal/create.php
rename to examples/deprecated/CoinWithdrawal/create.php
diff --git a/examples/CoinWithdrawal/custom.php b/examples/deprecated/CoinWithdrawal/custom.php
similarity index 100%
rename from examples/CoinWithdrawal/custom.php
rename to examples/deprecated/CoinWithdrawal/custom.php
diff --git a/examples/CoinWithdrawal/get.php b/examples/deprecated/CoinWithdrawal/get.php
similarity index 100%
rename from examples/CoinWithdrawal/get.php
rename to examples/deprecated/CoinWithdrawal/get.php
diff --git a/examples/CoinWithdrawal/list.php b/examples/deprecated/CoinWithdrawal/list.php
similarity index 100%
rename from examples/CoinWithdrawal/list.php
rename to examples/deprecated/CoinWithdrawal/list.php
diff --git a/examples/deprecated/Init.php b/examples/deprecated/Init.php
new file mode 100644
index 0000000..3b44d0e
--- /dev/null
+++ b/examples/deprecated/Init.php
@@ -0,0 +1,16 @@
+withApiKey(getenv('CRYPTOPAY_API_KEY'))
+ ->withApiSecret(getenv('CRYPTOPAY_API_SECRET'))
+ ->withBaseUrl('https://business-sandbox.cryptopay.me')
+ ->withCallbackSecret('YOUR_CALLBACK_SECRET_VALUE')
+ ->withTimeout(10);
+
+$cryptopay = new Cryptopay($config);
diff --git a/examples/Invoice/create.php b/examples/deprecated/Invoice/create.php
similarity index 100%
rename from examples/Invoice/create.php
rename to examples/deprecated/Invoice/create.php
diff --git a/examples/Invoice/custom.php b/examples/deprecated/Invoice/custom.php
similarity index 100%
rename from examples/Invoice/custom.php
rename to examples/deprecated/Invoice/custom.php
diff --git a/examples/Invoice/get.php b/examples/deprecated/Invoice/get.php
similarity index 100%
rename from examples/Invoice/get.php
rename to examples/deprecated/Invoice/get.php
diff --git a/examples/Invoice/list.php b/examples/deprecated/Invoice/list.php
similarity index 100%
rename from examples/Invoice/list.php
rename to examples/deprecated/Invoice/list.php
diff --git a/examples/Rates/list.php b/examples/deprecated/Rates/list.php
similarity index 100%
rename from examples/Rates/list.php
rename to examples/deprecated/Rates/list.php
diff --git a/examples/Rates/pair.php b/examples/deprecated/Rates/pair.php
similarity index 100%
rename from examples/Rates/pair.php
rename to examples/deprecated/Rates/pair.php
diff --git a/examples/Risk/get.php b/examples/deprecated/Risk/get.php
similarity index 100%
rename from examples/Risk/get.php
rename to examples/deprecated/Risk/get.php
diff --git a/examples/Transaction/get.php b/examples/deprecated/Transaction/get.php
similarity index 100%
rename from examples/Transaction/get.php
rename to examples/deprecated/Transaction/get.php
diff --git a/phpcbf.phar b/phpcbf.phar
deleted file mode 100644
index c943b68..0000000
Binary files a/phpcbf.phar and /dev/null differ
diff --git a/phpcs.phar b/phpcs.phar
deleted file mode 100644
index 819299a..0000000
Binary files a/phpcs.phar and /dev/null differ
diff --git a/phpunit.xml b/phpunit.xml
old mode 100755
new mode 100644
diff --git a/src/AbstractApi.php b/src/AbstractApi.php
new file mode 100644
index 0000000..9ab01c7
--- /dev/null
+++ b/src/AbstractApi.php
@@ -0,0 +1,26 @@
+connector = $connector;
+ }
+
+ protected function request(string $method, string $path, array $params = null)
+ {
+ return $this->connector->request($method, $path, $params);
+ }
+}
diff --git a/src/Api/AccountsApi.php b/src/Api/AccountsApi.php
new file mode 100644
index 0000000..fde23ed
--- /dev/null
+++ b/src/Api/AccountsApi.php
@@ -0,0 +1,41 @@
+request('GET', '/api/accounts', $params);
+ }
+
+ /**
+ * List account transactions
+ *
+ * @param string $accountId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function allTransactions(string $accountId, array $params = null)
+ {
+ $path = '/api/accounts/{account_id}/transactions';
+ $path = str_replace('{account_id}', rawurlencode($accountId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+}
diff --git a/src/Api/ChannelsApi.php b/src/Api/ChannelsApi.php
new file mode 100644
index 0000000..8535177
--- /dev/null
+++ b/src/Api/ChannelsApi.php
@@ -0,0 +1,124 @@
+request('GET', '/api/channels', $params);
+ }
+
+ /**
+ * Create a channel
+ *
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function create(array $params = null)
+ {
+ return $this->request('POST', '/api/channels', $params);
+ }
+
+ /**
+ * List channel payments
+ *
+ * @param string $channelId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function allPayments(string $channelId, array $params = null)
+ {
+ $path = '/api/channels/{channel_id}/payments';
+ $path = str_replace('{channel_id}', rawurlencode($channelId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Retrieve a channel
+ *
+ * @param string $channelId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieve(string $channelId, array $params = null)
+ {
+ $path = '/api/channels/{channel_id}';
+ $path = str_replace('{channel_id}', rawurlencode($channelId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Retrieve a channel by custom id
+ *
+ * @param string $customId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieveByCustomId(string $customId, array $params = null)
+ {
+ $path = '/api/channels/custom_id/{custom_id}';
+ $path = str_replace('{custom_id}', rawurlencode($customId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Retrieve a channel payment
+ *
+ * @param string $channelId
+ * @param string $channelPaymentId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrievePayment(string $channelId, string $channelPaymentId, array $params = null)
+ {
+ $path = '/api/channels/{channel_id}/payments/{channel_payment_id}';
+ $path = str_replace('{channel_id}', rawurlencode($channelId), $path);
+ $path = str_replace('{channel_payment_id}', rawurlencode($channelPaymentId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Update a channel
+ *
+ * @param string $channelId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function update(string $channelId, array $params = null)
+ {
+ $path = '/api/channels/{channel_id}';
+ $path = str_replace('{channel_id}', rawurlencode($channelId), $path);
+
+ return $this->request('PATCH', $path, $params);
+ }
+}
diff --git a/src/Api/CoinWithdrawalsApi.php b/src/Api/CoinWithdrawalsApi.php
new file mode 100644
index 0000000..d6ca82a
--- /dev/null
+++ b/src/Api/CoinWithdrawalsApi.php
@@ -0,0 +1,101 @@
+request('GET', '/api/coin_withdrawals', $params);
+ }
+
+ /**
+ * Commit a withdrawal
+ *
+ * @param string $coinWithdrawalId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function commit(string $coinWithdrawalId, array $params = null)
+ {
+ $path = '/api/coin_withdrawals/{coin_withdrawal_id}/commit';
+ $path = str_replace('{coin_withdrawal_id}', rawurlencode($coinWithdrawalId), $path);
+
+ return $this->request('POST', $path, $params);
+ }
+
+ /**
+ * Create a withdrawal
+ *
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function create(array $params = null)
+ {
+ return $this->request('POST', '/api/coin_withdrawals', $params);
+ }
+
+ /**
+ * List network fees
+ *
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function allNetworkFees(array $params = null)
+ {
+ return $this->request('GET', '/api/coin_withdrawals/network_fees', $params);
+ }
+
+ /**
+ * Retrieve a withdrawal
+ *
+ * @param string $coinWithdrawalId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieve(string $coinWithdrawalId, array $params = null)
+ {
+ $path = '/api/coin_withdrawals/{coin_withdrawal_id}';
+ $path = str_replace('{coin_withdrawal_id}', rawurlencode($coinWithdrawalId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Retrieve a withdrawal by custom id
+ *
+ * @param string $customId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieveByCustomId(string $customId, array $params = null)
+ {
+ $path = '/api/coin_withdrawals/custom_id/{custom_id}';
+ $path = str_replace('{custom_id}', rawurlencode($customId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+}
diff --git a/src/Api/CoinsApi.php b/src/Api/CoinsApi.php
new file mode 100644
index 0000000..02dd9b3
--- /dev/null
+++ b/src/Api/CoinsApi.php
@@ -0,0 +1,24 @@
+request('GET', '/api/coins', $params);
+ }
+}
diff --git a/src/Api/CustomersApi.php b/src/Api/CustomersApi.php
new file mode 100644
index 0000000..7227106
--- /dev/null
+++ b/src/Api/CustomersApi.php
@@ -0,0 +1,71 @@
+request('GET', '/api/customers', $params);
+ }
+
+ /**
+ * Create a customer
+ *
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function create(array $params = null)
+ {
+ return $this->request('POST', '/api/customers', $params);
+ }
+
+ /**
+ * Retrieve a customer
+ *
+ * @param string $customerId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieve(string $customerId, array $params = null)
+ {
+ $path = '/api/customers/{customer_id}';
+ $path = str_replace('{customer_id}', rawurlencode($customerId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Update a customer
+ *
+ * @param string $customerId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function update(string $customerId, array $params = null)
+ {
+ $path = '/api/customers/{customer_id}';
+ $path = str_replace('{customer_id}', rawurlencode($customerId), $path);
+
+ return $this->request('PATCH', $path, $params);
+ }
+}
diff --git a/src/Api/ExchangeTransfersApi.php b/src/Api/ExchangeTransfersApi.php
new file mode 100644
index 0000000..899c6b1
--- /dev/null
+++ b/src/Api/ExchangeTransfersApi.php
@@ -0,0 +1,58 @@
+request('POST', $path, $params);
+ }
+
+ /**
+ * Create an exchange transfer
+ *
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function create(array $params = null)
+ {
+ return $this->request('POST', '/api/exchange_transfers', $params);
+ }
+
+ /**
+ * Retrieve an exchange transfer
+ *
+ * @param string $exchangeTransferId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieve(string $exchangeTransferId, array $params = null)
+ {
+ $path = '/api/exchange_transfers/{exchange_transfer_id}';
+ $path = str_replace('{exchange_transfer_id}', rawurlencode($exchangeTransferId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+}
diff --git a/src/Api/InvoicesApi.php b/src/Api/InvoicesApi.php
new file mode 100644
index 0000000..fe747c8
--- /dev/null
+++ b/src/Api/InvoicesApi.php
@@ -0,0 +1,141 @@
+request('GET', '/api/invoices', $params);
+ }
+
+ /**
+ * Commit invoice recalculation
+ *
+ * @param string $invoiceId
+ * @param string $recalculationId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function commitRecalculation(string $invoiceId, string $recalculationId, array $params = null)
+ {
+ $path = '/api/invoices/{invoice_id}/recalculations/{recalculation_id}/commit';
+ $path = str_replace('{invoice_id}', rawurlencode($invoiceId), $path);
+ $path = str_replace('{recalculation_id}', rawurlencode($recalculationId), $path);
+
+ return $this->request('POST', $path, $params);
+ }
+
+ /**
+ * Create an invoice
+ *
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function create(array $params = null)
+ {
+ return $this->request('POST', '/api/invoices', $params);
+ }
+
+ /**
+ * Create invoice recalculation
+ *
+ * @param string $invoiceId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function createRecalculation(string $invoiceId, array $params = null)
+ {
+ $path = '/api/invoices/{invoice_id}/recalculations';
+ $path = str_replace('{invoice_id}', rawurlencode($invoiceId), $path);
+
+ return $this->request('POST', $path, $params);
+ }
+
+ /**
+ * Create invoice refund
+ *
+ * @param string $invoiceId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function createRefund(string $invoiceId, array $params = null)
+ {
+ $path = '/api/invoices/{invoice_id}/refunds';
+ $path = str_replace('{invoice_id}', rawurlencode($invoiceId), $path);
+
+ return $this->request('POST', $path, $params);
+ }
+
+ /**
+ * List invoice refunds
+ *
+ * @param string $invoiceId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function allRefunds(string $invoiceId, array $params = null)
+ {
+ $path = '/api/invoices/{invoice_id}/refunds';
+ $path = str_replace('{invoice_id}', rawurlencode($invoiceId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Retrieve an invoice
+ *
+ * @param string $invoiceId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieve(string $invoiceId, array $params = null)
+ {
+ $path = '/api/invoices/{invoice_id}';
+ $path = str_replace('{invoice_id}', rawurlencode($invoiceId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+
+ /**
+ * Retrieve an invoice by custom_id
+ *
+ * @param string $customId
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieveByCustomId(string $customId, array $params = null)
+ {
+ $path = '/api/invoices/custom_id/{custom_id}';
+ $path = str_replace('{custom_id}', rawurlencode($customId), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+}
diff --git a/src/Api/RatesApi.php b/src/Api/RatesApi.php
new file mode 100644
index 0000000..e2bfcc5
--- /dev/null
+++ b/src/Api/RatesApi.php
@@ -0,0 +1,43 @@
+request('GET', '/api/rates', $params);
+ }
+
+ /**
+ * Retrieve a pair rate
+ *
+ * @param string $baseCurrency
+ * @param string $quoteCurrency
+ * @param null|array $params
+ *
+ * @throws \Cryptopay\Exceptions\RequestException
+ * @return object
+ */
+ public function retrieve(string $baseCurrency, string $quoteCurrency, array $params = null)
+ {
+ $path = '/api/rates/{base_currency}/{quote_currency}';
+ $path = str_replace('{base_currency}', rawurlencode($baseCurrency), $path);
+ $path = str_replace('{quote_currency}', rawurlencode($quoteCurrency), $path);
+
+ return $this->request('GET', $path, $params);
+ }
+}
diff --git a/src/Api/RisksApi.php b/src/Api/RisksApi.php
new file mode 100644
index 0000000..0f8526e
--- /dev/null
+++ b/src/Api/RisksApi.php
@@ -0,0 +1,24 @@
+request('POST', '/api/risks/score', $params);
+ }
+}
diff --git a/src/Api/TransactionsApi.php b/src/Api/TransactionsApi.php
new file mode 100644
index 0000000..2236c2f
--- /dev/null
+++ b/src/Api/TransactionsApi.php
@@ -0,0 +1,24 @@
+request('GET', '/api/transactions', $params);
+ }
+}
diff --git a/src/Config/AbstractConfig.php b/src/Config/AbstractConfig.php
index f786818..2bc7a13 100644
--- a/src/Config/AbstractConfig.php
+++ b/src/Config/AbstractConfig.php
@@ -16,7 +16,7 @@ class AbstractConfig implements ConfigInterface
protected int $timeout = 10;
- protected ?string $callbackSecret;
+ protected string $callbackSecret = '';
/**
* @param string $baseUrl
diff --git a/src/Connector/AbstractConnector.php b/src/Connector/AbstractConnector.php
index cded7f0..4a108c5 100644
--- a/src/Connector/AbstractConnector.php
+++ b/src/Connector/AbstractConnector.php
@@ -11,7 +11,7 @@
use Psr\Http\Message\ResponseInterface;
use Cryptopay\Exceptions\RequestException;
-abstract class AbstractConnector implements ConnectorInteface
+abstract class AbstractConnector implements ConnectorInterface
{
protected ConfigInterface $config;
@@ -20,11 +20,11 @@ abstract class AbstractConnector implements ConnectorInteface
/**
* @param string $method
* @param string $path
- * @param array $params
+ * @param null|array $params
* @return object
* @throws RequestException
*/
- public function request(string $method, string $path, array $params = []): object
+ public function request(string $method, string $path, array $params = null): object
{
$body = $params ? json_encode($params) : '';
diff --git a/src/Connector/ConnectorInteface.php b/src/Connector/ConnectorInterface.php
similarity index 88%
rename from src/Connector/ConnectorInteface.php
rename to src/Connector/ConnectorInterface.php
index 55b91b8..c742d21 100644
--- a/src/Connector/ConnectorInteface.php
+++ b/src/Connector/ConnectorInterface.php
@@ -5,16 +5,16 @@
use Cryptopay\Exceptions\RequestException;
use Psr\Http\Message\ResponseInterface;
-interface ConnectorInteface
+interface ConnectorInterface
{
/**
* @param string $method
* @param string $path
- * @param array $params
+ * @param null|array $params
* @return object
* @throws RequestException
*/
- public function request(string $method, string $path, array $params = []): object;
+ public function request(string $method, string $path, array $params = null): object;
/**
* @param ResponseInterface $response
diff --git a/src/Cryptopay.php b/src/Cryptopay.php
index 6ef39e2..b5dc4c2 100644
--- a/src/Cryptopay.php
+++ b/src/Cryptopay.php
@@ -1,5 +1,8 @@
accountService = new AccountsService($connector);
+ $this->accounts = new AccountsApi($connector);
+ $this->channels = new ChannelsApi($connector);
+ $this->coinWithdrawals = new CoinWithdrawalsApi($connector);
+ $this->coins = new CoinsApi($connector);
+ $this->customers = new CustomersApi($connector);
+ $this->exchangeTransfers = new ExchangeTransfersApi($connector);
+ $this->invoices = new InvoicesApi($connector);
+ $this->rates = new RatesApi($connector);
+ $this->risks = new RisksApi($connector);
+ $this->transactions = new TransactionsApi($connector);
+
$this->callbackService = new CallbackService($config->getCallbackSecret());
+
+ // Deprecated services
+ $this->accountService = new AccountsService($connector);
$this->channelService = new ChannelService($connector);
$this->coinWithdrawalService = new CoinWithdrawalService($connector);
$this->invoiceService = new InvoiceService($connector);
@@ -43,6 +81,7 @@ public function __construct(ConfigInterface $config)
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\InvoicesApi}
* @param array $invoiceData
* @return object
* @throws RequestException
@@ -53,6 +92,7 @@ public function createInvoice(array $invoiceData): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\InvoicesApi}
* @param string $staringAfter
* @return object
* @throws RequestException
@@ -64,6 +104,7 @@ public function getInvoices(string $staringAfter = null): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\InvoicesApi}
* @param string $invoiceId
* @return object
* @throws RequestException
@@ -75,6 +116,7 @@ public function getInvoice(string $invoiceId): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\InvoicesApi}
* @param string $customId
* @return object
* @throws RequestException
@@ -85,6 +127,7 @@ public function getCustomInvoice(string $customId): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\ChannelsApi}
* @param array $channelData
* @return mixed
* @throws Exceptions\ChannelException
@@ -96,6 +139,7 @@ public function createChannel(array $channelData): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\ChannelsApi}
* @param string $channelId
* @param array $channelData
* @return mixed
@@ -108,6 +152,7 @@ public function updateChannel(string $channelId, array $channelData): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\ChannelsApi}
* @param string $staringAfter
* @return object
* @throws RequestException
@@ -119,6 +164,7 @@ public function getChannels(string $staringAfter = null): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\ChannelsApi}
* @param string $channelId
* @return object
* @throws RequestException
@@ -130,6 +176,7 @@ public function getChannel(string $channelId): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\ChannelsApi}
* @param string $customId
* @return object
* @throws RequestException
@@ -140,6 +187,7 @@ public function getCustomChannel(string $customId): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\ChannelsApi}
* @param string $channelId
* @return object
* @throws RequestException
@@ -151,6 +199,7 @@ public function getChannelPayments(string $channelId): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\ChannelsApi}
* @param string $channelId
* @param string $paymentId
* @return object
@@ -163,6 +212,7 @@ public function getChannelPayment(string $channelId, string $paymentId): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\CoinWithdrawalsApi}
* @param array $data
* @return object
* @throws CoinWithdrawalException
@@ -174,6 +224,7 @@ public function createCoinWithdrawal(array $data): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\CoinWithdrawalsApi}
* @param string $id
* @return object
* @throws RequestException
@@ -185,6 +236,7 @@ public function commitCoinWithdrawal(string $id): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\CoinWithdrawalsApi}
* @param string $staringAfter
* @return object
* @throws RequestException
@@ -196,6 +248,7 @@ public function getCoinWithdrawals(string $staringAfter = null): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\CoinWithdrawalsApi}
* @param string $id
* @return object
* @throws RequestException
@@ -207,6 +260,7 @@ public function getCoinWithdrawal(string $id): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\CoinWithdrawalsApi}
* @param int $customId
* @return object
* @throws RequestException
@@ -217,6 +271,7 @@ public function getCustomCoinWithdrawal(int $customId): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\TransactionsApi}
* @param array $data
* @return object
* @throws RequestException
@@ -228,6 +283,7 @@ public function getTransactions(array $data = [])
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\AccountsApi}
* @return object
* @throws RequestException
*/
@@ -237,6 +293,7 @@ public function getAccounts()
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\AccountsApi}
* @param string $accountId
* @param string|null $startingAfter
* @return object
@@ -249,6 +306,7 @@ public function getAccountTransactions(string $accountId, ?string $startingAfter
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\RisksApi}
* @param array $request
* @return object
* @throws RiskException
@@ -260,6 +318,7 @@ public function getRisks(array $request): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\RatesApi}
* @return object
* @throws RequestException
*/
@@ -269,6 +328,7 @@ public function getRates(): object
}
/**
+ * @deprecated 2.0.0 {@see \Cryptopay\Api\RatesApi}
* @param string $pair
* @return object
* @throws RequestException
diff --git a/src/Service/AbstractService.php b/src/Service/AbstractService.php
index b7a3ad5..e95a089 100644
--- a/src/Service/AbstractService.php
+++ b/src/Service/AbstractService.php
@@ -3,14 +3,14 @@
namespace Cryptopay\Service;
use Cryptopay\AbstractResponse;
-use Cryptopay\Connector\ConnectorInteface;
+use Cryptopay\Connector\ConnectorInterface;
use Cryptopay\Exceptions\UuidException;
abstract class AbstractService
{
- protected ConnectorInteface $connector;
+ protected ConnectorInterface $connector;
- public function __construct(ConnectorInteface $connector)
+ public function __construct(ConnectorInterface $connector)
{
$this->connector = $connector;
}
diff --git a/tests/Api/AccountsApiTest.php b/tests/Api/AccountsApiTest.php
new file mode 100644
index 0000000..c98ba65
--- /dev/null
+++ b/tests/Api/AccountsApiTest.php
@@ -0,0 +1,36 @@
+config);
+
+ $result = $cryptopay->accounts->all();
+
+ $this->assertNotNull($result);
+ }
+
+ public function testallTransactions()
+ {
+ VCR::insertCassette('accounts/allTransactions.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $accountId = '31804390-d44e-49e9-8698-ca781e0eb806';
+
+ $result = $cryptopay->accounts->allTransactions($accountId);
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/ChannelsApiTest.php b/tests/Api/ChannelsApiTest.php
new file mode 100644
index 0000000..fe01822
--- /dev/null
+++ b/tests/Api/ChannelsApiTest.php
@@ -0,0 +1,107 @@
+config);
+
+ $result = $cryptopay->channels->all();
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcreate()
+ {
+ VCR::insertCassette('channels/create.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $params = [
+ 'name' => 'Channel name',
+ 'pay_currency' => 'BTC',
+ 'receiver_currency' => 'EUR'
+ ];
+
+ $result = $cryptopay->channels->create($params);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testallPayments()
+ {
+ VCR::insertCassette('channels/allPayments.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+
+ $result = $cryptopay->channels->allPayments($channelId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieve()
+ {
+ VCR::insertCassette('channels/retrieve.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+
+ $result = $cryptopay->channels->retrieve($channelId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieveByCustomId()
+ {
+ VCR::insertCassette('channels/retrieveByCustomId.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $customId = 'CHANNEL-123';
+
+ $result = $cryptopay->channels->retrieveByCustomId($customId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrievePayment()
+ {
+ VCR::insertCassette('channels/retrievePayment.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+ $channelPaymentId = '704291ec-0b90-4118-89aa-0c9681c3213c';
+
+ $result = $cryptopay->channels->retrievePayment($channelId, $channelPaymentId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testupdate()
+ {
+ VCR::insertCassette('channels/update.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $channelId = '15d0bb11-1e9f-4295-bec5-abd9d5a906a1';
+ $params = ['status' => 'disabled'];
+
+ $result = $cryptopay->channels->update($channelId, $params);
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/CoinWithdrawalsApiTest.php b/tests/Api/CoinWithdrawalsApiTest.php
new file mode 100644
index 0000000..568c8fa
--- /dev/null
+++ b/tests/Api/CoinWithdrawalsApiTest.php
@@ -0,0 +1,98 @@
+config);
+
+ $result = $cryptopay->coinWithdrawals->all();
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcommit()
+ {
+ VCR::insertCassette('coinWithdrawals/commit.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $coinWithdrawal = $cryptopay->coinWithdrawals->create([
+ 'address' => '2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ',
+ 'charged_amount' => '100.0',
+ 'charged_currency' => 'EUR',
+ 'received_currency' => 'BTC',
+ 'force_commit' => false
+ ])->data;
+
+ $result = $cryptopay->coinWithdrawals->commit($coinWithdrawal->id);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcreate()
+ {
+ VCR::insertCassette('coinWithdrawals/create.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $params = [
+ 'address' => '2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ',
+ 'charged_amount' => '100.0',
+ 'charged_currency' => 'EUR',
+ 'received_currency' => 'BTC',
+ 'force_commit' => true
+ ];
+
+ $result = $cryptopay->coinWithdrawals->create($params);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testallNetworkFees()
+ {
+ VCR::insertCassette('coinWithdrawals/allNetworkFees.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $result = $cryptopay->coinWithdrawals->allNetworkFees();
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieve()
+ {
+ VCR::insertCassette('coinWithdrawals/retrieve.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $coinWithdrawalId = '3cf9d1c4-6191-4826-8cae-2c717810c7e9';
+
+ $result = $cryptopay->coinWithdrawals->retrieve($coinWithdrawalId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieveByCustomId()
+ {
+ VCR::insertCassette('coinWithdrawals/retrieveByCustomId.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $customId = 'PAYMENT-123';
+
+ $result = $cryptopay->coinWithdrawals->retrieveByCustomId($customId);
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/CoinsApiTest.php b/tests/Api/CoinsApiTest.php
new file mode 100644
index 0000000..f284fa9
--- /dev/null
+++ b/tests/Api/CoinsApiTest.php
@@ -0,0 +1,23 @@
+config);
+
+ $result = $cryptopay->coins->all();
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/CustomersApiTest.php b/tests/Api/CustomersApiTest.php
new file mode 100644
index 0000000..1cf77fa
--- /dev/null
+++ b/tests/Api/CustomersApiTest.php
@@ -0,0 +1,74 @@
+config);
+
+ $result = $cryptopay->customers->all();
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcreate()
+ {
+ VCR::insertCassette('customers/create.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $params = [
+ 'id' => '56c8cb4112bc7df178ae804fa75f712b',
+ 'currency' => 'EUR'
+ ];
+
+ $result = $cryptopay->customers->create($params);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieve()
+ {
+ VCR::insertCassette('customers/retrieve.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $customerId = "CUSTOMER-123";
+
+ $result = $cryptopay->customers->retrieve($customerId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testupdate()
+ {
+ VCR::insertCassette('customers/update.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $customerId = 'CUSTOMER-123';
+ $params = [
+ 'addresses' => [
+ [
+ 'address' => '2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ',
+ 'currency' => 'BTC',
+ 'network' => 'bitcoin'
+ ]
+ ]
+ ];
+
+ $result = $cryptopay->customers->update($customerId, $params);
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/ExchangeTransfersApiTest.php b/tests/Api/ExchangeTransfersApiTest.php
new file mode 100644
index 0000000..2f9fc55
--- /dev/null
+++ b/tests/Api/ExchangeTransfersApiTest.php
@@ -0,0 +1,63 @@
+config);
+
+ $exchangeTransfer = $cryptopay->exchangeTransfers->create([
+ 'charged_currency' => 'EUR',
+ 'charged_amount' => '100.0',
+ 'received_currency' => 'BTC',
+ 'received_amount' => null,
+ 'force_commit' => false
+ ])->data;
+
+ $result = $cryptopay->exchangeTransfers->commit($exchangeTransfer->id);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcreate()
+ {
+ VCR::insertCassette('exchangeTransfers/create.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $params = [
+ 'charged_currency' => 'EUR',
+ 'charged_amount' => '100.0',
+ 'received_currency' => 'BTC',
+ 'received_amount' => null,
+ 'force_commit' => true
+ ];
+
+ $result = $cryptopay->exchangeTransfers->create($params);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieve()
+ {
+ VCR::insertCassette('exchangeTransfers/retrieve.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $exchangeTransferId = '2c090f99-7cc1-40da-9bca-7caa57b4ebfb';
+
+ $result = $cryptopay->exchangeTransfers->retrieve($exchangeTransferId);
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/InvoicesApiTest.php b/tests/Api/InvoicesApiTest.php
new file mode 100644
index 0000000..1954a0c
--- /dev/null
+++ b/tests/Api/InvoicesApiTest.php
@@ -0,0 +1,121 @@
+config);
+
+ $result = $cryptopay->invoices->all();
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcommitRecalculation()
+ {
+ VCR::insertCassette('invoices/commitRecalculation.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $invoiceId = '8dd53e0f-0725-48b4-b0a7-1840aa67b5bb';
+ $recalculation = $cryptopay->invoices->createRecalculation($invoiceId)->data;
+
+ $result = $cryptopay->invoices->commitRecalculation($invoiceId, $recalculation->id);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcreate()
+ {
+ VCR::insertCassette('invoices/create.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $params = [
+ 'price_amount' => '100.0',
+ 'price_currency' => 'EUR',
+ 'pay_currency' => 'BTC'
+ ];
+
+ $result = $cryptopay->invoices->create($params);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcreateRecalculation()
+ {
+ VCR::insertCassette('invoices/createRecalculation.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $invoiceId = '29a563ad-b417-445c-b8f6-b6c806bb039b';
+ $params = ['force_commit' => true];
+
+ $result = $cryptopay->invoices->createRecalculation($invoiceId, $params);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testcreateRefund()
+ {
+ VCR::insertCassette('invoices/createRefund.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $invoiceId = '331646a6-c8b5-430d-adfb-021d11ff6cd0';
+ $params = ['address' => '0xf3532c1fd002665ec54d46a50787e0c69c76cd44'];
+
+ $result = $cryptopay->invoices->createRefund($invoiceId, $params);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testallRefunds()
+ {
+ VCR::insertCassette('invoices/allRefunds.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $invoiceId = '7e274430-e20f-4321-8748-20824287ae44';
+
+ $result = $cryptopay->invoices->allRefunds($invoiceId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieve()
+ {
+ VCR::insertCassette('invoices/retrieve.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $invoiceId = 'c8233d57-78c8-4c36-b35e-940ae9067c78';
+
+ $result = $cryptopay->invoices->retrieve($invoiceId);
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieveByCustomId()
+ {
+ VCR::insertCassette('invoices/retrieveByCustomId.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $customId = 'PAYMENT-123';
+
+ $result = $cryptopay->invoices->retrieveByCustomId($customId);
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/RatesApiTest.php b/tests/Api/RatesApiTest.php
new file mode 100644
index 0000000..0dba204
--- /dev/null
+++ b/tests/Api/RatesApiTest.php
@@ -0,0 +1,34 @@
+config);
+
+ $result = $cryptopay->rates->all();
+
+ $this->assertNotNull($result);
+ }
+
+ public function testretrieve()
+ {
+ VCR::insertCassette('rates/retrieve.yml');
+
+ $cryptopay = new Cryptopay($this->config);
+
+ $result = $cryptopay->rates->retrieve('BTC', 'EUR');
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/RisksApiTest.php b/tests/Api/RisksApiTest.php
new file mode 100644
index 0000000..daeeb60
--- /dev/null
+++ b/tests/Api/RisksApiTest.php
@@ -0,0 +1,29 @@
+config);
+
+ $params = [
+ 'address' => '2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ',
+ 'currency' => 'BTC',
+ 'type' => 'source_of_funds'
+ ];
+
+ $result = $cryptopay->risks->score($params);
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/Api/TransactionsApiTest.php b/tests/Api/TransactionsApiTest.php
new file mode 100644
index 0000000..8ad2210
--- /dev/null
+++ b/tests/Api/TransactionsApiTest.php
@@ -0,0 +1,23 @@
+config);
+
+ $result = $cryptopay->transactions->all();
+
+ $this->assertNotNull($result);
+ }
+}
diff --git a/tests/ApiTest.php b/tests/ApiTest.php
new file mode 100644
index 0000000..8da03b8
--- /dev/null
+++ b/tests/ApiTest.php
@@ -0,0 +1,35 @@
+isVCRSupported()) {
+ VCR::configure()
+ ->setCassettePath('tests/cassettes')
+ ->enableLibraryHooks(['curl'])
+ ->enableRequestMatchers(['method', 'url', 'query_string', 'body'])
+ ->setMode('once');
+ VCR::turnOn();
+ }
+
+ parent::__construct($name, $data, $dataName);
+ }
+
+ protected function setUp(): void
+ {
+ if (!$this->isVCRSupported()) {
+ $this->markTestSkipped('VCR tests are not supported for this PHP version');
+ }
+ }
+
+ // https://github.com/php-vcr/php-vcr/issues/373
+ private function isVCRSupported(): bool
+ {
+ return version_compare(PHP_VERSION, '8.2.0', '<');
+ }
+}
diff --git a/tests/BaseTest.php b/tests/BaseTest.php
index 04eb229..87d03ff 100644
--- a/tests/BaseTest.php
+++ b/tests/BaseTest.php
@@ -13,8 +13,6 @@
abstract class BaseTest extends TestCase
{
- private string $apiKey = '';
- private string $apiSecret = '';
private string $baseUrl = 'https://business-sandbox.cryptopay.me';
private int $timeout = 10;
@@ -25,8 +23,8 @@ abstract class BaseTest extends TestCase
public function __construct(?string $name = null, array $data = [], $dataName = '')
{
$this->config = (new Config())
- ->withApiKey($this->apiKey)
- ->withApiSecret($this->apiSecret)
+ ->withApiKey(getenv('CRYPTOPAY_API_KEY'))
+ ->withApiSecret(getenv('CRYPTOPAY_API_SECRET'))
->withBaseUrl($this->baseUrl)
->withTimeout($this->timeout);
diff --git a/tests/cassettes/accounts/all.yml b/tests/cassettes/accounts/all.yml
new file mode 100644
index 0000000..6d17c27
--- /dev/null
+++ b/tests/cassettes/accounts/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/accounts'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 11:06:54 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:140jf/FIiyDnhHkL1pBoF43J0Lw='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 11:06:54 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e50946c18ca9d34-DME
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"31b457fb-5ae2-4937-af4d-9f5793dec795","balance":"0.0","currency":"UAH","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"2b140928-9082-4928-add2-704c38a68eb5","balance":"0.0","currency":"DOGE","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"37c205d0-4cee-4660-bcf0-ce14d4f4ab56","balance":"0.0","currency":"TRX","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"abd956a3-a922-4245-a89c-a0d43aa03d84","balance":"0.0","currency":"SOL","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"67744d2e-fc69-4b61-9d25-6f851a72dd78","balance":"0.0","currency":"SHIB","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"bd6fb8da-c06b-4bd5-9a3f-f3d3988ee57f","balance":"0.0","currency":"BUSD","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"a4fe3930-260a-46f4-a544-e8b5fd343996","balance":"0.0","currency":"BNB","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"b048402c-6334-4cbe-b794-458c7ad147a9","balance":"0.0","currency":"ADA","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"3af0488d-59ba-41f2-99e0-474736e1d65a","balance":"2339.5837963","currency":"XLM","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"7ba4f479-9bd5-4615-9503-6ffcfaab7ed1","balance":"0.0","currency":"USDC","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"aabfb17b-2e88-4576-900f-fb2bf75b6f40","balance":"100.0","currency":"DAI","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"cfc56990-121b-4908-8c77-7250cd29a1ff","balance":"0.0","currency":"RUB","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"85eb3f0a-bf2c-4527-b54e-8a30897bea8f","balance":"116.431002","currency":"USDT","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"e98d0424-8b37-48ca-ac07-6552eb7fe5e9","balance":"0.0","currency":"TRY","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"9ecdbae0-e756-4e7f-99f3-13b7339041f1","balance":"3.1","currency":"BCH","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"4eaf42f0-8fce-42b1-9fad-0f48d243e20f","balance":"5428660.0","currency":"JPY","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"6bb10af3-de19-44ad-872d-6dd333df0359","balance":"10000.0","currency":"CNY","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"e1a24f9c-382f-494d-87cc-47707682b83a","balance":"4099.52","currency":"USD","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"31804390-d44e-49e9-8698-ca781e0eb806","balance":"8119.4","currency":"EUR","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"2d52b969-b8de-4a4e-9941-8f5cc9002279","balance":"0.0","currency":"GBP","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"551a50ae-b71d-4442-b786-0205a0927fd6","balance":"10.39743866","currency":"ETH","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"13d71aeb-400c-478b-87f5-f9c12e934984","balance":"145.851873","currency":"XRP","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"5ae8bd09-376a-4222-885b-a33b06501cad","balance":"0.59119371","currency":"LTC","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"},{"id":"56bc90b6-cd46-422e-8b72-73eda0886d9e","balance":"0.0","currency":"BTC","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006"}],"meta":{"total":24,"has_more":false}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/accounts'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 237
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.282132
+ namelookup_time: 0.043638
+ connect_time: 0.06363
+ pretransfer_time: 0.123471
+ size_upload: 0.0
+ size_download: 3253.0
+ speed_download: 11535.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.282067
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 188.114.99.234
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 44898
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 123421
+ connect_time_us: 63630
+ namelookup_time_us: 43638
+ pretransfer_time_us: 123471
+ redirect_time_us: 0
+ starttransfer_time_us: 282067
+ total_time_us: 282132
+ index: 0
diff --git a/tests/cassettes/accounts/allTransactions.yml b/tests/cassettes/accounts/allTransactions.yml
new file mode 100644
index 0000000..e8f2c2a
--- /dev/null
+++ b/tests/cassettes/accounts/allTransactions.yml
@@ -0,0 +1,71 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/accounts/31804390-d44e-49e9-8698-ca781e0eb806/transactions'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 11:02:58 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:0RJq0cStSZKWZxDV/YzWlbmHxaA='
+ Accept: ''
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 11:02:58 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e508ea63fae16bf-DME
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"61447653-0e3e-48ca-bbd5-864ff9feff36","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8119.4","fee":"1.0","fee_currency":"EUR","reference_id":"db5f552c-7c0a-4761-8d05-1332440a23ae","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-07-11T09:08:11+00:00"},{"id":"5633bf6d-0e51-42ac-ae6e-8bacf5c76150","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8219.4","fee":"1.0","fee_currency":"EUR","reference_id":"009aae9d-5c64-4d98-ac86-1ad782c24459","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-07-11T09:08:10+00:00"},{"id":"930f4c0e-4ea8-4856-a216-c2f7bc7470a1","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8319.4","fee":"1.0","fee_currency":"EUR","reference_id":"b2ae4a34-e605-488e-85c1-fe88b4b1fc43","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-07-11T09:07:49+00:00"},{"id":"3eb9c018-a1f0-4293-b036-b50fa6d3c7ef","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8419.4","fee":"1.0","fee_currency":"EUR","reference_id":"ecf06edd-78ad-48d6-b74c-efe07f71bea7","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-07-11T09:07:31+00:00"},{"id":"21ce564b-3e38-43bf-91ff-c5e4e0a17792","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8519.4","fee":"1.0","fee_currency":"EUR","reference_id":"48290146-a902-49a1-bc4d-562c7d3021c3","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-07-11T09:07:12+00:00"},{"id":"6bb1015d-ef84-4afe-af67-499634f6e02d","custom_id":null,"customer_id":null,"amount":"0.0","currency":"EUR","balance":"8619.4","fee":"0.0","fee_currency":"EUR","reference_id":"9ae0624b-8c64-49c8-a388-76ecdb9979fc","reference_type":"ChannelPayment","description":null,"status":"on_hold","status_context":"channel_disabled","risk":null,"created_at":"2023-07-11T09:01:26+00:00"},{"id":"0310f07d-0577-4559-933a-90a1d39069d7","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8619.4","fee":"1.0","fee_currency":"EUR","reference_id":"4e79ee49-f3dd-4941-a6cc-ed0d86087cff","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-11T08:57:57+00:00"},{"id":"401b8f05-d61f-4be6-b8bb-2dd92214287a","custom_id":null,"customer_id":null,"amount":"0.0","currency":"EUR","balance":"8619.4","fee":"0.0","fee_currency":"EUR","reference_id":"1f87483d-8dbc-4052-9066-ac6543047f8b","reference_type":"ChannelPayment","description":null,"status":"on_hold","status_context":"channel_disabled","risk":null,"created_at":"2023-07-11T08:56:30+00:00"},{"id":"be24e8b1-fdf1-4331-a5ae-f92ed11ecd87","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8619.4","fee":"1.0","fee_currency":"EUR","reference_id":"86a94c44-2b0e-40d1-b40e-c5818b303e09","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:55:53+00:00"},{"id":"b68b74c3-f4ca-4e1a-a44e-935112c80d9c","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8719.4","fee":"1.0","fee_currency":"EUR","reference_id":"06a54ccb-889f-4c1f-8a59-086a84a1e2dd","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:55:53+00:00"},{"id":"58892385-6b25-4b02-9188-0f350a7a8b3f","custom_id":null,"customer_id":null,"amount":"-10.0","currency":"EUR","balance":"8819.4","fee":"0.1","fee_currency":"EUR","reference_id":"165b5234-7695-4f3c-acf0-94cb1f2f5973","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:41:52+00:00"},{"id":"bef5de85-7ee1-4f7a-a62e-22b24d7b1e42","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8829.4","fee":"0.5","fee_currency":"EUR","reference_id":"331646a6-c8b5-430d-adfb-021d11ff6cd0","reference_type":"Invoice","description":null,"status":"refunded","status_context":null,"risk":null,"created_at":"2023-07-11T08:41:50+00:00"},{"id":"7b9b5478-ba01-4978-a47c-fb9e942bf414","custom_id":null,"customer_id":null,"amount":"-10.0","currency":"EUR","balance":"8829.4","fee":"0.1","fee_currency":"EUR","reference_id":"31eb604a-4039-4dd6-8df2-1c1c7fb002fb","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:40:50+00:00"},{"id":"c071ba6f-a6fd-4d38-ae3e-241f6238b01a","custom_id":null,"customer_id":null,"amount":"9.07","currency":"EUR","balance":"8839.4","fee":"0.1","fee_currency":"EUR","reference_id":"8dd53e0f-0725-48b4-b0a7-1840aa67b5bb","reference_type":"Invoice","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:40:47+00:00"},{"id":"fbd9a04b-639e-4169-9a51-dfca37a0ad3a","custom_id":null,"customer_id":null,"amount":"-10.0","currency":"EUR","balance":"8830.33","fee":"0.1","fee_currency":"EUR","reference_id":"64b622a6-522c-4636-ae3a-e7805982288e","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:38:09+00:00"},{"id":"100e399d-ea73-4c9d-ae71-4e1e6b39b000","custom_id":null,"customer_id":null,"amount":"9.07","currency":"EUR","balance":"8840.33","fee":"0.1","fee_currency":"EUR","reference_id":"29a563ad-b417-445c-b8f6-b6c806bb039b","reference_type":"Invoice","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:37:32+00:00"},{"id":"ee8ea16a-14ba-4fe9-9848-7f41708ba497","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"c9e75e23-8664-4f26-9098-3c304c7b6e31","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T10:15:08+00:00"},{"id":"301ab069-62e7-4c51-a270-ec56256b52c8","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"8b7cecef-e220-4619-b95e-47caea862c8f","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T09:08:10+00:00"},{"id":"27361825-4757-4bce-a38a-feaeaf9c360e","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"46c48574-66e3-4838-8ab4-99a3d0f0a368","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T09:07:20+00:00"},{"id":"05809f17-a849-46b3-9fc0-08322f80f195","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"03ff86bb-4da0-4950-954f-5b7a2ee75298","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:21:36+00:00"},{"id":"48518e6f-9762-409b-91cb-33385f5d3821","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"f5959728-2eab-439c-9c1a-a1b8d2cc5712","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:20:16+00:00"},{"id":"67ade6e5-3aae-46f5-8f91-248a68e506d9","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"40b271ac-085a-4714-8c8b-48fcaea1cd57","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:19:55+00:00"},{"id":"5524b339-81c3-420c-a6b7-81f409559a12","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"cbc1b67e-becd-4b1b-b55d-60d64f8d5bcd","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:19:42+00:00"},{"id":"1c793abc-60e3-4bc7-b68e-201eca13ad76","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"45e3db3a-c823-40a4-9cd5-05a292b2282d","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:43:32+00:00"},{"id":"a42f9e1c-5a16-4751-86fd-612736135abb","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"5c916a9a-f26c-417f-b067-f4b36821076b","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:43:27+00:00"},{"id":"5956391d-a77e-43cf-b495-a0f4b533c9e1","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"bd1837e4-22dd-4017-8b1d-27e49ebd6193","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:33:44+00:00"},{"id":"6e7f3698-b19f-4e47-ac70-a4945eb7758f","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"8da1e0f0-e08f-4250-bb8c-e04a5b29eeba","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:32:33+00:00"},{"id":"ab5f7aac-e460-47bb-a460-9427139b4d86","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"cb2a09b5-4667-4eb2-aacd-6fac008551cd","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:30:32+00:00"},{"id":"a8c6ff6b-914e-4033-8aaf-c01de05b4c50","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"209f350a-591f-44e7-9eb5-e9b4f1974996","reference_type":"Invoice","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-06T10:28:05+00:00"},{"id":"510869cb-860b-4cc2-9512-62c5227c3e1c","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"a581ec0e-a426-4a4e-9767-fa09e4cfb88e","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:11:45+00:00"},{"id":"6bdeb0f9-c7ba-437a-8612-bb719a856db9","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"54801abb-88cb-4e4f-9c27-6b147fd443fd","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-06-22T14:43:59+00:00"},{"id":"6c1dec38-b1bf-4fb5-990c-1c16dfc2874c","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"ffc68d65-5012-48e9-8ea7-7cc8fc7ee9f5","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-06-22T14:43:41+00:00"},{"id":"27f08f82-ef8c-435f-8b01-c1af2a6c04db","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"41e094fa-9671-49b2-8f4e-75aab15674d0","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-06-05T18:36:45+00:00"},{"id":"10bcebaa-f2db-435e-a37b-f18b576c99cb","custom_id":null,"customer_id":null,"amount":"-56.05","currency":"EUR","balance":"8781.76","fee":"0.57","fee_currency":"EUR","reference_id":"b4261912-d8ae-4d77-b595-833ac4a9e359","reference_type":"CoinWithdrawal","description":null,"status":"on_hold","status_context":null,"risk":null,"created_at":"2023-05-24T16:16:46+00:00"},{"id":"773b825e-492d-4f88-94bf-60b4a2c0a01b","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8837.81","fee":"0.5","fee_currency":"EUR","reference_id":"aef56529-39f1-4b31-9662-b7005784ca48","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-24T16:16:42+00:00"},{"id":"2d573cc9-e352-4090-8297-d25fe0f205bf","custom_id":null,"customer_id":null,"amount":"19.8","currency":"EUR","balance":"8837.81","fee":"0.2","fee_currency":"EUR","reference_id":"b80940cb-f586-4412-82ab-703d37a6c1b0","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-24T16:16:32+00:00"},{"id":"d99f100a-d1ec-4b5f-84a6-63fce0dd3b4e","custom_id":null,"customer_id":null,"amount":"2342.23","currency":"EUR","balance":"8837.81","fee":"23.66","fee_currency":"EUR","reference_id":"8e69abcf-9065-4ac3-a998-bfde90d5b59d","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-16T11:53:38+00:00"},{"id":"bccb6f7f-fde6-4a0f-9043-770f2079e6b5","custom_id":null,"customer_id":null,"amount":"23.24","currency":"EUR","balance":"8837.81","fee":"0.24","fee_currency":"EUR","reference_id":"d1fa210c-8eb9-4649-9f3c-ac372e83dc0c","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-16T11:52:52+00:00"},{"id":"0e8e0be7-87fc-4c2c-84d1-8cc574ad6443","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8837.81","fee":"1.0","fee_currency":"EUR","reference_id":"70b79b0c-7c94-413d-8364-e0103fd58bca","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-04-20T09:58:57+00:00"},{"id":"5320bfae-ba79-4c1f-aa67-d1590466a51d","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8837.81","fee":"1.0","fee_currency":"EUR","reference_id":"d3872cfe-4fc3-4012-942e-43178684a129","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-04-14T08:38:39+00:00"},{"id":"f9fe752a-c298-402a-9f48-e9af21b83cc2","custom_id":null,"customer_id":null,"amount":"9.9","currency":"EUR","balance":"8837.81","fee":"0.1","fee_currency":"EUR","reference_id":"4f19aee9-b211-475b-bdda-c2bb44946869","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-03-17T13:57:09+00:00"},{"id":"497c4a33-102d-4d4b-a47f-f0fa88f47c73","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8837.81","fee":"1.0","fee_currency":"EUR","reference_id":"00635f8b-bde8-4fa1-97b3-53ae2958a877","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-03-10T12:17:36+00:00"},{"id":"8bcf7008-5d50-4532-b08f-945857bc320f","custom_id":null,"customer_id":null,"amount":"-200.0","currency":"EUR","balance":"8837.81","fee":"2.0","fee_currency":"EUR","reference_id":"12966217-7507-4f3c-832b-517487a52495","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-03-08T07:19:47+00:00"},{"id":"dced288f-51e8-4ae0-9905-0080793fbbc9","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"9037.81","fee":"1.0","fee_currency":"EUR","reference_id":"fa31b05b-9b16-4ead-bd12-0827e08568fe","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-03-02T10:54:23+00:00"},{"id":"3145538c-47d8-42a8-aa08-62eacfecc84c","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"9037.81","fee":"1.0","fee_currency":"EUR","reference_id":"25a827fd-0dc3-43fd-9bba-f9bb5f31f66a","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-03-02T10:53:44+00:00"},{"id":"ac70f9e2-4f73-41a8-aad9-151cc043cb44","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"9037.81","fee":"1.0","fee_currency":"EUR","reference_id":"2b33d5d7-7dc3-458e-8626-1a241ece4d40","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-02-23T02:32:21+00:00"},{"id":"7ef5d239-b903-4484-a06a-94a6f6c554b6","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"9037.81","fee":"1.0","fee_currency":"EUR","reference_id":"5cf50ed0-5e89-41c1-b5f0-e9f716a09851","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-02-16T10:18:06+00:00"},{"id":"4aaa37e0-a2ef-4f53-be9e-e517aa3f8ca6","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"9037.81","fee":"1.0","fee_currency":"EUR","reference_id":"af341b60-ec2c-449a-ba9a-b64a1bbc6081","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-02-16T10:06:35+00:00"},{"id":"ae3b7a35-ae69-4901-b204-e99d5c1dd2f5","custom_id":null,"customer_id":null,"amount":"990.0","currency":"EUR","balance":"9037.81","fee":"10.0","fee_currency":"EUR","reference_id":"97447c3a-0279-49c0-bce9-3421378d3c02","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-02-09T14:09:16+00:00"},{"id":"4d301a32-e9d9-40fa-b66f-53a7debef13e","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"9037.81","fee":"1.0","fee_currency":"EUR","reference_id":"d0b0062a-ded6-457c-97f0-fe5ed03209b2","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-02-09T12:10:42+00:00"}],"meta":{"total":926,"has_more":true}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/accounts/31804390-d44e-49e9-8698-ca781e0eb806/transactions'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 287
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.251357
+ namelookup_time: 0.006467
+ connect_time: 0.027601
+ pretransfer_time: 0.085783
+ size_upload: 0.0
+ size_download: 18266.0
+ speed_download: 72772.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.248162
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 188.114.98.234
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60990
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 85738
+ connect_time_us: 27601
+ namelookup_time_us: 6467
+ pretransfer_time_us: 85783
+ redirect_time_us: 0
+ starttransfer_time_us: 248162
+ total_time_us: 251357
diff --git a/tests/cassettes/channels/all.yml b/tests/cassettes/channels/all.yml
new file mode 100644
index 0000000..f12a73f
--- /dev/null
+++ b/tests/cassettes/channels/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/channels'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:02:56 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:JYxKgbIi8KLpTHf/7+MfjRVFuys='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:02:56 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fded538750b7c-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"5930ec9b-df73-4b20-b776-29cd3451e790","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"USDT","address":"0x0c3e84c181fe35f1df1fe41300f650fb07895197","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0x0c3e84c181fe35f1df1fe41300f650fb07895197","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/5930ec9b-df73-4b20-b776-29cd3451e790"},{"id":"1bc5830f-2f2f-47ad-931a-f5a757e76faa","status":"enabled","name":"Channel name","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N5BHwYvYx2jQu16CnY5cdgsmvduFrfB2Pg","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2N5BHwYvYx2jQu16CnY5cdgsmvduFrfB2Pg","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/1bc5830f-2f2f-47ad-931a-f5a757e76faa"},{"id":"9e091d04-dbf8-46a5-a8ad-f6c3da54548b","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"XRP","address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=4185706124","network":"ripple","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ripple:rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=4185706124","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/9e091d04-dbf8-46a5-a8ad-f6c3da54548b"},{"id":"b6b5c621-3305-478e-b510-1b73f9f7becb","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"XRP","address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=1562880701","network":"ripple","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ripple:rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=1562880701","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/b6b5c621-3305-478e-b510-1b73f9f7becb"},{"id":"5889291b-1f16-42f2-be9a-d1f57500e40a","status":"disabled","name":"channel-1-modified","description":"This is a simple channel","receiver_currency":"BTC","pay_currency":"ETH","address":"0x30639272137ad1bd4db3dff3fda842230597c637","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"vW2ICk1OrqRSOXkx","customer_id":null,"uri":"ethereum:0x30639272137ad1bd4db3dff3fda842230597c637@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/5889291b-1f16-42f2-be9a-d1f57500e40a"},{"id":"1a780375-7c80-4772-be7a-e9aa461fa881","status":"disabled","name":"channel-1-modified","description":"This is a simple channel","receiver_currency":"BTC","pay_currency":"ETH","address":"0x412137ae7cbaf8574fe9fb35d184bfea76422ce0","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"0YQm4zmg32yZEuRT","customer_id":null,"uri":"ethereum:0x412137ae7cbaf8574fe9fb35d184bfea76422ce0@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/1a780375-7c80-4772-be7a-e9aa461fa881"},{"id":"afc1ab16-d065-4658-828e-22255ef96dd7","status":"disabled","name":"channel-1-modified","description":"This is a simple channel","receiver_currency":"BTC","pay_currency":"ETH","address":"0x1e1229b18e478492a6872d85ecb1f6146cb02fc1","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"n5fzkClSOdZpPsrV","customer_id":null,"uri":"ethereum:0x1e1229b18e478492a6872d85ecb1f6146cb02fc1@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/afc1ab16-d065-4658-828e-22255ef96dd7"},{"id":"2814eb16-b955-40ba-815b-6b684b10f2d9","status":"disabled","name":"channel-1-modified","description":"This is a simple channel","receiver_currency":"BTC","pay_currency":"ETH","address":"0x2b2fb1ee9e46b76b38dd98c54eeb00dd0825677d","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"SlCmTSlfa684Wiea","customer_id":null,"uri":"ethereum:0x2b2fb1ee9e46b76b38dd98c54eeb00dd0825677d@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/2814eb16-b955-40ba-815b-6b684b10f2d9"},{"id":"28f8f90a-0c46-4696-b184-4cc874a28ecb","status":"disabled","name":"channel-1-modified","description":"This is a simple channel","receiver_currency":"BTC","pay_currency":"ETH","address":"0xc0525220eabafdb51a54faaecd3bf7de9e4916d9","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"pjt3wSiqwVX5tWuH","customer_id":null,"uri":"ethereum:0xc0525220eabafdb51a54faaecd3bf7de9e4916d9@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/28f8f90a-0c46-4696-b184-4cc874a28ecb"},{"id":"c6030ffc-1f6e-4485-90e8-8634ec82149b","status":"disabled","name":"channel-1-modified","description":"This is a simple channel","receiver_currency":"BTC","pay_currency":"ETH","address":"0x2f6ceaf77697ddf702d5620375e6ca9316370440","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"fKN8dGbSux1SHQ5j","customer_id":null,"uri":"ethereum:0x2f6ceaf77697ddf702d5620375e6ca9316370440@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/c6030ffc-1f6e-4485-90e8-8634ec82149b"},{"id":"35477d21-efca-4a0f-96d4-09f18b5006f7","status":"enabled","name":"User 3763649","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"tb1qaysss4a4xesrk5v24yyc0r3pvvq2lr3q8vyf05prl48q0xqd32rq2aq5vt","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"123","customer_id":null,"uri":"bitcoin:tb1qaysss4a4xesrk5v24yyc0r3pvvq2lr3q8vyf05prl48q0xqd32rq2aq5vt","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/35477d21-efca-4a0f-96d4-09f18b5006f7"},{"id":"9d9fe5a1-f2d7-4dde-ac06-aaa0579626ec","status":"enabled","name":"User 3763649","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"tb1ql6k0jew8g56sk3vuvhz7h55dlrl3z5cd7dhxq003nq3qacrdqecqhqlygz","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"123456789qwertyx2","customer_id":null,"uri":"bitcoin:tb1ql6k0jew8g56sk3vuvhz7h55dlrl3z5cd7dhxq003nq3qacrdqecqhqlygz","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/9d9fe5a1-f2d7-4dde-ac06-aaa0579626ec"},{"id":"298b9604-bcb8-4d4f-abca-c994d69b3cd8","status":"enabled","name":"User 3763649","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2MzpHxuRH3vQemfjggzcWT9kRDN6S2pgTqu","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"123456789qwertyx1","customer_id":null,"uri":"bitcoin:2MzpHxuRH3vQemfjggzcWT9kRDN6S2pgTqu","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/298b9604-bcb8-4d4f-abca-c994d69b3cd8"},{"id":"7c168eaf-17e5-445b-a0f8-bd3aca744620","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2NEWL2EnPDWdWjw2iAApjKcbbELDhrK4PJa","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"123456789qwertyx","customer_id":null,"uri":"bitcoin:2NEWL2EnPDWdWjw2iAApjKcbbELDhrK4PJa","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/7c168eaf-17e5-445b-a0f8-bd3aca744620"},{"id":"9be2c199-e588-429b-b7ca-a484b2e97da0","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"tb1q9l2ru0tqjfa5qfuvptg69gwvqfnzmumf8nlj248zcxs4vk5cnzxqa6flhk","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:tb1q9l2ru0tqjfa5qfuvptg69gwvqfnzmumf8nlj248zcxs4vk5cnzxqa6flhk","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/9be2c199-e588-429b-b7ca-a484b2e97da0"},{"id":"0ec10193-19dc-4aec-98c7-050ea3c96db9","status":"enabled","name":"Channel name","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2NC4ymtetv3Ls8ZHoeNditLUeVcTXi1w6dM","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2NC4ymtetv3Ls8ZHoeNditLUeVcTXi1w6dM","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/0ec10193-19dc-4aec-98c7-050ea3c96db9"},{"id":"350aa936-63f1-4590-ba4a-cb7a43cb696e","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"CHANNEL-123","customer_id":null,"uri":"bitcoin:2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/350aa936-63f1-4590-ba4a-cb7a43cb696e"},{"id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","status":"disabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1"},{"id":"096b0350-8499-4537-b585-346f6a8c8e6e","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"ETH","address":"0x7d00c40f923f1cdb99a5a8e692db8a8804e06715","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ethereum:0x7d00c40f923f1cdb99a5a8e692db8a8804e06715@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/096b0350-8499-4537-b585-346f6a8c8e6e"},{"id":"bb5152b3-6489-4077-81d2-e8a91a926281","status":"enabled","name":"whatever","description":"whatever","receiver_currency":"BTC","pay_currency":"BTC","address":"2N6aZhFp4tWni1c66g1tP8WAVjNMKAigcTh","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"fc28c4231a49c3fa2af2956d9064e569","customer_id":null,"uri":"bitcoin:2N6aZhFp4tWni1c66g1tP8WAVjNMKAigcTh","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/bb5152b3-6489-4077-81d2-e8a91a926281"},{"id":"781c6e27-44b6-4751-96d7-2f3aa5578c3b","status":"enabled","name":"whatever","description":"whatever","receiver_currency":"BTC","pay_currency":"BTC","address":"2Mu6jGVPAFt5ohZF5kFVv6gzsS8KDirZynp","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"cc3b7057ad46a891e690f303533d97af","customer_id":null,"uri":"bitcoin:2Mu6jGVPAFt5ohZF5kFVv6gzsS8KDirZynp","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/781c6e27-44b6-4751-96d7-2f3aa5578c3b"},{"id":"6ffc1519-4f48-4f00-b865-0aea5335aa84","status":"enabled","name":"Music & Computers","description":"Quibusdam eaque omnis qui.","receiver_currency":"USD","pay_currency":"USDT","address":"0x69af682f3b063100419db0edca52df603d231467","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0x69af682f3b063100419db0edca52df603d231467","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/6ffc1519-4f48-4f00-b865-0aea5335aa84"},{"id":"cac7c75b-eeb7-467d-89a8-bca43b258101","status":"enabled","name":"0","description":null,"receiver_currency":"USD","pay_currency":"USDT","address":"0xad08af95489a23e273c06fab30714a81acca8c7c","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0xad08af95489a23e273c06fab30714a81acca8c7c","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/cac7c75b-eeb7-467d-89a8-bca43b258101"},{"id":"b5d7e762-26ee-4d48-b111-f5a6ea16551b","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"ETH","address":"0x106c51fc398ba2430bdc1312f3a3b3ccf0708a50","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ethereum:0x106c51fc398ba2430bdc1312f3a3b3ccf0708a50@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/b5d7e762-26ee-4d48-b111-f5a6ea16551b"},{"id":"3644c9cf-0f7a-47c3-b26d-8a0f911ce9fe","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"ETH","address":"0x02f8a6fba75a080d66a32ac5d23875d74788db66","network":"ethereum","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ethereum:0x02f8a6fba75a080d66a32ac5d23875d74788db66@5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/3644c9cf-0f7a-47c3-b26d-8a0f911ce9fe"},{"id":"39bb413c-40cc-4c08-9326-d64c03208030","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2MvuMAbKPQweE9YM5ZApib4KJMa55o79E2f","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2MvuMAbKPQweE9YM5ZApib4KJMa55o79E2f","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/39bb413c-40cc-4c08-9326-d64c03208030"},{"id":"b8f3d590-9f88-4c36-a62f-33d523ac07bc","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N6oDdKWQea6Zk5DURwRXsFZ2JkpqW4Waf3","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2N6oDdKWQea6Zk5DURwRXsFZ2JkpqW4Waf3","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/b8f3d590-9f88-4c36-a62f-33d523ac07bc"},{"id":"d36a5489-768d-4d1a-9bb0-5fd3b6360074","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N3wn9vhhngW6CHAooKhkpMd1mEsxiVoSUA","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2N3wn9vhhngW6CHAooKhkpMd1mEsxiVoSUA","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/d36a5489-768d-4d1a-9bb0-5fd3b6360074"},{"id":"27ebb06c-57ef-4e9d-9aa4-fd24273c140f","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N1mvz6Y43DxyQFJxZuVd59b15TxkstDaBB","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2N1mvz6Y43DxyQFJxZuVd59b15TxkstDaBB","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/27ebb06c-57ef-4e9d-9aa4-fd24273c140f"},{"id":"e23ad6d2-57b1-4f78-92bb-8019c04735c4","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2MyrLjhsjTrb14i15yytUmXHCQMBaKDjYja","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2MyrLjhsjTrb14i15yytUmXHCQMBaKDjYja","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/e23ad6d2-57b1-4f78-92bb-8019c04735c4"},{"id":"556b340a-9231-4dd7-9dec-b7d27de163d1","status":"enabled","name":"ff","description":null,"receiver_currency":"XRP","pay_currency":"XRP","address":"rpEGTQEjfyg5bB67L1BWf7eLWgUfdMNVKd?dt=405","network":"ripple","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ripple:rpEGTQEjfyg5bB67L1BWf7eLWgUfdMNVKd?dt=405","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/556b340a-9231-4dd7-9dec-b7d27de163d1"},{"id":"531efb45-adeb-41d0-82c5-814e811efabb","status":"enabled","name":"ff","description":null,"receiver_currency":"XRP","pay_currency":"XRP","address":"rpEGTQEjfyg5bB67L1BWf7eLWgUfdMNVKd?dt=414","network":"ripple","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"ripple:rpEGTQEjfyg5bB67L1BWf7eLWgUfdMNVKd?dt=414","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/531efb45-adeb-41d0-82c5-814e811efabb"},{"id":"f31d486b-8802-4823-8a98-17cbc531e465","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N7ZsAoAxJ8scCfXg6pAKzEmsTeV4uCYVS2","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"44899262005146527358348980576115","customer_id":null,"uri":"bitcoin:2N7ZsAoAxJ8scCfXg6pAKzEmsTeV4uCYVS2","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/f31d486b-8802-4823-8a98-17cbc531e465"},{"id":"14db0836-b1cc-4358-9515-184d0bcffe15","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N5d2FJJQ51E4mpZXi6cRQSZL65RVoDSBo5","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"ademidov4","customer_id":null,"uri":"bitcoin:2N5d2FJJQ51E4mpZXi6cRQSZL65RVoDSBo5","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/14db0836-b1cc-4358-9515-184d0bcffe15"},{"id":"4362fe47-1684-470d-b379-6a63046d5b9b","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2Mz1DvURMaVBYbqba4Q7Nn6DGWYovoHwYcm","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2Mz1DvURMaVBYbqba4Q7Nn6DGWYovoHwYcm","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/4362fe47-1684-470d-b379-6a63046d5b9b"},{"id":"ae4940d0-7a9d-401c-be8d-715e3674bb39","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N7xjpb7MSyUGCmrk4bMacuBiietnsihs7J","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2N7xjpb7MSyUGCmrk4bMacuBiietnsihs7J","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/ae4940d0-7a9d-401c-be8d-715e3674bb39"},{"id":"628b0b90-28ad-48e5-b874-181e2f25bdb0","status":"enabled","name":"ff","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2Mvzx8m6xVvv351KZ7khZVz21ipHhsXQCYf","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2Mvzx8m6xVvv351KZ7khZVz21ipHhsXQCYf","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/628b0b90-28ad-48e5-b874-181e2f25bdb0"}],"meta":{"total":37,"has_more":false}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/channels'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 237
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.653207
+ namelookup_time: 0.156094
+ connect_time: 0.254426
+ pretransfer_time: 0.381847
+ size_upload: 0.0
+ size_download: 18344.0
+ speed_download: 28091.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.603533
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60578
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 381743
+ connect_time_us: 254426
+ namelookup_time_us: 156094
+ pretransfer_time_us: 381847
+ redirect_time_us: 0
+ starttransfer_time_us: 603533
+ total_time_us: 653207
+ index: 0
diff --git a/tests/cassettes/channels/allPayments.yml b/tests/cassettes/channels/allPayments.yml
new file mode 100644
index 0000000..8981367
--- /dev/null
+++ b/tests/cassettes/channels/allPayments.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1/payments'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:02:57 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:PANDehQdPXSccSq05u6Mroqm0qs='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:02:57 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fdedbde4d0b63-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"9ae0624b-8c64-49c8-a388-76ecdb9979fc","paid_amount":"0.00331433","paid_currency":"BTC","received_amount":"0.0","received_currency":"EUR","fee":"0.0","fee_currency":"EUR","txid":"71e2ba2d1689456659e6064ed0a25d4de610bf91d30d1c0d50dfc624876a91ee","status":"on_hold","status_context":"channel_disabled","refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":null,"created_at":"2023-07-11T09:01:26+00:00"},{"id":"1f87483d-8dbc-4052-9066-ac6543047f8b","paid_amount":"0.00331433","paid_currency":"BTC","received_amount":"0.0","received_currency":"EUR","fee":"0.0","fee_currency":"EUR","txid":"4eb4f5d0ef88966b7c2b4bb1e1318ebc43d5679c4e7bae125fbfc02b3f2432f7","status":"on_hold","status_context":"channel_disabled","refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":null,"created_at":"2023-07-11T08:56:30+00:00"},{"id":"58b305a9-4682-4c16-bd77-a8427a6cc7e2","paid_amount":"0.00523078","paid_currency":"BTC","received_amount":"0.0","received_currency":"EUR","fee":"0.0","fee_currency":"EUR","txid":"de91aa36ba106c7901d1bda23f0370906d2f268036f5e578e8e4f21c47b4f4da","status":"on_hold","status_context":"channel_disabled","refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":{"score":0.0,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2022-09-19T09:23:36+00:00"},{"id":"704291ec-0b90-4118-89aa-0c9681c3213c","paid_amount":"0.00184519","paid_currency":"BTC","received_amount":"104.47","received_currency":"EUR","fee":"1.06","fee_currency":"EUR","txid":"4a46a2071635b6c504b72e6ecad8229e4c2efb1b2b10ac05da72b9c306ac36a2","exchange":{"pair":"BTCEUR","rate":"57192.7353","fee":"0.0","fee_currency":"EUR"},"status":"completed","status_context":null,"refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":{"score":3.78,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T07:09:54+00:00"},{"id":"839ed785-07e5-4b58-b235-2cbac6ece9e1","paid_amount":"0.00184519","paid_currency":"BTC","received_amount":"104.77","received_currency":"EUR","fee":"1.06","fee_currency":"EUR","txid":"bf2690d53564e6b1fa510ecddf7472d6e6c679fd9a22d82d198d8d4b88f78448","exchange":{"pair":"BTCEUR","rate":"57356.375","fee":"0.0","fee_currency":"EUR"},"status":"completed","status_context":null,"refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":{"score":7.25,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T07:09:54+00:00"},{"id":"d93bd627-f825-4ff5-bc3f-64f1fc572e86","paid_amount":"0.00184519","paid_currency":"BTC","received_amount":"0.0","received_currency":"EUR","fee":"0.0","fee_currency":"EUR","txid":"91b56ef2164ae37e95ce82723ff46c83a3e211b1a2cd1afcc21bee8f6c663d64","status":"on_hold","status_context":"illicit_resource","refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":{"score":4.96,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T06:49:39+00:00"},{"id":"6ceb11a5-22e9-43d7-9809-36ca70ae88e5","paid_amount":"0.00184519","paid_currency":"BTC","received_amount":"104.47","received_currency":"EUR","fee":"1.06","fee_currency":"EUR","txid":"31114ad287628c2a462f6cbce89035460a56af156b14b396165f26151dd8c762","exchange":{"pair":"BTCEUR","rate":"57192.7353","fee":"0.0","fee_currency":"EUR"},"status":"completed","status_context":null,"refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":{"score":7.19,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T06:48:30+00:00"}],"meta":{"total":7,"has_more":false}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1/payments'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 283
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.499889
+ namelookup_time: 0.005067
+ connect_time: 0.077706
+ pretransfer_time: 0.223674
+ size_upload: 0.0
+ size_download: 4621.0
+ speed_download: 9260.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.45615
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60588
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 223586
+ connect_time_us: 77706
+ namelookup_time_us: 5067
+ pretransfer_time_us: 223674
+ redirect_time_us: 0
+ starttransfer_time_us: 456150
+ total_time_us: 499889
+ index: 0
diff --git a/tests/cassettes/channels/create.yml b/tests/cassettes/channels/create.yml
new file mode 100644
index 0000000..7dc27e5
--- /dev/null
+++ b/tests/cassettes/channels/create.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/channels'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:02:56 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:CDbMAx+jLFevELRhlLbJHe7IZ+Q='
+ Accept: ''
+ body: '{"name":"Channel name","pay_currency":"BTC","receiver_currency":"EUR"}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:02:57 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fded89cc6b956-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"d37e9302-2dc4-45b4-8bea-8b82523102e4","status":"enabled","name":"Channel name","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2MuWwP9vdNtvxyMgpxYbzt9eyhpALwFrQuW","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2MuWwP9vdNtvxyMgpxYbzt9eyhpALwFrQuW","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/d37e9302-2dc4-45b4-8bea-8b82523102e4"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/channels'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 328
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.506523
+ namelookup_time: 0.004394
+ connect_time: 0.101193
+ pretransfer_time: 0.247706
+ size_upload: 70.0
+ size_download: 480.0
+ speed_download: 948.0
+ speed_upload: 138.0
+ download_content_length: -1.0
+ upload_content_length: 70.0
+ starttransfer_time: 0.506481
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60584
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 247654
+ connect_time_us: 101193
+ namelookup_time_us: 4394
+ pretransfer_time_us: 247706
+ redirect_time_us: 0
+ starttransfer_time_us: 506481
+ total_time_us: 506523
+ index: 0
diff --git a/tests/cassettes/channels/retrieve.yml b/tests/cassettes/channels/retrieve.yml
new file mode 100644
index 0000000..11fe9ae
--- /dev/null
+++ b/tests/cassettes/channels/retrieve.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:02:57 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:VVn2snSpPdiliyK+8FWHCjMhUgs='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:02:58 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fdedf1962b966-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","status":"disabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 274
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.467561
+ namelookup_time: 0.004172
+ connect_time: 0.135313
+ pretransfer_time: 0.277427
+ size_upload: 0.0
+ size_download: 470.0
+ speed_download: 1006.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.467514
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60598
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 277359
+ connect_time_us: 135313
+ namelookup_time_us: 4172
+ pretransfer_time_us: 277427
+ redirect_time_us: 0
+ starttransfer_time_us: 467514
+ total_time_us: 467561
+ index: 0
diff --git a/tests/cassettes/channels/retrieveByCustomId.yml b/tests/cassettes/channels/retrieveByCustomId.yml
new file mode 100644
index 0000000..1fc3650
--- /dev/null
+++ b/tests/cassettes/channels/retrieveByCustomId.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/channels/custom_id/CHANNEL-123'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:02:58 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:RmWU0FeuiqqMeRlFFrE8vJuXwrE='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:02:58 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fdee1da8c1c8c-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"350aa936-63f1-4590-ba4a-cb7a43cb696e","status":"enabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":"CHANNEL-123","customer_id":null,"uri":"bitcoin:2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/350aa936-63f1-4590-ba4a-cb7a43cb696e"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/channels/custom_id/CHANNEL-123'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 259
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.443793
+ namelookup_time: 0.004897
+ connect_time: 0.066222
+ pretransfer_time: 0.206234
+ size_upload: 0.0
+ size_download: 478.0
+ speed_download: 1079.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.443753
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60604
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 206180
+ connect_time_us: 66222
+ namelookup_time_us: 4897
+ pretransfer_time_us: 206234
+ redirect_time_us: 0
+ starttransfer_time_us: 443753
+ total_time_us: 443793
+ index: 0
diff --git a/tests/cassettes/channels/retrievePayment.yml b/tests/cassettes/channels/retrievePayment.yml
new file mode 100644
index 0000000..7778191
--- /dev/null
+++ b/tests/cassettes/channels/retrievePayment.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1/payments/704291ec-0b90-4118-89aa-0c9681c3213c'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:02:58 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:kReNrMlPmX/m2/+l//MgTDCS7rg='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:02:59 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fdee55de20e58-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"704291ec-0b90-4118-89aa-0c9681c3213c","paid_amount":"0.00184519","paid_currency":"BTC","received_amount":"104.47","received_currency":"EUR","fee":"1.06","fee_currency":"EUR","txid":"4a46a2071635b6c504b72e6ecad8229e4c2efb1b2b10ac05da72b9c306ac36a2","exchange":{"pair":"BTCEUR","rate":"57192.7353","fee":"0.0","fee_currency":"EUR"},"status":"completed","status_context":null,"refund_address":null,"coin_withdrawal_id":null,"custom_id":null,"customer_id":null,"channel_id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","risk":{"score":3.78,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T07:09:54+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1/payments/704291ec-0b90-4118-89aa-0c9681c3213c'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 320
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.552453
+ namelookup_time: 0.004832
+ connect_time: 0.146976
+ pretransfer_time: 0.349619
+ size_upload: 0.0
+ size_download: 729.0
+ speed_download: 1320.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.552416
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60618
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 349556
+ connect_time_us: 146976
+ namelookup_time_us: 4832
+ pretransfer_time_us: 349619
+ redirect_time_us: 0
+ starttransfer_time_us: 552416
+ total_time_us: 552453
+ index: 0
diff --git a/tests/cassettes/channels/update.yml b/tests/cassettes/channels/update.yml
new file mode 100644
index 0000000..010540a
--- /dev/null
+++ b/tests/cassettes/channels/update.yml
@@ -0,0 +1,75 @@
+
+-
+ request:
+ method: PATCH
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:02:59 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:AquBXg77sZQ4tEerEyATtG7LYK8='
+ Accept: ''
+ body: '{"status":"disabled"}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:03:00 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fdee8b85ab8b4-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"15d0bb11-1e9f-4295-bec5-abd9d5a906a1","status":"disabled","name":"0","description":null,"receiver_currency":"EUR","pay_currency":"BTC","address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","project_id":"cfc93c44-fef3-4ccc-ac8f-090f8e702006","custom_id":null,"customer_id":null,"uri":"bitcoin:2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/channels/15d0bb11-1e9f-4295-bec5-abd9d5a906a1'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 317
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.938067
+ namelookup_time: 0.006788
+ connect_time: 0.139913
+ pretransfer_time: 0.289704
+ size_upload: 21.0
+ size_download: 470.0
+ speed_download: 501.0
+ speed_upload: 22.0
+ download_content_length: -1.0
+ upload_content_length: 21.0
+ starttransfer_time: 0.938036
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60632
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 289653
+ connect_time_us: 139913
+ namelookup_time_us: 6788
+ pretransfer_time_us: 289704
+ redirect_time_us: 0
+ starttransfer_time_us: 938036
+ total_time_us: 938067
+ index: 0
diff --git a/tests/cassettes/coinWithdrawals/all.yml b/tests/cassettes/coinWithdrawals/all.yml
new file mode 100644
index 0000000..b4d16ce
--- /dev/null
+++ b/tests/cassettes/coinWithdrawals/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:55:51 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:p90JRleM0/bZksF3DlJxRRp4BwQ='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:55:52 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd474cec30e37-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"165b5234-7695-4f3c-acf0-94cb1f2f5973","custom_id":null,"customer_id":null,"address":"0x25bd1f6fa8ebe01f62c53d59a1a712067bbe3ce1","network":"ethereum","txid":"0x786763120991ac60241a38e9116ccced9720b2c66092f61324b3653dd5755766","status":"completed","charged_amount":"10.0","charged_currency":"EUR","received_amount":"0.0051138","received_currency":"ETH","network_fee":"0.00029184","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHEUR","rate":"1831.4174","fee":"0.1","fee_currency":"EUR"},"risk":null,"created_at":"2023-07-11T08:41:52+00:00"},{"id":"31eb604a-4039-4dd6-8df2-1c1c7fb002fb","custom_id":null,"customer_id":null,"address":"0x1a2f9873ff98c476373d0cbc3f4ca89e3413f3f3","network":"ethereum","txid":"0x21d8cd05df602c8b4a93b50073de338e57b6cf1997098257d708ec715d0a8ec0","status":"completed","charged_amount":"10.0","charged_currency":"EUR","received_amount":"0.0052326","received_currency":"ETH","network_fee":"0.00017304","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHEUR","rate":"1831.4174","fee":"0.1","fee_currency":"EUR"},"risk":null,"created_at":"2023-07-11T08:40:50+00:00"},{"id":"64b622a6-522c-4636-ae3a-e7805982288e","custom_id":null,"customer_id":null,"address":"0x01e19ff9d2b4f8008d7ea286bbf31f4147b2b7fa","network":"ethereum","txid":"0xfd6c42f88e0a614672bfec91681c81e1cb7e3d14cb9437955c0e2e1476c441ea","status":"completed","charged_amount":"10.0","charged_currency":"EUR","received_amount":"0.0052326","received_currency":"ETH","network_fee":"0.00017304","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHEUR","rate":"1831.4174","fee":"0.1","fee_currency":"EUR"},"risk":null,"created_at":"2023-07-11T08:38:09+00:00"},{"id":"b4261912-d8ae-4d77-b595-833ac4a9e359","custom_id":null,"customer_id":null,"address":"2N4khsMvEYuGb8FVYmk8TC2KupCca71xCFW","network":"bitcoin","txid":null,"status":"on_hold","charged_amount":"56.05","charged_currency":"EUR","received_amount":"0.002009","received_currency":"BTC","network_fee":"0.00012528","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"25991.6518","fee":"0.57","fee_currency":"EUR"},"risk":null,"created_at":"2023-05-24T16:16:46+00:00"},{"id":"d1be11a3-141b-41ea-8109-5d98a2f30b0c","custom_id":null,"customer_id":null,"address":"GBZQNLHMCQKTKAZXOXEDVKCD7MLXKGPGCE6XD67N4235IGU6ZBLZF5SQ?dt=3857700176","network":"stellar","txid":null,"status":"on_hold","charged_amount":"30.0045","charged_currency":"XLM","received_amount":"30.0","received_currency":"XLM","network_fee":"0.0045","network_fee_level":"average","fee":"0.0","fee_currency":"XLM","description":null,"risk":null,"created_at":"2023-03-08T07:21:56+00:00"},{"id":"bcdf332f-7ec0-44b6-9174-267530230f4c","custom_id":null,"customer_id":null,"address":"GBZQNLHMCQKTKAZXOXEDVKCD7MLXKGPGCE6XD67N4235IGU6ZBLZF5SQ","network":"stellar","txid":null,"status":"on_hold","charged_amount":"30.0045","charged_currency":"XLM","received_amount":"30.0","received_currency":"XLM","network_fee":"0.0045","network_fee_level":"average","fee":"0.0","fee_currency":"XLM","description":null,"risk":null,"created_at":"2023-03-08T07:20:10+00:00"},{"id":"0a4b5ce5-bca9-409b-bce1-77293db70bd1","custom_id":null,"customer_id":null,"address":"QjCoNeYXna8CsGwYjhyMbnaecdmNeMwvfG","network":"litecoin","txid":"1b5ba120539781873719cfee4735def4d37119752d7c6908052fffa8a8f88d06","status":"completed","charged_amount":"10.66","charged_currency":"EUR","received_amount":"0.10598891","received_currency":"LTC","network_fee":"0.001","network_fee_level":"average","fee":"0.0","fee_currency":"LTC","description":null,"exchange":{"pair":"LTCEUR","rate":"98.5193","fee":"0.11","fee_currency":"EUR"},"risk":null,"created_at":"2023-02-07T07:20:03+00:00"},{"id":"ea655c2c-e89b-499b-b8a3-0afa415b75c1","custom_id":null,"customer_id":null,"address":"GBZQNLHMCQKTKAZXOXEDVKCD7MLXKGPGCE6XD67N4235IGU6ZBLZF5SQ?dt=1195149642","network":"stellar","txid":"a5718d26e8815af00e99ffd0c9d3d4c6c3271b35cda8bd190fdb41dde91dfcf3","status":"completed","charged_amount":"10.55","charged_currency":"USD","received_amount":"88.6336241","received_currency":"XLM","network_fee":"0.1","network_fee_level":"average","fee":"0.0","fee_currency":"XLM","description":null,"exchange":{"pair":"XLMUSD","rate":"0.117636","fee":"0.11","fee_currency":"USD"},"risk":null,"created_at":"2022-11-07T11:30:27+00:00"},{"id":"e6098b93-19ab-4e1e-8b2f-e9211f9c5c74","custom_id":null,"customer_id":null,"address":"2NFG499W6AXevwqUZAHkvsTkyDsGnNy4vp2","network":"bitcoin","txid":"e6101b55f5dc860b077481342e3f0e01fe417bc3e8220d23080f961ad8aea187","status":"completed","charged_amount":"0.0001","charged_currency":"BTC","received_amount":"0.00009784","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"risk":{"score":0.0,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2022-09-23T13:29:11+00:00"},{"id":"ad79f2ab-de32-45cc-8585-77ad3ab171d8","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":"de91aa36ba106c7901d1bda23f0370906d2f268036f5e578e8e4f21c47b4f4da","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00523078","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"18918.6091","fee":"1.0","fee_currency":"EUR"},"risk":{"score":0.0,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2022-09-19T09:23:13+00:00"},{"id":"3dc7d189-527f-424c-ab14-e647d441d8c4","custom_id":null,"customer_id":null,"address":"rnFHDVPsrvGNcnvtw9gPb6juHBEaavETqm?dt=1964894044","network":"ripple","txid":"31F10A082B09B534C2CAE8DBE444F8D4B512C3A4EC79B101FF8E2D6252C14DC7","status":"completed","charged_amount":"52.062646","charged_currency":"XRP","received_amount":"52.062631","received_currency":"XRP","network_fee":"0.000015","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"risk":{"score":7.19,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-08-04T14:52:20+00:00"},{"id":"766ef132-4894-412a-aba8-cc0dff724e63","custom_id":null,"customer_id":null,"address":"rnFHDVPsrvGNcnvtw9gPb6juHBEaavETqm?dt=1503163132","network":"ripple","txid":"A7A8770159C5B3BEE3C34328A2A6927F30DB14B333F224E6B6BF2F6F0D75056E","status":"completed","charged_amount":"52.000015","charged_currency":"XRP","received_amount":"52.0","received_currency":"XRP","network_fee":"0.000015","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"risk":{"score":7.47,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-08-04T14:19:16+00:00"},{"id":"79b575b2-2a4b-4da8-9ab7-219a8bd91c13","custom_id":null,"customer_id":null,"address":"rnFHDVPsrvGNcnvtw9gPb6juHBEaavETqm?dt=2901789765","network":"ripple","txid":"26FB2ECD7EC5CB16F9DDCE2C658988E9C297AF20773E234C0C03DB872C6D67D6","status":"completed","charged_amount":"20.000015","charged_currency":"XRP","received_amount":"20.0","received_currency":"XRP","network_fee":"0.000015","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"risk":{"score":5.91,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2022-08-04T12:42:23+00:00"},{"id":"adc95b8b-4b4d-4b96-a9d8-0e90a8a7628c","custom_id":null,"customer_id":null,"address":"rnFHDVPsrvGNcnvtw9gPb6juHBEaavETqm?dt=2150440832","network":"ripple","txid":"5DAC0CAEF3FE3DADCF74685082A0122C7275014D5051B718AC25DE3D26781F50","status":"completed","charged_amount":"51.204866","charged_currency":"XRP","received_amount":"51.204851","received_currency":"XRP","network_fee":"0.000015","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"risk":{"score":6.7,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-08-04T12:40:23+00:00"},{"id":"0642ae43-573f-416e-8907-a4662ab75d3a","custom_id":null,"customer_id":null,"address":"0x14244541894de837595c22dde02731063d0efa65","network":"ethereum","txid":"0x4df32c8ff9b34fe400d3ad19fc9f5eb83200b5f4d7941372f647879b2fb9dad8","status":"completed","charged_amount":"43.03","charged_currency":"USD","received_amount":"41.749503","received_currency":"USDT","network_fee":"0.103733","network_fee_level":"average","fee":"0.0","fee_currency":"USDT","description":null,"exchange":{"pair":"USDTUSD","rate":"1.0176","fee":"0.44","fee_currency":"USD"},"risk":{"score":7.27,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2022-07-21T11:48:27+00:00"},{"id":"73ad0979-edbd-4af6-92cb-e6bb53a4fe65","custom_id":null,"customer_id":null,"address":"rPEp3tRawgxeQoJwt15raAZZNF6cjbSw5t?dt=19534810","network":"ripple","txid":"D8424FC2ABB5471172ADCFD8912BBDFEACB94FD2FC9386F7AB18290C98B55985","status":"completed","charged_amount":"67.421615","charged_currency":"XRP","received_amount":"67.4216","received_currency":"XRP","network_fee":"0.000015","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"risk":{"score":7.87,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-07-07T12:41:31+00:00"},{"id":"612cb2bb-76cf-4c2b-b340-b455101afaac","custom_id":null,"customer_id":null,"address":"QZGRYeQVTz1CKrk1KT1WMrUUEoSvMAxRaZ","network":"litecoin","txid":"15f73b303f871b20e89f5688b95282646bbe2d197234ab377882a2b8670b1fd7","status":"completed","charged_amount":"0.44374955","charged_currency":"LTC","received_amount":"0.44274955","received_currency":"LTC","network_fee":"0.001","network_fee_level":"average","fee":"0.0","fee_currency":"LTC","description":null,"risk":{"score":5.65,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-07-07T09:40:56+00:00"},{"id":"c76f41ab-0363-4884-af2d-a43043ad088f","custom_id":null,"customer_id":null,"address":"0x872b50b2a5751b6aa701186ae6801f9422018abe","network":"ethereum","txid":"0x05338a53891e2173a73da5f5907d7f3fc9b21441eb028fa0d5973152a823ab3e","status":"completed","charged_amount":"42.62","charged_currency":"EUR","received_amount":"43.541365","received_currency":"USDT","network_fee":"0.124957","network_fee_level":"average","fee":"0.0","fee_currency":"USDT","description":null,"exchange":{"pair":"USDTEUR","rate":"0.966","fee":"0.43","fee_currency":"EUR"},"risk":{"score":5.5,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-06-10T10:20:38+00:00"},{"id":"ae37aa48-8bf2-481b-81fd-eb8ebb165484","custom_id":null,"customer_id":null,"address":"0x69e9ba97b94199c356818863ca8315599cc58192","network":"ethereum","txid":"0x69711fb75fffa0a4f7563f7b5385038761e1dabca281a48618f2c510a9497bc9","status":"completed","charged_amount":"40.94","charged_currency":"EUR","received_amount":"41.945471","received_currency":"USDC","network_fee":"0.122456","network_fee_level":"average","fee":"0.0","fee_currency":"USDC","description":null,"exchange":{"pair":"USDCEUR","rate":"0.9634","fee":"0.41","fee_currency":"EUR"},"risk":{"score":5.19,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-06-10T10:20:32+00:00"},{"id":"325e4d1b-7faa-4ff5-8b89-f8385ce95469","custom_id":null,"customer_id":null,"address":"0xb73561c944dd1286acee961cd52e15c89602a437","network":"ethereum","txid":"0xd1b0b800f02277ddbe650752ec10bbfd85b1795eb55963a69858f4c90233864d","status":"completed","charged_amount":"43.13","charged_currency":"EUR","received_amount":"43.5007768","received_currency":"DAI","network_fee":"0.12034694","network_fee_level":"average","fee":"0.0","fee_currency":"DAI","description":null,"exchange":{"pair":"DAIEUR","rate":"0.9786","fee":"0.44","fee_currency":"EUR"},"risk":{"score":7.56,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-06-10T10:20:26+00:00"},{"id":"6b0644a6-6693-4fdd-98b6-97afe41ba94c","custom_id":null,"customer_id":null,"address":"0x80c71660106c4f6456a3bcfecea86197c7f39cb4","network":"ethereum","txid":"0x2cc63c3693b871cd54f6015ca17734141499a4720aa0c23dc4d86f37c9072bae","status":"completed","charged_amount":"9.68","charged_currency":"EUR","received_amount":"0.00371874","received_currency":"ETH","network_fee":"0.0000315","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHEUR","rate":"2553.5432","fee":"0.1","fee_currency":"EUR"},"risk":{"score":8.57,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2022-03-09T10:24:45+00:00"},{"id":"681817dc-50bb-41d6-af01-2589ac05b19b","custom_id":null,"customer_id":null,"address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=1562880701","network":"ripple","txid":"2E024352EBEFCD61360CBF352A81841FEFCB85ABA130C59E367DF19404CEB16E","status":"completed","charged_amount":"20.0","charged_currency":"EUR","received_amount":"24.266207","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"exchange":{"pair":"XRPEUR","rate":"0.815948","fee":"0.2","fee_currency":"EUR"},"risk":{"score":4.12,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-02-10T06:41:56+00:00"},{"id":"c052f7c7-3188-4533-a3d6-c29c870aabe2","custom_id":null,"customer_id":null,"address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=2751702755","network":"ripple","txid":"4B650B63758F926CC64D32D7128064F0BC97BD15423FC34DFF1E07C03F18C273","status":"completed","charged_amount":"10.12","charged_currency":"EUR","received_amount":"12.271023","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"exchange":{"pair":"XRPEUR","rate":"0.81568","fee":"0.11","fee_currency":"EUR"},"risk":{"score":8.25,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-02-10T05:50:41+00:00"},{"id":"feecb44a-0f56-4e07-8437-d2924b710a42","custom_id":null,"customer_id":null,"address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=2766784623","network":"ripple","txid":"82AB085002568A99060E05811F6B51A5313413198B7C70D350A25D28EF98EEA3","status":"completed","charged_amount":"11.47","charged_currency":"USD","received_amount":"14.321683","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"exchange":{"pair":"XRPUSD","rate":"0.792251","fee":"0.12","fee_currency":"USD"},"risk":{"score":5.69,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2022-01-10T12:17:06+00:00"},{"id":"809ed831-b7ea-45a6-a722-ba208077af93","custom_id":null,"customer_id":null,"address":"tb1q9l2ru0tqjfa5qfuvptg69gwvqfnzmumf8nlj248zcxs4vk5cnzxqa6flhk","network":"bitcoin","txid":"c42b2d9effe85709405373d3133a5c7e26b3c736e991ab4f34fd867e7fb6b419","status":"completed","charged_amount":"20.0","charged_currency":"EUR","received_amount":"0.00046378","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"42494.1323","fee":"0.2","fee_currency":"EUR"},"risk":{"score":4.25,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-12-30T08:31:16+00:00"},{"id":"df8584e6-62ab-4f31-86b3-f6f1c4c91193","custom_id":null,"customer_id":null,"address":"QMfu6mumNiU57aVJyVampSPPjosUpunukF","network":"litecoin","txid":"795e9e61e72f51b5067f57e345c19dc230794d3752a12cba2cc3bc3d6718e039","status":"completed","charged_amount":"0.02408231","charged_currency":"LTC","received_amount":"0.02308231","received_currency":"LTC","network_fee":"0.001","network_fee_level":"average","fee":"0.0","fee_currency":"LTC","description":null,"risk":{"score":6.89,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2021-11-08T14:13:22+00:00"},{"id":"f5c0607a-1ea0-4df5-9cd3-fc28c544bc43","custom_id":null,"customer_id":null,"address":"QQjk33VGTkFrghs9XWDbLNybooUQN2Tkun","network":"litecoin","txid":"31f5ed753aadb966f1c60068248a8b5d0d5b4ed8fc08680ab91d6156aad9dc15","status":"completed","charged_amount":"0.11515141","charged_currency":"LTC","received_amount":"0.11415141","received_currency":"LTC","network_fee":"0.001","network_fee_level":"average","fee":"0.0","fee_currency":"LTC","description":null,"risk":{"score":6.51,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-11-08T13:17:35+00:00"},{"id":"18a7bf85-fc94-4718-b1c1-4a9c85584fb3","custom_id":null,"customer_id":null,"address":"QQDJx9VfBESXtsweX8ceuM1kHd4sjAoSDK","network":"litecoin","txid":"71b206a13eba696e1e758f919ed0414e9bff66cf5c1aba0de62bcfe48f70061b","status":"completed","charged_amount":"0.02382302","charged_currency":"LTC","received_amount":"0.02282302","received_currency":"LTC","network_fee":"0.001","network_fee_level":"average","fee":"0.0","fee_currency":"LTC","description":null,"risk":{"score":6.79,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-11-08T13:11:30+00:00"},{"id":"b476bc3a-f8a0-4814-89b0-e17b7b1f8c56","custom_id":null,"customer_id":null,"address":"0xfd76db4b3a6f056bb83fa207a957eea02d31783f","network":"ethereum","txid":null,"status":"on_hold","charged_amount":"6.424155","charged_currency":"USDT","received_amount":"5.002151","received_currency":"USDT","network_fee":"1.422004","network_fee_level":"average","fee":"0.0","fee_currency":"USDT","description":null,"risk":null,"created_at":"2021-11-08T12:47:07+00:00"},{"id":"a24cb36d-de6d-4f35-950c-c2dc9d5bc6cf","custom_id":null,"customer_id":null,"address":"rsBo3TPkdQxuEaWPa3tyDjZA9kC9rarYfj?dt=1","network":"ripple","txid":null,"status":"on_hold","charged_amount":"6.08","charged_currency":"EUR","received_amount":"6.0","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"exchange":{"pair":"XRPEUR","rate":"1.000823","fee":"0.07","fee_currency":"EUR"},"risk":null,"created_at":"2021-10-25T11:55:04+00:00"},{"id":"aece80de-f83b-404e-b418-34d43a4b81cf","custom_id":null,"customer_id":null,"address":"rPuA9uR22U249RQsiGpLWrL4HcJFxCZaXR?dt=10101","network":"ripple","txid":"43B90F51235F131277661ED5D0B52DCC05DADD0EC50FF61C95E3AE2279C65606","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"99.043435","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"exchange":{"pair":"XRPEUR","rate":"0.999561","fee":"1.0","fee_currency":"EUR"},"risk":{"score":8.59,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-19T17:51:14+00:00"},{"id":"7bfd4b5d-e96f-487a-869f-04ee5d6eae13","custom_id":null,"customer_id":null,"address":"r4Mi6wvVWDEZzbghQt6ETRuN1AygGHcb6E?dt=99999","network":"ripple","txid":"E1D2464B5AFFCFF7E6427F9B33681D1E35AAE7648DAF522A1ECFA774EF75AB9A","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"98.95127","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"exchange":{"pair":"XRPEUR","rate":"1.000492","fee":"1.0","fee_currency":"EUR"},"risk":{"score":6.58,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-19T13:09:58+00:00"},{"id":"fca45482-3b31-45dc-a31a-026f3bafa774","custom_id":null,"customer_id":null,"address":"rPuA9uR22U249RQsiGpLWrL4HcJFxCZaXR?dt=1","network":"ripple","txid":null,"status":"on_hold","charged_amount":"1.000045","charged_currency":"XRP","received_amount":"1.0","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"risk":null,"created_at":"2021-10-18T16:59:22+00:00"},{"id":"1b9010bd-cb28-4ffe-a7ef-3a24ce3d2971","custom_id":null,"customer_id":null,"address":"rHc3ugWV3BsdDAkV8ZcYHKXg8wj9q9ogcm?dt=123","network":"ripple","txid":"C0B3F6F6E1FE8C39AB16154CE50C48AE90509E610B35993B8615E1238C4EC086","status":"completed","charged_amount":"25.000045","charged_currency":"XRP","received_amount":"25.0","received_currency":"XRP","network_fee":"0.000045","network_fee_level":"average","fee":"0.0","fee_currency":"XRP","description":null,"risk":{"score":3.15,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T16:56:12+00:00"},{"id":"ef329f6f-c8b1-49d1-be07-a83ce60252b9","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":"bf2690d53564e6b1fa510ecddf7472d6e6c679fd9a22d82d198d8d4b88f78448","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00184519","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"53590.0452","fee":"1.0","fee_currency":"EUR"},"risk":{"score":3.23,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T07:09:30+00:00"},{"id":"3e877d2f-1232-4ab6-868e-372e2b91afaa","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":"4a46a2071635b6c504b72e6ecad8229e4c2efb1b2b10ac05da72b9c306ac36a2","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00184519","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"53590.0452","fee":"1.0","fee_currency":"EUR"},"risk":{"score":6.59,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T07:09:29+00:00"},{"id":"cdb4faf8-5956-4d01-a00c-7c1b3267a126","custom_id":"PAYMENT-123","customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":"91b56ef2164ae37e95ce82723ff46c83a3e211b1a2cd1afcc21bee8f6c663d64","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00184519","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"53590.0452","fee":"1.0","fee_currency":"EUR"},"risk":{"score":8.44,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T06:49:21+00:00"},{"id":"3cf9d1c4-6191-4826-8cae-2c717810c7e9","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":"31114ad287628c2a462f6cbce89035460a56af156b14b396165f26151dd8c762","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00184519","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"53590.0452","fee":"1.0","fee_currency":"EUR"},"risk":{"score":5.73,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T06:48:04+00:00"},{"id":"464da305-0a23-4152-be2c-19757b348437","custom_id":null,"customer_id":null,"address":"0x7d00c40f923f1cdb99a5a8e692db8a8804e06715","network":"ethereum","txid":"0x938d502017772080ff6ed86c65f01bdada0bb8e950056f0c4d4ed9d4c62aeb29","status":"completed","charged_amount":"10.0","charged_currency":"EUR","received_amount":"0.00275953","received_currency":"ETH","network_fee":"0.00020992","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHEUR","rate":"3333.9458","fee":"0.1","fee_currency":"EUR"},"risk":{"score":7.79,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-15T07:42:46+00:00"},{"id":"8af236e5-7f0c-4839-903c-421cca60bcd1","custom_id":null,"customer_id":null,"address":"0xf3532c1fd002665ec54d46a50787e0c69c76cd44","network":"ethereum","txid":"0x08603fd0442c133486fa33d6e0141250d3892be5b31cc99fc8c83055ecb5e96c","status":"completed","charged_amount":"0.02957117","charged_currency":"ETH","received_amount":"0.02928366","received_currency":"ETH","network_fee":"0.00028751","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"risk":{"score":8.25,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-14T11:41:33+00:00"},{"id":"6ef100ed-40a8-425b-9da7-c42901a8ec5d","custom_id":null,"customer_id":null,"address":"0x201ec58a0c18853404df6aa788121fd05379a7c9","network":"ethereum","txid":"0x6bcccef868e16aad9c9573fc62722bfd16bcdf33f972b86d87db29a07a3735e2","status":"completed","charged_amount":"100.0","charged_currency":"USD","received_amount":"0.02623524","received_currency":"ETH","network_fee":"0.00028751","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHUSD","rate":"3732.6446","fee":"1.0","fee_currency":"USD"},"risk":{"score":8.83,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-14T11:14:54+00:00"},{"id":"ec1129a2-1cba-4a6f-9e4f-f70b9e32340d","custom_id":null,"customer_id":null,"address":"0xf3532c1fd002665ec54d46a50787e0c69c76cd44","network":"ethereum","txid":"0x85bb90edc4633bd65a988048d4332189e75bde1af5ef0936dd3629223272213b","status":"completed","charged_amount":"113.3","charged_currency":"USD","received_amount":"0.02986987","received_currency":"ETH","network_fee":"0.00028751","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHUSD","rate":"3718.9619","fee":"1.14","fee_currency":"USD"},"risk":{"score":6.93,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-14T11:04:06+00:00"},{"id":"6ab237c3-76ea-4cb0-84ef-531b5d5f9156","custom_id":null,"customer_id":null,"address":"0xf3532c1fd002665ec54d46a50787e0c69c76cd44","network":"ethereum","txid":"0xb3138681d98c1762201e45f656c1200b3a638009433d546d62005e6d684b23d5","status":"completed","charged_amount":"113.3","charged_currency":"USD","received_amount":"0.02986987","received_currency":"ETH","network_fee":"0.00028751","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHUSD","rate":"3718.9619","fee":"1.14","fee_currency":"USD"},"risk":{"score":7.33,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-14T11:04:04+00:00"},{"id":"dcbde4fa-cbf0-4378-aa1f-e72117717085","custom_id":null,"customer_id":null,"address":"0xb584feaebc60ed969d472d16813b64d7822a1bb9","network":"ethereum","txid":"0xbc61a697c85c8d28bb719d7f8805b85ff60466ad80f2e9db5444cc553a992ca5","status":"completed","charged_amount":"0.00035645","charged_currency":"ETH","received_amount":"0.0001","received_currency":"ETH","network_fee":"0.00025645","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"risk":{"score":7.2,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-06T10:31:21+00:00"},{"id":"44187405-875c-436a-a585-922a55340465","custom_id":null,"customer_id":null,"address":"0xb584feaebc60ed969d472d16813b64d7822a1bb9","network":"ethereum","txid":"0x8f15c32644fd21a9d40da6f1658f5768f16c69adf7795ce1e5a524bb737b9168","status":"completed","charged_amount":"0.01024689","charged_currency":"ETH","received_amount":"0.01","received_currency":"ETH","network_fee":"0.00024689","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"risk":{"score":4.44,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-04T15:05:59+00:00"},{"id":"dd1fcf44-3065-4d2f-9c73-ce485e8add9e","custom_id":null,"customer_id":null,"address":"0xb584feaebc60ed969d472d16813b64d7822a1bb9","network":"ethereum","txid":"0xb2274e82241172d786865dde9a9fc819bb0aaf0fee8bbf4c4ea528c991ce4601","status":"completed","charged_amount":"0.10024689","charged_currency":"ETH","received_amount":"0.1","received_currency":"ETH","network_fee":"0.00024689","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"risk":{"score":4.33,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-04T15:05:40+00:00"},{"id":"6c2c4f5c-5a2f-4425-b0b3-0caec5f217ae","custom_id":"224b7fb453a0df9ea35def7d82354297","customer_id":null,"address":"mipcBbFg9gMiCh81Kj8tqqdgoZub1ZJRfn","network":"bitcoin","txid":"8a4fedea857f20afb1de451324812bd1e6a8716e7a7434a2018ab4c8b2a0f63e","status":"completed","charged_amount":"0.01","charged_currency":"BTC","received_amount":"0.0098946","received_currency":"BTC","network_fee":"0.0000054","network_fee_level":"average","fee":"0.0001","fee_currency":"BTC","description":null,"risk":{"score":8.36,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-04T08:36:08+00:00"},{"id":"6901d0ca-c6aa-4979-919f-a18b2e905b72","custom_id":"cc3b7057ad46a891e690f303533d97af","customer_id":null,"address":"mipcBbFg9gMiCh81Kj8tqqdgoZub1ZJRfn","network":"bitcoin","txid":"5a6e301c46a514c6bb6e0448d16e3e3e3b1d8550b91323088693d87fb93b41c9","status":"completed","charged_amount":"0.01","charged_currency":"BTC","received_amount":"0.0098946","received_currency":"BTC","network_fee":"0.0000054","network_fee_level":"average","fee":"0.0001","fee_currency":"BTC","description":null,"risk":{"score":3.47,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-03T16:01:13+00:00"},{"id":"cddd8f08-1e40-465b-98ef-60cc8b7f006a","custom_id":null,"customer_id":null,"address":"2Mt3iUZz87SMPWRXDMUdFRTqeT4GyKv3WiH","network":"bitcoin","txid":"8b4777fb0fcff6e71c86637e8f1ab26747fab4bc2fa170b7a30522f93e9b5384","status":"completed","charged_amount":"0.0000554","charged_currency":"BTC","received_amount":"0.00005","received_currency":"BTC","network_fee":"0.0000054","network_fee_level":"fast","fee":"0.0","fee_currency":"BTC","description":null,"risk":{"score":8.06,"level":"medium","resource_name":"default","resource_category":"unknown"},"created_at":"2021-09-28T14:45:04+00:00"},{"id":"8b755824-4679-4e77-83a0-34182f663c75","custom_id":null,"customer_id":null,"address":"0x35ae4c76b50f6e0f2c8630695633e989cafcf77c","network":"ethereum","txid":"0xce98330b3699af5431a51159f5c415e06abc156d7aa648b2b5273119692ec434","status":"completed","charged_amount":"118.42","charged_currency":"USD","received_amount":"0.03945872","received_currency":"ETH","network_fee":"0.000042","network_fee_level":"average","fee":"0.0","fee_currency":"ETH","description":null,"exchange":{"pair":"ETHUSD","rate":"2967.6184","fee":"1.19","fee_currency":"USD"},"risk":{"score":3.57,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-09-22T12:10:46+00:00"}],"meta":{"total":417,"has_more":true}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 245
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.710371
+ namelookup_time: 0.115615
+ connect_time: 0.177344
+ pretransfer_time: 0.290356
+ size_upload: 0.0
+ size_download: 31205.0
+ speed_download: 43950.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.658793
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 47852
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 290228
+ connect_time_us: 177344
+ namelookup_time_us: 115615
+ pretransfer_time_us: 290356
+ redirect_time_us: 0
+ starttransfer_time_us: 658793
+ total_time_us: 710371
+ index: 0
diff --git a/tests/cassettes/coinWithdrawals/allNetworkFees.yml b/tests/cassettes/coinWithdrawals/allNetworkFees.yml
new file mode 100644
index 0000000..eabd03f
--- /dev/null
+++ b/tests/cassettes/coinWithdrawals/allNetworkFees.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/network_fees'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:56:20 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:OvIZpoWqXNBLtJOATLP43tSTZB8='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:56:21 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd52eab4c0bc6-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"level":"fast","fee":"0.00002582","currency":"BTC","network":"bitcoin"},{"level":"average","fee":"0.00001602","currency":"BTC","network":"bitcoin"},{"level":"slow","fee":"0.00001296","currency":"BTC","network":"bitcoin"},{"level":"average","fee":"0.001","currency":"LTC","network":"litecoin"},{"level":"average","fee":"0.000015","currency":"XRP","network":"ripple"},{"level":"average","fee":"0.00037292","currency":"ETH","network":"ethereum"},{"level":"average","fee":"0.0001","currency":"BCH","network":"bitcoin_cash"},{"level":"average","fee":"2.140056","currency":"USDT","network":"ethereum"},{"level":"average","fee":"2.140504","currency":"USDC","network":"ethereum"},{"level":"average","fee":"2.13990292","currency":"DAI","network":"ethereum"},{"level":"average","fee":"283103.0","currency":"SHIB","network":"ethereum"},{"level":"average","fee":"0.1","currency":"XLM","network":"stellar"},{"level":"average","fee":"0.155381","currency":"ADA","network":"cardano"},{"level":"average","fee":"0.00037836","currency":"BNB","network":"bnb_smart_chain"},{"level":"average","fee":"0.34597953","currency":"BUSD","network":"bnb_smart_chain"},{"level":"average","fee":"1.0","currency":"TRX","network":"tron"},{"level":"average","fee":"0.45","currency":"DOGE","network":"dogecoin"},{"level":"average","fee":"0.00001","currency":"SOL","network":"solana"}]}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/network_fees'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 258
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.676328
+ namelookup_time: 0.10751
+ connect_time: 0.251186
+ pretransfer_time: 0.40055
+ size_upload: 0.0
+ size_download: 1358.0
+ speed_download: 2008.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.676284
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 57130
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 400496
+ connect_time_us: 251186
+ namelookup_time_us: 107510
+ pretransfer_time_us: 400550
+ redirect_time_us: 0
+ starttransfer_time_us: 676284
+ total_time_us: 676328
+ index: 0
diff --git a/tests/cassettes/coinWithdrawals/commit.yml b/tests/cassettes/coinWithdrawals/commit.yml
new file mode 100644
index 0000000..881e1c5
--- /dev/null
+++ b/tests/cassettes/coinWithdrawals/commit.yml
@@ -0,0 +1,147 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:55:52 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:7nusvhQwJlKNKuq0bC2eaI6h6wM='
+ Accept: ''
+ body: '{"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","charged_amount":"100.0","charged_currency":"EUR","received_currency":"BTC","force_commit":false}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:55:52 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd4794ca60e2f-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"06a54ccb-889f-4c1f-8a59-086a84a1e2dd","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":null,"status":"new","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00331433","received_currency":"BTC","network_fee":"0.00001944","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"29696.0269","fee":"1.0","fee_currency":"EUR"},"risk":null,"created_at":"2023-07-11T08:55:52Z"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 413
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.593633
+ namelookup_time: 0.005009
+ connect_time: 0.084079
+ pretransfer_time: 0.221188
+ size_upload: 146.0
+ size_download: 531.0
+ speed_download: 895.0
+ speed_upload: 246.0
+ download_content_length: -1.0
+ upload_content_length: 146.0
+ starttransfer_time: 0.593592
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 47866
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 221121
+ connect_time_us: 84079
+ namelookup_time_us: 5009
+ pretransfer_time_us: 221188
+ redirect_time_us: 0
+ starttransfer_time_us: 593592
+ total_time_us: 593633
+ index: 0
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/06a54ccb-889f-4c1f-8a59-086a84a1e2dd/commit'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Content-Length: '0'
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:55:52 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:orRU/UT3mYtgqfSXzMnVyk1oTOo='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:55:53 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd47d4f5cb75b-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"06a54ccb-889f-4c1f-8a59-086a84a1e2dd","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":null,"status":"pending","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00331433","received_currency":"BTC","network_fee":"0.00001944","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"29696.0269","fee":"1.0","fee_currency":"EUR"},"risk":null,"created_at":"2023-07-11T08:55:52+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/06a54ccb-889f-4c1f-8a59-086a84a1e2dd/commit'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 309
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.635269
+ namelookup_time: 0.00549
+ connect_time: 0.115835
+ pretransfer_time: 0.302343
+ size_upload: 0.0
+ size_download: 540.0
+ speed_download: 850.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.63522
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 47874
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 302271
+ connect_time_us: 115835
+ namelookup_time_us: 5490
+ pretransfer_time_us: 302343
+ redirect_time_us: 0
+ starttransfer_time_us: 635220
+ total_time_us: 635269
+ index: 0
diff --git a/tests/cassettes/coinWithdrawals/create.yml b/tests/cassettes/coinWithdrawals/create.yml
new file mode 100644
index 0000000..0b80403
--- /dev/null
+++ b/tests/cassettes/coinWithdrawals/create.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:55:53 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:7698BLCw3+oLBa1+0aCM7hMm3XQ='
+ Accept: ''
+ body: '{"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","charged_amount":"100.0","charged_currency":"EUR","received_currency":"BTC","force_commit":true}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:55:54 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd4811d740b70-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"86a94c44-2b0e-40d1-b40e-c5818b303e09","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":null,"status":"pending","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00331433","received_currency":"BTC","network_fee":"0.00001944","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"29696.0269","fee":"1.0","fee_currency":"EUR"},"risk":null,"created_at":"2023-07-11T08:55:53+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 412
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.744159
+ namelookup_time: 0.004717
+ connect_time: 0.09356
+ pretransfer_time: 0.243336
+ size_upload: 145.0
+ size_download: 540.0
+ speed_download: 725.0
+ speed_upload: 194.0
+ download_content_length: -1.0
+ upload_content_length: 145.0
+ starttransfer_time: 0.74412
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 47882
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 243272
+ connect_time_us: 93560
+ namelookup_time_us: 4717
+ pretransfer_time_us: 243336
+ redirect_time_us: 0
+ starttransfer_time_us: 744120
+ total_time_us: 744159
+ index: 0
diff --git a/tests/cassettes/coinWithdrawals/retrieve.yml b/tests/cassettes/coinWithdrawals/retrieve.yml
new file mode 100644
index 0000000..2b82755
--- /dev/null
+++ b/tests/cassettes/coinWithdrawals/retrieve.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/3cf9d1c4-6191-4826-8cae-2c717810c7e9'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:56:21 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:lbuniTrwfSPcoTBHJ6FcKEKFNTw='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:56:22 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd5327c8bb8d2-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"3cf9d1c4-6191-4826-8cae-2c717810c7e9","custom_id":null,"customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":"31114ad287628c2a462f6cbce89035460a56af156b14b396165f26151dd8c762","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00184519","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"53590.0452","fee":"1.0","fee_currency":"EUR"},"risk":{"score":5.73,"level":"high","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T06:48:04+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/3cf9d1c4-6191-4826-8cae-2c717810c7e9'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 282
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.567412
+ namelookup_time: 0.004792
+ connect_time: 0.121166
+ pretransfer_time: 0.318868
+ size_upload: 0.0
+ size_download: 685.0
+ speed_download: 1208.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.567367
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 57136
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 318811
+ connect_time_us: 121166
+ namelookup_time_us: 4792
+ pretransfer_time_us: 318868
+ redirect_time_us: 0
+ starttransfer_time_us: 567367
+ total_time_us: 567412
+ index: 0
diff --git a/tests/cassettes/coinWithdrawals/retrieveByCustomId.yml b/tests/cassettes/coinWithdrawals/retrieveByCustomId.yml
new file mode 100644
index 0000000..ab7fb96
--- /dev/null
+++ b/tests/cassettes/coinWithdrawals/retrieveByCustomId.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/custom_id/PAYMENT-123'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:12 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:Pdlo3lmI4aBd3taCbIhqCV5ac9g='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:13 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd670e936b74c-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"cdb4faf8-5956-4d01-a00c-7c1b3267a126","custom_id":"PAYMENT-123","customer_id":null,"address":"2Mz3bcjSVHG8uQJpNjmCxp24VdTjwaqmFcJ","network":"bitcoin","txid":"91b56ef2164ae37e95ce82723ff46c83a3e211b1a2cd1afcc21bee8f6c663d64","status":"completed","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00184519","received_currency":"BTC","network_fee":"0.00000216","network_fee_level":"average","fee":"0.0","fee_currency":"BTC","description":null,"exchange":{"pair":"BTCEUR","rate":"53590.0452","fee":"1.0","fee_currency":"EUR"},"risk":{"score":8.44,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-18T06:49:21+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coin_withdrawals/custom_id/PAYMENT-123'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 267
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.465996
+ namelookup_time: 0.008722
+ connect_time: 0.087279
+ pretransfer_time: 0.270363
+ size_upload: 0.0
+ size_download: 693.0
+ speed_download: 1490.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.465944
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 47244
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 270307
+ connect_time_us: 87279
+ namelookup_time_us: 8722
+ pretransfer_time_us: 270363
+ redirect_time_us: 0
+ starttransfer_time_us: 465944
+ total_time_us: 465996
+ index: 0
diff --git a/tests/cassettes/coins/all.yml b/tests/cassettes/coins/all.yml
new file mode 100644
index 0000000..dd6e0bf
--- /dev/null
+++ b/tests/cassettes/coins/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/coins'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:14:34 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:dKinvbQc9tY5rqSdtsFKQoiFOfE='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:14:35 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fefe2cdbe0e60-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"currency":"BTC","name":"Bitcoin","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/BTC.svg","networks":[{"network":"bitcoin","name":"Bitcoin","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"LTC","name":"Litecoin","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/LTC.svg","networks":[{"network":"litecoin","name":"Litecoin","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"BCH","name":"Bitcoin Cash","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/BCH.svg","networks":[{"network":"bitcoin_cash","name":"Bitcoin Cash","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"XRP","name":"XRP","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/XRP.svg","networks":[{"network":"ripple","name":"Ripple","precision":6,"destination_tag":{"required":true,"name":"Destination tag"},"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"ETH","name":"Ethereum","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/ETH.svg","networks":[{"network":"ethereum","name":"Ethereum (ERC20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"USDT","name":"Tether","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/USDT.svg","networks":[{"network":"ethereum","name":"Ethereum (ERC20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"tron","name":"Tron (TRC20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"DAI","name":"Dai","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/DAI.svg","networks":[{"network":"ethereum","name":"Ethereum (ERC20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"USDC","name":"USD Coin","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/USDC.svg","networks":[{"network":"ethereum","name":"Ethereum (ERC20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"tron","name":"Tron (TRC20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"SHIB","name":"Shiba Inu","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/SHIB.svg","networks":[{"network":"ethereum","name":"Ethereum (ERC20)","precision":0,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":0,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"XLM","name":"Stellar Lumens","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/XLM.svg","networks":[{"network":"stellar","name":"Stellar","precision":7,"destination_tag":{"required":false,"name":"Memo ID"},"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":7,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"ADA","name":"Cardano","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/ADA.svg","networks":[{"network":"cardano","name":"Cardano","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"BNB","name":"BNB","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/BNB.svg","networks":[{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"BUSD","name":"Binance USD","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/BUSD.svg","networks":[{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"TRX","name":"TRON","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/TRX.svg","networks":[{"network":"tron","name":"Tron (TRC20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":6,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"DOGE","name":"Dogecoin","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/DOGE.svg","networks":[{"network":"dogecoin","name":"Dogecoin","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":8,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]},{"currency":"SOL","name":"Solana","logo_url":"https://ledger-development.s3.eu-west-1.amazonaws.com/public/currencies/SOL.svg","networks":[{"network":"solana","name":"Solana","precision":9,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}},{"network":"bnb_smart_chain","name":"BNB Smart Chain (BEP20)","precision":9,"destination_tag":null,"invoices":{"enabled":true},"channels":{"enabled":true},"coin_withdrawals":{"enabled":true}}]}]}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/coins'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 234
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.652246
+ namelookup_time: 0.004701
+ connect_time: 0.145305
+ pretransfer_time: 0.294647
+ size_upload: 0.0
+ size_download: 8192.0
+ speed_download: 12564.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.607186
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.40.240
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 52236
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 294534
+ connect_time_us: 145305
+ namelookup_time_us: 4701
+ pretransfer_time_us: 294647
+ redirect_time_us: 0
+ starttransfer_time_us: 607186
+ total_time_us: 652246
+ index: 0
diff --git a/tests/cassettes/customers/all.yml b/tests/cassettes/customers/all.yml
new file mode 100644
index 0000000..ceb3e39
--- /dev/null
+++ b/tests/cassettes/customers/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/customers'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:11:00 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:IpQzIlxZUw30ymN5++butJDBPeg='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:11:01 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4feaa76ddbb77f-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"500b71259c48d4e212693a21e0d10c60","currency":"EUR","refund_addresses":{},"addresses":[]},{"id":"EGTEm6T5DKSA9LPrTTqysgwUvSEVw9YE","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"h1dzncjuDElMwzipgDY9Pzc2HHdEyy4Y","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"WGacXfxtyh5UDelCbn8V0KMKhWtjPjBc","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"jQAgaUonN6ZAUfig0ssbN7LJ1lTmIQQI","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"XyeCSUyxvbGDEdPaQXasynVsqK2H3kDm","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"fJr4U7OymXcXl965dP5qw2fsomdtz43b","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"f9oz55DGYyuKP2e3BQAWVhfM5sEFId4s","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"X80927fJJtmUzd8vYRtqVAwlYBEC5Sg2","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"19U5Hx3siuitI0dxhTwLPh6owQvDSu1H","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"gJeOunQocjLsG9W80cRo1ATHT0Bvgoiw","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"a7anGQXPVOzO3sj1Sbba0TNjG25zkALp","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"x0Ww2ZJufCk9XIA8rm8Xamfjofds2SQz","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"cg9go54aewast4dp8G1MITPUekCptWfL","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"5kOezal5ZiiSaqV16i7Zu3ekrYMpGFhT","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"O59plpoHRGVYGGrdYGzE545VNjVELTLN","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"oo4nVVsnktKWNtg6Y8Hi5qC8DD5Fxu3T","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"HqedpHnYO0hF8bt0QEUlLrFxNetSulxJ","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"wVyjFxhENDP2nRJq3PY5wDTmOw4HJTuU","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"boM9veKkgKkvwL5tlSxnmve8DDofGfHW","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"5m0WEaVDQy2ln61BDRhFFTp5pbd8NAOX","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"zOMlFF5BUzv6QgpQpl0KxSaNVSyXBm4t","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"oYNMwRNicGm912MX4hajVQ1XYfOawFlp","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"jFIYqqzcRhXj1iLCHqLChhLgtFQbHHIm","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"tOyVlI4oJm1nciAYBdTkFjsSSXaWeYU2","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"BDUhzNzlfjnNf3ouE18NyaY4uTvuCIPo","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"Kp1zamWm6bkVTLrjIaq5HojrJW7zL5ZN","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"G2fkSIFNImpYjalmRHZFZgDHoFdvJuey","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"AP4BGavhhza9cx0eRYskI0mYHYoKmczK","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"5jew6YuaIvcnwEp7I4FIBcL1wfYMGmys","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"g0rnLUvFyFLl6o7IpzHUI9t0ivCbokTf","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"EN5afFEL70J1PHVIbI5BzbIeSaf2AfS1","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"ZmLHM7YH4uEi1QXeg6OJbXgnQPPy8AiX","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"jrgQLky0UZtphPG3hF56zqVP9GkVq9hz","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"755ZXSZqzo6XQNJ1151UqXIw3JMoI0Tj","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"0j4yqjxfphp61RL1mtuzVA64EqO8pWCv","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"Ra8k2XYtJJlWqXtNG2ByyzcmWDXc18QT","currency":"BTC","refund_addresses":{"BTC":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","ETH":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2"},"addresses":[{"address":"2NGPwyaRTrKpjf9njHQDfXAReb2iwbYkZrg","currency":"BTC","network":"bitcoin"},{"address":"0x54baa6f4ff2374b2f8f3a32c0c3dad0acbdb42b2","currency":"ETH","network":"ethereum"}]},{"id":"GEMUmyao1Dw7u6pb3OaLWaDb6vYijJ7D","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"TCJ1Oe8AMdDsiD2s3CahB1KBSznszE3u","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"4ZdQnBAH2v7dTBTsvR8eqgSEJGfW4GNq","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"vjY43z0kceKtY0gphcl6S1ea0oygbH7p","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"igkbWirx2yoxH0mV2Drtwq6U8WsKCXnN","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"UgmG8xrT99IhpPyyxNDfsGT8BG7ts7Jf","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"N83SQX8plMVjNaoDRi2Kqlj5NT1wTQIi","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"SFo7ujCoA4zPqvkf21ues1rq3PZC4ySA","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"bZCULJInNajReXL9zdYHevuWZBfewtg5","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"32vymrrOYwFoYnuNHWK3NwXmBSnP1Atk","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"zcOIx8jtHUvydD3HYI45EHnaNi3z7BeV","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"I9Rw8ON2ygUoq2wKjM8MGALkcUvxtO8M","currency":"BTC","refund_addresses":{},"addresses":[]},{"id":"sI0isarI8EK4dh3rlR7RoxoIhvxoHfiA","currency":"BTC","refund_addresses":{},"addresses":[]}],"meta":{"total":107,"has_more":true}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/customers'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 238
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.789099
+ namelookup_time: 0.166358
+ connect_time: 0.298233
+ pretransfer_time: 0.527771
+ size_upload: 0.0
+ size_download: 14747.0
+ speed_download: 18690.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.740575
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.40.240
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 57942
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 527679
+ connect_time_us: 298233
+ namelookup_time_us: 166358
+ pretransfer_time_us: 527771
+ redirect_time_us: 0
+ starttransfer_time_us: 740575
+ total_time_us: 789099
+ index: 0
diff --git a/tests/cassettes/customers/create.yml b/tests/cassettes/customers/create.yml
new file mode 100644
index 0000000..291f4b4
--- /dev/null
+++ b/tests/cassettes/customers/create.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/customers'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:11:51 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:lX6sU5JKCLrd3JdumgpNqX/w7xI='
+ Accept: ''
+ body: '{"id":"56c8cb4112bc7df178ae804fa75f712b","currency":"EUR"}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:11:51 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4febe36c81b764-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"56c8cb4112bc7df178ae804fa75f712b","currency":"EUR","refund_addresses":{},"addresses":[]}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/customers'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 317
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.399036
+ namelookup_time: 0.006163
+ connect_time: 0.058001
+ pretransfer_time: 0.244547
+ size_upload: 58.0
+ size_download: 104.0
+ speed_download: 260.0
+ speed_upload: 145.0
+ download_content_length: -1.0
+ upload_content_length: 58.0
+ starttransfer_time: 0.398991
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.40.240
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 58876
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 244454
+ connect_time_us: 58001
+ namelookup_time_us: 6163
+ pretransfer_time_us: 244547
+ redirect_time_us: 0
+ starttransfer_time_us: 398991
+ total_time_us: 399036
+ index: 0
diff --git a/tests/cassettes/customers/retrieve.yml b/tests/cassettes/customers/retrieve.yml
new file mode 100644
index 0000000..14fb21a
--- /dev/null
+++ b/tests/cassettes/customers/retrieve.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/customers/CUSTOMER-123'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:11:51 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:w+6AMmmG1KNaRWZ5WIYVibug1Sk='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:11:52 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4febe66fdf0bb9-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"CUSTOMER-123","currency":"EUR","refund_addresses":{"BTC":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ"},"addresses":[{"address":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","currency":"BTC","network":"bitcoin"}]}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/customers/CUSTOMER-123'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 251
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.4647
+ namelookup_time: 0.005497
+ connect_time: 0.138299
+ pretransfer_time: 0.288339
+ size_upload: 0.0
+ size_download: 213.0
+ speed_download: 459.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.463244
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.40.240
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 58884
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 288267
+ connect_time_us: 138299
+ namelookup_time_us: 5497
+ pretransfer_time_us: 288339
+ redirect_time_us: 0
+ starttransfer_time_us: 463244
+ total_time_us: 464700
+ index: 0
diff --git a/tests/cassettes/customers/update.yml b/tests/cassettes/customers/update.yml
new file mode 100644
index 0000000..91440e2
--- /dev/null
+++ b/tests/cassettes/customers/update.yml
@@ -0,0 +1,75 @@
+
+-
+ request:
+ method: PATCH
+ url: 'https://business-sandbox.cryptopay.me/api/customers/CUSTOMER-123'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:11:52 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:M5/Emg7p2PuCtd+R3JPlrZeDJ/I='
+ Accept: ''
+ body: '{"addresses":[{"address":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","currency":"BTC","network":"bitcoin"}]}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:11:52 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4febe9ee970c59-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"CUSTOMER-123","currency":"EUR","refund_addresses":{"BTC":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ"},"addresses":[{"address":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","currency":"BTC","network":"bitcoin"}]}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/customers/CUSTOMER-123'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 376
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.639209
+ namelookup_time: 0.005248
+ connect_time: 0.176692
+ pretransfer_time: 0.333065
+ size_upload: 102.0
+ size_download: 213.0
+ speed_download: 333.0
+ speed_upload: 159.0
+ download_content_length: -1.0
+ upload_content_length: 102.0
+ starttransfer_time: 0.593815
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.40.240
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 58894
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 332989
+ connect_time_us: 176692
+ namelookup_time_us: 5248
+ pretransfer_time_us: 333065
+ redirect_time_us: 0
+ starttransfer_time_us: 593815
+ total_time_us: 639209
+ index: 0
diff --git a/tests/cassettes/exchangeTransfers/commit.yml b/tests/cassettes/exchangeTransfers/commit.yml
new file mode 100644
index 0000000..08fdfae
--- /dev/null
+++ b/tests/cassettes/exchangeTransfers/commit.yml
@@ -0,0 +1,147 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:08:09 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:E6up4bES9DbWP0kB9exlHMkcl50='
+ Accept: ''
+ body: '{"charged_currency":"EUR","charged_amount":"100.0","received_currency":"BTC","received_amount":null,"force_commit":false}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:08:09 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fe6771a730bb6-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"009aae9d-5c64-4d98-ac86-1ad782c24459","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00333377","received_currency":"BTC","custom_id":null,"exchange":{"pair":"BTCEUR","rate":"29696.0269","fee":"1.0","fee_currency":"EUR"}}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 390
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.459339
+ namelookup_time: 0.00427
+ connect_time: 0.072039
+ pretransfer_time: 0.224627
+ size_upload: 121.0
+ size_download: 260.0
+ speed_download: 566.0
+ speed_upload: 263.0
+ download_content_length: -1.0
+ upload_content_length: 121.0
+ starttransfer_time: 0.459305
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 51712
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 224560
+ connect_time_us: 72039
+ namelookup_time_us: 4270
+ pretransfer_time_us: 224627
+ redirect_time_us: 0
+ starttransfer_time_us: 459305
+ total_time_us: 459339
+ index: 0
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers/009aae9d-5c64-4d98-ac86-1ad782c24459/commit'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Content-Length: '0'
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:08:09 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:5QcUp8l2bbpJvCyJ+Fe8U1HyEbE='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:08:10 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fe67acf5c0b34-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"009aae9d-5c64-4d98-ac86-1ad782c24459","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00333377","received_currency":"BTC","custom_id":null,"exchange":{"pair":"BTCEUR","rate":"29696.0269","fee":"1.0","fee_currency":"EUR"}}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers/009aae9d-5c64-4d98-ac86-1ad782c24459/commit'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 311
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.800044
+ namelookup_time: 0.004695
+ connect_time: 0.12396
+ pretransfer_time: 0.321143
+ size_upload: 0.0
+ size_download: 260.0
+ speed_download: 325.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.754529
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 51716
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 321088
+ connect_time_us: 123960
+ namelookup_time_us: 4695
+ pretransfer_time_us: 321143
+ redirect_time_us: 0
+ starttransfer_time_us: 754529
+ total_time_us: 800044
+ index: 0
diff --git a/tests/cassettes/exchangeTransfers/create.yml b/tests/cassettes/exchangeTransfers/create.yml
new file mode 100644
index 0000000..de2e165
--- /dev/null
+++ b/tests/cassettes/exchangeTransfers/create.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:08:10 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:pz596Q466+wth6P2Ui+WwBDzd8k='
+ Accept: ''
+ body: '{"charged_currency":"EUR","charged_amount":"100.0","received_currency":"BTC","received_amount":null,"force_commit":true}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:08:11 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fe67fbad1b704-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"db5f552c-7c0a-4761-8d05-1332440a23ae","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00333377","received_currency":"BTC","custom_id":null,"exchange":{"pair":"BTCEUR","rate":"29696.0269","fee":"1.0","fee_currency":"EUR"}}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 389
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.909822
+ namelookup_time: 0.004765
+ connect_time: 0.115037
+ pretransfer_time: 0.25911
+ size_upload: 120.0
+ size_download: 260.0
+ speed_download: 286.0
+ speed_upload: 132.0
+ download_content_length: -1.0
+ upload_content_length: 120.0
+ starttransfer_time: 0.864516
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 51728
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 259035
+ connect_time_us: 115037
+ namelookup_time_us: 4765
+ pretransfer_time_us: 259110
+ redirect_time_us: 0
+ starttransfer_time_us: 864516
+ total_time_us: 909822
+ index: 0
diff --git a/tests/cassettes/exchangeTransfers/retrieve.yml b/tests/cassettes/exchangeTransfers/retrieve.yml
new file mode 100644
index 0000000..0796916
--- /dev/null
+++ b/tests/cassettes/exchangeTransfers/retrieve.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers/2c090f99-7cc1-40da-9bca-7caa57b4ebfb'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:08:11 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:1Nc14U3ramNL/rupO9IOxuv7O64='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:08:11 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fe6859fbb0b54-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"2c090f99-7cc1-40da-9bca-7caa57b4ebfb","charged_amount":"100.0","charged_currency":"EUR","received_amount":"0.00182068","received_currency":"BTC","custom_id":null,"exchange":{"pair":"BTCEUR","rate":"54375.2576","fee":"1.0","fee_currency":"EUR"}}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/exchange_transfers/2c090f99-7cc1-40da-9bca-7caa57b4ebfb'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 284
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.535651
+ namelookup_time: 0.006115
+ connect_time: 0.140046
+ pretransfer_time: 0.286646
+ size_upload: 0.0
+ size_download: 260.0
+ speed_download: 485.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.498516
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 51732
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 286566
+ connect_time_us: 140046
+ namelookup_time_us: 6115
+ pretransfer_time_us: 286646
+ redirect_time_us: 0
+ starttransfer_time_us: 498516
+ total_time_us: 535651
+ index: 0
diff --git a/tests/cassettes/invoices/all.yml b/tests/cassettes/invoices/all.yml
new file mode 100644
index 0000000..664f063
--- /dev/null
+++ b/tests/cassettes/invoices/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/invoices'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:22 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:FtQf0YtaWu4PyeMwv1kQrdWwJ8Y='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:22 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd6ac78770c15-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"331646a6-c8b5-430d-adfb-021d11ff6cd0","custom_id":null,"customer_id":null,"subscription_id":null,"status":"unresolved","status_context":"underpaid","address":"0x25bd1f6fa8ebe01f62c53d59a1a712067bbe3ce1","network":"ethereum","uri":"ethereum:0x25bd1f6fa8ebe01f62c53d59a1a712067bbe3ce1@5?value=0.2850781e17","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.02850781","pay_currency":"ETH","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0051138","exchange":{"pair":"ETHEUR","rate":"1753.9057","fee":"0.0","fee_currency":"EUR"},"transactions":[{"txid":"0x786763120991ac60241a38e9116ccced9720b2c66092f61324b3653dd5755766","risk":null}],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/331646a6-c8b5-430d-adfb-021d11ff6cd0","created_at":"2023-07-11T08:41:50+00:00","expires_at":"2023-07-11T08:51:50+00:00"},{"id":"8dd53e0f-0725-48b4-b0a7-1840aa67b5bb","custom_id":null,"customer_id":null,"subscription_id":null,"status":"unresolved","status_context":"underpaid","address":"0x1a2f9873ff98c476373d0cbc3f4ca89e3413f3f3","network":"ethereum","uri":"ethereum:0x1a2f9873ff98c476373d0cbc3f4ca89e3413f3f3@5?value=0.2850781e17","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.02850781","pay_currency":"ETH","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0052326","exchange":{"pair":"ETHEUR","rate":"1753.9057","fee":"0.0","fee_currency":"EUR"},"transactions":[{"txid":"0x21d8cd05df602c8b4a93b50073de338e57b6cf1997098257d708ec715d0a8ec0","risk":null}],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/8dd53e0f-0725-48b4-b0a7-1840aa67b5bb","created_at":"2023-07-11T08:40:47+00:00","expires_at":"2023-07-11T08:50:47+00:00"},{"id":"29a563ad-b417-445c-b8f6-b6c806bb039b","custom_id":null,"customer_id":null,"subscription_id":null,"status":"unresolved","status_context":"underpaid","address":"0x01e19ff9d2b4f8008d7ea286bbf31f4147b2b7fa","network":"ethereum","uri":"ethereum:0x01e19ff9d2b4f8008d7ea286bbf31f4147b2b7fa@5?value=0.2850781e17","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.02850781","pay_currency":"ETH","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0052326","exchange":{"pair":"ETHEUR","rate":"1753.9057","fee":"0.0","fee_currency":"EUR"},"transactions":[{"txid":"0xfd6c42f88e0a614672bfec91681c81e1cb7e3d14cb9437955c0e2e1476c441ea","risk":null}],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/29a563ad-b417-445c-b8f6-b6c806bb039b","created_at":"2023-07-11T08:37:31+00:00","expires_at":"2023-07-11T08:47:31+00:00"},{"id":"c9e75e23-8664-4f26-9098-3c304c7b6e31","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2N6jUcreGRfcx94LnysDGn8FDa13yTj5tsM","network":"bitcoin","uri":"bitcoin:2N6jUcreGRfcx94LnysDGn8FDa13yTj5tsM?amount=0.003546","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003546","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28202.345","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/c9e75e23-8664-4f26-9098-3c304c7b6e31","created_at":"2023-07-10T10:15:08+00:00","expires_at":"2023-07-10T10:25:08+00:00"},{"id":"8b7cecef-e220-4619-b95e-47caea862c8f","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2Mwpgd4H1MzUkxr9CbvtxKahswxyjKRdeqU","network":"bitcoin","uri":"bitcoin:2Mwpgd4H1MzUkxr9CbvtxKahswxyjKRdeqU?amount=0.003554","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003554","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28140.826","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/8b7cecef-e220-4619-b95e-47caea862c8f","created_at":"2023-07-10T09:08:10+00:00","expires_at":"2023-07-10T09:18:10+00:00"},{"id":"46c48574-66e3-4838-8ab4-99a3d0f0a368","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2N2ghTxRcHHWQGeCAuJZwL5Q3FYNxYsY8Z4","network":"bitcoin","uri":"bitcoin:2N2ghTxRcHHWQGeCAuJZwL5Q3FYNxYsY8Z4?amount=0.003554","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003554","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28140.826","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/46c48574-66e3-4838-8ab4-99a3d0f0a368","created_at":"2023-07-10T09:07:19+00:00","expires_at":"2023-07-10T09:17:19+00:00"},{"id":"03ff86bb-4da0-4950-954f-5b7a2ee75298","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2N6oXh8QLon1LPPsS99XgMvnQCBqB8x5htJ","network":"bitcoin","uri":"bitcoin:2N6oXh8QLon1LPPsS99XgMvnQCBqB8x5htJ?amount=0.003547","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003547","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28200.2943","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/03ff86bb-4da0-4950-954f-5b7a2ee75298","created_at":"2023-07-10T08:21:35+00:00","expires_at":"2023-07-10T08:31:35+00:00"},{"id":"f5959728-2eab-439c-9c1a-a1b8d2cc5712","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2N3fc4No7zXxVroLMwXnumJwrZeHXbEysZz","network":"bitcoin","uri":"bitcoin:2N3fc4No7zXxVroLMwXnumJwrZeHXbEysZz?amount=0.003547","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003547","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28200.2943","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/f5959728-2eab-439c-9c1a-a1b8d2cc5712","created_at":"2023-07-10T08:20:16+00:00","expires_at":"2023-07-10T08:30:16+00:00"},{"id":"40b271ac-085a-4714-8c8b-48fcaea1cd57","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2MwTmYw5RjhrYs6vwmrcQrF8eV4sYm3r7fj","network":"bitcoin","uri":"bitcoin:2MwTmYw5RjhrYs6vwmrcQrF8eV4sYm3r7fj?amount=0.003547","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003547","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28200.2943","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/40b271ac-085a-4714-8c8b-48fcaea1cd57","created_at":"2023-07-10T08:19:55+00:00","expires_at":"2023-07-10T08:29:55+00:00"},{"id":"cbc1b67e-becd-4b1b-b55d-60d64f8d5bcd","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2NCfY5DkQDss1zAiuhEYdkWUqubDgBCFTSL","network":"bitcoin","uri":"bitcoin:2NCfY5DkQDss1zAiuhEYdkWUqubDgBCFTSL?amount=0.003547","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003547","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28200.2943","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/cbc1b67e-becd-4b1b-b55d-60d64f8d5bcd","created_at":"2023-07-10T08:19:42+00:00","expires_at":"2023-07-10T08:29:42+00:00"},{"id":"a3769873-b891-4771-930d-6b0e98fe42b4","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2MyetnSkjtRHzmWAiqnakn6wxaT3CZ5tfJW","network":"bitcoin","uri":"bitcoin:2MyetnSkjtRHzmWAiqnakn6wxaT3CZ5tfJW?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/a3769873-b891-4771-930d-6b0e98fe42b4","created_at":"2023-07-10T08:10:41+00:00","expires_at":"2023-07-10T10:10:41+00:00"},{"id":"b9ef4d50-502c-4739-abd4-4bd1fa9ba116","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2NEG8r4W1eDUkyJz2VFML9E5yxRpqyd8RTQ","network":"bitcoin","uri":"bitcoin:2NEG8r4W1eDUkyJz2VFML9E5yxRpqyd8RTQ?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/b9ef4d50-502c-4739-abd4-4bd1fa9ba116","created_at":"2023-07-06T13:29:54+00:00","expires_at":"2023-07-06T15:29:54+00:00"},{"id":"a304c0fe-4553-477d-a9a1-ed7b42c5fcc4","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2N8SuqqNDwahZzYKDYvAJMqsaRKysVKLKrc","network":"bitcoin","uri":"bitcoin:2N8SuqqNDwahZzYKDYvAJMqsaRKysVKLKrc?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/a304c0fe-4553-477d-a9a1-ed7b42c5fcc4","created_at":"2023-07-06T13:06:09+00:00","expires_at":"2023-07-06T15:06:09+00:00"},{"id":"fe2cc363-71a2-4aba-9c2b-aff69d391e3b","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2MsiWs6FS3xtLxViRipBVd8eEnS581Yq3m2","network":"bitcoin","uri":"bitcoin:2MsiWs6FS3xtLxViRipBVd8eEnS581Yq3m2?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/fe2cc363-71a2-4aba-9c2b-aff69d391e3b","created_at":"2023-07-06T13:06:03+00:00","expires_at":"2023-07-06T15:06:03+00:00"},{"id":"5bab7667-20c3-40a6-b989-99fead86f10b","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2N6bEsCFQdtbj4MjVxy31DhnsQyL77zqxzQ","network":"bitcoin","uri":"bitcoin:2N6bEsCFQdtbj4MjVxy31DhnsQyL77zqxzQ?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/5bab7667-20c3-40a6-b989-99fead86f10b","created_at":"2023-07-06T13:05:55+00:00","expires_at":"2023-07-06T15:05:55+00:00"},{"id":"d655d1fe-e5b0-4551-85ec-a7ddb4fd7272","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2NB7wnkbAvZKiVpeaC2sDY4LS72eKDYsrZJ","network":"bitcoin","uri":"bitcoin:2NB7wnkbAvZKiVpeaC2sDY4LS72eKDYsrZJ?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/d655d1fe-e5b0-4551-85ec-a7ddb4fd7272","created_at":"2023-07-06T13:05:50+00:00","expires_at":"2023-07-06T15:05:50+00:00"},{"id":"8a815d50-0cf9-40cb-869e-806b90788dc9","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2MyxUzL4f6oJhwbyD7nuPrTBqZbz9fcU8Vp","network":"bitcoin","uri":"bitcoin:2MyxUzL4f6oJhwbyD7nuPrTBqZbz9fcU8Vp?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/8a815d50-0cf9-40cb-869e-806b90788dc9","created_at":"2023-07-06T13:05:37+00:00","expires_at":"2023-07-06T15:05:37+00:00"},{"id":"8c8bc640-72c7-4b26-bac9-f7f6abef7014","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2Mt7hRZmDmfdSLxVTj6ez8tDFjeaF6by3J1","network":"bitcoin","uri":"bitcoin:2Mt7hRZmDmfdSLxVTj6ez8tDFjeaF6by3J1?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/8c8bc640-72c7-4b26-bac9-f7f6abef7014","created_at":"2023-07-06T13:05:30+00:00","expires_at":"2023-07-06T15:05:30+00:00"},{"id":"6f8527a8-6873-4fd3-9e29-6d9795f1a841","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2MwXtWAkM1CSTSKh7X2q3BXd54BYXWLykzn","network":"bitcoin","uri":"bitcoin:2MwXtWAkM1CSTSKh7X2q3BXd54BYXWLykzn?amount=0.00018704","price_amount":"0.00018704","price_currency":"BTC","pay_amount":"0.00018704","pay_currency":"BTC","fee":"0.00000188","fee_currency":"BTC","paid_amount":"0.0","transactions":[],"name":"Test","description":"#1","metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/6f8527a8-6873-4fd3-9e29-6d9795f1a841","created_at":"2023-07-06T13:05:14+00:00","expires_at":"2023-07-06T15:05:14+00:00"},{"id":"45e3db3a-c823-40a4-9cd5-05a292b2282d","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"0x25bd1f6fa8ebe01f62c53d59a1a712067bbe3ce1","network":"ethereum","uri":"ethereum:0x25bd1f6fa8ebe01f62c53d59a1a712067bbe3ce1@5?value=0.2738555e17","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.02738555","pay_currency":"ETH","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ETHEUR","rate":"1825.7804","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/45e3db3a-c823-40a4-9cd5-05a292b2282d","created_at":"2023-07-06T10:43:32+00:00","expires_at":"2023-07-06T10:53:32+00:00"},{"id":"5c916a9a-f26c-417f-b067-f4b36821076b","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"0x42550Dfb88B0678D31e23055fd793C50Ddb21df4","network":"bnb_smart_chain","uri":"0x42550Dfb88B0678D31e23055fd793C50Ddb21df4","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.17694286","pay_currency":"BNB","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BNBEUR","rate":"282.5771","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/5c916a9a-f26c-417f-b067-f4b36821076b","created_at":"2023-07-06T10:43:27+00:00","expires_at":"2023-07-06T10:53:27+00:00"},{"id":"bd1837e4-22dd-4017-8b1d-27e49ebd6193","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"0x2CfaDbE87D1eF12A3a233A669B40ec3dfC183188","network":"bnb_smart_chain","uri":"0x2CfaDbE87D1eF12A3a233A669B40ec3dfC183188","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.17697261","pay_currency":"BNB","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BNBEUR","rate":"282.5296","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/bd1837e4-22dd-4017-8b1d-27e49ebd6193","created_at":"2023-07-06T10:33:44+00:00","expires_at":"2023-07-06T10:43:44+00:00"},{"id":"8da1e0f0-e08f-4250-bb8c-e04a5b29eeba","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"0x1a2f9873ff98c476373d0cbc3f4ca89e3413f3f3","network":"ethereum","uri":"ethereum:0x1a2f9873ff98c476373d0cbc3f4ca89e3413f3f3@5?value=0.2732724e17","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.02732724","pay_currency":"ETH","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ETHEUR","rate":"1829.6766","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/8da1e0f0-e08f-4250-bb8c-e04a5b29eeba","created_at":"2023-07-06T10:32:32+00:00","expires_at":"2023-07-06T10:42:32+00:00"},{"id":"cb2a09b5-4667-4eb2-aacd-6fac008551cd","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"0xb89e8eb06fa7696dd78f49359fa3b595f470ff9f","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0xb89e8eb06fa7696dd78f49359fa3b595f470ff9f&uint256=0.53027893e8","price_amount":"50.0","price_currency":"EUR","pay_amount":"53.027893","pay_currency":"USDT","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"USDTEUR","rate":"0.9429","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/cb2a09b5-4667-4eb2-aacd-6fac008551cd","created_at":"2023-07-06T10:30:32+00:00","expires_at":"2023-07-06T10:40:32+00:00"},{"id":"209f350a-591f-44e7-9eb5-e9b4f1974996","custom_id":null,"customer_id":null,"subscription_id":null,"status":"completed","status_context":null,"address":"0xe1bdb1c31635ea44227c4b8d97ef67a5cb9b20f9","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0xe1bdb1c31635ea44227c4b8d97ef67a5cb9b20f9&uint256=0.53027893e8","price_amount":"50.0","price_currency":"EUR","pay_amount":"53.027893","pay_currency":"USDT","fee":"0.5","fee_currency":"EUR","paid_amount":"53.027893","exchange":{"pair":"USDTEUR","rate":"0.9429","fee":"0.0","fee_currency":"EUR"},"transactions":[{"txid":"0x8ad409f21b533ab88cd257266ef5ff2f2236c4a5ba5f9e35154676d02cf944e1","risk":null}],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/209f350a-591f-44e7-9eb5-e9b4f1974996","created_at":"2023-07-06T10:28:05+00:00","expires_at":"2023-07-06T10:38:05+00:00"},{"id":"a581ec0e-a426-4a4e-9767-fa09e4cfb88e","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"0x544cc2b8f501e29cbe513368fd81376ff1431875","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0x544cc2b8f501e29cbe513368fd81376ff1431875&uint256=0.5302227e8","price_amount":"50.0","price_currency":"EUR","pay_amount":"53.02227","pay_currency":"USDT","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"USDTEUR","rate":"0.943","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/a581ec0e-a426-4a4e-9767-fa09e4cfb88e","created_at":"2023-07-06T10:11:44+00:00","expires_at":"2023-07-06T10:21:44+00:00"},{"id":"54801abb-88cb-4e4f-9c27-6b147fd443fd","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=2911025034","network":"ripple","uri":"ripple:rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?amount=108.01259&dt=2911025034","price_amount":"50.0","price_currency":"EUR","pay_amount":"108.01259","pay_currency":"XRP","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"XRPEUR","rate":"0.462909","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/54801abb-88cb-4e4f-9c27-6b147fd443fd","created_at":"2023-06-22T14:43:59+00:00","expires_at":"2023-06-22T14:53:59+00:00"},{"id":"ffc68d65-5012-48e9-8ea7-7cc8fc7ee9f5","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=1813013935","network":"ripple","uri":"ripple:rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?amount=108.01259&dt=1813013935","price_amount":"50.0","price_currency":"EUR","pay_amount":"108.01259","pay_currency":"XRP","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"XRPEUR","rate":"0.462909","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/ffc68d65-5012-48e9-8ea7-7cc8fc7ee9f5","created_at":"2023-06-22T14:43:41+00:00","expires_at":"2023-06-22T14:53:41+00:00"},{"id":"41e094fa-9671-49b2-8f4e-75aab15674d0","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"GBZQNLHMCQKTKAZXOXEDVKCD7MLXKGPGCE6XD67N4235IGU6ZBLZF5SQ?dt=3544462702","network":"stellar","uri":"web+stellar:pay?destination=GBZQNLHMCQKTKAZXOXEDVKCD7MLXKGPGCE6XD67N4235IGU6ZBLZF5SQ&memo=3544462702&memo_type=MEMO_ID&amount=596.7441639","price_amount":"50.0","price_currency":"EUR","pay_amount":"596.7441639","pay_currency":"XLM","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"XLMEUR","rate":"0.083788","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/41e094fa-9671-49b2-8f4e-75aab15674d0","created_at":"2023-06-05T18:36:45+00:00","expires_at":"2023-06-05T18:46:45+00:00"},{"id":"aef56529-39f1-4b31-9662-b7005784ca48","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"2N4khsMvEYuGb8FVYmk8TC2KupCca71xCFW","network":"bitcoin","uri":"bitcoin:2N4khsMvEYuGb8FVYmk8TC2KupCca71xCFW?amount=0.002009","price_amount":"50.0","price_currency":"EUR","pay_amount":"0.002009","pay_currency":"BTC","fee":"0.5","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"24891.5992","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/aef56529-39f1-4b31-9662-b7005784ca48","created_at":"2023-05-24T16:16:42+00:00","expires_at":"2023-05-24T16:26:42+00:00"},{"id":"b80940cb-f586-4412-82ab-703d37a6c1b0","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"2NFxAg6RxWWZxYC1j3JH8mmdyiWEGu7pkkT","network":"bitcoin","uri":"bitcoin:2NFxAg6RxWWZxYC1j3JH8mmdyiWEGu7pkkT?amount=0.000804","price_amount":"20.0","price_currency":"EUR","pay_amount":"0.000804","pay_currency":"BTC","fee":"0.2","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"24891.5992","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/b80940cb-f586-4412-82ab-703d37a6c1b0","created_at":"2023-05-24T16:16:32+00:00","expires_at":"2023-05-24T16:26:32+00:00"},{"id":"5a87bf44-7fe2-4081-915b-2bd864414190","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"2N2WZvKV1zuHoWfdCVCBGSSgrh6XaLAdNXi","network":"bitcoin","uri":"bitcoin:2N2WZvKV1zuHoWfdCVCBGSSgrh6XaLAdNXi?amount=0.000051","price_amount":"50.0","price_currency":"UAH","pay_amount":"0.000051","pay_currency":"BTC","fee":"0.5","fee_currency":"UAH","paid_amount":"0.0","exchange":{"pair":"BTCUAH","rate":"987030.3197","fee":"0.0","fee_currency":"UAH"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/5a87bf44-7fe2-4081-915b-2bd864414190","created_at":"2023-05-24T16:16:20+00:00","expires_at":"2023-05-24T16:26:20+00:00"},{"id":"b7bdc7c4-43d6-47cd-ace4-bdd0ead8327f","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"QPFidd2LS3HGwFgmC76DfxBN3ZFJNVjUaR","network":"litecoin","uri":"litecoin:QPFidd2LS3HGwFgmC76DfxBN3ZFJNVjUaR?amount=1.0","price_amount":"1.0","price_currency":"LTC","pay_amount":"1.0","pay_currency":"LTC","fee":"0.01","fee_currency":"LTC","paid_amount":"0.0","transactions":[],"name":"test item","description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/b7bdc7c4-43d6-47cd-ace4-bdd0ead8327f","created_at":"2023-05-16T11:54:30+00:00","expires_at":"2023-05-16T13:54:30+00:00"},{"id":"8e69abcf-9065-4ac3-a998-bfde90d5b59d","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"2N76xAZuswWhXKXG9mGPMTE9Tadnd3bZTNG","network":"bitcoin","uri":"bitcoin:2N76xAZuswWhXKXG9mGPMTE9Tadnd3bZTNG?amount=0.092795","price_amount":"2365.89","price_currency":"EUR","pay_amount":"0.092795","pay_currency":"BTC","fee":"23.66","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"25496.1295","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/8e69abcf-9065-4ac3-a998-bfde90d5b59d","created_at":"2023-05-16T11:53:38+00:00","expires_at":"2023-05-16T12:03:38+00:00"},{"id":"d1fa210c-8eb9-4649-9f3c-ac372e83dc0c","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"QRcZKen6dbkmB8vgdTU3XaimiiLPPiG9We","network":"litecoin","uri":"litecoin:QRcZKen6dbkmB8vgdTU3XaimiiLPPiG9We?amount=0.27933958","price_amount":"23.48","price_currency":"EUR","pay_amount":"0.27933958","pay_currency":"LTC","fee":"0.24","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"LTCEUR","rate":"84.0554","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/d1fa210c-8eb9-4649-9f3c-ac372e83dc0c","created_at":"2023-05-16T11:52:52+00:00","expires_at":"2023-05-16T12:02:52+00:00"},{"id":"70b79b0c-7c94-413d-8364-e0103fd58bca","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0x227e19d7d7abDf06Ec7233dD33Bd33E27a06Ee81","network":"bnb_smart_chain","uri":"0x227e19d7d7abDf06Ec7233dD33Bd33E27a06Ee81","price_amount":"100.0","price_currency":"EUR","pay_amount":"106.940435","pay_currency":"USDT","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"USDTEUR","rate":"0.9351","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/70b79b0c-7c94-413d-8364-e0103fd58bca","created_at":"2023-04-20T09:58:57+00:00","expires_at":"2023-04-20T10:08:57+00:00"},{"id":"d3872cfe-4fc3-4012-942e-43178684a129","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0x8910f0d28a9a63189e851e5fdd74ba210e9a8ed9","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0x8910f0d28a9a63189e851e5fdd74ba210e9a8ed9&uint256=0.107909788e9","price_amount":"100.0","price_currency":"EUR","pay_amount":"107.909788","pay_currency":"USDT","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"USDTEUR","rate":"0.9267","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/d3872cfe-4fc3-4012-942e-43178684a129","created_at":"2023-04-14T08:38:39+00:00","expires_at":"2023-04-14T08:48:39+00:00"},{"id":"d4ee7889-bcdf-4769-830c-027ec0db9679","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0xa37f560c81ceca29c9c64390a815d66804ebcbdc","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0xa37f560c81ceca29c9c64390a815d66804ebcbdc&uint256=0.1327609e7","price_amount":"50.0","price_currency":"UAH","pay_amount":"1.327609","pay_currency":"USDT","fee":"0.5","fee_currency":"UAH","paid_amount":"0.0","exchange":{"pair":"USDTUAH","rate":"37.6617","fee":"0.0","fee_currency":"UAH"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/d4ee7889-bcdf-4769-830c-027ec0db9679","created_at":"2023-04-13T11:29:29+00:00","expires_at":"2023-04-13T11:39:29+00:00"},{"id":"73d48f20-4692-4662-8c9b-763a46d00b88","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"6R5BDanX2YjhCqHVtMkLVUgPMncXUbrSTfADw9DkDS2z","network":"solana","uri":"solana:6R5BDanX2YjhCqHVtMkLVUgPMncXUbrSTfADw9DkDS2z?amount=0.062124095","price_amount":"50.0","price_currency":"UAH","pay_amount":"0.062124095","pay_currency":"SOL","fee":"0.5","fee_currency":"UAH","paid_amount":"0.0","exchange":{"pair":"SOLUAH","rate":"804.84071","fee":"0.0","fee_currency":"UAH"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/73d48f20-4692-4662-8c9b-763a46d00b88","created_at":"2023-03-29T10:08:30+00:00","expires_at":"2023-03-29T10:18:30+00:00"},{"id":"4f19aee9-b211-475b-bdda-c2bb44946869","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?dt=3486824376","network":"ripple","uri":"ripple:rn7bUErRCFBHhLpjmx3XhR89exwgwFFjMs?amount=27.66137&dt=3486824376","price_amount":"10.0","price_currency":"EUR","pay_amount":"27.66137","pay_currency":"XRP","fee":"0.1","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"XRPEUR","rate":"0.361515","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/4f19aee9-b211-475b-bdda-c2bb44946869","created_at":"2023-03-17T13:57:09+00:00","expires_at":"2023-03-17T14:07:09+00:00"},{"id":"00635f8b-bde8-4fa1-97b3-53ae2958a877","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"addr_test1qqx0cp0kh27ctlwy3775as7mt6whslwutse0vhefxxn0tqgrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqgmckps","network":"cardano","uri":"web+cardano:addr_test1qqx0cp0kh27ctlwy3775as7mt6whslwutse0vhefxxn0tqgrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqgmckps?amount=328.44282","price_amount":"100.0","price_currency":"EUR","pay_amount":"328.44282","pay_currency":"ADA","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ADAEUR","rate":"0.304467","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/00635f8b-bde8-4fa1-97b3-53ae2958a877","created_at":"2023-03-10T12:17:36+00:00","expires_at":"2023-03-10T12:27:36+00:00"},{"id":"fa31b05b-9b16-4ead-bd12-0827e08568fe","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"addr_test1qpnp8zumurg52z96ut36vec3g8g8d982nqlr0lz6y0hehygrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqagjajs","network":"cardano","uri":"web+cardano:addr_test1qpnp8zumurg52z96ut36vec3g8g8d982nqlr0lz6y0hehygrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqagjajs?amount=284.339707","price_amount":"100.0","price_currency":"EUR","pay_amount":"284.339707","pay_currency":"ADA","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ADAEUR","rate":"0.351692","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/fa31b05b-9b16-4ead-bd12-0827e08568fe","created_at":"2023-03-02T10:54:23+00:00","expires_at":"2023-03-02T11:04:23+00:00"},{"id":"25a827fd-0dc3-43fd-9bba-f9bb5f31f66a","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"addr_test1qqnz85c8htjy96jmj5g6gzr6yrkuvxse9u3wv5k2xgaearcrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqyr0epm","network":"cardano","uri":"web+cardano:addr_test1qqnz85c8htjy96jmj5g6gzr6yrkuvxse9u3wv5k2xgaearcrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqyr0epm?amount=284.339707","price_amount":"100.0","price_currency":"EUR","pay_amount":"284.339707","pay_currency":"ADA","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ADAEUR","rate":"0.351692","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/25a827fd-0dc3-43fd-9bba-f9bb5f31f66a","created_at":"2023-03-02T10:53:44+00:00","expires_at":"2023-03-02T11:03:44+00:00"},{"id":"2b33d5d7-7dc3-458e-8626-1a241ece4d40","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"addr_test1qzjuuq3k8ky4p9rxjsxwxap0s32fuuxcjah3ghzpqx9pepgrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqvxmatj","network":"cardano","uri":"web+cardano:addr_test1qzjuuq3k8ky4p9rxjsxwxap0s32fuuxcjah3ghzpqx9pepgrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqvxmatj?amount=256.309705","price_amount":"100.0","price_currency":"EUR","pay_amount":"256.309705","pay_currency":"ADA","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ADAEUR","rate":"0.390153","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/2b33d5d7-7dc3-458e-8626-1a241ece4d40","created_at":"2023-02-23T02:32:21+00:00","expires_at":"2023-02-23T02:42:21+00:00"},{"id":"5cf50ed0-5e89-41c1-b5f0-e9f716a09851","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0xe369B4ECf62DB701F3f034e3d84CA87d28D2543F","network":"bnb_smart_chain","uri":"0xe369B4ECf62DB701F3f034e3d84CA87d28D2543F","price_amount":"100.0","price_currency":"EUR","pay_amount":"104.416832","pay_currency":"BUSD","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BUSDEUR","rate":"0.9577","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/5cf50ed0-5e89-41c1-b5f0-e9f716a09851","created_at":"2023-02-16T10:18:06+00:00","expires_at":"2023-02-16T10:28:06+00:00"},{"id":"af341b60-ec2c-449a-ba9a-b64a1bbc6081","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0xcf4168070cb1a0a6911953ffe65203ea87db9fa4","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0xcf4168070cb1a0a6911953ffe65203ea87db9fa4&uint256=0.104395031e9","price_amount":"100.0","price_currency":"EUR","pay_amount":"104.395031","pay_currency":"USDT","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"USDTEUR","rate":"0.9579","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/af341b60-ec2c-449a-ba9a-b64a1bbc6081","created_at":"2023-02-16T10:06:35+00:00","expires_at":"2023-02-16T10:16:35+00:00"},{"id":"97447c3a-0279-49c0-bce9-3421378d3c02","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0xe05e2a1e708c0bef3f59e4c33c3f715d5e3894f8","network":"ethereum","uri":"ethereum:0x849017d2ec55573aca70f78c42c4b83b782f2b55@5/transfer?address=0xe05e2a1e708c0bef3f59e4c33c3f715d5e3894f8&uint256=0.79936052e26","price_amount":"1000.0","price_currency":"EUR","pay_amount":"79936052.0","pay_currency":"SHIB","fee":"10.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"SHIBEUR","rate":"0.00001251","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/97447c3a-0279-49c0-bce9-3421378d3c02","created_at":"2023-02-09T14:09:16+00:00","expires_at":"2023-02-09T14:19:16+00:00"},{"id":"d0b0062a-ded6-457c-97f0-fe5ed03209b2","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0x986c3c54279319b9a9fe4c4d4752e30a0039dc3c","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0x986c3c54279319b9a9fe4c4d4752e30a0039dc3c&uint256=0.105042017e9","price_amount":"100.0","price_currency":"EUR","pay_amount":"105.042017","pay_currency":"USDT","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"USDTEUR","rate":"0.952","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/d0b0062a-ded6-457c-97f0-fe5ed03209b2","created_at":"2023-02-09T12:10:42+00:00","expires_at":"2023-02-09T12:20:42+00:00"},{"id":"e1e975e4-1fca-4d0a-a888-c7cd6afad088","custom_id":null,"customer_id":null,"subscription_id":null,"status":"completed","status_context":null,"address":"QjCoNeYXna8CsGwYjhyMbnaecdmNeMwvfG","network":"litecoin","uri":"litecoin:QjCoNeYXna8CsGwYjhyMbnaecdmNeMwvfG?amount=0.10598891","price_amount":"10.0","price_currency":"EUR","pay_amount":"0.10598891","pay_currency":"LTC","fee":"0.1","fee_currency":"EUR","paid_amount":"0.10598891","exchange":{"pair":"LTCEUR","rate":"94.3495","fee":"0.0","fee_currency":"EUR"},"transactions":[{"txid":"1b5ba120539781873719cfee4735def4d37119752d7c6908052fffa8a8f88d06","risk":null}],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/e1e975e4-1fca-4d0a-a888-c7cd6afad088","created_at":"2023-02-07T07:20:00+00:00","expires_at":"2023-02-07T07:30:00+00:00"},{"id":"61beb6ab-87bc-4d36-aab6-c0a166de865c","custom_id":null,"customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"addr_test1qz0ctp038amw9wvphzht7w4wrwtj32cyad0qvgkl05zjaegrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqdh7jxw","network":"cardano","uri":"web+cardano:addr_test1qz0ctp038amw9wvphzht7w4wrwtj32cyad0qvgkl05zjaegrxwn8e3r3r3236dpdudet3kxe468x9gmae05v9l404nnqdh7jxw?amount=258.915765","price_amount":"100.0","price_currency":"EUR","pay_amount":"258.915765","pay_currency":"ADA","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ADAEUR","rate":"0.386226","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/61beb6ab-87bc-4d36-aab6-c0a166de865c","created_at":"2023-02-06T12:50:32+00:00","expires_at":"2023-02-06T13:00:32+00:00"}],"meta":{"total":570,"has_more":true}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 237
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.669216
+ namelookup_time: 0.004259
+ connect_time: 0.067631
+ pretransfer_time: 0.263741
+ size_upload: 0.0
+ size_download: 42770.0
+ speed_download: 63931.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.571775
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 41860
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 263698
+ connect_time_us: 67631
+ namelookup_time_us: 4259
+ pretransfer_time_us: 263741
+ redirect_time_us: 0
+ starttransfer_time_us: 571775
+ total_time_us: 669216
+ index: 0
diff --git a/tests/cassettes/invoices/allRefunds.yml b/tests/cassettes/invoices/allRefunds.yml
new file mode 100644
index 0000000..d0e0c0d
--- /dev/null
+++ b/tests/cassettes/invoices/allRefunds.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/7e274430-e20f-4321-8748-20824287ae44/refunds'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:59 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:7qYI3opUvYGaI2se3bMAm6MNKOQ='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:59 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd792edd606ca-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"2734762e-2ee8-4830-9144-f8f260039f00","custom_id":null,"invoice_id":"7e274430-e20f-4321-8748-20824287ae44","amount":"0.02986987","amount_currency":"ETH","fee":"0.0002987","fee_currency":"ETH","address":"0xf3532c1fd002665ec54d46a50787e0c69c76cd44","txid":"0x08603fd0442c133486fa33d6e0141250d3892be5b31cc99fc8c83055ecb5e96c","risk":{"score":8.25,"level":"low","resource_name":"default","resource_category":"unknown"},"created_at":"2021-10-14T11:41:33+00:00","network":"ethereum"}]}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/7e274430-e20f-4321-8748-20824287ae44/refunds'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 282
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.49436
+ namelookup_time: 0.006027
+ connect_time: 0.145648
+ pretransfer_time: 0.295134
+ size_upload: 0.0
+ size_download: 495.0
+ speed_download: 1002.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.494313
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60958
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 295080
+ connect_time_us: 145648
+ namelookup_time_us: 6027
+ pretransfer_time_us: 295134
+ redirect_time_us: 0
+ starttransfer_time_us: 494313
+ total_time_us: 494360
+ index: 0
diff --git a/tests/cassettes/invoices/commitRecalculation.yml b/tests/cassettes/invoices/commitRecalculation.yml
new file mode 100644
index 0000000..d29c06d
--- /dev/null
+++ b/tests/cassettes/invoices/commitRecalculation.yml
@@ -0,0 +1,146 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/8dd53e0f-0725-48b4-b0a7-1840aa67b5bb/recalculations'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Content-Length: '0'
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:55 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:OWlJrY6lEi7TVNPmweHe2OtF5kI='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:56 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd77e2a561c89-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"72fcd931-7d39-44f3-9c3c-8a1e887c3ec2","invoice_id":"8dd53e0f-0725-48b4-b0a7-1840aa67b5bb","pay_amount":"0.0052326","pay_currency":"ETH","price_amount":"9.17","price_currency":"EUR","fee":"0.1","fee_currency":"EUR","previous_pay_amount":"0.02850781","previous_price_amount":"50.0","previous_exchange_rate":"1753.9057","exchange":{"pair":"ETHEUR","rate":"1753.8032","fee":"0.0","fee_currency":"EUR"},"created_at":"2023-07-11T08:57:56Z"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/8dd53e0f-0725-48b4-b0a7-1840aa67b5bb/recalculations'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 309
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.500213
+ namelookup_time: 0.007121
+ connect_time: 0.08017
+ pretransfer_time: 0.277769
+ size_upload: 0.0
+ size_download: 450.0
+ speed_download: 900.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.500162
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60916
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 277707
+ connect_time_us: 80170
+ namelookup_time_us: 7121
+ pretransfer_time_us: 277769
+ redirect_time_us: 0
+ starttransfer_time_us: 500162
+ total_time_us: 500213
+ index: 0
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/8dd53e0f-0725-48b4-b0a7-1840aa67b5bb/recalculations/72fcd931-7d39-44f3-9c3c-8a1e887c3ec2/commit'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Content-Length: '0'
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:56 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:97mN3zPTCSOO2H/y37c0D1c/tHE='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:56 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd781d9640eb3-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"72fcd931-7d39-44f3-9c3c-8a1e887c3ec2","invoice_id":"8dd53e0f-0725-48b4-b0a7-1840aa67b5bb","pay_amount":"0.0052326","pay_currency":"ETH","price_amount":"9.17","price_currency":"EUR","fee":"0.1","fee_currency":"EUR","previous_pay_amount":"0.02850781","previous_price_amount":"50.0","previous_exchange_rate":"1753.9057","exchange":{"pair":"ETHEUR","rate":"1753.8032","fee":"0.0","fee_currency":"EUR"},"created_at":"2023-07-11T08:57:56+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/8dd53e0f-0725-48b4-b0a7-1840aa67b5bb/recalculations/72fcd931-7d39-44f3-9c3c-8a1e887c3ec2/commit'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 353
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.635323
+ namelookup_time: 0.004996
+ connect_time: 0.153582
+ pretransfer_time: 0.343457
+ size_upload: 0.0
+ size_download: 455.0
+ speed_download: 716.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.635286
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60926
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 343402
+ connect_time_us: 153582
+ namelookup_time_us: 4996
+ pretransfer_time_us: 343457
+ redirect_time_us: 0
+ starttransfer_time_us: 635286
+ total_time_us: 635323
+ index: 0
diff --git a/tests/cassettes/invoices/create.yml b/tests/cassettes/invoices/create.yml
new file mode 100644
index 0000000..b4754f8
--- /dev/null
+++ b/tests/cassettes/invoices/create.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/invoices'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:56 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:B5I1lECdbL+vZfBAksMr0q2iUt0='
+ Accept: ''
+ body: '{"price_amount":"100.0","price_currency":"EUR","pay_currency":"BTC"}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:57 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd7857b21b790-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"4e79ee49-f3dd-4941-a6cc-ed0d86087cff","custom_id":null,"customer_id":null,"subscription_id":null,"status":"new","status_context":null,"address":"2MwvfYSivVfn1XEsHJmyvhbrg6qf1CqznZL","network":"bitcoin","uri":"bitcoin:2MwvfYSivVfn1XEsHJmyvhbrg6qf1CqznZL?amount=0.003517","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.003517","pay_currency":"BTC","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"BTCEUR","rate":"28439.193","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/4e79ee49-f3dd-4941-a6cc-ed0d86087cff","created_at":"2023-07-11T08:57:57+00:00","expires_at":"2023-07-11T09:07:57+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 326
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.579051
+ namelookup_time: 0.005323
+ connect_time: 0.144666
+ pretransfer_time: 0.329312
+ size_upload: 68.0
+ size_download: 827.0
+ speed_download: 1428.0
+ speed_upload: 117.0
+ download_content_length: -1.0
+ upload_content_length: 68.0
+ starttransfer_time: 0.578988
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60932
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 329271
+ connect_time_us: 144666
+ namelookup_time_us: 5323
+ pretransfer_time_us: 329312
+ redirect_time_us: 0
+ starttransfer_time_us: 578988
+ total_time_us: 579051
+ index: 0
diff --git a/tests/cassettes/invoices/createRecalculation.yml b/tests/cassettes/invoices/createRecalculation.yml
new file mode 100644
index 0000000..9b65e4f
--- /dev/null
+++ b/tests/cassettes/invoices/createRecalculation.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/29a563ad-b417-445c-b8f6-b6c806bb039b/recalculations'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:57 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:C33PUxUsZtxKtQZvFrpnyUMWFqo='
+ Accept: ''
+ body: '{"force_commit":true}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:58 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd7890d75b8f1-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"5da48baf-a6bc-48ed-af80-af12baec33b5","invoice_id":"29a563ad-b417-445c-b8f6-b6c806bb039b","pay_amount":"0.0052326","pay_currency":"ETH","price_amount":"9.17","price_currency":"EUR","fee":"0.1","fee_currency":"EUR","previous_pay_amount":"0.02850781","previous_price_amount":"50.0","previous_exchange_rate":"1753.9057","exchange":{"pair":"ETHEUR","rate":"1753.8032","fee":"0.0","fee_currency":"EUR"},"created_at":"2023-07-11T08:57:57+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/29a563ad-b417-445c-b8f6-b6c806bb039b/recalculations'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 331
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.662157
+ namelookup_time: 0.004281
+ connect_time: 0.143861
+ pretransfer_time: 0.267885
+ size_upload: 21.0
+ size_download: 455.0
+ speed_download: 687.0
+ speed_upload: 31.0
+ download_content_length: -1.0
+ upload_content_length: 21.0
+ starttransfer_time: 0.662118
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60936
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 267825
+ connect_time_us: 143861
+ namelookup_time_us: 4281
+ pretransfer_time_us: 267885
+ redirect_time_us: 0
+ starttransfer_time_us: 662118
+ total_time_us: 662157
+ index: 0
diff --git a/tests/cassettes/invoices/createRefund.yml b/tests/cassettes/invoices/createRefund.yml
new file mode 100644
index 0000000..ff45c6a
--- /dev/null
+++ b/tests/cassettes/invoices/createRefund.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/331646a6-c8b5-430d-adfb-021d11ff6cd0/refunds'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:58 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:vX9KX+FHukiTSGNOWl5mAFn360g='
+ Accept: ''
+ body: '{"address":"0xf3532c1fd002665ec54d46a50787e0c69c76cd44"}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '201'
+ message: Created
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:57:59 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd78d9fb0b8a9-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"fb3fdf05-ee2e-43d7-b423-9e6b69ffca8f","custom_id":null,"invoice_id":"331646a6-c8b5-430d-adfb-021d11ff6cd0","amount":"0.0051138","amount_currency":"ETH","fee":"0.00005114","fee_currency":"ETH","address":"0xf3532c1fd002665ec54d46a50787e0c69c76cd44","txid":null,"risk":null,"created_at":"2023-07-11T08:57:58+00:00","network":"ethereum"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/331646a6-c8b5-430d-adfb-021d11ff6cd0/refunds'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 201
+ header_size: 460
+ request_size: 359
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.875757
+ namelookup_time: 0.005091
+ connect_time: 0.143401
+ pretransfer_time: 0.334529
+ size_upload: 56.0
+ size_download: 349.0
+ speed_download: 398.0
+ speed_upload: 64.0
+ download_content_length: -1.0
+ upload_content_length: 56.0
+ starttransfer_time: 0.825989
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60948
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 334470
+ connect_time_us: 143401
+ namelookup_time_us: 5091
+ pretransfer_time_us: 334529
+ redirect_time_us: 0
+ starttransfer_time_us: 825989
+ total_time_us: 875757
+ index: 0
diff --git a/tests/cassettes/invoices/retrieve.yml b/tests/cassettes/invoices/retrieve.yml
new file mode 100644
index 0000000..8b4a764
--- /dev/null
+++ b/tests/cassettes/invoices/retrieve.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/c8233d57-78c8-4c36-b35e-940ae9067c78'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:57:59 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:+tpmpQ+G2B0Z3DrYJ3ud0qMxXBU='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:58:00 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd795cf12b78b-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"c8233d57-78c8-4c36-b35e-940ae9067c78","custom_id":null,"customer_id":null,"subscription_id":null,"status":"completed","status_context":null,"address":"0x516cf64763b17893f9defa60e35d6bee26535ef9","network":"ethereum","uri":"ethereum:0x23a2e5f75cdfe03763d929379f5dc3f14f7045cd@5/transfer?address=0x516cf64763b17893f9defa60e35d6bee26535ef9&uint256=0.5e2","price_amount":"0.00005","price_currency":"USDT","pay_amount":"0.00005","pay_currency":"USDT","fee":"0.000001","fee_currency":"USDT","paid_amount":"0.00005","transactions":[{"txid":"0x549ae0eade6c33f087eceb0f2b586486b0442775fe8ab90c56c211e774ce27b1","risk":{"score":7.3,"level":"medium","resource_name":"default","resource_category":"unknown"}}],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/c8233d57-78c8-4c36-b35e-940ae9067c78","created_at":"2021-06-16T08:20:13+00:00","expires_at":"2021-06-16T10:20:13+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/c8233d57-78c8-4c36-b35e-940ae9067c78'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 274
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.646043
+ namelookup_time: 0.005707
+ connect_time: 0.093911
+ pretransfer_time: 0.24635
+ size_upload: 0.0
+ size_download: 1012.0
+ speed_download: 1566.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.645977
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60964
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 246278
+ connect_time_us: 93911
+ namelookup_time_us: 5707
+ pretransfer_time_us: 246350
+ redirect_time_us: 0
+ starttransfer_time_us: 645977
+ total_time_us: 646043
+ index: 0
diff --git a/tests/cassettes/invoices/retrieveByCustomId.yml b/tests/cassettes/invoices/retrieveByCustomId.yml
new file mode 100644
index 0000000..0a841c0
--- /dev/null
+++ b/tests/cassettes/invoices/retrieveByCustomId.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/custom_id/PAYMENT-123'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:58:00 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:CI2/sNTomFE6OmDWZvRXyCOGXQk='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:58:00 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fd799ef8d0bda-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"id":"e177d55b-96cd-472f-be3c-e9b43f4345e2","custom_id":"PAYMENT-123","customer_id":null,"subscription_id":null,"status":"cancelled","status_context":null,"address":"0x145af124eaf0415c055632352c08e2efb2c6cf5c","network":"ethereum","uri":"ethereum:0x145af124eaf0415c055632352c08e2efb2c6cf5c@5?value=0.2922619e17","price_amount":"100.0","price_currency":"EUR","pay_amount":"0.02922619","pay_currency":"ETH","fee":"1.0","fee_currency":"EUR","paid_amount":"0.0","exchange":{"pair":"ETHEUR","rate":"3421.5898","fee":"0.0","fee_currency":"EUR"},"transactions":[],"name":null,"description":null,"metadata":null,"success_redirect_url":null,"unsuccess_redirect_url":null,"hosted_page_url":"https://hosted-business-sandbox.cryptopay.me/invoices/e177d55b-96cd-472f-be3c-e9b43f4345e2","created_at":"2021-10-14T11:34:30+00:00","expires_at":"2021-10-14T11:44:30+00:00"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/invoices/custom_id/PAYMENT-123'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 259
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.505875
+ namelookup_time: 0.005011
+ connect_time: 0.092181
+ pretransfer_time: 0.224174
+ size_upload: 0.0
+ size_download: 865.0
+ speed_download: 1712.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.505842
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60968
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 224074
+ connect_time_us: 92181
+ namelookup_time_us: 5011
+ pretransfer_time_us: 224174
+ redirect_time_us: 0
+ starttransfer_time_us: 505842
+ total_time_us: 505875
+ index: 0
diff --git a/tests/cassettes/rates/all.yml b/tests/cassettes/rates/all.yml
new file mode 100644
index 0000000..908166f
--- /dev/null
+++ b/tests/cassettes/rates/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/rates'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:49:57 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:L/gpYPAtYvZAWIPhDZl/TeMtntE='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:49:57 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fcbce98cd0a63-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"ADAAUD":{"buy_rate":"0.496814","sell_rate":"0.466741"},"ADA/AUD":{"buy_rate":"0.496814","sell_rate":"0.466741"},"ADABUSD":{"buy_rate":"0.319044","sell_rate":"0.294248"},"ADA/BUSD":{"buy_rate":"0.319044","sell_rate":"0.294248"},"USDCNZD":{"buy_rate":"1.7305","sell_rate":"1.6571"},"USDC/NZD":{"buy_rate":"1.7305","sell_rate":"1.6571"},"ADACLP":{"buy_rate":"269.249092","sell_rate":"252.951301"},"ADA/CLP":{"buy_rate":"269.249092","sell_rate":"252.951301"},"ADACNY":{"buy_rate":"2.386638","sell_rate":"2.242174"},"ADA/CNY":{"buy_rate":"2.386638","sell_rate":"2.242174"},"ADAGBP":{"buy_rate":"0.256995","sell_rate":"0.241439"},"ADA/GBP":{"buy_rate":"0.256995","sell_rate":"0.241439"},"USDCPLN":{"buy_rate":"4.321","sell_rate":"4.1379"},"USDC/PLN":{"buy_rate":"4.321","sell_rate":"4.1379"},"USDTTWD":{"buy_rate":"33.5145","sell_rate":"32.0932"},"USDT/TWD":{"buy_rate":"33.5145","sell_rate":"32.0932"},"XLMSGD":{"buy_rate":"0.144729","sell_rate":"0.138519"},"XLM/SGD":{"buy_rate":"0.144729","sell_rate":"0.138519"},"XRPCHF":{"buy_rate":"0.448578","sell_rate":"0.429487"},"XRP/CHF":{"buy_rate":"0.448578","sell_rate":"0.429487"},"ADAMXN":{"buy_rate":"5.659756","sell_rate":"5.317168"},"ADA/MXN":{"buy_rate":"5.659756","sell_rate":"5.317168"},"ADASHIB":{"buy_rate":"42548.13","sell_rate":"38290.37"},"ADA/SHIB":{"buy_rate":"42548.13","sell_rate":"38290.37"},"BCHAUD":{"buy_rate":"440.0022","sell_rate":"421.3799"},"BCH/AUD":{"buy_rate":"440.0022","sell_rate":"421.3799"},"BCHBUSD":{"buy_rate":"282.5473","sell_rate":"265.6542"},"BCH/BUSD":{"buy_rate":"282.5473","sell_rate":"265.6542"},"BCHCHF":{"buy_rate":"258.5994","sell_rate":"247.6547"},"BCH/CHF":{"buy_rate":"258.5994","sell_rate":"247.6547"},"BCHTRY":{"buy_rate":"7659.9353","sell_rate":"7335.7416"},"BCH/TRY":{"buy_rate":"7659.9353","sell_rate":"7335.7416"},"BCHUAH":{"buy_rate":"10788.0369","sell_rate":"10331.4516"},"BCH/UAH":{"buy_rate":"10788.0369","sell_rate":"10331.4516"},"BNBJPY":{"buy_rate":"45145.7739","sell_rate":"43235.0557"},"BNB/JPY":{"buy_rate":"45145.7739","sell_rate":"43235.0557"},"BNBKRW":{"buy_rate":"415538.4849","sell_rate":"397951.5251"},"BNB/KRW":{"buy_rate":"415538.4849","sell_rate":"397951.5251"},"BNBMXN":{"buy_rate":"5488.2708","sell_rate":"5255.9891"},"BNB/MXN":{"buy_rate":"5488.2708","sell_rate":"5255.9891"},"BTCUAH":{"buy_rate":"1202138.7972","sell_rate":"1150991.8747"},"BTC/UAH":{"buy_rate":"1202138.7972","sell_rate":"1150991.8747"},"BUSDAUD":{"buy_rate":"1.6061","sell_rate":"1.5378"},"BUSD/AUD":{"buy_rate":"1.6061","sell_rate":"1.5378"},"EURCHF":{"buy_rate":"0.9825","sell_rate":"0.9582"},"EUR/CHF":{"buy_rate":"0.9825","sell_rate":"0.9582"},"EURIDR":{"buy_rate":"16905.4003","sell_rate":"16487.983"},"EUR/IDR":{"buy_rate":"16905.4003","sell_rate":"16487.983"},"SOLINR":{"buy_rate":"1949.212229","sell_rate":"1866.713813"},"SOL/INR":{"buy_rate":"1949.212229","sell_rate":"1866.713813"},"TRXCNY":{"buy_rate":"0.595556","sell_rate":"0.569541"},"TRX/CNY":{"buy_rate":"0.595556","sell_rate":"0.569541"},"TRXDKK":{"buy_rate":"0.559573","sell_rate":"0.53513"},"TRX/DKK":{"buy_rate":"0.559573","sell_rate":"0.53513"},"TRXSHIB":{"buy_rate":"10617.36","sell_rate":"9726.26"},"TRX/SHIB":{"buy_rate":"10617.36","sell_rate":"9726.26"},"USDCMYR":{"buy_rate":"4.9883","sell_rate":"4.7769"},"USDC/MYR":{"buy_rate":"4.9883","sell_rate":"4.7769"},"ADABCH":{"buy_rate":"0.00116428","sell_rate":"0.00107404"},"ADA/BCH":{"buy_rate":"0.00116428","sell_rate":"0.00107404"},"SOLJPY":{"buy_rate":"3324.441197","sell_rate":"3183.737619"},"SOL/JPY":{"buy_rate":"3324.441197","sell_rate":"3183.737619"},"SOLKZT":{"buy_rate":"10435.21624","sell_rate":"9993.556369"},"SOL/KZT":{"buy_rate":"10435.21624","sell_rate":"9993.556369"},"USDRUB":{"buy_rate":"91.9427","sell_rate":"89.6725"},"USD/RUB":{"buy_rate":"91.9427","sell_rate":"89.6725"},"ADABNB":{"buy_rate":"0.001064","sell_rate":"0.000981"},"ADA/BNB":{"buy_rate":"0.001064","sell_rate":"0.000981"},"ADABTC":{"buy_rate":"0.00001026","sell_rate":"0.00000982"},"ADA/BTC":{"buy_rate":"0.00001026","sell_rate":"0.00000982"},"ADACAD":{"buy_rate":"0.439752","sell_rate":"0.413133"},"ADA/CAD":{"buy_rate":"0.439752","sell_rate":"0.413133"},"ADACHF":{"buy_rate":"0.291989","sell_rate":"0.274315"},"ADA/CHF":{"buy_rate":"0.291989","sell_rate":"0.274315"},"USDCCLP":{"buy_rate":"870.152","sell_rate":"833.2692"},"USDC/CLP":{"buy_rate":"870.152","sell_rate":"833.2692"},"XRPBUSD":{"buy_rate":"0.490123","sell_rate":"0.4607"},"XRP/BUSD":{"buy_rate":"0.490123","sell_rate":"0.4607"},"ADACZK":{"buy_rate":"7.176708","sell_rate":"6.742298"},"ADA/CZK":{"buy_rate":"7.176708","sell_rate":"6.742298"},"ADADKK":{"buy_rate":"2.242438","sell_rate":"2.106702"},"ADA/DKK":{"buy_rate":"2.242438","sell_rate":"2.106702"},"ADAEUR":{"buy_rate":"0.300935","sell_rate":"0.282719"},"ADA/EUR":{"buy_rate":"0.300935","sell_rate":"0.282719"},"ADAHUF":{"buy_rate":"114.223798","sell_rate":"107.30977"},"ADA/HUF":{"buy_rate":"114.223798","sell_rate":"107.30977"},"ADAKRW":{"buy_rate":"428.522296","sell_rate":"402.583612"},"ADA/KRW":{"buy_rate":"428.522296","sell_rate":"402.583612"},"BCHGBP":{"buy_rate":"227.6074","sell_rate":"217.9743"},"BCH/GBP":{"buy_rate":"227.6074","sell_rate":"217.9743"},"BCHSHIB":{"buy_rate":"37682642.38","sell_rate":"34568985.02"},"BCH/SHIB":{"buy_rate":"37682642.38","sell_rate":"34568985.02"},"DOGEUAH":{"buy_rate":"2.571259","sell_rate":"2.458987"},"DOGE/UAH":{"buy_rate":"2.571259","sell_rate":"2.458987"},"DOGEXRP":{"buy_rate":"0.14171","sell_rate":"0.133047"},"DOGE/XRP":{"buy_rate":"0.14171","sell_rate":"0.133047"},"ETHUSDC":{"buy_rate":"1942.2788","sell_rate":"1825.3624"},"ETH/USDC":{"buy_rate":"1942.2788","sell_rate":"1825.3624"},"EURBRL":{"buy_rate":"5.4605","sell_rate":"5.3257"},"EUR/BRL":{"buy_rate":"5.4605","sell_rate":"5.3257"},"EURCZK":{"buy_rate":"24.1462","sell_rate":"23.55"},"EUR/CZK":{"buy_rate":"24.1462","sell_rate":"23.55"},"EURNZD":{"buy_rate":"1.8015","sell_rate":"1.7571"},"EUR/NZD":{"buy_rate":"1.8015","sell_rate":"1.7571"},"EURPLN":{"buy_rate":"4.4985","sell_rate":"4.3874"},"EUR/PLN":{"buy_rate":"4.4985","sell_rate":"4.3874"},"EURSEK":{"buy_rate":"11.945","sell_rate":"11.6501"},"EUR/SEK":{"buy_rate":"11.945","sell_rate":"11.6501"},"EURTWD":{"buy_rate":"34.885","sell_rate":"34.0236"},"EUR/TWD":{"buy_rate":"34.885","sell_rate":"34.0236"},"LTCCOP":{"buy_rate":"433435.073","sell_rate":"415090.6704"},"LTC/COP":{"buy_rate":"433435.073","sell_rate":"415090.6704"},"LTCINR":{"buy_rate":"8636.4298","sell_rate":"8270.9076"},"LTC/INR":{"buy_rate":"8636.4298","sell_rate":"8270.9076"},"LTCJPY":{"buy_rate":"14729.6956","sell_rate":"14106.2863"},"LTC/JPY":{"buy_rate":"14729.6956","sell_rate":"14106.2863"},"ADACOP":{"buy_rate":"1369.965253","sell_rate":"1287.040524"},"ADA/COP":{"buy_rate":"1369.965253","sell_rate":"1287.040524"},"ADAETH":{"buy_rate":"0.00016945","sell_rate":"0.00015632"},"ADA/ETH":{"buy_rate":"0.00016945","sell_rate":"0.00015632"},"ADAMYR":{"buy_rate":"1.543506","sell_rate":"1.450077"},"ADA/MYR":{"buy_rate":"1.543506","sell_rate":"1.450077"},"ADATRY":{"buy_rate":"8.648967","sell_rate":"8.12544"},"ADA/TRY":{"buy_rate":"8.648967","sell_rate":"8.12544"},"ADAUAH":{"buy_rate":"12.180961","sell_rate":"11.44364"},"ADA/UAH":{"buy_rate":"12.180961","sell_rate":"11.44364"},"ADAUSDC":{"buy_rate":"0.3191","sell_rate":"0.294322"},"ADA/USDC":{"buy_rate":"0.3191","sell_rate":"0.294322"},"ADAVND":{"buy_rate":"7845.052546","sell_rate":"7370.187329"},"ADA/VND":{"buy_rate":"7845.052546","sell_rate":"7370.187329"},"ADAZAR":{"buy_rate":"6.188625","sell_rate":"5.814025"},"ADA/ZAR":{"buy_rate":"6.188625","sell_rate":"5.814025"},"BCHCAD":{"buy_rate":"389.4648","sell_rate":"372.9814"},"BCH/CAD":{"buy_rate":"389.4648","sell_rate":"372.9814"},"BCHCLP":{"buy_rate":"238459.781","sell_rate":"228367.3762"},"BCH/CLP":{"buy_rate":"238459.781","sell_rate":"228367.3762"},"BCHCOP":{"buy_rate":"1213306.2752","sell_rate":"1161955.1499"},"BCH/COP":{"buy_rate":"1213306.2752","sell_rate":"1161955.1499"},"BCHEUR":{"buy_rate":"266.5223","sell_rate":"255.2422"},"BCH/EUR":{"buy_rate":"266.5223","sell_rate":"255.2422"},"BCHUSDC":{"buy_rate":"282.5921","sell_rate":"265.7322"},"BCH/USDC":{"buy_rate":"282.5921","sell_rate":"265.7322"},"BNBAUD":{"buy_rate":"481.7612","sell_rate":"461.3715"},"BNB/AUD":{"buy_rate":"481.7612","sell_rate":"461.3715"},"BNBDAI":{"buy_rate":"309.4085","sell_rate":"290.8517"},"BNB/DAI":{"buy_rate":"309.4085","sell_rate":"290.8517"},"BNBHUF":{"buy_rate":"110762.927","sell_rate":"106075.0744"},"BNB/HUF":{"buy_rate":"110762.927","sell_rate":"106075.0744"},"DOGEAUD":{"buy_rate":"0.104872","sell_rate":"0.100293"},"DOGE/AUD":{"buy_rate":"0.104872","sell_rate":"0.100293"},"DOGEBTC":{"buy_rate":"0.00000221","sell_rate":"0.00000208"},"DOGE/BTC":{"buy_rate":"0.00000221","sell_rate":"0.00000208"},"DOGEZAR":{"buy_rate":"1.306347","sell_rate":"1.249306"},"DOGE/ZAR":{"buy_rate":"1.306347","sell_rate":"1.249306"},"ETHSHIB":{"buy_rate":"258922470.36","sell_rate":"237528114.68"},"ETH/SHIB":{"buy_rate":"258922470.36","sell_rate":"237528114.68"},"LTCKRW":{"buy_rate":"135577.5939","sell_rate":"129839.5027"},"LTC/KRW":{"buy_rate":"135577.5939","sell_rate":"129839.5027"},"LTCPEN":{"buy_rate":"380.2569","sell_rate":"364.1632"},"LTC/PEN":{"buy_rate":"380.2569","sell_rate":"364.1632"},"SHIBTHB":{"buy_rate":"0.00028654","sell_rate":"0.0002677"},"SHIB/THB":{"buy_rate":"0.00028654","sell_rate":"0.0002677"},"SHIBTWD":{"buy_rate":"0.00025758","sell_rate":"0.00024065"},"SHIB/TWD":{"buy_rate":"0.00025758","sell_rate":"0.00024065"},"USDCKZT":{"buy_rate":"472.2837","sell_rate":"452.2652"},"USDC/KZT":{"buy_rate":"472.2837","sell_rate":"452.2652"},"XRPCNY":{"buy_rate":"3.66656","sell_rate":"3.510507"},"XRP/CNY":{"buy_rate":"3.66656","sell_rate":"3.510507"},"ADADAI":{"buy_rate":"0.319043","sell_rate":"0.294265"},"ADA/DAI":{"buy_rate":"0.319043","sell_rate":"0.294265"},"ADAINR":{"buy_rate":"27.297303","sell_rate":"25.644982"},"ADA/INR":{"buy_rate":"27.297303","sell_rate":"25.644982"},"SHIBGBP":{"buy_rate":"0.00000639","sell_rate":"0.00000597"},"SHIB/GBP":{"buy_rate":"0.00000639","sell_rate":"0.00000597"},"ADAJPY":{"buy_rate":"46.556388","sell_rate":"43.738304"},"ADA/JPY":{"buy_rate":"46.556388","sell_rate":"43.738304"},"ADANZD":{"buy_rate":"0.535437","sell_rate":"0.503027"},"ADA/NZD":{"buy_rate":"0.535437","sell_rate":"0.503027"},"ADAPLN":{"buy_rate":"1.337029","sell_rate":"1.256099"},"ADA/PLN":{"buy_rate":"1.337029","sell_rate":"1.256099"},"ADATHB":{"buy_rate":"11.534231","sell_rate":"10.836058"},"ADA/THB":{"buy_rate":"11.534231","sell_rate":"10.836058"},"ADAUSD":{"buy_rate":"0.331225","sell_rate":"0.311176"},"ADA/USD":{"buy_rate":"0.331225","sell_rate":"0.311176"},"ADAUSDT":{"buy_rate":"0.31904","sell_rate":"0.294269"},"ADA/USDT":{"buy_rate":"0.31904","sell_rate":"0.294269"},"ADAXLM":{"buy_rate":"3.172242","sell_rate":"2.919756"},"ADA/XLM":{"buy_rate":"3.172242","sell_rate":"2.919756"},"BCHCZK":{"buy_rate":"6356.0331","sell_rate":"6087.0248"},"BCH/CZK":{"buy_rate":"6356.0331","sell_rate":"6087.0248"},"BNBBTC":{"buy_rate":"0.010135","sell_rate":"0.009528"},"BNB/BTC":{"buy_rate":"0.010135","sell_rate":"0.009528"},"BNBETH":{"buy_rate":"0.1644","sell_rate":"0.1546"},"BNB/ETH":{"buy_rate":"0.1644","sell_rate":"0.1546"},"BNBPEN":{"buy_rate":"1165.4681","sell_rate":"1116.1417"},"BNB/PEN":{"buy_rate":"1165.4681","sell_rate":"1116.1417"},"BNBSEK":{"buy_rate":"3442.703","sell_rate":"3296.9964"},"BNB/SEK":{"buy_rate":"3442.703","sell_rate":"3296.9964"},"BNBSGD":{"buy_rate":"431.133","sell_rate":"412.886"},"BNB/SGD":{"buy_rate":"431.133","sell_rate":"412.886"},"BNBUSDT":{"buy_rate":"309.3931","sell_rate":"290.8442"},"BNB/USDT":{"buy_rate":"309.3931","sell_rate":"290.8442"},"BTCPEN":{"buy_rate":"118613.9149","sell_rate":"113567.2957"},"BTC/PEN":{"buy_rate":"118613.9149","sell_rate":"113567.2957"},"BTCSHIB":{"buy_rate":"4199074125.6","sell_rate":"3851213042.6"},"BTC/SHIB":{"buy_rate":"4199074125.6","sell_rate":"3851213042.6"},"BTCTRY":{"buy_rate":"853566.3642","sell_rate":"817250.0147"},"BTC/TRY":{"buy_rate":"853566.3642","sell_rate":"817250.0147"},"DAISGD":{"buy_rate":"1.4372","sell_rate":"1.3762"},"DAI/SGD":{"buy_rate":"1.4372","sell_rate":"1.3762"},"ETHDAI":{"buy_rate":"1941.9311","sell_rate":"1825.0348"},"ETH/DAI":{"buy_rate":"1941.9311","sell_rate":"1825.0348"},"EURHKD":{"buy_rate":"8.7241","sell_rate":"8.5087"},"EUR/HKD":{"buy_rate":"8.7241","sell_rate":"8.5087"},"LTCKZT":{"buy_rate":"46235.6076","sell_rate":"44278.7641"},"LTC/KZT":{"buy_rate":"46235.6076","sell_rate":"44278.7641"},"LTCMYR":{"buy_rate":"488.3407","sell_rate":"467.6725"},"LTC/MYR":{"buy_rate":"488.3407","sell_rate":"467.6725"},"LTCNOK":{"buy_rate":"1097.2363","sell_rate":"1050.7977"},"LTC/NOK":{"buy_rate":"1097.2363","sell_rate":"1050.7977"},"SHIBCOP":{"buy_rate":"0.03403276","sell_rate":"0.03179553"},"SHIB/COP":{"buy_rate":"0.03403276","sell_rate":"0.03179553"},"ADABRL":{"buy_rate":"1.622967","sell_rate":"1.524728"},"ADA/BRL":{"buy_rate":"1.622967","sell_rate":"1.524728"},"ADAHKD":{"buy_rate":"2.592953","sell_rate":"2.436"},"ADA/HKD":{"buy_rate":"2.592953","sell_rate":"2.436"},"ADALTC":{"buy_rate":"0.00325914","sell_rate":"0.00300652"},"ADA/LTC":{"buy_rate":"0.00325914","sell_rate":"0.00300652"},"ADAPEN":{"buy_rate":"1.201884","sell_rate":"1.129134"},"ADA/PEN":{"buy_rate":"1.201884","sell_rate":"1.129134"},"ADASEK":{"buy_rate":"3.550273","sell_rate":"3.335373"},"ADA/SEK":{"buy_rate":"3.550273","sell_rate":"3.335373"},"ADASGD":{"buy_rate":"0.444604","sell_rate":"0.417692"},"ADA/SGD":{"buy_rate":"0.444604","sell_rate":"0.417692"},"ADATWD":{"buy_rate":"10.368486","sell_rate":"9.740876"},"ADA/TWD":{"buy_rate":"10.368486","sell_rate":"9.740876"},"ADAXRP":{"buy_rate":"0.671408","sell_rate":"0.619103"},"ADA/XRP":{"buy_rate":"0.671408","sell_rate":"0.619103"},"BCHBNB":{"buy_rate":"0.9418","sell_rate":"0.8856"},"BCH/BNB":{"buy_rate":"0.9418","sell_rate":"0.8856"},"BCHBTC":{"buy_rate":"0.00925529","sell_rate":"0.00870261"},"BCH/BTC":{"buy_rate":"0.00925529","sell_rate":"0.00870261"},"BCHDAI":{"buy_rate":"282.5468","sell_rate":"265.6793"},"BCH/DAI":{"buy_rate":"282.5468","sell_rate":"265.6793"},"BCHDKK":{"buy_rate":"1986.0099","sell_rate":"1901.9554"},"BCH/DKK":{"buy_rate":"1986.0099","sell_rate":"1901.9554"},"BCHETH":{"buy_rate":"0.15006769","sell_rate":"0.14111869"},"BCH/ETH":{"buy_rate":"0.15006769","sell_rate":"0.14111869"},"BNBBRL":{"buy_rate":"1573.7927","sell_rate":"1507.1846"},"BNB/BRL":{"buy_rate":"1573.7927","sell_rate":"1507.1846"},"BNBBUSD":{"buy_rate":"309.4014","sell_rate":"290.8283"},"BNB/BUSD":{"buy_rate":"309.4014","sell_rate":"290.8283"},"BNBGBP":{"buy_rate":"249.2088","sell_rate":"238.6615"},"BNB/GBP":{"buy_rate":"249.2088","sell_rate":"238.6615"},"BNBINR":{"buy_rate":"26470.2214","sell_rate":"25349.9143"},"BNB/INR":{"buy_rate":"26470.2214","sell_rate":"25349.9143"},"BNBNOK":{"buy_rate":"3362.9739","sell_rate":"3220.6418"},"BNB/NOK":{"buy_rate":"3362.9739","sell_rate":"3220.6418"},"DOGEUSDT":{"buy_rate":"0.067344","sell_rate":"0.063235"},"DOGE/USDT":{"buy_rate":"0.067344","sell_rate":"0.063235"},"ETHCLP":{"buy_rate":"1638489.0144","sell_rate":"1569142.7528"},"ETH/CLP":{"buy_rate":"1638489.0144","sell_rate":"1569142.7528"},"EURJPY":{"buy_rate":"156.6397","sell_rate":"152.772"},"EUR/JPY":{"buy_rate":"156.6397","sell_rate":"152.772"},"EURKZT":{"buy_rate":"491.6822","sell_rate":"479.5419"},"EUR/KZT":{"buy_rate":"491.6822","sell_rate":"479.5419"},"EURMYR":{"buy_rate":"5.1932","sell_rate":"5.065"},"EUR/MYR":{"buy_rate":"5.1932","sell_rate":"5.065"},"SHIBCLP":{"buy_rate":"0.00668871","sell_rate":"0.006249"},"SHIB/CLP":{"buy_rate":"0.00668871","sell_rate":"0.006249"},"SHIBUSD":{"buy_rate":"0.00000823","sell_rate":"0.00000769"},"SHIB/USD":{"buy_rate":"0.00000823","sell_rate":"0.00000769"},"SHIBUSDC":{"buy_rate":"0.00000793","sell_rate":"0.00000728"},"SHIB/USDC":{"buy_rate":"0.00000793","sell_rate":"0.00000728"},"SHIBVND":{"buy_rate":"0.19488702","sell_rate":"0.18207585"},"SHIB/VND":{"buy_rate":"0.19488702","sell_rate":"0.18207585"},"ADAIDR":{"buy_rate":"5024.618352","sell_rate":"4720.475522"},"ADA/IDR":{"buy_rate":"5024.618352","sell_rate":"4720.475522"},"ADAKZT":{"buy_rate":"146.137634","sell_rate":"137.291844"},"ADA/KZT":{"buy_rate":"146.137634","sell_rate":"137.291844"},"SHIBUSDT":{"buy_rate":"0.00000793","sell_rate":"0.00000728"},"SHIB/USDT":{"buy_rate":"0.00000793","sell_rate":"0.00000728"},"SOLAUD":{"buy_rate":"35.475892","sell_rate":"33.974412"},"SOL/AUD":{"buy_rate":"35.475892","sell_rate":"33.974412"},"ADANOK":{"buy_rate":"3.468053","sell_rate":"3.258129"},"ADA/NOK":{"buy_rate":"3.468053","sell_rate":"3.258129"},"ADARUB":{"buy_rate":"30.077674","sell_rate":"28.257056"},"ADA/RUB":{"buy_rate":"30.077674","sell_rate":"28.257056"},"BCHBRL":{"buy_rate":"1437.3766","sell_rate":"1376.5421"},"BCH/BRL":{"buy_rate":"1437.3766","sell_rate":"1376.5421"},"BCHHUF":{"buy_rate":"101162.0186","sell_rate":"96880.5082"},"BCH/HUF":{"buy_rate":"101162.0186","sell_rate":"96880.5082"},"BCHIDR":{"buy_rate":"4450040.5872","sell_rate":"4261700.1851"},"BCH/IDR":{"buy_rate":"4450040.5872","sell_rate":"4261700.1851"},"BCHKZT":{"buy_rate":"129426.427","sell_rate":"123948.6735"},"BCH/KZT":{"buy_rate":"129426.427","sell_rate":"123948.6735"},"BCHTWD":{"buy_rate":"9182.824","sell_rate":"8794.1766"},"BCH/TWD":{"buy_rate":"9182.824","sell_rate":"8794.1766"},"BNBKZT":{"buy_rate":"141709.8045","sell_rate":"135712.178"},"BNB/KZT":{"buy_rate":"141709.8045","sell_rate":"135712.178"},"BNBRUB":{"buy_rate":"29166.3492","sell_rate":"27931.9331"},"BNB/RUB":{"buy_rate":"29166.3492","sell_rate":"27931.9331"},"BNBSHIB":{"buy_rate":"41258960.86","sell_rate":"37849797.94"},"BNB/SHIB":{"buy_rate":"41258960.86","sell_rate":"37849797.94"},"BNBTRY":{"buy_rate":"8386.9111","sell_rate":"8031.9494"},"BNB/TRY":{"buy_rate":"8386.9111","sell_rate":"8031.9494"},"BNBUAH":{"buy_rate":"11811.8891","sell_rate":"11311.971"},"BNB/UAH":{"buy_rate":"11811.8891","sell_rate":"11311.971"},"BNBUSDC":{"buy_rate":"309.4672","sell_rate":"290.9043"},"BNB/USDC":{"buy_rate":"309.4672","sell_rate":"290.9043"},"BNBVND":{"buy_rate":"7607355.0426","sell_rate":"7285386.6748"},"BNB/VND":{"buy_rate":"7607355.0426","sell_rate":"7285386.6748"},"BNBZAR":{"buy_rate":"6001.1163","sell_rate":"5747.1292"},"BNB/ZAR":{"buy_rate":"6001.1163","sell_rate":"5747.1292"},"BTCBUSD":{"buy_rate":"31488.9929","sell_rate":"29591.651"},"BTC/BUSD":{"buy_rate":"31488.9929","sell_rate":"29591.651"},"BTCCOP":{"buy_rate":"135201850.6609","sell_rate":"129449471.1522"},"BTC/COP":{"buy_rate":"135201850.6609","sell_rate":"129449471.1522"},"ETHCNY":{"buy_rate":"14523.6533","sell_rate":"13908.9643"},"ETH/CNY":{"buy_rate":"14523.6533","sell_rate":"13908.9643"},"ETHHUF":{"buy_rate":"695097.7455","sell_rate":"665678.9153"},"ETH/HUF":{"buy_rate":"695097.7455","sell_rate":"665678.9153"},"ETHUAH":{"buy_rate":"74126.0425","sell_rate":"70988.7838"},"ETH/UAH":{"buy_rate":"74126.0425","sell_rate":"70988.7838"},"LTCPLN":{"buy_rate":"423.0147","sell_rate":"405.1114"},"LTC/PLN":{"buy_rate":"423.0147","sell_rate":"405.1114"},"SHIBPEN":{"buy_rate":"0.00002986","sell_rate":"0.0000279"},"SHIB/PEN":{"buy_rate":"0.00002986","sell_rate":"0.0000279"},"SHIBTRY":{"buy_rate":"0.00021486","sell_rate":"0.00020074"},"SHIB/TRY":{"buy_rate":"0.00021486","sell_rate":"0.00020074"},"DAIPEN":{"buy_rate":"3.885","sell_rate":"3.7202"},"DAI/PEN":{"buy_rate":"3.885","sell_rate":"3.7202"},"DAIRUB":{"buy_rate":"97.2235","sell_rate":"93.0995"},"DAI/RUB":{"buy_rate":"97.2235","sell_rate":"93.0995"},"SHIBUAH":{"buy_rate":"0.0003026","sell_rate":"0.00028271"},"SHIB/UAH":{"buy_rate":"0.0003026","sell_rate":"0.00028271"},"BCHINR":{"buy_rate":"24175.7879","sell_rate":"23152.5888"},"BCH/INR":{"buy_rate":"24175.7879","sell_rate":"23152.5888"},"BCHLTC":{"buy_rate":"2.88645323","sell_rate":"2.71431558"},"BCH/LTC":{"buy_rate":"2.88645323","sell_rate":"2.71431558"},"SOLCZK":{"buy_rate":"512.465505","sell_rate":"490.775926"},"SOL/CZK":{"buy_rate":"512.465505","sell_rate":"490.775926"},"SOLMXN":{"buy_rate":"404.144879","sell_rate":"387.039861"},"SOL/MXN":{"buy_rate":"404.144879","sell_rate":"387.039861"},"BCHMXN":{"buy_rate":"5012.5486","sell_rate":"4800.401"},"BCH/MXN":{"buy_rate":"5012.5486","sell_rate":"4800.401"},"BCHMYR":{"buy_rate":"1367.0025","sell_rate":"1309.1464"},"BCH/MYR":{"buy_rate":"1367.0025","sell_rate":"1309.1464"},"BCHNZD":{"buy_rate":"474.2085","sell_rate":"454.1384"},"BCH/NZD":{"buy_rate":"474.2085","sell_rate":"454.1384"},"BCHPEN":{"buy_rate":"1064.4456","sell_rate":"1019.3947"},"BCH/PEN":{"buy_rate":"1064.4456","sell_rate":"1019.3947"},"BCHPLN":{"buy_rate":"1184.1368","sell_rate":"1134.0202"},"BCH/PLN":{"buy_rate":"1184.1368","sell_rate":"1134.0202"},"BCHRUB":{"buy_rate":"26638.2159","sell_rate":"25510.7987"},"BCH/RUB":{"buy_rate":"26638.2159","sell_rate":"25510.7987"},"BCHSEK":{"buy_rate":"3144.2902","sell_rate":"3011.2134"},"BCH/SEK":{"buy_rate":"3144.2902","sell_rate":"3011.2134"},"BCHTHB":{"buy_rate":"10215.2629","sell_rate":"9782.9193"},"BCH/THB":{"buy_rate":"10215.2629","sell_rate":"9782.9193"},"BNBCAD":{"buy_rate":"426.4275","sell_rate":"408.3796"},"BNB/CAD":{"buy_rate":"426.4275","sell_rate":"408.3796"},"BNBCLP":{"buy_rate":"261091.1059","sell_rate":"250040.8687"},"BNB/CLP":{"buy_rate":"261091.1059","sell_rate":"250040.8687"},"BNBCOP":{"buy_rate":"1328456.6305","sell_rate":"1272231.9623"},"BNB/COP":{"buy_rate":"1328456.6305","sell_rate":"1272231.9623"},"BTCEUR":{"buy_rate":"29699.2676","sell_rate":"28435.6646"},"BTC/EUR":{"buy_rate":"29699.2676","sell_rate":"28435.6646"},"BTCMXN":{"buy_rate":"558561.2231","sell_rate":"534796.3403"},"BTC/MXN":{"buy_rate":"558561.2231","sell_rate":"534796.3403"},"BTCRUB":{"buy_rate":"2968365.168","sell_rate":"2842071.3127"},"BTC/RUB":{"buy_rate":"2968365.168","sell_rate":"2842071.3127"},"BTCSGD":{"buy_rate":"43877.9652","sell_rate":"42011.1068"},"BTC/SGD":{"buy_rate":"43877.9652","sell_rate":"42011.1068"},"BTCTHB":{"buy_rate":"1138313.1111","sell_rate":"1089881.7547"},"BTC/THB":{"buy_rate":"1138313.1111","sell_rate":"1089881.7547"},"BTCUSDT":{"buy_rate":"31488.1705","sell_rate":"29593.2444"},"BTC/USDT":{"buy_rate":"31488.1705","sell_rate":"29593.2444"},"BUSDBRL":{"buy_rate":"5.2466","sell_rate":"5.0236"},"BUSD/BRL":{"buy_rate":"5.2466","sell_rate":"5.0236"},"BUSDCHF":{"buy_rate":"0.944","sell_rate":"0.9038"},"BUSD/CHF":{"buy_rate":"0.944","sell_rate":"0.9038"},"BUSDKZT":{"buy_rate":"472.4145","sell_rate":"452.3403"},"BUSD/KZT":{"buy_rate":"472.4145","sell_rate":"452.3403"},"BUSDUSDT":{"buy_rate":"1.0314","sell_rate":"0.9696"},"BUSD/USDT":{"buy_rate":"1.0314","sell_rate":"0.9696"},"DAINOK":{"buy_rate":"11.2102","sell_rate":"10.7347"},"DAI/NOK":{"buy_rate":"11.2102","sell_rate":"10.7347"},"LTCEUR":{"buy_rate":"95.2111","sell_rate":"91.1814"},"LTC/EUR":{"buy_rate":"95.2111","sell_rate":"91.1814"},"BCHKRW":{"buy_rate":"379519.6921","sell_rate":"363457.1664"},"BCH/KRW":{"buy_rate":"379519.6921","sell_rate":"363457.1664"},"BCHXRP":{"buy_rate":"594.5785965","sell_rate":"558.99488242"},"BCH/XRP":{"buy_rate":"594.5785965","sell_rate":"558.99488242"},"BNBCHF":{"buy_rate":"283.1421","sell_rate":"271.1586"},"BNB/CHF":{"buy_rate":"283.1421","sell_rate":"271.1586"},"BNBCNY":{"buy_rate":"2314.3254","sell_rate":"2216.3755"},"BNB/CNY":{"buy_rate":"2314.3254","sell_rate":"2216.3755"},"BNBCZK":{"buy_rate":"6959.2604","sell_rate":"6664.7215"},"BNB/CZK":{"buy_rate":"6959.2604","sell_rate":"6664.7215"},"LTCHKD":{"buy_rate":"820.3689","sell_rate":"785.6482"},"LTC/HKD":{"buy_rate":"820.3689","sell_rate":"785.6482"},"LTCIDR":{"buy_rate":"1589708.8032","sell_rate":"1522427.0807"},"LTC/IDR":{"buy_rate":"1589708.8032","sell_rate":"1522427.0807"},"SHIBZAR":{"buy_rate":"0.00015374","sell_rate":"0.00014364"},"SHIB/ZAR":{"buy_rate":"0.00015374","sell_rate":"0.00014364"},"SOLBNB":{"buy_rate":"0.075932","sell_rate":"0.071403"},"SOL/BNB":{"buy_rate":"0.075932","sell_rate":"0.071403"},"BNBDKK":{"buy_rate":"2174.4946","sell_rate":"2082.4628"},"BNB/DKK":{"buy_rate":"2174.4946","sell_rate":"2082.4628"},"BNBEUR":{"buy_rate":"291.817","sell_rate":"279.4663"},"BNB/EUR":{"buy_rate":"291.817","sell_rate":"279.4663"},"BNBHKD":{"buy_rate":"2514.3893","sell_rate":"2407.972"},"BNB/HKD":{"buy_rate":"2514.3893","sell_rate":"2407.972"},"BNBIDR":{"buy_rate":"4872377.2759","sell_rate":"4666162.1919"},"BNB/IDR":{"buy_rate":"4872377.2759","sell_rate":"4666162.1919"},"BNBMYR":{"buy_rate":"1496.7396","sell_rate":"1433.3926"},"BNB/MYR":{"buy_rate":"1496.7396","sell_rate":"1433.3926"},"BNBNZD":{"buy_rate":"519.2139","sell_rate":"497.239"},"BNB/NZD":{"buy_rate":"519.2139","sell_rate":"497.239"},"BNBPLN":{"buy_rate":"1296.5187","sell_rate":"1241.6458"},"BNB/PLN":{"buy_rate":"1296.5187","sell_rate":"1241.6458"},"BNBTHB":{"buy_rate":"11184.7552","sell_rate":"10711.3795"},"BNB/THB":{"buy_rate":"11184.7552","sell_rate":"10711.3795"},"BNBTWD":{"buy_rate":"10054.3314","sell_rate":"9628.799"},"BNB/TWD":{"buy_rate":"10054.3314","sell_rate":"9628.799"},"BNBUSD":{"buy_rate":"321.1886","sell_rate":"307.5949"},"BNB/USD":{"buy_rate":"321.1886","sell_rate":"307.5949"},"BTCTWD":{"buy_rate":"1023265.7813","sell_rate":"979729.298"},"BTC/TWD":{"buy_rate":"1023265.7813","sell_rate":"979729.298"},"BTCUSD":{"buy_rate":"32688.5286","sell_rate":"31297.7427"},"BTC/USD":{"buy_rate":"32688.5286","sell_rate":"31297.7427"},"BTCUSDC":{"buy_rate":"31495.6809","sell_rate":"29599.3611"},"BTC/USDC":{"buy_rate":"31495.6809","sell_rate":"29599.3611"},"BUSDCOP":{"buy_rate":"4428.6426","sell_rate":"4240.4577"},"BUSD/COP":{"buy_rate":"4428.6426","sell_rate":"4240.4577"},"BUSDPLN":{"buy_rate":"4.3222","sell_rate":"4.1386"},"BUSD/PLN":{"buy_rate":"4.3222","sell_rate":"4.1386"},"DAIPLN":{"buy_rate":"4.3219","sell_rate":"4.1386"},"DAI/PLN":{"buy_rate":"4.3219","sell_rate":"4.1386"},"ETHHKD":{"buy_rate":"15779.163","sell_rate":"15111.3368"},"ETH/HKD":{"buy_rate":"15779.163","sell_rate":"15111.3368"},"EURCNY":{"buy_rate":"8.0299","sell_rate":"7.8317"},"EUR/CNY":{"buy_rate":"8.0299","sell_rate":"7.8317"},"LTCDAI":{"buy_rate":"100.9367","sell_rate":"94.9082"},"LTC/DAI":{"buy_rate":"100.9367","sell_rate":"94.9082"},"BCHCNY":{"buy_rate":"2113.7202","sell_rate":"2024.2605"},"BCH/CNY":{"buy_rate":"2113.7202","sell_rate":"2024.2605"},"BCHHKD":{"buy_rate":"2296.4425","sell_rate":"2199.2495"},"BCH/HKD":{"buy_rate":"2296.4425","sell_rate":"2199.2495"},"BCHJPY":{"buy_rate":"41232.5472","sell_rate":"39487.4498"},"BCH/JPY":{"buy_rate":"41232.5472","sell_rate":"39487.4498"},"SOLEUR":{"buy_rate":"21.488794","sell_rate":"20.579303"},"SOL/EUR":{"buy_rate":"21.488794","sell_rate":"20.579303"},"SOLGBP":{"buy_rate":"18.351215","sell_rate":"17.574518"},"SOL/GBP":{"buy_rate":"18.351215","sell_rate":"17.574518"},"SOLIDR":{"buy_rate":"358791.762314","sell_rate":"343606.267392"},"SOL/IDR":{"buy_rate":"358791.762314","sell_rate":"343606.267392"},"BCHNOK":{"buy_rate":"3071.472","sell_rate":"2941.4772"},"BCH/NOK":{"buy_rate":"3071.472","sell_rate":"2941.4772"},"BCHSGD":{"buy_rate":"393.7625","sell_rate":"377.0972"},"BCH/SGD":{"buy_rate":"393.7625","sell_rate":"377.0972"},"BCHUSD":{"buy_rate":"293.3481","sell_rate":"280.9326"},"BCH/USD":{"buy_rate":"293.3481","sell_rate":"280.9326"},"BCHUSDT":{"buy_rate":"282.5519","sell_rate":"265.6808"},"BCH/USDT":{"buy_rate":"282.5519","sell_rate":"265.6808"},"BTCCLP":{"buy_rate":"26572189.0253","sell_rate":"25441632.6394"},"BTC/CLP":{"buy_rate":"26572189.0253","sell_rate":"25441632.6394"},"BTCCNY":{"buy_rate":"235537.288","sell_rate":"225515.9765"},"BTC/CNY":{"buy_rate":"235537.288","sell_rate":"225515.9765"},"BTCDAI":{"buy_rate":"31489.7169","sell_rate":"29594.0045"},"BTC/DAI":{"buy_rate":"31489.7169","sell_rate":"29594.0045"},"BTCHKD":{"buy_rate":"255898.5119","sell_rate":"245010.8994"},"BTC/HKD":{"buy_rate":"255898.5119","sell_rate":"245010.8994"},"BTCHUF":{"buy_rate":"11272744.9024","sell_rate":"10793127.8966"},"BTC/HUF":{"buy_rate":"11272744.9024","sell_rate":"10793127.8966"},"BTCNOK":{"buy_rate":"342262.0515","sell_rate":"327699.9637"},"BTC/NOK":{"buy_rate":"342262.0515","sell_rate":"327699.9637"},"BUSDCAD":{"buy_rate":"1.4216","sell_rate":"1.3612"},"BUSD/CAD":{"buy_rate":"1.4216","sell_rate":"1.3612"},"BUSDCLP":{"buy_rate":"870.3929","sell_rate":"833.4076"},"BUSD/CLP":{"buy_rate":"870.3929","sell_rate":"833.4076"},"BUSDDAI":{"buy_rate":"1.0314","sell_rate":"0.9696"},"BUSD/DAI":{"buy_rate":"1.0314","sell_rate":"0.9696"},"BUSDDKK":{"buy_rate":"7.2491","sell_rate":"6.9411"},"BUSD/DKK":{"buy_rate":"7.2491","sell_rate":"6.9411"},"BUSDGBP":{"buy_rate":"0.8308","sell_rate":"0.7955"},"BUSD/GBP":{"buy_rate":"0.8308","sell_rate":"0.7955"},"DOGETWD":{"buy_rate":"2.188667","sell_rate":"2.093101"},"DOGE/TWD":{"buy_rate":"2.188667","sell_rate":"2.093101"},"DOGEUSD":{"buy_rate":"0.069918","sell_rate":"0.066865"},"DOGE/USD":{"buy_rate":"0.069918","sell_rate":"0.066865"},"SOLBTC":{"buy_rate":"0.00074624","sell_rate":"0.00070161"},"SOL/BTC":{"buy_rate":"0.00074624","sell_rate":"0.00070161"},"SOLCHF":{"buy_rate":"20.849997","sell_rate":"19.967542"},"SOL/CHF":{"buy_rate":"20.849997","sell_rate":"19.967542"},"SOLCNY":{"buy_rate":"170.422122","sell_rate":"163.20918"},"SOL/CNY":{"buy_rate":"170.422122","sell_rate":"163.20918"},"SOLDKK":{"buy_rate":"160.125273","sell_rate":"153.348134"},"SOL/DKK":{"buy_rate":"160.125273","sell_rate":"153.348134"},"SOLETH":{"buy_rate":"0.01209952","sell_rate":"0.01137794"},"SOL/ETH":{"buy_rate":"0.01209952","sell_rate":"0.01137794"},"SOLCAD":{"buy_rate":"31.40123","sell_rate":"30.072206"},"SOL/CAD":{"buy_rate":"31.40123","sell_rate":"30.072206"},"BCHVND":{"buy_rate":"6947951.0276","sell_rate":"6653890.813"},"BCH/VND":{"buy_rate":"6947951.0276","sell_rate":"6653890.813"},"BTCCZK":{"buy_rate":"708269.1722","sell_rate":"678134.7246"},"BTC/CZK":{"buy_rate":"708269.1722","sell_rate":"678134.7246"},"BTCGBP":{"buy_rate":"25362.8775","sell_rate":"24283.7733"},"BTC/GBP":{"buy_rate":"25362.8775","sell_rate":"24283.7733"},"BTCMYR":{"buy_rate":"152328.6125","sell_rate":"145847.5475"},"BTC/MYR":{"buy_rate":"152328.6125","sell_rate":"145847.5475"},"SOLCLP":{"buy_rate":"19226.207799","sell_rate":"18412.478188"},"SOL/CLP":{"buy_rate":"19226.207799","sell_rate":"18412.478188"},"SOLCOP":{"buy_rate":"97824.792419","sell_rate":"93684.457984"},"SOL/COP":{"buy_rate":"97824.792419","sell_rate":"93684.457984"},"SOLHUF":{"buy_rate":"8156.352333","sell_rate":"7811.14305"},"SOL/HUF":{"buy_rate":"8156.352333","sell_rate":"7811.14305"},"BTCPLN":{"buy_rate":"131951.4105","sell_rate":"126337.3261"},"BTC/PLN":{"buy_rate":"131951.4105","sell_rate":"126337.3261"},"BUSDCNY":{"buy_rate":"7.7153","sell_rate":"7.3874"},"BUSD/CNY":{"buy_rate":"7.7153","sell_rate":"7.3874"},"BUSDCZK":{"buy_rate":"23.2","sell_rate":"22.2141"},"BUSD/CZK":{"buy_rate":"23.2","sell_rate":"22.2141"},"BUSDEUR":{"buy_rate":"0.9729","sell_rate":"0.9315"},"BUSD/EUR":{"buy_rate":"0.9729","sell_rate":"0.9315"},"BUSDHUF":{"buy_rate":"369.2476","sell_rate":"353.5573"},"BUSD/HUF":{"buy_rate":"369.2476","sell_rate":"353.5573"},"BUSDINR":{"buy_rate":"88.2432","sell_rate":"84.4935"},"BUSD/INR":{"buy_rate":"88.2432","sell_rate":"84.4935"},"BUSDKRW":{"buy_rate":"1385.2703","sell_rate":"1326.4064"},"BUSD/KRW":{"buy_rate":"1385.2703","sell_rate":"1326.4064"},"BUSDMXN":{"buy_rate":"18.2962","sell_rate":"17.5187"},"BUSD/MXN":{"buy_rate":"18.2962","sell_rate":"17.5187"},"BUSDNOK":{"buy_rate":"11.2111","sell_rate":"10.7347"},"BUSD/NOK":{"buy_rate":"11.2111","sell_rate":"10.7347"},"BUSDPEN":{"buy_rate":"3.8853","sell_rate":"3.7202"},"BUSD/PEN":{"buy_rate":"3.8853","sell_rate":"3.7202"},"BUSDSGD":{"buy_rate":"1.4373","sell_rate":"1.3762"},"BUSD/SGD":{"buy_rate":"1.4373","sell_rate":"1.3762"},"BUSDTHB":{"buy_rate":"37.2864","sell_rate":"35.702"},"BUSD/THB":{"buy_rate":"37.2864","sell_rate":"35.702"},"BUSDTRY":{"buy_rate":"27.9593","sell_rate":"26.7712"},"BUSD/TRY":{"buy_rate":"27.9593","sell_rate":"26.7712"},"BUSDTWD":{"buy_rate":"33.5179","sell_rate":"32.0937"},"BUSD/TWD":{"buy_rate":"33.5179","sell_rate":"32.0937"},"DAIDKK":{"buy_rate":"7.2485","sell_rate":"6.9411"},"DAI/DKK":{"buy_rate":"7.2485","sell_rate":"6.9411"},"DAIGBP":{"buy_rate":"0.8308","sell_rate":"0.7955"},"DAI/GBP":{"buy_rate":"0.8308","sell_rate":"0.7955"},"DAIHUF":{"buy_rate":"369.2184","sell_rate":"353.557"},"DAI/HUF":{"buy_rate":"369.2184","sell_rate":"353.557"},"DAIINR":{"buy_rate":"88.2362","sell_rate":"84.4934"},"DAI/INR":{"buy_rate":"88.2362","sell_rate":"84.4934"},"DAIKRW":{"buy_rate":"1385.1605","sell_rate":"1326.4051"},"DAI/KRW":{"buy_rate":"1385.1605","sell_rate":"1326.4051"},"EURTHB":{"buy_rate":"38.8071","sell_rate":"37.8489"},"EUR/THB":{"buy_rate":"38.8071","sell_rate":"37.8489"},"LTCHUF":{"buy_rate":"36138.5809","sell_rate":"34609.0769"},"LTC/HUF":{"buy_rate":"36138.5809","sell_rate":"34609.0769"},"BCHZAR":{"buy_rate":"5480.9407","sell_rate":"5248.9692"},"BCH/ZAR":{"buy_rate":"5480.9407","sell_rate":"5248.9692"},"BTCDKK":{"buy_rate":"221306.2009","sell_rate":"211890.3737"},"BTC/DKK":{"buy_rate":"221306.2009","sell_rate":"211890.3737"},"BTCIDR":{"buy_rate":"495879511.3942","sell_rate":"474781522.5266"},"BTC/IDR":{"buy_rate":"495879511.3942","sell_rate":"474781522.5266"},"BTCINR":{"buy_rate":"2693970.4572","sell_rate":"2579351.1648"},"BTC/INR":{"buy_rate":"2693970.4572","sell_rate":"2579351.1648"},"BTCJPY":{"buy_rate":"4594649.181","sell_rate":"4399162.4649"},"BTC/JPY":{"buy_rate":"4594649.181","sell_rate":"4399162.4649"},"SOLDOGE":{"buy_rate":"350.365555","sell_rate":"327.042821"},"SOL/DOGE":{"buy_rate":"350.365555","sell_rate":"327.042821"},"SOLHKD":{"buy_rate":"185.154409","sell_rate":"177.317938"},"SOL/HKD":{"buy_rate":"185.154409","sell_rate":"177.317938"},"SOLLTC":{"buy_rate":"0.23272414","sell_rate":"0.2188458"},"SOL/LTC":{"buy_rate":"0.23272414","sell_rate":"0.2188458"},"SOLNZD":{"buy_rate":"38.233829","sell_rate":"36.615621"},"SOL/NZD":{"buy_rate":"38.233829","sell_rate":"36.615621"},"TRXPLN":{"buy_rate":"0.333639","sell_rate":"0.319066"},"TRX/PLN":{"buy_rate":"0.333639","sell_rate":"0.319066"},"BTCKRW":{"buy_rate":"42290859.0992","sell_rate":"40491526.6929"},"BTC/KRW":{"buy_rate":"42290859.0992","sell_rate":"40491526.6929"},"BTCKZT":{"buy_rate":"14422320.8937","sell_rate":"13808700.1277"},"BTC/KZT":{"buy_rate":"14422320.8937","sell_rate":"13808700.1277"},"BTCNZD":{"buy_rate":"52842.2733","sell_rate":"50594.0141"},"BTC/NZD":{"buy_rate":"52842.2733","sell_rate":"50594.0141"},"BTCSEK":{"buy_rate":"350376.3665","sell_rate":"335469.0423"},"BTC/SEK":{"buy_rate":"350376.3665","sell_rate":"335469.0423"},"BUSDHKD":{"buy_rate":"8.3822","sell_rate":"8.026"},"BUSD/HKD":{"buy_rate":"8.3822","sell_rate":"8.026"},"BUSDIDR":{"buy_rate":"16242.9221","sell_rate":"15552.7168"},"BUSD/IDR":{"buy_rate":"16242.9221","sell_rate":"15552.7168"},"BUSDJPY":{"buy_rate":"150.5014","sell_rate":"144.1062"},"BUSD/JPY":{"buy_rate":"150.5014","sell_rate":"144.1062"},"BUSDMYR":{"buy_rate":"4.9897","sell_rate":"4.7777"},"BUSD/MYR":{"buy_rate":"4.9897","sell_rate":"4.7777"},"BUSDSEK":{"buy_rate":"11.4769","sell_rate":"10.9892"},"BUSD/SEK":{"buy_rate":"11.4769","sell_rate":"10.9892"},"BUSDUAH":{"buy_rate":"39.377","sell_rate":"37.7038"},"BUSD/UAH":{"buy_rate":"39.377","sell_rate":"37.7038"},"BUSDVND":{"buy_rate":"25360.4489","sell_rate":"24282.8155"},"BUSD/VND":{"buy_rate":"25360.4489","sell_rate":"24282.8155"},"BUSDZAR":{"buy_rate":"20.0058","sell_rate":"19.1557"},"BUSD/ZAR":{"buy_rate":"20.0058","sell_rate":"19.1557"},"DAICZK":{"buy_rate":"23.1981","sell_rate":"22.2141"},"DAI/CZK":{"buy_rate":"23.1981","sell_rate":"22.2141"},"DAIEUR":{"buy_rate":"0.9728","sell_rate":"0.9315"},"DAI/EUR":{"buy_rate":"0.9728","sell_rate":"0.9315"},"DAIHKD":{"buy_rate":"8.3815","sell_rate":"8.026"},"DAI/HKD":{"buy_rate":"8.3815","sell_rate":"8.026"},"DAIIDR":{"buy_rate":"16241.6345","sell_rate":"15552.7008"},"DAI/IDR":{"buy_rate":"16241.6345","sell_rate":"15552.7008"},"DAIMXN":{"buy_rate":"18.2947","sell_rate":"17.5187"},"DAI/MXN":{"buy_rate":"18.2947","sell_rate":"17.5187"},"DAINZD":{"buy_rate":"1.7308","sell_rate":"1.6574"},"DAI/NZD":{"buy_rate":"1.7308","sell_rate":"1.6574"},"SOLDAI":{"buy_rate":"22.782835","sell_rate":"21.418767"},"SOL/DAI":{"buy_rate":"22.782835","sell_rate":"21.418767"},"DOGEIDR":{"buy_rate":"1060.638679","sell_rate":"1014.326397"},"DOGE/IDR":{"buy_rate":"1060.638679","sell_rate":"1014.326397"},"BTCVND":{"buy_rate":"774228120.683","sell_rate":"741287343.9503"},"BTC/VND":{"buy_rate":"774228120.683","sell_rate":"741287343.9503"},"DOGEJPY":{"buy_rate":"9.827514","sell_rate":"9.398399"},"DOGE/JPY":{"buy_rate":"9.827514","sell_rate":"9.398399"},"SOLKRW":{"buy_rate":"30599.392629","sell_rate":"29304.304586"},"SOL/KRW":{"buy_rate":"30599.392629","sell_rate":"29304.304586"},"SOLMYR":{"buy_rate":"110.216797","sell_rate":"105.551983"},"SOL/MYR":{"buy_rate":"110.216797","sell_rate":"105.551983"},"BTCZAR":{"buy_rate":"610755.3692","sell_rate":"584769.8028"},"BTC/ZAR":{"buy_rate":"610755.3692","sell_rate":"584769.8028"},"BUSDNZD":{"buy_rate":"1.7309","sell_rate":"1.6574"},"BUSD/NZD":{"buy_rate":"1.7309","sell_rate":"1.6574"},"BUSDRUB":{"buy_rate":"97.2312","sell_rate":"93.0996"},"BUSD/RUB":{"buy_rate":"97.2312","sell_rate":"93.0996"},"BUSDUSD":{"buy_rate":"1.0708","sell_rate":"1.0253"},"BUSD/USD":{"buy_rate":"1.0708","sell_rate":"1.0253"},"DAIAUD":{"buy_rate":"1.606","sell_rate":"1.5378"},"DAI/AUD":{"buy_rate":"1.606","sell_rate":"1.5378"},"DAIBRL":{"buy_rate":"5.2461","sell_rate":"5.0236"},"DAI/BRL":{"buy_rate":"5.2461","sell_rate":"5.0236"},"DAICAD":{"buy_rate":"1.4215","sell_rate":"1.3612"},"DAI/CAD":{"buy_rate":"1.4215","sell_rate":"1.3612"},"DAICHF":{"buy_rate":"0.9439","sell_rate":"0.9038"},"DAI/CHF":{"buy_rate":"0.9439","sell_rate":"0.9038"},"DAICLP":{"buy_rate":"870.3239","sell_rate":"833.4067"},"DAI/CLP":{"buy_rate":"870.3239","sell_rate":"833.4067"},"DAICNY":{"buy_rate":"7.7146","sell_rate":"7.3874"},"DAI/CNY":{"buy_rate":"7.7146","sell_rate":"7.3874"},"DAICOP":{"buy_rate":"4428.2916","sell_rate":"4240.4534"},"DAI/COP":{"buy_rate":"4428.2916","sell_rate":"4240.4534"},"DAIJPY":{"buy_rate":"150.4895","sell_rate":"144.106"},"DAI/JPY":{"buy_rate":"150.4895","sell_rate":"144.106"},"DAIKZT":{"buy_rate":"472.377","sell_rate":"452.3399"},"DAI/KZT":{"buy_rate":"472.377","sell_rate":"452.3399"},"DAIMYR":{"buy_rate":"4.9893","sell_rate":"4.7777"},"DAI/MYR":{"buy_rate":"4.9893","sell_rate":"4.7777"},"DOGEADA":{"buy_rate":"0.221813","sell_rate":"0.204472"},"DOGE/ADA":{"buy_rate":"0.221813","sell_rate":"0.204472"},"DOGEBCH":{"buy_rate":"0.00024577","sell_rate":"0.00023079"},"DOGE/BCH":{"buy_rate":"0.00024577","sell_rate":"0.00023079"},"DOGEBRL":{"buy_rate":"0.34259","sell_rate":"0.32763"},"DOGE/BRL":{"buy_rate":"0.34259","sell_rate":"0.32763"},"DOGECAD":{"buy_rate":"0.092827","sell_rate":"0.088774"},"DOGE/CAD":{"buy_rate":"0.092827","sell_rate":"0.088774"},"DOGECLP":{"buy_rate":"56.835362","sell_rate":"54.353673"},"DOGE/CLP":{"buy_rate":"56.835362","sell_rate":"54.353673"},"DOGECNY":{"buy_rate":"0.503792","sell_rate":"0.481794"},"DOGE/CNY":{"buy_rate":"0.503792","sell_rate":"0.481794"},"DOGECZK":{"buy_rate":"1.51492","sell_rate":"1.448772"},"DOGE/CZK":{"buy_rate":"1.51492","sell_rate":"1.448772"},"DOGEDKK":{"buy_rate":"0.473352","sell_rate":"0.452684"},"DOGE/DKK":{"buy_rate":"0.473352","sell_rate":"0.452684"},"DOGEEUR":{"buy_rate":"0.063524","sell_rate":"0.060751"},"DOGE/EUR":{"buy_rate":"0.063524","sell_rate":"0.060751"},"DOGEHKD":{"buy_rate":"0.547343","sell_rate":"0.523443"},"DOGE/HKD":{"buy_rate":"0.547343","sell_rate":"0.523443"},"DAISEK":{"buy_rate":"11.476","sell_rate":"10.9892"},"DAI/SEK":{"buy_rate":"11.476","sell_rate":"10.9892"},"DAITHB":{"buy_rate":"37.2834","sell_rate":"35.702"},"DAI/THB":{"buy_rate":"37.2834","sell_rate":"35.702"},"DOGETRX":{"buy_rate":"0.873419","sell_rate":"0.819211"},"DOGE/TRX":{"buy_rate":"0.873419","sell_rate":"0.819211"},"DOGETRY":{"buy_rate":"1.825697","sell_rate":"1.745979"},"DOGE/TRY":{"buy_rate":"1.825697","sell_rate":"1.745979"},"SOLNOK":{"buy_rate":"247.642424","sell_rate":"237.161212"},"SOL/NOK":{"buy_rate":"247.642424","sell_rate":"237.161212"},"SOLPEN":{"buy_rate":"85.822653","sell_rate":"82.190297"},"SOL/PEN":{"buy_rate":"85.822653","sell_rate":"82.190297"},"DAITRY":{"buy_rate":"27.9571","sell_rate":"26.7712"},"DAI/TRY":{"buy_rate":"27.9571","sell_rate":"26.7712"},"DAITWD":{"buy_rate":"33.5153","sell_rate":"32.0936"},"DAI/TWD":{"buy_rate":"33.5153","sell_rate":"32.0936"},"DAIUAH":{"buy_rate":"39.3739","sell_rate":"37.7038"},"DAI/UAH":{"buy_rate":"39.3739","sell_rate":"37.7038"},"DAIUSD":{"buy_rate":"1.0707","sell_rate":"1.0253"},"DAI/USD":{"buy_rate":"1.0707","sell_rate":"1.0253"},"DAIUSDC":{"buy_rate":"1.0315","sell_rate":"0.9698"},"DAI/USDC":{"buy_rate":"1.0315","sell_rate":"0.9698"},"DAIUSDT":{"buy_rate":"1.0313","sell_rate":"0.9696"},"DAI/USDT":{"buy_rate":"1.0313","sell_rate":"0.9696"},"DAIVND":{"buy_rate":"25358.4387","sell_rate":"24282.7906"},"DAI/VND":{"buy_rate":"25358.4387","sell_rate":"24282.7906"},"DAIZAR":{"buy_rate":"20.0042","sell_rate":"19.1557"},"DAI/ZAR":{"buy_rate":"20.0042","sell_rate":"19.1557"},"DOGEBNB":{"buy_rate":"0.00022447","sell_rate":"0.00021079"},"DOGE/BNB":{"buy_rate":"0.00022447","sell_rate":"0.00021079"},"DOGEBUSD":{"buy_rate":"0.067343","sell_rate":"0.063229"},"DOGE/BUSD":{"buy_rate":"0.067343","sell_rate":"0.063229"},"DOGECHF":{"buy_rate":"0.061636","sell_rate":"0.058945"},"DOGE/CHF":{"buy_rate":"0.061636","sell_rate":"0.058945"},"DOGECOP":{"buy_rate":"289.183782","sell_rate":"276.55671"},"DOGE/COP":{"buy_rate":"289.183782","sell_rate":"276.55671"},"DOGEDAI":{"buy_rate":"0.067342","sell_rate":"0.063236"},"DOGE/DAI":{"buy_rate":"0.067342","sell_rate":"0.063236"},"DOGEETH":{"buy_rate":"0.00003577","sell_rate":"0.00003359"},"DOGE/ETH":{"buy_rate":"0.00003577","sell_rate":"0.00003359"},"DOGEGBP":{"buy_rate":"0.054249","sell_rate":"0.05188"},"DOGE/GBP":{"buy_rate":"0.054249","sell_rate":"0.05188"},"DOGEHUF":{"buy_rate":"24.111319","sell_rate":"23.05851"},"DOGE/HUF":{"buy_rate":"24.111319","sell_rate":"23.05851"},"DOGEKZT":{"buy_rate":"30.847961","sell_rate":"29.500998"},"DOGE/KZT":{"buy_rate":"30.847961","sell_rate":"29.500998"},"DOGEMXN":{"buy_rate":"1.194709","sell_rate":"1.142543"},"DOGE/MXN":{"buy_rate":"1.194709","sell_rate":"1.142543"},"DOGENOK":{"buy_rate":"0.732065","sell_rate":"0.7001"},"DOGE/NOK":{"buy_rate":"0.732065","sell_rate":"0.7001"},"DOGEPEN":{"buy_rate":"0.253704","sell_rate":"0.242626"},"DOGE/PEN":{"buy_rate":"0.253704","sell_rate":"0.242626"},"DOGERUB":{"buy_rate":"6.349048","sell_rate":"6.07182"},"DOGE/RUB":{"buy_rate":"6.349048","sell_rate":"6.07182"},"DOGESGD":{"buy_rate":"0.093851","sell_rate":"0.089753"},"DOGE/SGD":{"buy_rate":"0.093851","sell_rate":"0.089753"},"DOGETHB":{"buy_rate":"2.434742","sell_rate":"2.328431"},"DOGE/THB":{"buy_rate":"2.434742","sell_rate":"2.328431"},"LTCCLP":{"buy_rate":"85186.1024","sell_rate":"81580.7454"},"LTC/CLP":{"buy_rate":"85186.1024","sell_rate":"81580.7454"},"SOLRUB":{"buy_rate":"2147.749494","sell_rate":"2056.84819"},"SOL/RUB":{"buy_rate":"2147.749494","sell_rate":"2056.84819"},"TRXBRL":{"buy_rate":"0.404991","sell_rate":"0.387301"},"TRX/BRL":{"buy_rate":"0.404991","sell_rate":"0.387301"},"DOGEINR":{"buy_rate":"5.762144","sell_rate":"5.510543"},"DOGE/INR":{"buy_rate":"5.762144","sell_rate":"5.510543"},"DOGEKRW":{"buy_rate":"90.456088","sell_rate":"86.506366"},"DOGE/KRW":{"buy_rate":"90.456088","sell_rate":"86.506366"},"TRXCHF":{"buy_rate":"0.072863","sell_rate":"0.06968"},"TRX/CHF":{"buy_rate":"0.072863","sell_rate":"0.06968"},"DOGELTC":{"buy_rate":"0.00068797","sell_rate":"0.00064604"},"DOGE/LTC":{"buy_rate":"0.00068797","sell_rate":"0.00064604"},"DOGEMYR":{"buy_rate":"0.325816","sell_rate":"0.311589"},"DOGE/MYR":{"buy_rate":"0.325816","sell_rate":"0.311589"},"DOGENZD":{"buy_rate":"0.113025","sell_rate":"0.10809"},"DOGE/NZD":{"buy_rate":"0.113025","sell_rate":"0.10809"},"DOGEPLN":{"buy_rate":"0.282232","sell_rate":"0.269908"},"DOGE/PLN":{"buy_rate":"0.282232","sell_rate":"0.269908"},"DOGESEK":{"buy_rate":"0.749422","sell_rate":"0.716698"},"DOGE/SEK":{"buy_rate":"0.749422","sell_rate":"0.716698"},"DOGESHIB":{"buy_rate":"8981.42","sell_rate":"8227.76"},"DOGE/SHIB":{"buy_rate":"8981.42","sell_rate":"8227.76"},"DOGEUSDC":{"buy_rate":"0.067353","sell_rate":"0.063248"},"DOGE/USDC":{"buy_rate":"0.067353","sell_rate":"0.063248"},"DOGEXLM":{"buy_rate":"0.669133","sell_rate":"0.627825"},"DOGE/XLM":{"buy_rate":"0.669133","sell_rate":"0.627825"},"ETHAUD":{"buy_rate":"3023.3139","sell_rate":"2895.3573"},"ETH/AUD":{"buy_rate":"3023.3139","sell_rate":"2895.3573"},"ETHBRL":{"buy_rate":"9876.4067","sell_rate":"9458.4046"},"ETH/BRL":{"buy_rate":"9876.4067","sell_rate":"9458.4046"},"ETHBTC":{"buy_rate":"0.063601","sell_rate":"0.05978562"},"ETH/BTC":{"buy_rate":"0.063601","sell_rate":"0.05978562"},"ETHBUSD":{"buy_rate":"1941.87","sell_rate":"1824.9487"},"ETH/BUSD":{"buy_rate":"1941.87","sell_rate":"1824.9487"},"ETHCAD":{"buy_rate":"2676.0645","sell_rate":"2562.8046"},"ETH/CAD":{"buy_rate":"2676.0645","sell_rate":"2562.8046"},"ETHCHF":{"buy_rate":"1776.871","sell_rate":"1701.668"},"ETH/CHF":{"buy_rate":"1776.871","sell_rate":"1701.668"},"ETHCOP":{"buy_rate":"8336789.5213","sell_rate":"7983949.0802"},"ETH/COP":{"buy_rate":"8336789.5213","sell_rate":"7983949.0802"},"ETHEUR":{"buy_rate":"1831.3104","sell_rate":"1753.8033"},"ETH/EUR":{"buy_rate":"1831.3104","sell_rate":"1753.8033"},"ETHIDR":{"buy_rate":"30576823.4251","sell_rate":"29282711.3646"},"ETH/IDR":{"buy_rate":"30576823.4251","sell_rate":"29282711.3646"},"ETHINR":{"buy_rate":"166115.0685","sell_rate":"159084.5307"},"ETH/INR":{"buy_rate":"166115.0685","sell_rate":"159084.5307"},"ETHKRW":{"buy_rate":"2607730.5101","sell_rate":"2497362.7503"},"ETH/KRW":{"buy_rate":"2607730.5101","sell_rate":"2497362.7503"},"ETHLTC":{"buy_rate":"19.83320742","sell_rate":"18.65042468"},"ETH/LTC":{"buy_rate":"19.83320742","sell_rate":"18.65042468"},"LTCBNB":{"buy_rate":"0.3365","sell_rate":"0.3164"},"LTC/BNB":{"buy_rate":"0.3365","sell_rate":"0.3164"},"LTCBTC":{"buy_rate":"0.00330633","sell_rate":"0.00310882"},"LTC/BTC":{"buy_rate":"0.00330633","sell_rate":"0.00310882"},"LTCCAD":{"buy_rate":"139.1304","sell_rate":"133.2419"},"LTC/CAD":{"buy_rate":"139.1304","sell_rate":"133.2419"},"USDCLP":{"buy_rate":"823.0515","sell_rate":"802.7293"},"USD/CLP":{"buy_rate":"823.0515","sell_rate":"802.7293"},"USDIDR":{"buy_rate":"15359.4557","sell_rate":"14980.2099"},"USD/IDR":{"buy_rate":"15359.4557","sell_rate":"14980.2099"},"USDMXN":{"buy_rate":"17.301","sell_rate":"16.8738"},"USD/MXN":{"buy_rate":"17.301","sell_rate":"16.8738"},"DOGEVND":{"buy_rate":"1655.999637","sell_rate":"1583.691202"},"DOGE/VND":{"buy_rate":"1655.999637","sell_rate":"1583.691202"},"ETHCZK":{"buy_rate":"43673.1523","sell_rate":"41824.7604"},"ETH/CZK":{"buy_rate":"43673.1523","sell_rate":"41824.7604"},"ETHDKK":{"buy_rate":"13646.1388","sell_rate":"13068.5892"},"ETH/DKK":{"buy_rate":"13646.1388","sell_rate":"13068.5892"},"ETHGBP":{"buy_rate":"1563.9207","sell_rate":"1497.7305"},"ETH/GBP":{"buy_rate":"1563.9207","sell_rate":"1497.7305"},"ETHJPY":{"buy_rate":"283314.3405","sell_rate":"271323.5428"},"ETH/JPY":{"buy_rate":"283314.3405","sell_rate":"271323.5428"},"ETHKZT":{"buy_rate":"889306.2715","sell_rate":"851667.8956"},"ETH/KZT":{"buy_rate":"889306.2715","sell_rate":"851667.8956"},"ETHMXN":{"buy_rate":"34441.8907","sell_rate":"32984.1962"},"ETH/MXN":{"buy_rate":"34441.8907","sell_rate":"32984.1962"},"ETHUSDT":{"buy_rate":"1941.8512","sell_rate":"1825.0009"},"ETH/USDT":{"buy_rate":"1941.8512","sell_rate":"1825.0009"},"ETHVND":{"buy_rate":"47740299.7964","sell_rate":"45719772.7822"},"ETH/VND":{"buy_rate":"47740299.7964","sell_rate":"45719772.7822"},"ETHXRP":{"buy_rate":"4087.69737064","sell_rate":"3838.58516635"},"ETH/XRP":{"buy_rate":"4087.69737064","sell_rate":"3838.58516635"},"ETHZAR":{"buy_rate":"37660.2757","sell_rate":"36066.3686"},"ETH/ZAR":{"buy_rate":"37660.2757","sell_rate":"36066.3686"},"EURPEN":{"buy_rate":"4.0438","sell_rate":"3.944"},"EUR/PEN":{"buy_rate":"4.0438","sell_rate":"3.944"},"EURRUB":{"buy_rate":"101.1968","sell_rate":"98.6981"},"EUR/RUB":{"buy_rate":"101.1968","sell_rate":"98.6981"},"EURSGD":{"buy_rate":"1.4959","sell_rate":"1.459"},"EUR/SGD":{"buy_rate":"1.4959","sell_rate":"1.459"},"LTCCNY":{"buy_rate":"755.0942","sell_rate":"723.1361"},"LTC/CNY":{"buy_rate":"755.0942","sell_rate":"723.1361"},"LTCCZK":{"buy_rate":"2270.5954","sell_rate":"2174.4964"},"LTC/CZK":{"buy_rate":"2270.5954","sell_rate":"2174.4964"},"LTCDKK":{"buy_rate":"709.4716","sell_rate":"679.4444"},"LTC/DKK":{"buy_rate":"709.4716","sell_rate":"679.4444"},"LTCGBP":{"buy_rate":"81.3093","sell_rate":"77.868"},"LTC/GBP":{"buy_rate":"81.3093","sell_rate":"77.868"},"LTCMXN":{"buy_rate":"1790.6562","sell_rate":"1714.8697"},"LTC/MXN":{"buy_rate":"1790.6562","sell_rate":"1714.8697"},"SHIBHUF":{"buy_rate":"0.00283756","sell_rate":"0.00265102"},"SHIB/HUF":{"buy_rate":"0.00283756","sell_rate":"0.00265102"},"SHIBINR":{"buy_rate":"0.00067813","sell_rate":"0.00063355"},"SHIB/INR":{"buy_rate":"0.00067813","sell_rate":"0.00063355"},"TRXBUSD":{"buy_rate":"0.07961","sell_rate":"0.074744"},"TRX/BUSD":{"buy_rate":"0.07961","sell_rate":"0.074744"},"TRXEUR":{"buy_rate":"0.075095","sell_rate":"0.071815"},"TRX/EUR":{"buy_rate":"0.075095","sell_rate":"0.071815"},"USDAUD":{"buy_rate":"1.5187","sell_rate":"1.4812"},"USD/AUD":{"buy_rate":"1.5187","sell_rate":"1.4812"},"USDCAD":{"buy_rate":"1.3443","sell_rate":"1.3111"},"USD/CAD":{"buy_rate":"1.3443","sell_rate":"1.3111"},"TRXCZK":{"buy_rate":"1.790858","sell_rate":"1.712632"},"TRX/CZK":{"buy_rate":"1.790858","sell_rate":"1.712632"},"TRXTRY":{"buy_rate":"2.158241","sell_rate":"2.063968"},"TRX/TRY":{"buy_rate":"2.158241","sell_rate":"2.063968"},"ETHMYR":{"buy_rate":"9392.8565","sell_rate":"8995.3199"},"ETH/MYR":{"buy_rate":"9392.8565","sell_rate":"8995.3199"},"ETHNZD":{"buy_rate":"3258.3498","sell_rate":"3120.4456"},"ETH/NZD":{"buy_rate":"3258.3498","sell_rate":"3120.4456"},"ETHPEN":{"buy_rate":"7313.9476","sell_rate":"7004.3972"},"ETH/PEN":{"buy_rate":"7313.9476","sell_rate":"7004.3972"},"ETHPLN":{"buy_rate":"8136.3616","sell_rate":"7792.0039"},"ETH/PLN":{"buy_rate":"8136.3616","sell_rate":"7792.0039"},"ETHRUB":{"buy_rate":"183034.7404","sell_rate":"175288.1062"},"ETH/RUB":{"buy_rate":"183034.7404","sell_rate":"175288.1062"},"ETHSEK":{"buy_rate":"21604.8376","sell_rate":"20690.4496"},"ETH/SEK":{"buy_rate":"21604.8376","sell_rate":"20690.4496"},"ETHTHB":{"buy_rate":"70190.4358","sell_rate":"67219.745"},"ETH/THB":{"buy_rate":"70190.4358","sell_rate":"67219.745"},"ETHTRY":{"buy_rate":"52632.4388","sell_rate":"50404.8603"},"ETH/TRY":{"buy_rate":"52632.4388","sell_rate":"50404.8603"},"ETHTWD":{"buy_rate":"63096.4103","sell_rate":"60425.9621"},"ETH/TWD":{"buy_rate":"63096.4103","sell_rate":"60425.9621"},"EURAUD":{"buy_rate":"1.6716","sell_rate":"1.6303"},"EUR/AUD":{"buy_rate":"1.6716","sell_rate":"1.6303"},"EURCAD":{"buy_rate":"1.4796","sell_rate":"1.4431"},"EUR/CAD":{"buy_rate":"1.4796","sell_rate":"1.4431"},"EURCLP":{"buy_rate":"905.8925","sell_rate":"883.5248"},"EUR/CLP":{"buy_rate":"905.8925","sell_rate":"883.5248"},"EURCOP":{"buy_rate":"4609.2677","sell_rate":"4495.4586"},"EUR/COP":{"buy_rate":"4609.2677","sell_rate":"4495.4586"},"EURDKK":{"buy_rate":"7.5448","sell_rate":"7.3585"},"EUR/DKK":{"buy_rate":"7.5448","sell_rate":"7.3585"},"EURHUF":{"buy_rate":"384.3076","sell_rate":"374.8186"},"EUR/HUF":{"buy_rate":"384.3076","sell_rate":"374.8186"},"EURINR":{"buy_rate":"91.8422","sell_rate":"89.5745"},"EUR/INR":{"buy_rate":"91.8422","sell_rate":"89.5745"},"EURKRW":{"buy_rate":"1441.7694","sell_rate":"1406.1702"},"EUR/KRW":{"buy_rate":"1441.7694","sell_rate":"1406.1702"},"EURMXN":{"buy_rate":"19.0424","sell_rate":"18.5722"},"EUR/MXN":{"buy_rate":"19.0424","sell_rate":"18.5722"},"EURNOK":{"buy_rate":"11.6684","sell_rate":"11.3803"},"EUR/NOK":{"buy_rate":"11.6684","sell_rate":"11.3803"},"EURTRY":{"buy_rate":"29.0996","sell_rate":"28.3811"},"EUR/TRY":{"buy_rate":"29.0996","sell_rate":"28.3811"},"LTCBRL":{"buy_rate":"513.4808","sell_rate":"491.7486"},"LTC/BRL":{"buy_rate":"513.4808","sell_rate":"491.7486"},"LTCBUSD":{"buy_rate":"100.9366","sell_rate":"94.9004"},"LTC/BUSD":{"buy_rate":"100.9366","sell_rate":"94.9004"},"LTCCHF":{"buy_rate":"92.3807","sell_rate":"88.4709"},"LTC/CHF":{"buy_rate":"92.3807","sell_rate":"88.4709"},"SHIBKRW":{"buy_rate":"0.01064539","sell_rate":"0.00994558"},"SHIB/KRW":{"buy_rate":"0.01064539","sell_rate":"0.00994558"},"SHIBMXN":{"buy_rate":"0.00014061","sell_rate":"0.00013136"},"SHIB/MXN":{"buy_rate":"0.00014061","sell_rate":"0.00013136"},"SHIBNOK":{"buy_rate":"0.00008616","sell_rate":"0.0000805"},"SHIB/NOK":{"buy_rate":"0.00008616","sell_rate":"0.0000805"},"EURUAH":{"buy_rate":"40.9831","sell_rate":"39.9711"},"EUR/UAH":{"buy_rate":"40.9831","sell_rate":"39.9711"},"EURUSD":{"buy_rate":"1.1145","sell_rate":"1.0869"},"EUR/USD":{"buy_rate":"1.1145","sell_rate":"1.0869"},"EURVND":{"buy_rate":"26394.7915","sell_rate":"25743.0682"},"EUR/VND":{"buy_rate":"26394.7915","sell_rate":"25743.0682"},"EURZAR":{"buy_rate":"20.8218","sell_rate":"20.3077"},"EUR/ZAR":{"buy_rate":"20.8218","sell_rate":"20.3077"},"GBPEUR":{"buy_rate":"1.1857","sell_rate":"1.1564"},"GBP/EUR":{"buy_rate":"1.1857","sell_rate":"1.1564"},"GBPUSD":{"buy_rate":"1.305","sell_rate":"1.2728"},"GBP/USD":{"buy_rate":"1.305","sell_rate":"1.2728"},"LTCAUD":{"buy_rate":"157.1841","sell_rate":"150.5315"},"LTC/AUD":{"buy_rate":"157.1841","sell_rate":"150.5315"},"LTCNZD":{"buy_rate":"169.4038","sell_rate":"162.234"},"LTC/NZD":{"buy_rate":"169.4038","sell_rate":"162.234"},"LTCSEK":{"buy_rate":"1123.2495","sell_rate":"1075.7099"},"LTC/SEK":{"buy_rate":"1123.2495","sell_rate":"1075.7099"},"LTCSHIB":{"buy_rate":"13461546.51","sell_rate":"12349240.13"},"LTC/SHIB":{"buy_rate":"13461546.51","sell_rate":"12349240.13"},"LTCTRY":{"buy_rate":"2736.3945","sell_rate":"2620.5813"},"LTC/TRY":{"buy_rate":"2736.3945","sell_rate":"2620.5813"},"LTCUAH":{"buy_rate":"3853.8609","sell_rate":"3690.7528"},"LTC/UAH":{"buy_rate":"3853.8609","sell_rate":"3690.7528"},"LTCUSDC":{"buy_rate":"100.9533","sell_rate":"94.927"},"LTC/USDC":{"buy_rate":"100.9533","sell_rate":"94.927"},"LTCVND":{"buy_rate":"2482049.0278","sell_rate":"2377000.5222"},"LTC/VND":{"buy_rate":"2482049.0278","sell_rate":"2377000.5222"},"SHIBAUD":{"buy_rate":"0.00001235","sell_rate":"0.00001154"},"SHIB/AUD":{"buy_rate":"0.00001235","sell_rate":"0.00001154"},"SHIBBUSD":{"buy_rate":"0.00000793","sell_rate":"0.00000727"},"SHIB/BUSD":{"buy_rate":"0.00000793","sell_rate":"0.00000727"},"SHIBCHF":{"buy_rate":"0.00000726","sell_rate":"0.00000678"},"SHIB/CHF":{"buy_rate":"0.00000726","sell_rate":"0.00000678"},"SHIBCNY":{"buy_rate":"0.00005929","sell_rate":"0.0000554"},"SHIB/CNY":{"buy_rate":"0.00005929","sell_rate":"0.0000554"},"SHIBCZK":{"buy_rate":"0.00017829","sell_rate":"0.00016657"},"SHIB/CZK":{"buy_rate":"0.00017829","sell_rate":"0.00016657"},"SHIBDKK":{"buy_rate":"0.00005571","sell_rate":"0.00005205"},"SHIB/DKK":{"buy_rate":"0.00005571","sell_rate":"0.00005205"},"SHIBRUB":{"buy_rate":"0.0007472","sell_rate":"0.00069808"},"SHIB/RUB":{"buy_rate":"0.0007472","sell_rate":"0.00069808"},"SHIBSGD":{"buy_rate":"0.00001105","sell_rate":"0.00001032"},"SHIB/SGD":{"buy_rate":"0.00001105","sell_rate":"0.00001032"},"TRXSEK":{"buy_rate":"0.885926","sell_rate":"0.847228"},"TRX/SEK":{"buy_rate":"0.885926","sell_rate":"0.847228"},"XRPCOP":{"buy_rate":"2104.658843","sell_rate":"2015.082102"},"XRP/COP":{"buy_rate":"2104.658843","sell_rate":"2015.082102"},"XRPCZK":{"buy_rate":"11.025477","sell_rate":"10.55622"},"XRP/CZK":{"buy_rate":"11.025477","sell_rate":"10.55622"},"XRPDKK":{"buy_rate":"3.445027","sell_rate":"3.298403"},"XRP/DKK":{"buy_rate":"3.445027","sell_rate":"3.298403"},"XRPGBP":{"buy_rate":"0.394819","sell_rate":"0.378015"},"XRP/GBP":{"buy_rate":"0.394819","sell_rate":"0.378015"},"LTCRUB":{"buy_rate":"9516.0944","sell_rate":"9113.3419"},"LTC/RUB":{"buy_rate":"9516.0944","sell_rate":"9113.3419"},"LTCSGD":{"buy_rate":"140.6656","sell_rate":"134.7122"},"LTC/SGD":{"buy_rate":"140.6656","sell_rate":"134.7122"},"LTCTHB":{"buy_rate":"3649.2461","sell_rate":"3494.798"},"LTC/THB":{"buy_rate":"3649.2461","sell_rate":"3494.798"},"LTCTWD":{"buy_rate":"3280.4232","sell_rate":"3141.5849"},"LTC/TWD":{"buy_rate":"3280.4232","sell_rate":"3141.5849"},"LTCUSD":{"buy_rate":"104.7941","sell_rate":"100.3589"},"LTC/USD":{"buy_rate":"104.7941","sell_rate":"100.3589"},"LTCUSDT":{"buy_rate":"100.938","sell_rate":"94.9104"},"LTC/USDT":{"buy_rate":"100.938","sell_rate":"94.9104"},"LTCZAR":{"buy_rate":"1957.9821","sell_rate":"1875.1138"},"LTC/ZAR":{"buy_rate":"1957.9821","sell_rate":"1875.1138"},"SHIBBRL":{"buy_rate":"0.00004032","sell_rate":"0.00003767"},"SHIB/BRL":{"buy_rate":"0.00004032","sell_rate":"0.00003767"},"SHIBCAD":{"buy_rate":"0.00001093","sell_rate":"0.00001021"},"SHIB/CAD":{"buy_rate":"0.00001093","sell_rate":"0.00001021"},"SHIBDAI":{"buy_rate":"0.00000793","sell_rate":"0.00000728"},"SHIB/DAI":{"buy_rate":"0.00000793","sell_rate":"0.00000728"},"SHIBEUR":{"buy_rate":"0.00000748","sell_rate":"0.00000699"},"SHIB/EUR":{"buy_rate":"0.00000748","sell_rate":"0.00000699"},"SHIBHKD":{"buy_rate":"0.00006442","sell_rate":"0.00006018"},"SHIB/HKD":{"buy_rate":"0.00006442","sell_rate":"0.00006018"},"SHIBIDR":{"buy_rate":"0.12482202","sell_rate":"0.11661635"},"SHIB/IDR":{"buy_rate":"0.12482202","sell_rate":"0.11661635"},"SHIBJPY":{"buy_rate":"0.00115656","sell_rate":"0.00108053"},"SHIB/JPY":{"buy_rate":"0.00115656","sell_rate":"0.00108053"},"SHIBKZT":{"buy_rate":"0.00363036","sell_rate":"0.00339171"},"SHIB/KZT":{"buy_rate":"0.00363036","sell_rate":"0.00339171"},"SHIBMYR":{"buy_rate":"0.00003835","sell_rate":"0.00003583"},"SHIB/MYR":{"buy_rate":"0.00003835","sell_rate":"0.00003583"},"SHIBNZD":{"buy_rate":"0.00001331","sell_rate":"0.00001243"},"SHIB/NZD":{"buy_rate":"0.00001331","sell_rate":"0.00001243"},"SHIBPLN":{"buy_rate":"0.00003322","sell_rate":"0.00003104"},"SHIB/PLN":{"buy_rate":"0.00003322","sell_rate":"0.00003104"},"SHIBSEK":{"buy_rate":"0.0000882","sell_rate":"0.0000824"},"SHIB/SEK":{"buy_rate":"0.0000882","sell_rate":"0.0000824"},"TRXUAH":{"buy_rate":"3.039606","sell_rate":"2.906834"},"TRX/UAH":{"buy_rate":"3.039606","sell_rate":"2.906834"},"TRXVND":{"buy_rate":"1957.635032","sell_rate":"1872.123934"},"TRX/VND":{"buy_rate":"1957.635032","sell_rate":"1872.123934"},"TRXXRP":{"buy_rate":"0.167526","sell_rate":"0.157278"},"TRX/XRP":{"buy_rate":"0.167526","sell_rate":"0.157278"},"USDTWD":{"buy_rate":"31.6949","sell_rate":"30.9123"},"USD/TWD":{"buy_rate":"31.6949","sell_rate":"30.9123"},"USDCJPY":{"buy_rate":"150.4597","sell_rate":"144.0822"},"USDC/JPY":{"buy_rate":"150.4597","sell_rate":"144.0822"},"SOLADA":{"buy_rate":"75.063269","sell_rate":"69.224738"},"SOL/ADA":{"buy_rate":"75.063269","sell_rate":"69.224738"},"SOLBCH":{"buy_rate":"0.08313739","sell_rate":"0.07817929"},"SOL/BCH":{"buy_rate":"0.08313739","sell_rate":"0.07817929"},"SOLBRL":{"buy_rate":"115.890826","sell_rate":"110.985866"},"SOL/BRL":{"buy_rate":"115.890826","sell_rate":"110.985866"},"SOLBUSD":{"buy_rate":"22.782797","sell_rate":"21.417313"},"SOL/BUSD":{"buy_rate":"22.782797","sell_rate":"21.417313"},"SOLSGD":{"buy_rate":"31.747737","sell_rate":"30.404047"},"SOL/SGD":{"buy_rate":"31.747737","sell_rate":"30.404047"},"SOLTHB":{"buy_rate":"823.622186","sell_rate":"788.763218"},"SOL/THB":{"buy_rate":"823.622186","sell_rate":"788.763218"},"SOLTRY":{"buy_rate":"617.594744","sell_rate":"591.455678"},"SOL/TRY":{"buy_rate":"617.594744","sell_rate":"591.455678"},"SOLUAH":{"buy_rate":"869.803022","sell_rate":"832.989498"},"SOL/UAH":{"buy_rate":"869.803022","sell_rate":"832.989498"},"SOLUSDC":{"buy_rate":"22.787168","sell_rate":"21.422671"},"SOL/USDC":{"buy_rate":"22.787168","sell_rate":"21.422671"},"SOLXRP":{"buy_rate":"47.947176","sell_rate":"45.060152"},"SOL/XRP":{"buy_rate":"47.947176","sell_rate":"45.060152"},"TRXADA":{"buy_rate":"0.262237","sell_rate":"0.241712"},"TRX/ADA":{"buy_rate":"0.262237","sell_rate":"0.241712"},"TRXBCH":{"buy_rate":"0.00029054","sell_rate":"0.00027282"},"TRX/BCH":{"buy_rate":"0.00029054","sell_rate":"0.00027282"},"TRXUSDC":{"buy_rate":"0.079622","sell_rate":"0.074767"},"TRX/USDC":{"buy_rate":"0.079622","sell_rate":"0.074767"},"USDCHF":{"buy_rate":"0.8926","sell_rate":"0.8706"},"USD/CHF":{"buy_rate":"0.8926","sell_rate":"0.8706"},"USDHKD":{"buy_rate":"7.9263","sell_rate":"7.7306"},"USD/HKD":{"buy_rate":"7.9263","sell_rate":"7.7306"},"USDTAUD":{"buy_rate":"1.6059","sell_rate":"1.5378"},"USDT/AUD":{"buy_rate":"1.6059","sell_rate":"1.5378"},"USDTCAD":{"buy_rate":"1.4215","sell_rate":"1.3612"},"USDT/CAD":{"buy_rate":"1.4215","sell_rate":"1.3612"},"USDTCLP":{"buy_rate":"870.3038","sell_rate":"833.3955"},"USDT/CLP":{"buy_rate":"870.3038","sell_rate":"833.3955"},"USDTZAR":{"buy_rate":"20.0038","sell_rate":"19.1554"},"USDT/ZAR":{"buy_rate":"20.0038","sell_rate":"19.1554"},"XLMZAR":{"buy_rate":"2.014534","sell_rate":"1.9281"},"XLM/ZAR":{"buy_rate":"2.014534","sell_rate":"1.9281"},"XRPBNB":{"buy_rate":"0.001634","sell_rate":"0.001536"},"XRP/BNB":{"buy_rate":"0.001634","sell_rate":"0.001536"},"XRPBTC":{"buy_rate":"0.00001606","sell_rate":"0.0000151"},"XRP/BTC":{"buy_rate":"0.00001606","sell_rate":"0.0000151"},"XRPDAI":{"buy_rate":"0.490123","sell_rate":"0.460738"},"XRP/DAI":{"buy_rate":"0.490123","sell_rate":"0.460738"},"XRPKZT":{"buy_rate":"224.509244","sell_rate":"214.953867"},"XRP/KZT":{"buy_rate":"224.509244","sell_rate":"214.953867"},"XRPMXN":{"buy_rate":"8.695005","sell_rate":"8.324936"},"XRP/MXN":{"buy_rate":"8.695005","sell_rate":"8.324936"},"XRPNOK":{"buy_rate":"5.327921","sell_rate":"5.101159"},"XRP/NOK":{"buy_rate":"5.327921","sell_rate":"5.101159"},"USDZAR":{"buy_rate":"18.9177","sell_rate":"18.4506"},"USD/ZAR":{"buy_rate":"18.9177","sell_rate":"18.4506"},"USDCBRL":{"buy_rate":"5.2451","sell_rate":"5.0228"},"USDC/BRL":{"buy_rate":"5.2451","sell_rate":"5.0228"},"ETHNOK":{"buy_rate":"21104.4943","sell_rate":"20211.2825"},"ETH/NOK":{"buy_rate":"21104.4943","sell_rate":"20211.2825"},"ETHSGD":{"buy_rate":"2705.5944","sell_rate":"2591.0847"},"ETH/SGD":{"buy_rate":"2705.5944","sell_rate":"2591.0847"},"USDCCAD":{"buy_rate":"1.4212","sell_rate":"1.361"},"USDC/CAD":{"buy_rate":"1.4212","sell_rate":"1.361"},"USDCCOP":{"buy_rate":"4427.4166","sell_rate":"4239.7534"},"USDC/COP":{"buy_rate":"4427.4166","sell_rate":"4239.7534"},"ETHUSD":{"buy_rate":"2015.6336","sell_rate":"1930.3253"},"ETH/USD":{"buy_rate":"2015.6336","sell_rate":"1930.3253"},"SOLPLN":{"buy_rate":"95.472949","sell_rate":"91.432153"},"SOL/PLN":{"buy_rate":"95.472949","sell_rate":"91.432153"},"SOLSEK":{"buy_rate":"253.513507","sell_rate":"242.783807"},"SOL/SEK":{"buy_rate":"253.513507","sell_rate":"242.783807"},"SOLSHIB":{"buy_rate":"3038224.35","sell_rate":"2787178.69"},"SOL/SHIB":{"buy_rate":"3038224.35","sell_rate":"2787178.69"},"SOLTRX":{"buy_rate":"296.101721","sell_rate":"276.902649"},"SOL/TRX":{"buy_rate":"296.101721","sell_rate":"276.902649"},"SOLTWD":{"buy_rate":"740.380122","sell_rate":"709.044289"},"SOL/TWD":{"buy_rate":"740.380122","sell_rate":"709.044289"},"SOLUSD":{"buy_rate":"23.651662","sell_rate":"22.65063"},"SOL/USD":{"buy_rate":"23.651662","sell_rate":"22.65063"},"SOLVND":{"buy_rate":"560189.855541","sell_rate":"536480.392"},"SOL/VND":{"buy_rate":"560189.855541","sell_rate":"536480.392"},"TRXTHB":{"buy_rate":"2.878223","sell_rate":"2.752501"},"TRX/THB":{"buy_rate":"2.878223","sell_rate":"2.752501"},"TRXTWD":{"buy_rate":"2.587327","sell_rate":"2.47431"},"TRX/TWD":{"buy_rate":"2.587327","sell_rate":"2.47431"},"TRXUSD":{"buy_rate":"0.082653","sell_rate":"0.079043"},"TRX/USD":{"buy_rate":"0.082653","sell_rate":"0.079043"},"TRXUSDT":{"buy_rate":"0.079611","sell_rate":"0.074752"},"TRX/USDT":{"buy_rate":"0.079611","sell_rate":"0.074752"},"TRXXLM":{"buy_rate":"0.79109","sell_rate":"0.742098"},"TRX/XLM":{"buy_rate":"0.79109","sell_rate":"0.742098"},"TRXZAR":{"buy_rate":"1.544294","sell_rate":"1.476838"},"TRX/ZAR":{"buy_rate":"1.544294","sell_rate":"1.476838"},"USDCZK":{"buy_rate":"21.9381","sell_rate":"21.3964"},"USD/CZK":{"buy_rate":"21.9381","sell_rate":"21.3964"},"USDDKK":{"buy_rate":"6.8548","sell_rate":"6.6856"},"USD/DKK":{"buy_rate":"6.8548","sell_rate":"6.6856"},"USDINR":{"buy_rate":"83.4435","sell_rate":"81.3832"},"USD/INR":{"buy_rate":"83.4435","sell_rate":"81.3832"},"USDKRW":{"buy_rate":"1309.9243","sell_rate":"1277.5804"},"USD/KRW":{"buy_rate":"1309.9243","sell_rate":"1277.5804"},"USDNOK":{"buy_rate":"10.6013","sell_rate":"10.3396"},"USD/NOK":{"buy_rate":"10.6013","sell_rate":"10.3396"},"USDPEN":{"buy_rate":"3.674","sell_rate":"3.5833"},"USD/PEN":{"buy_rate":"3.674","sell_rate":"3.5833"},"USDSGD":{"buy_rate":"1.3591","sell_rate":"1.3256"},"USD/SGD":{"buy_rate":"1.3591","sell_rate":"1.3256"},"USDTRY":{"buy_rate":"26.4386","sell_rate":"25.7858"},"USD/TRY":{"buy_rate":"26.4386","sell_rate":"25.7858"},"USDUAH":{"buy_rate":"37.2353","sell_rate":"36.3159"},"USD/UAH":{"buy_rate":"37.2353","sell_rate":"36.3159"},"USDTHUF":{"buy_rate":"369.2098","sell_rate":"353.5522"},"USDT/HUF":{"buy_rate":"369.2098","sell_rate":"353.5522"},"SOLUSDT":{"buy_rate":"22.782261","sell_rate":"21.418592"},"SOL/USDT":{"buy_rate":"22.782261","sell_rate":"21.418592"},"USDTUSD":{"buy_rate":"1.0575","sell_rate":"1.0383"},"USDT/USD":{"buy_rate":"1.0575","sell_rate":"1.0383"},"XLMMXN":{"buy_rate":"1.842376","sell_rate":"1.763328"},"XLM/MXN":{"buy_rate":"1.842376","sell_rate":"1.763328"},"XLMPEN":{"buy_rate":"0.39124","sell_rate":"0.374454"},"XLM/PEN":{"buy_rate":"0.39124","sell_rate":"0.374454"},"XLMRUB":{"buy_rate":"9.790949","sell_rate":"9.370862"},"XLM/RUB":{"buy_rate":"9.790949","sell_rate":"9.370862"},"SOLXLM":{"buy_rate":"226.674693","sell_rate":"212.373074"},"SOL/XLM":{"buy_rate":"226.674693","sell_rate":"212.373074"},"TRXAUD":{"buy_rate":"0.123974","sell_rate":"0.118559"},"TRX/AUD":{"buy_rate":"0.123974","sell_rate":"0.118559"},"TRXBNB":{"buy_rate":"0.00026535","sell_rate":"0.00024917"},"TRX/BNB":{"buy_rate":"0.00026535","sell_rate":"0.00024917"},"XRPHKD":{"buy_rate":"3.983519","sell_rate":"3.813975"},"XRP/HKD":{"buy_rate":"3.983519","sell_rate":"3.813975"},"TRXBTC":{"buy_rate":"0.00000261","sell_rate":"0.00000245"},"TRX/BTC":{"buy_rate":"0.00000261","sell_rate":"0.00000245"},"TRXCAD":{"buy_rate":"0.109735","sell_rate":"0.104942"},"TRX/CAD":{"buy_rate":"0.109735","sell_rate":"0.104942"},"TRXCLP":{"buy_rate":"67.187754","sell_rate":"64.252937"},"TRX/CLP":{"buy_rate":"67.187754","sell_rate":"64.252937"},"TRXCOP":{"buy_rate":"341.857744","sell_rate":"326.925119"},"TRX/COP":{"buy_rate":"341.857744","sell_rate":"326.925119"},"TRXDAI":{"buy_rate":"0.07961","sell_rate":"0.074752"},"TRX/DAI":{"buy_rate":"0.07961","sell_rate":"0.074752"},"TRXETH":{"buy_rate":"0.00004229","sell_rate":"0.00003971"},"TRX/ETH":{"buy_rate":"0.00004229","sell_rate":"0.00003971"},"TRXGBP":{"buy_rate":"0.06413","sell_rate":"0.061329"},"TRX/GBP":{"buy_rate":"0.06413","sell_rate":"0.061329"},"TRXHUF":{"buy_rate":"28.503124","sell_rate":"27.258084"},"TRX/HUF":{"buy_rate":"28.503124","sell_rate":"27.258084"},"TRXINR":{"buy_rate":"6.811702","sell_rate":"6.514161"},"TRX/INR":{"buy_rate":"6.811702","sell_rate":"6.514161"},"TRXKRW":{"buy_rate":"106.932396","sell_rate":"102.261501"},"TRX/KRW":{"buy_rate":"106.932396","sell_rate":"102.261501"},"TRXLTC":{"buy_rate":"0.00081328","sell_rate":"0.0007637"},"TRX/LTC":{"buy_rate":"0.00081328","sell_rate":"0.0007637"},"TRXMYR":{"buy_rate":"0.385163","sell_rate":"0.368339"},"TRX/MYR":{"buy_rate":"0.385163","sell_rate":"0.368339"},"TRXNZD":{"buy_rate":"0.133612","sell_rate":"0.127776"},"TRX/NZD":{"buy_rate":"0.133612","sell_rate":"0.127776"},"USDCDKK":{"buy_rate":"7.2471","sell_rate":"6.9399"},"USDC/DKK":{"buy_rate":"7.2471","sell_rate":"6.9399"},"USDCUAH":{"buy_rate":"39.3661","sell_rate":"37.6976"},"USDC/UAH":{"buy_rate":"39.3661","sell_rate":"37.6976"},"USDTCHF":{"buy_rate":"0.9439","sell_rate":"0.9038"},"USDT/CHF":{"buy_rate":"0.9439","sell_rate":"0.9038"},"USDTCZK":{"buy_rate":"23.1976","sell_rate":"22.2138"},"USDT/CZK":{"buy_rate":"23.1976","sell_rate":"22.2138"},"USDTEUR":{"buy_rate":"0.9728","sell_rate":"0.9315"},"USDT/EUR":{"buy_rate":"0.9728","sell_rate":"0.9315"},"USDTGBP":{"buy_rate":"0.8307","sell_rate":"0.7955"},"USDT/GBP":{"buy_rate":"0.8307","sell_rate":"0.7955"},"USDTHKD":{"buy_rate":"8.3813","sell_rate":"8.0259"},"USDT/HKD":{"buy_rate":"8.3813","sell_rate":"8.0259"},"USDTDKK":{"buy_rate":"7.2484","sell_rate":"6.941"},"USDT/DKK":{"buy_rate":"7.2484","sell_rate":"6.941"},"SOLZAR":{"buy_rate":"441.909759","sell_rate":"423.20638"},"SOL/ZAR":{"buy_rate":"441.909759","sell_rate":"423.20638"},"USDTPLN":{"buy_rate":"4.3218","sell_rate":"4.1385"},"USDT/PLN":{"buy_rate":"4.3218","sell_rate":"4.1385"},"USDTRUB":{"buy_rate":"97.2212","sell_rate":"93.0982"},"USDT/RUB":{"buy_rate":"97.2212","sell_rate":"93.0982"},"USDTSEK":{"buy_rate":"11.4757","sell_rate":"10.9891"},"USDT/SEK":{"buy_rate":"11.4757","sell_rate":"10.9891"},"USDTTHB":{"buy_rate":"37.2826","sell_rate":"35.7015"},"USDT/THB":{"buy_rate":"37.2826","sell_rate":"35.7015"},"USDTTRY":{"buy_rate":"27.9564","sell_rate":"26.7708"},"USDT/TRY":{"buy_rate":"27.9564","sell_rate":"26.7708"},"USDCOP":{"buy_rate":"4187.765","sell_rate":"4084.3634"},"USD/COP":{"buy_rate":"4187.765","sell_rate":"4084.3634"},"USDJPY":{"buy_rate":"142.3155","sell_rate":"138.8015"},"USD/JPY":{"buy_rate":"142.3155","sell_rate":"138.8015"},"USDKZT":{"buy_rate":"446.7195","sell_rate":"435.6893"},"USD/KZT":{"buy_rate":"446.7195","sell_rate":"435.6893"},"USDMYR":{"buy_rate":"4.7183","sell_rate":"4.6018"},"USD/MYR":{"buy_rate":"4.7183","sell_rate":"4.6018"},"USDNZD":{"buy_rate":"1.6368","sell_rate":"1.5964"},"USD/NZD":{"buy_rate":"1.6368","sell_rate":"1.5964"},"USDPLN":{"buy_rate":"4.0871","sell_rate":"3.9862"},"USD/PLN":{"buy_rate":"4.0871","sell_rate":"3.9862"},"USDSEK":{"buy_rate":"10.8527","sell_rate":"10.5847"},"USD/SEK":{"buy_rate":"10.8527","sell_rate":"10.5847"},"USDTHB":{"buy_rate":"35.2584","sell_rate":"34.3878"},"USD/THB":{"buy_rate":"35.2584","sell_rate":"34.3878"},"USDVND":{"buy_rate":"23981.0725","sell_rate":"23388.9473"},"USD/VND":{"buy_rate":"23981.0725","sell_rate":"23388.9473"},"USDCAUD":{"buy_rate":"1.6056","sell_rate":"1.5376"},"USDC/AUD":{"buy_rate":"1.6056","sell_rate":"1.5376"},"USDCBUSD":{"buy_rate":"1.0311","sell_rate":"0.9694"},"USDC/BUSD":{"buy_rate":"1.0311","sell_rate":"0.9694"},"USDCCHF":{"buy_rate":"0.9437","sell_rate":"0.9037"},"USDC/CHF":{"buy_rate":"0.9437","sell_rate":"0.9037"},"USDCCNY":{"buy_rate":"7.7131","sell_rate":"7.3862"},"USDC/CNY":{"buy_rate":"7.7131","sell_rate":"7.3862"},"USDCCZK":{"buy_rate":"23.1935","sell_rate":"22.2104"},"USDC/CZK":{"buy_rate":"23.1935","sell_rate":"22.2104"},"USDCEUR":{"buy_rate":"0.9726","sell_rate":"0.9314"},"USDC/EUR":{"buy_rate":"0.9726","sell_rate":"0.9314"},"USDCHKD":{"buy_rate":"8.3799","sell_rate":"8.0247"},"USDC/HKD":{"buy_rate":"8.3799","sell_rate":"8.0247"},"USDCIDR":{"buy_rate":"16238.4253","sell_rate":"15550.1335"},"USDC/IDR":{"buy_rate":"16238.4253","sell_rate":"15550.1335"},"USDCSEK":{"buy_rate":"11.4737","sell_rate":"10.9874"},"USDC/SEK":{"buy_rate":"11.4737","sell_rate":"10.9874"},"USDCTHB":{"buy_rate":"37.2761","sell_rate":"35.6961"},"USDC/THB":{"buy_rate":"37.2761","sell_rate":"35.6961"},"USDCTWD":{"buy_rate":"33.5086","sell_rate":"32.0883"},"USDC/TWD":{"buy_rate":"33.5086","sell_rate":"32.0883"},"USDCUSD":{"buy_rate":"1.0705","sell_rate":"1.0251"},"USDC/USD":{"buy_rate":"1.0705","sell_rate":"1.0251"},"USDCVND":{"buy_rate":"25353.428","sell_rate":"24278.7821"},"USDC/VND":{"buy_rate":"25353.428","sell_rate":"24278.7821"},"USDTCOP":{"buy_rate":"4428.1891","sell_rate":"4240.3963"},"USDT/COP":{"buy_rate":"4428.1891","sell_rate":"4240.3963"},"XRPAUD":{"buy_rate":"0.763248","sell_rate":"0.730764"},"XRP/AUD":{"buy_rate":"0.763248","sell_rate":"0.730764"},"XRPBRL":{"buy_rate":"2.493341","sell_rate":"2.387222"},"XRP/BRL":{"buy_rate":"2.493341","sell_rate":"2.387222"},"TRXHKD":{"buy_rate":"0.647039","sell_rate":"0.618776"},"TRX/HKD":{"buy_rate":"0.647039","sell_rate":"0.618776"},"TRXIDR":{"buy_rate":"1253.830851","sell_rate":"1199.062494"},"TRX/IDR":{"buy_rate":"1253.830851","sell_rate":"1199.062494"},"TRXJPY":{"buy_rate":"11.617566","sell_rate":"11.110101"},"TRX/JPY":{"buy_rate":"11.617566","sell_rate":"11.110101"},"TRXKZT":{"buy_rate":"36.466824","sell_rate":"34.873923"},"TRX/KZT":{"buy_rate":"36.466824","sell_rate":"34.873923"},"TRXMXN":{"buy_rate":"1.412322","sell_rate":"1.35063"},"TRX/MXN":{"buy_rate":"1.412322","sell_rate":"1.35063"},"TRXNOK":{"buy_rate":"0.86541","sell_rate":"0.827607"},"TRX/NOK":{"buy_rate":"0.86541","sell_rate":"0.827607"},"TRXPEN":{"buy_rate":"0.299915","sell_rate":"0.286815"},"TRX/PEN":{"buy_rate":"0.299915","sell_rate":"0.286815"},"TRXRUB":{"buy_rate":"7.505508","sell_rate":"7.177662"},"TRX/RUB":{"buy_rate":"7.505508","sell_rate":"7.177662"},"TRXSGD":{"buy_rate":"0.110946","sell_rate":"0.1061"},"TRX/SGD":{"buy_rate":"0.110946","sell_rate":"0.1061"},"USDBRL":{"buy_rate":"4.9612","sell_rate":"4.8387"},"USD/BRL":{"buy_rate":"4.9612","sell_rate":"4.8387"},"USDCNY":{"buy_rate":"7.2956","sell_rate":"7.1155"},"USD/CNY":{"buy_rate":"7.2956","sell_rate":"7.1155"},"USDHUF":{"buy_rate":"349.164","sell_rate":"340.5426"},"USD/HUF":{"buy_rate":"349.164","sell_rate":"340.5426"},"USDCUSDT":{"buy_rate":"1.0311","sell_rate":"0.9695"},"USDC/USDT":{"buy_rate":"1.0311","sell_rate":"0.9695"},"USDCZAR":{"buy_rate":"20.0003","sell_rate":"19.1525"},"USDC/ZAR":{"buy_rate":"20.0003","sell_rate":"19.1525"},"USDTBRL":{"buy_rate":"5.246","sell_rate":"5.0236"},"USDT/BRL":{"buy_rate":"5.246","sell_rate":"5.0236"},"USDTCNY":{"buy_rate":"7.7145","sell_rate":"7.3873"},"USDT/CNY":{"buy_rate":"7.7145","sell_rate":"7.3873"},"USDTNZD":{"buy_rate":"1.7308","sell_rate":"1.6574"},"USDT/NZD":{"buy_rate":"1.7308","sell_rate":"1.6574"},"USDTPEN":{"buy_rate":"3.8849","sell_rate":"3.7202"},"USDT/PEN":{"buy_rate":"3.8849","sell_rate":"3.7202"},"USDTUAH":{"buy_rate":"39.373","sell_rate":"37.7033"},"USDT/UAH":{"buy_rate":"39.373","sell_rate":"37.7033"},"USDTVND":{"buy_rate":"25357.8519","sell_rate":"24282.4639"},"USDT/VND":{"buy_rate":"25357.8519","sell_rate":"24282.4639"},"XLMETH":{"buy_rate":"0.00005516","sell_rate":"0.00005184"},"XLM/ETH":{"buy_rate":"0.00005516","sell_rate":"0.00005184"},"XLMTHB":{"buy_rate":"3.754648","sell_rate":"3.593552"},"XLM/THB":{"buy_rate":"3.754648","sell_rate":"3.593552"},"XLMTWD":{"buy_rate":"3.375172","sell_rate":"3.230358"},"XLM/TWD":{"buy_rate":"3.375172","sell_rate":"3.230358"},"XLMUSD":{"buy_rate":"0.107821","sell_rate":"0.103195"},"XLM/USD":{"buy_rate":"0.107821","sell_rate":"0.103195"},"XLMUSDT":{"buy_rate":"0.10385","sell_rate":"0.097593"},"XLM/USDT":{"buy_rate":"0.10385","sell_rate":"0.097593"},"XLMXRP":{"buy_rate":"0.218527","sell_rate":"0.20534"},"XLM/XRP":{"buy_rate":"0.218527","sell_rate":"0.20534"},"USDCGBP":{"buy_rate":"0.8306","sell_rate":"0.7954"},"USDC/GBP":{"buy_rate":"0.8306","sell_rate":"0.7954"},"USDCHUF":{"buy_rate":"369.1454","sell_rate":"353.4986"},"USDC/HUF":{"buy_rate":"369.1454","sell_rate":"353.4986"},"USDCINR":{"buy_rate":"88.2187","sell_rate":"84.4794"},"USDC/INR":{"buy_rate":"88.2187","sell_rate":"84.4794"},"USDCKRW":{"buy_rate":"1384.8868","sell_rate":"1326.1861"},"USDC/KRW":{"buy_rate":"1384.8868","sell_rate":"1326.1861"},"USDCMXN":{"buy_rate":"18.2911","sell_rate":"17.5158"},"USDC/MXN":{"buy_rate":"18.2911","sell_rate":"17.5158"},"USDCNOK":{"buy_rate":"11.208","sell_rate":"10.7329"},"USDC/NOK":{"buy_rate":"11.208","sell_rate":"10.7329"},"USDCPEN":{"buy_rate":"3.8843","sell_rate":"3.7196"},"USDC/PEN":{"buy_rate":"3.8843","sell_rate":"3.7196"},"USDCRUB":{"buy_rate":"97.2043","sell_rate":"93.0841"},"USDC/RUB":{"buy_rate":"97.2043","sell_rate":"93.0841"},"USDCSGD":{"buy_rate":"1.4369","sell_rate":"1.376"},"USDC/SGD":{"buy_rate":"1.4369","sell_rate":"1.376"},"USDCTRY":{"buy_rate":"27.9515","sell_rate":"26.7668"},"USDC/TRY":{"buy_rate":"27.9515","sell_rate":"26.7668"},"USDTIDR":{"buy_rate":"16241.2587","sell_rate":"15552.4916"},"USDT/IDR":{"buy_rate":"16241.2587","sell_rate":"15552.4916"},"USDTJPY":{"buy_rate":"150.486","sell_rate":"144.1041"},"USDT/JPY":{"buy_rate":"150.486","sell_rate":"144.1041"},"USDTKZT":{"buy_rate":"472.3661","sell_rate":"452.3338"},"USDT/KZT":{"buy_rate":"472.3661","sell_rate":"452.3338"},"USDTMYR":{"buy_rate":"4.9892","sell_rate":"4.7776"},"USDT/MYR":{"buy_rate":"4.9892","sell_rate":"4.7776"},"XLMBCH":{"buy_rate":"0.000379","sell_rate":"0.00035618"},"XLM/BCH":{"buy_rate":"0.000379","sell_rate":"0.00035618"},"XLMBRL":{"buy_rate":"0.528312","sell_rate":"0.505644"},"XLM/BRL":{"buy_rate":"0.528312","sell_rate":"0.505644"},"XLMBUSD":{"buy_rate":"0.103848","sell_rate":"0.097585"},"XLM/BUSD":{"buy_rate":"0.103848","sell_rate":"0.097585"},"XLMCHF":{"buy_rate":"0.095049","sell_rate":"0.090971"},"XLM/CHF":{"buy_rate":"0.095049","sell_rate":"0.090971"},"XLMCNY":{"buy_rate":"0.776904","sell_rate":"0.74357"},"XLM/CNY":{"buy_rate":"0.776904","sell_rate":"0.74357"},"XLMCZK":{"buy_rate":"2.336177","sell_rate":"2.235942"},"XLM/CZK":{"buy_rate":"2.336177","sell_rate":"2.235942"},"XLMDKK":{"buy_rate":"0.729963","sell_rate":"0.698644"},"XLM/DKK":{"buy_rate":"0.729963","sell_rate":"0.698644"},"XLMEUR":{"buy_rate":"0.097961","sell_rate":"0.093758"},"XLM/EUR":{"buy_rate":"0.097961","sell_rate":"0.093758"},"XLMHKD":{"buy_rate":"0.844064","sell_rate":"0.807849"},"XLM/HKD":{"buy_rate":"0.844064","sell_rate":"0.807849"},"XLMIDR":{"buy_rate":"1635.624602","sell_rate":"1565.447048"},"XLM/IDR":{"buy_rate":"1635.624602","sell_rate":"1565.447048"},"XLMJPY":{"buy_rate":"15.155136","sell_rate":"14.504894"},"XLM/JPY":{"buy_rate":"15.155136","sell_rate":"14.504894"},"XLMKZT":{"buy_rate":"47.571037","sell_rate":"45.529971"},"XLM/KZT":{"buy_rate":"47.571037","sell_rate":"45.529971"},"XLMNOK":{"buy_rate":"1.128928","sell_rate":"1.08049"},"XLM/NOK":{"buy_rate":"1.128928","sell_rate":"1.08049"},"XRPCAD":{"buy_rate":"0.675584","sell_rate":"0.646831"},"XRP/CAD":{"buy_rate":"0.675584","sell_rate":"0.646831"},"XRPCLP":{"buy_rate":"413.643692","sell_rate":"396.038533"},"XRP/CLP":{"buy_rate":"413.643692","sell_rate":"396.038533"},"USDTINR":{"buy_rate":"88.2341","sell_rate":"84.4923"},"USDT/INR":{"buy_rate":"88.2341","sell_rate":"84.4923"},"USDTKRW":{"buy_rate":"1385.1284","sell_rate":"1326.3872"},"USDT/KRW":{"buy_rate":"1385.1284","sell_rate":"1326.3872"},"USDTMXN":{"buy_rate":"18.2943","sell_rate":"17.5185"},"USDT/MXN":{"buy_rate":"18.2943","sell_rate":"17.5185"},"USDTNOK":{"buy_rate":"11.21","sell_rate":"10.7346"},"USDT/NOK":{"buy_rate":"11.21","sell_rate":"10.7346"},"USDTSGD":{"buy_rate":"1.4372","sell_rate":"1.3762"},"USDT/SGD":{"buy_rate":"1.4372","sell_rate":"1.3762"},"XLMAUD":{"buy_rate":"0.161724","sell_rate":"0.154785"},"XLM/AUD":{"buy_rate":"0.161724","sell_rate":"0.154785"},"XLMBNB":{"buy_rate":"0.000347","sell_rate":"0.000326"},"XLM/BNB":{"buy_rate":"0.000347","sell_rate":"0.000326"},"XLMBTC":{"buy_rate":"0.00000341","sell_rate":"0.0000032"},"XLM/BTC":{"buy_rate":"0.00000341","sell_rate":"0.0000032"},"XLMCAD":{"buy_rate":"0.143149","sell_rate":"0.137007"},"XLM/CAD":{"buy_rate":"0.143149","sell_rate":"0.137007"},"XLMCLP":{"buy_rate":"87.646546","sell_rate":"83.886012"},"XLM/CLP":{"buy_rate":"87.646546","sell_rate":"83.886012"},"XLMCOP":{"buy_rate":"445.954043","sell_rate":"426.820091"},"XLM/COP":{"buy_rate":"445.954043","sell_rate":"426.820091"},"XLMDAI":{"buy_rate":"0.103847","sell_rate":"0.097594"},"XLM/DAI":{"buy_rate":"0.103847","sell_rate":"0.097594"},"XLMGBP":{"buy_rate":"0.083658","sell_rate":"0.080069"},"XLM/GBP":{"buy_rate":"0.083658","sell_rate":"0.080069"},"XLMHUF":{"buy_rate":"37.182377","sell_rate":"35.587043"},"XLM/HUF":{"buy_rate":"37.182377","sell_rate":"35.587043"},"XLMINR":{"buy_rate":"8.885877","sell_rate":"8.504623"},"XLM/INR":{"buy_rate":"8.885877","sell_rate":"8.504623"},"XLMKRW":{"buy_rate":"139.493501","sell_rate":"133.508441"},"XLM/KRW":{"buy_rate":"139.493501","sell_rate":"133.508441"},"XLMLTC":{"buy_rate":"0.00106093","sell_rate":"0.00099705"},"XLM/LTC":{"buy_rate":"0.00106093","sell_rate":"0.00099705"},"XLMMYR":{"buy_rate":"0.502446","sell_rate":"0.480887"},"XLM/MYR":{"buy_rate":"0.502446","sell_rate":"0.480887"},"XLMNZD":{"buy_rate":"0.174297","sell_rate":"0.166818"},"XLM/NZD":{"buy_rate":"0.174297","sell_rate":"0.166818"},"XLMPLN":{"buy_rate":"0.435233","sell_rate":"0.416559"},"XLM/PLN":{"buy_rate":"0.435233","sell_rate":"0.416559"},"XLMSEK":{"buy_rate":"1.155692","sell_rate":"1.106107"},"XLM/SEK":{"buy_rate":"1.155692","sell_rate":"1.106107"},"XLMSHIB":{"buy_rate":"13850.36","sell_rate":"12698.2"},"XLM/SHIB":{"buy_rate":"13850.36","sell_rate":"12698.2"},"XLMTRY":{"buy_rate":"2.81543","sell_rate":"2.694632"},"XLM/TRY":{"buy_rate":"2.81543","sell_rate":"2.694632"},"XLMUAH":{"buy_rate":"3.965172","sell_rate":"3.795044"},"XLM/UAH":{"buy_rate":"3.965172","sell_rate":"3.795044"},"XLMUSDC":{"buy_rate":"0.103865","sell_rate":"0.097612"},"XLM/USDC":{"buy_rate":"0.103865","sell_rate":"0.097612"},"XLMVND":{"buy_rate":"2553.738422","sell_rate":"2444.16859"},"XLM/VND":{"buy_rate":"2553.738422","sell_rate":"2444.16859"},"XRPEUR":{"buy_rate":"0.462322","sell_rate":"0.442645"},"XRP/EUR":{"buy_rate":"0.462322","sell_rate":"0.442645"},"XRPIDR":{"buy_rate":"7719.252314","sell_rate":"7390.711911"},"XRP/IDR":{"buy_rate":"7719.252314","sell_rate":"7390.711911"},"XRPJPY":{"buy_rate":"71.52394","sell_rate":"68.479798"},"XRP/JPY":{"buy_rate":"71.52394","sell_rate":"68.479798"},"XRPPEN":{"buy_rate":"1.846438","sell_rate":"1.767852"},"XRP/PEN":{"buy_rate":"1.846438","sell_rate":"1.767852"},"XRPRUB":{"buy_rate":"46.207918","sell_rate":"44.241255"},"XRP/RUB":{"buy_rate":"46.207918","sell_rate":"44.241255"},"XRPSGD":{"buy_rate":"0.683039","sell_rate":"0.653968"},"XRP/SGD":{"buy_rate":"0.683039","sell_rate":"0.653968"},"XRPHUF":{"buy_rate":"175.480455","sell_rate":"168.011802"},"XRP/HUF":{"buy_rate":"175.480455","sell_rate":"168.011802"},"XRPINR":{"buy_rate":"41.936473","sell_rate":"40.151607"},"XRP/INR":{"buy_rate":"41.936473","sell_rate":"40.151607"},"XRPKRW":{"buy_rate":"658.332931","sell_rate":"630.313511"},"XRP/KRW":{"buy_rate":"658.332931","sell_rate":"630.313511"},"XRPLTC":{"buy_rate":"0.00500698","sell_rate":"0.00470721"},"XRP/LTC":{"buy_rate":"0.00500698","sell_rate":"0.00470721"},"XRPMYR":{"buy_rate":"2.371267","sell_rate":"2.270344"},"XRP/MYR":{"buy_rate":"2.371267","sell_rate":"2.270344"},"XRPNZD":{"buy_rate":"0.822585","sell_rate":"0.787574"},"XRP/NZD":{"buy_rate":"0.822585","sell_rate":"0.787574"},"XRPPLN":{"buy_rate":"2.05406","sell_rate":"1.966636"},"XRP/PLN":{"buy_rate":"2.05406","sell_rate":"1.966636"},"XRPSEK":{"buy_rate":"5.454236","sell_rate":"5.222097"},"XRP/SEK":{"buy_rate":"5.454236","sell_rate":"5.222097"},"XRPSHIB":{"buy_rate":"65366.11","sell_rate":"59950.12"},"XRP/SHIB":{"buy_rate":"65366.11","sell_rate":"59950.12"},"XRPTRY":{"buy_rate":"13.287288","sell_rate":"12.721765"},"XRP/TRY":{"buy_rate":"13.287288","sell_rate":"12.721765"},"XRPUAH":{"buy_rate":"18.713443","sell_rate":"17.916976"},"XRP/UAH":{"buy_rate":"18.713443","sell_rate":"17.916976"},"XRPUSDC":{"buy_rate":"0.490204","sell_rate":"0.460829"},"XRP/USDC":{"buy_rate":"0.490204","sell_rate":"0.460829"},"XRPVND":{"buy_rate":"12052.246714","sell_rate":"11539.289004"},"XRP/VND":{"buy_rate":"12052.246714","sell_rate":"11539.289004"},"XRPTHB":{"buy_rate":"17.719881","sell_rate":"16.965703"},"XRP/THB":{"buy_rate":"17.719881","sell_rate":"16.965703"},"XRPTWD":{"buy_rate":"15.928963","sell_rate":"15.251009"},"XRP/TWD":{"buy_rate":"15.928963","sell_rate":"15.251009"},"XRPUSD":{"buy_rate":"0.508856","sell_rate":"0.487198"},"XRP/USD":{"buy_rate":"0.508856","sell_rate":"0.487198"},"XRPUSDT":{"buy_rate":"0.49013","sell_rate":"0.460748"},"XRP/USDT":{"buy_rate":"0.49013","sell_rate":"0.460748"},"XRPZAR":{"buy_rate":"9.507501","sell_rate":"9.102851"},"XRP/ZAR":{"buy_rate":"9.507501","sell_rate":"9.102851"},"BTCAUD":{"buy_rate":"49030.5803","sell_rate":"46944.4956"},"BTC/AUD":{"buy_rate":"49030.5803","sell_rate":"46944.4956"},"BTCBRL":{"buy_rate":"160170.5853","sell_rate":"153355.871"},"BTC/BRL":{"buy_rate":"160170.5853","sell_rate":"153355.871"},"BTCCAD":{"buy_rate":"43399.0645","sell_rate":"41552.5818"},"BTC/CAD":{"buy_rate":"43399.0645","sell_rate":"41552.5818"},"BTCCHF":{"buy_rate":"28816.3975","sell_rate":"27590.3576"},"BTC/CHF":{"buy_rate":"28816.3975","sell_rate":"27590.3576"}}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/rates'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 234
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.900475
+ namelookup_time: 0.100348
+ connect_time: 0.218446
+ pretransfer_time: 0.357425
+ size_upload: 0.0
+ size_download: 84343.0
+ speed_download: 93714.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.75503
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 51920
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 357351
+ connect_time_us: 218446
+ namelookup_time_us: 100348
+ pretransfer_time_us: 357425
+ redirect_time_us: 0
+ starttransfer_time_us: 755030
+ total_time_us: 900475
+ index: 0
diff --git a/tests/cassettes/rates/retrieve.yml b/tests/cassettes/rates/retrieve.yml
new file mode 100644
index 0000000..bcc494f
--- /dev/null
+++ b/tests/cassettes/rates/retrieve.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/rates/BTC/EUR'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 08:49:57 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:FC0BZBXX++M7g9E8YsRN0qX0eC0='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 08:49:58 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fcbd40d91b96f-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"buy_rate":"29699.2676","sell_rate":"28435.6646"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/rates/BTC/EUR'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 242
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.518427
+ namelookup_time: 0.004814
+ connect_time: 0.178699
+ pretransfer_time: 0.313399
+ size_upload: 0.0
+ size_download: 59.0
+ speed_download: 113.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.472826
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 51932
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 313272
+ connect_time_us: 178699
+ namelookup_time_us: 4814
+ pretransfer_time_us: 313399
+ redirect_time_us: 0
+ starttransfer_time_us: 472826
+ total_time_us: 518427
+ index: 0
diff --git a/tests/cassettes/risks/score.yml b/tests/cassettes/risks/score.yml
new file mode 100644
index 0000000..2f5ed38
--- /dev/null
+++ b/tests/cassettes/risks/score.yml
@@ -0,0 +1,74 @@
+
+-
+ request:
+ method: POST
+ url: 'https://business-sandbox.cryptopay.me/api/risks/score'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Expect: ''
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:12:54 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:7OIIR8GqzHfHKsa948cy+ZIhcuI='
+ Accept: ''
+ body: '{"address":"2N9wPGx67zdSeAbXi15qHgoZ9Hb9Uxhd2uQ","currency":"BTC","type":"source_of_funds"}'
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: 'OK'
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:12:55 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fed725d091caa-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":{"score":7.5,"level":"medium","resource_name":"default","resource_category":"unknown"}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/risks/score'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 422
+ header_size: 473
+ request_size: 352
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.499164
+ namelookup_time: 0.00594
+ connect_time: 0.075467
+ pretransfer_time: 0.273382
+ size_upload: 91.0
+ size_download: 160.0
+ speed_download: 320.0
+ speed_upload: 182.0
+ download_content_length: -1.0
+ upload_content_length: 91.0
+ starttransfer_time: 0.454643
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.40.240
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 40172
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 273287
+ connect_time_us: 75467
+ namelookup_time_us: 5940
+ pretransfer_time_us: 273382
+ redirect_time_us: 0
+ starttransfer_time_us: 454643
+ total_time_us: 499164
+ index: 0
diff --git a/tests/cassettes/transactions/all.yml b/tests/cassettes/transactions/all.yml
new file mode 100644
index 0000000..7790da6
--- /dev/null
+++ b/tests/cassettes/transactions/all.yml
@@ -0,0 +1,73 @@
+
+-
+ request:
+ method: GET
+ url: 'https://business-sandbox.cryptopay.me/api/transactions'
+ headers:
+ Host: business-sandbox.cryptopay.me
+ Accept-Encoding: ''
+ User-Agent: GuzzleHttp/7
+ Content-Type: application/json
+ date: 'Tue, 11 Jul 2023 09:03:45 +0000'
+ Authorization: 'HMAC OtzdZAvAkmw4vAYniZ4ljw:limGOaRqrQRyUdcLqdeF0Ohzqxo='
+ Accept: ''
+ response:
+ status:
+ http_version: '1.1'
+ code: '200'
+ message: OK
+ headers:
+ Date: 'Tue, 11 Jul 2023 09:03:46 GMT'
+ Content-Type: 'application/json; charset=utf-8'
+ Transfer-Encoding: chunked
+ Connection: keep-alive
+ CF-Ray: 7e4fe00af8790a6f-AMS
+ CF-Cache-Status: DYNAMIC
+ Cache-Control: no-store
+ Strict-Transport-Security: 'max-age=15552000; includeSubDomains'
+ Vary: Accept-Encoding
+ content-security-policy: 'frame-ancestors ''none'''
+ x-content-type-options: nosniff
+ x-frame-options: DENY
+ Server: cloudflare
+ alt-svc: 'h3=":443"; ma=86400'
+ body: '{"data":[{"id":"6bb1015d-ef84-4afe-af67-499634f6e02d","custom_id":null,"customer_id":null,"amount":"0.0","currency":"EUR","balance":"8619.4","fee":"0.0","fee_currency":"EUR","reference_id":"9ae0624b-8c64-49c8-a388-76ecdb9979fc","reference_type":"ChannelPayment","description":null,"status":"on_hold","status_context":"channel_disabled","risk":null,"created_at":"2023-07-11T09:01:26+00:00"},{"id":"a2ca81f5-6d39-4142-b80d-27bb07aee606","custom_id":null,"customer_id":null,"amount":"-0.00506266","currency":"ETH","balance":"10.10377505","fee":"0.0","fee_currency":"ETH","reference_id":"ef5f7729-b1d0-4685-833f-ccda0604393b","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:57:58+00:00"},{"id":"4953d0bf-8dbc-4463-96bd-6d11cd8458cc","custom_id":null,"customer_id":null,"amount":"0.00506266","currency":"ETH","balance":"10.10883771","fee":"0.00005114","fee_currency":"ETH","reference_id":"fb3fdf05-ee2e-43d7-b423-9e6b69ffca8f","reference_type":"InvoiceRefund","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-07-11T08:57:58+00:00"},{"id":"0310f07d-0577-4559-933a-90a1d39069d7","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8619.4","fee":"1.0","fee_currency":"EUR","reference_id":"4e79ee49-f3dd-4941-a6cc-ed0d86087cff","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-11T08:57:57+00:00"},{"id":"401b8f05-d61f-4be6-b8bb-2dd92214287a","custom_id":null,"customer_id":null,"amount":"0.0","currency":"EUR","balance":"8619.4","fee":"0.0","fee_currency":"EUR","reference_id":"1f87483d-8dbc-4052-9066-ac6543047f8b","reference_type":"ChannelPayment","description":null,"status":"on_hold","status_context":"channel_disabled","risk":null,"created_at":"2023-07-11T08:56:30+00:00"},{"id":"be24e8b1-fdf1-4331-a5ae-f92ed11ecd87","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8619.4","fee":"1.0","fee_currency":"EUR","reference_id":"86a94c44-2b0e-40d1-b40e-c5818b303e09","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:55:53+00:00"},{"id":"b68b74c3-f4ca-4e1a-a44e-935112c80d9c","custom_id":null,"customer_id":null,"amount":"-100.0","currency":"EUR","balance":"8719.4","fee":"1.0","fee_currency":"EUR","reference_id":"06a54ccb-889f-4c1f-8a59-086a84a1e2dd","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:55:53+00:00"},{"id":"58892385-6b25-4b02-9188-0f350a7a8b3f","custom_id":null,"customer_id":null,"amount":"-10.0","currency":"EUR","balance":"8819.4","fee":"0.1","fee_currency":"EUR","reference_id":"165b5234-7695-4f3c-acf0-94cb1f2f5973","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:41:52+00:00"},{"id":"bef5de85-7ee1-4f7a-a62e-22b24d7b1e42","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8829.4","fee":"0.5","fee_currency":"EUR","reference_id":"331646a6-c8b5-430d-adfb-021d11ff6cd0","reference_type":"Invoice","description":null,"status":"refunded","status_context":null,"risk":null,"created_at":"2023-07-11T08:41:50+00:00"},{"id":"7b9b5478-ba01-4978-a47c-fb9e942bf414","custom_id":null,"customer_id":null,"amount":"-10.0","currency":"EUR","balance":"8829.4","fee":"0.1","fee_currency":"EUR","reference_id":"31eb604a-4039-4dd6-8df2-1c1c7fb002fb","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:40:50+00:00"},{"id":"c071ba6f-a6fd-4d38-ae3e-241f6238b01a","custom_id":null,"customer_id":null,"amount":"9.07","currency":"EUR","balance":"8839.4","fee":"0.1","fee_currency":"EUR","reference_id":"8dd53e0f-0725-48b4-b0a7-1840aa67b5bb","reference_type":"Invoice","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:40:47+00:00"},{"id":"fbd9a04b-639e-4169-9a51-dfca37a0ad3a","custom_id":null,"customer_id":null,"amount":"-10.0","currency":"EUR","balance":"8830.33","fee":"0.1","fee_currency":"EUR","reference_id":"64b622a6-522c-4636-ae3a-e7805982288e","reference_type":"CoinWithdrawal","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:38:09+00:00"},{"id":"100e399d-ea73-4c9d-ae71-4e1e6b39b000","custom_id":null,"customer_id":null,"amount":"9.07","currency":"EUR","balance":"8840.33","fee":"0.1","fee_currency":"EUR","reference_id":"29a563ad-b417-445c-b8f6-b6c806bb039b","reference_type":"Invoice","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-11T08:37:32+00:00"},{"id":"ee8ea16a-14ba-4fe9-9848-7f41708ba497","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"c9e75e23-8664-4f26-9098-3c304c7b6e31","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T10:15:08+00:00"},{"id":"301ab069-62e7-4c51-a270-ec56256b52c8","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"8b7cecef-e220-4619-b95e-47caea862c8f","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T09:08:10+00:00"},{"id":"27361825-4757-4bce-a38a-feaeaf9c360e","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"46c48574-66e3-4838-8ab4-99a3d0f0a368","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T09:07:20+00:00"},{"id":"05809f17-a849-46b3-9fc0-08322f80f195","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"03ff86bb-4da0-4950-954f-5b7a2ee75298","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:21:36+00:00"},{"id":"48518e6f-9762-409b-91cb-33385f5d3821","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"f5959728-2eab-439c-9c1a-a1b8d2cc5712","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:20:16+00:00"},{"id":"67ade6e5-3aae-46f5-8f91-248a68e506d9","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"40b271ac-085a-4714-8c8b-48fcaea1cd57","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:19:55+00:00"},{"id":"5524b339-81c3-420c-a6b7-81f409559a12","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8831.26","fee":"1.0","fee_currency":"EUR","reference_id":"cbc1b67e-becd-4b1b-b55d-60d64f8d5bcd","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:19:42+00:00"},{"id":"1eb24ad7-087d-45ac-b7b2-826c1a7a7e66","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"a3769873-b891-4771-930d-6b0e98fe42b4","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-10T08:10:41+00:00"},{"id":"0283f217-bd1b-413e-b8e9-bdca8e8caec6","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"b9ef4d50-502c-4739-abd4-4bd1fa9ba116","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:29:54+00:00"},{"id":"64dbd3ec-dccf-4d8f-86b5-237f572c98ea","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"a304c0fe-4553-477d-a9a1-ed7b42c5fcc4","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:06:09+00:00"},{"id":"a455f056-4438-4230-8d87-bda47d7a2a62","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"fe2cc363-71a2-4aba-9c2b-aff69d391e3b","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:06:04+00:00"},{"id":"c8b598a3-3978-45f2-b610-1fab61231181","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"5bab7667-20c3-40a6-b989-99fead86f10b","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:05:55+00:00"},{"id":"325fd6a6-d88d-4b04-9edd-c9a5e274e4dc","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"d655d1fe-e5b0-4551-85ec-a7ddb4fd7272","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:05:50+00:00"},{"id":"95e0b02e-39eb-4160-a015-b3da45f8df7a","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"8a815d50-0cf9-40cb-869e-806b90788dc9","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:05:37+00:00"},{"id":"908a3281-e240-41a2-84a9-1105b04fee96","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"8c8bc640-72c7-4b26-bac9-f7f6abef7014","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:05:30+00:00"},{"id":"d504f088-3c4b-4a24-a197-3db0c9664744","custom_id":null,"customer_id":null,"amount":"0.00018516","currency":"BTC","balance":"0.0","fee":"0.00000188","fee_currency":"BTC","reference_id":"6f8527a8-6873-4fd3-9e29-6d9795f1a841","reference_type":"Invoice","description":"#1","status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T13:05:14+00:00"},{"id":"1c793abc-60e3-4bc7-b68e-201eca13ad76","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"45e3db3a-c823-40a4-9cd5-05a292b2282d","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:43:32+00:00"},{"id":"a42f9e1c-5a16-4751-86fd-612736135abb","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"5c916a9a-f26c-417f-b067-f4b36821076b","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:43:27+00:00"},{"id":"5956391d-a77e-43cf-b495-a0f4b533c9e1","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"bd1837e4-22dd-4017-8b1d-27e49ebd6193","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:33:44+00:00"},{"id":"6e7f3698-b19f-4e47-ac70-a4945eb7758f","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"8da1e0f0-e08f-4250-bb8c-e04a5b29eeba","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:32:33+00:00"},{"id":"ab5f7aac-e460-47bb-a460-9427139b4d86","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"cb2a09b5-4667-4eb2-aacd-6fac008551cd","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:30:32+00:00"},{"id":"a8c6ff6b-914e-4033-8aaf-c01de05b4c50","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8831.26","fee":"0.5","fee_currency":"EUR","reference_id":"209f350a-591f-44e7-9eb5-e9b4f1974996","reference_type":"Invoice","description":null,"status":"completed","status_context":null,"risk":null,"created_at":"2023-07-06T10:28:05+00:00"},{"id":"510869cb-860b-4cc2-9512-62c5227c3e1c","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"a581ec0e-a426-4a4e-9767-fa09e4cfb88e","reference_type":"Invoice","description":null,"status":"new","status_context":null,"risk":null,"created_at":"2023-07-06T10:11:45+00:00"},{"id":"6bdeb0f9-c7ba-437a-8612-bb719a856db9","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"54801abb-88cb-4e4f-9c27-6b147fd443fd","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-06-22T14:43:59+00:00"},{"id":"6c1dec38-b1bf-4fb5-990c-1c16dfc2874c","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"ffc68d65-5012-48e9-8ea7-7cc8fc7ee9f5","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-06-22T14:43:41+00:00"},{"id":"27f08f82-ef8c-435f-8b01-c1af2a6c04db","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8781.76","fee":"0.5","fee_currency":"EUR","reference_id":"41e094fa-9671-49b2-8f4e-75aab15674d0","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-06-05T18:36:45+00:00"},{"id":"8f8fdebe-5640-45e6-b4cb-bc9e603eefd0","custom_id":null,"customer_id":null,"amount":"1.18246833","currency":"ETH","balance":"10.10377505","fee":"0.00086055","fee_currency":"BTC","reference_id":"7b6fefe1-30e4-4688-9033-f8787b66a636","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-06-02T11:53:23+00:00"},{"id":"4f0d989e-f9e0-4499-8d13-dcc0dba2c1e5","custom_id":null,"customer_id":null,"amount":"-0.08605465","currency":"BTC","balance":"0.0","fee":"0.00086055","fee_currency":"BTC","reference_id":"7b6fefe1-30e4-4688-9033-f8787b66a636","reference_type":"ExchangeTransfer","description":null,"status":null,"status_context":null,"risk":null,"created_at":"2023-06-02T11:53:23+00:00"},{"id":"10bcebaa-f2db-435e-a37b-f18b576c99cb","custom_id":null,"customer_id":null,"amount":"-56.05","currency":"EUR","balance":"8781.76","fee":"0.57","fee_currency":"EUR","reference_id":"b4261912-d8ae-4d77-b595-833ac4a9e359","reference_type":"CoinWithdrawal","description":null,"status":"on_hold","status_context":null,"risk":null,"created_at":"2023-05-24T16:16:46+00:00"},{"id":"773b825e-492d-4f88-94bf-60b4a2c0a01b","custom_id":null,"customer_id":null,"amount":"49.5","currency":"EUR","balance":"8837.81","fee":"0.5","fee_currency":"EUR","reference_id":"aef56529-39f1-4b31-9662-b7005784ca48","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-24T16:16:42+00:00"},{"id":"2d573cc9-e352-4090-8297-d25fe0f205bf","custom_id":null,"customer_id":null,"amount":"19.8","currency":"EUR","balance":"8837.81","fee":"0.2","fee_currency":"EUR","reference_id":"b80940cb-f586-4412-82ab-703d37a6c1b0","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-24T16:16:32+00:00"},{"id":"dbf2730c-f8a3-446f-b088-d9658d3f0a67","custom_id":null,"customer_id":null,"amount":"49.5","currency":"UAH","balance":"0.0","fee":"0.5","fee_currency":"UAH","reference_id":"5a87bf44-7fe2-4081-915b-2bd864414190","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-24T16:16:20+00:00"},{"id":"8cd769bf-8885-4952-b669-228706e9a06c","custom_id":null,"customer_id":null,"amount":"0.99","currency":"LTC","balance":"0.59119371","fee":"0.01","fee_currency":"LTC","reference_id":"b7bdc7c4-43d6-47cd-ace4-bdd0ead8327f","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-16T11:54:30+00:00"},{"id":"d99f100a-d1ec-4b5f-84a6-63fce0dd3b4e","custom_id":null,"customer_id":null,"amount":"2342.23","currency":"EUR","balance":"8837.81","fee":"23.66","fee_currency":"EUR","reference_id":"8e69abcf-9065-4ac3-a998-bfde90d5b59d","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-16T11:53:38+00:00"},{"id":"bccb6f7f-fde6-4a0f-9043-770f2079e6b5","custom_id":null,"customer_id":null,"amount":"23.24","currency":"EUR","balance":"8837.81","fee":"0.24","fee_currency":"EUR","reference_id":"d1fa210c-8eb9-4649-9f3c-ac372e83dc0c","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-05-16T11:52:52+00:00"},{"id":"0e8e0be7-87fc-4c2c-84d1-8cc574ad6443","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8837.81","fee":"1.0","fee_currency":"EUR","reference_id":"70b79b0c-7c94-413d-8364-e0103fd58bca","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-04-20T09:58:57+00:00"},{"id":"5320bfae-ba79-4c1f-aa67-d1590466a51d","custom_id":null,"customer_id":null,"amount":"99.0","currency":"EUR","balance":"8837.81","fee":"1.0","fee_currency":"EUR","reference_id":"d3872cfe-4fc3-4012-942e-43178684a129","reference_type":"Invoice","description":null,"status":"cancelled","status_context":null,"risk":null,"created_at":"2023-04-14T08:38:39+00:00"}],"meta":{"total":1134,"has_more":true}}'
+ curl_info:
+ url: 'https://business-sandbox.cryptopay.me/api/transactions'
+ content_type: 'application/json; charset=utf-8'
+ http_code: 200
+ header_size: 478
+ request_size: 241
+ filetime: -1
+ ssl_verify_result: 0
+ redirect_count: 0
+ total_time: 0.623636
+ namelookup_time: 0.004836
+ connect_time: 0.119775
+ pretransfer_time: 0.270163
+ size_upload: 0.0
+ size_download: 18339.0
+ speed_download: 29436.0
+ speed_upload: 0.0
+ download_content_length: -1.0
+ upload_content_length: -1.0
+ starttransfer_time: 0.587869
+ redirect_time: 0.0
+ redirect_url: ''
+ primary_ip: 172.66.43.16
+ certinfo: { }
+ primary_port: 443
+ local_ip: 192.168.208.2
+ local_port: 60854
+ http_version: 2
+ protocol: 2
+ ssl_verifyresult: 0
+ scheme: HTTPS
+ appconnect_time_us: 270065
+ connect_time_us: 119775
+ namelookup_time_us: 4836
+ pretransfer_time_us: 270163
+ redirect_time_us: 0
+ starttransfer_time_us: 587869
+ total_time_us: 623636
+ index: 0