All URIs are relative to https://api.imn.io
Method | HTTP request | Description |
---|---|---|
checkMerchantCodeAvailability | POST /merchant/account/v1/checkMerchantCodeAvailability | Check if merchant code is available |
createMerchantAccount | POST /merchant/account/v1/create | Create the merchant account using the merchant code |
getMerchantAccountIndex | GET /merchant/account/v1/ | Get the merchant account index |
checkMerchantCodeAvailability($merchant_code)
Check if merchant code is available
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new IMN\Swagger\Client\Api\MerchantAccountAPIGlobalApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$merchant_code = new \IMN\Swagger\Client\Model\MerchantCode(); // \IMN\Swagger\Client\Model\MerchantCode |
try {
$apiInstance->checkMerchantCodeAvailability($merchant_code);
} catch (Exception $e) {
echo 'Exception when calling MerchantAccountAPIGlobalApi->checkMerchantCodeAvailability: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_code | \IMN\Swagger\Client\Model\MerchantCode |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createMerchantAccount($request)
Create the merchant account using the merchant code
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new IMN\Swagger\Client\Api\MerchantAccountAPIGlobalApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$request = new \IMN\Swagger\Client\Model\CreateMerchantAccountRequest(); // \IMN\Swagger\Client\Model\CreateMerchantAccountRequest |
try {
$apiInstance->createMerchantAccount($request);
} catch (Exception $e) {
echo 'Exception when calling MerchantAccountAPIGlobalApi->createMerchantAccount: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \IMN\Swagger\Client\Model\CreateMerchantAccountRequest |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\IMN\Swagger\Client\Model\MerchantAccountIndex getMerchantAccountIndex()
Get the merchant account index
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new IMN\Swagger\Client\Api\MerchantAccountAPIGlobalApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->getMerchantAccountIndex();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MerchantAccountAPIGlobalApi->getMerchantAccountIndex: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\IMN\Swagger\Client\Model\MerchantAccountIndex
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]