All URIs are relative to https://api.imn.io
Method | HTTP request | Description |
---|---|---|
getMerchantAccountInfo | GET /merchant/account/v1/{merchantCode} | Get merchant account info |
updateMerchantAcountInfo | PATCH /merchant/account/v1/{merchantCode} | Save merchant account info |
\IMN\Swagger\Client\Model\MerchantAccountInfo getMerchantAccountInfo($merchant_code)
Get merchant account info
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new IMN\Swagger\Client\Api\MerchantAccountAPIAccountApi(
// 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 = "merchant_code_example"; // string | The merchant code
try {
$result = $apiInstance->getMerchantAccountInfo($merchant_code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MerchantAccountAPIAccountApi->getMerchantAccountInfo: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_code | string | The merchant code |
\IMN\Swagger\Client\Model\MerchantAccountInfo
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateMerchantAcountInfo($merchant_code, $request)
Save merchant account info
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new IMN\Swagger\Client\Api\MerchantAccountAPIAccountApi(
// 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 = "merchant_code_example"; // string | The merchant code
$request = new \IMN\Swagger\Client\Model\UpdateMerchantAccountRequest(); // \IMN\Swagger\Client\Model\UpdateMerchantAccountRequest | The merchant account info update request
try {
$apiInstance->updateMerchantAcountInfo($merchant_code, $request);
} catch (Exception $e) {
echo 'Exception when calling MerchantAccountAPIAccountApi->updateMerchantAcountInfo: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_code | string | The merchant code | |
request | \IMN\Swagger\Client\Model\UpdateMerchantAccountRequest | The merchant account info update request |
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]