createMerchantStore
register a store on storeharmony
With an upgraded referral code, a store can be created on storeharmony from any external entity
/access/register
Usage and SDK Samples
curl -X POST "https://storeharmony.net/webapi/access/register"
import com.harmony.web.restapi.*;
import com.harmony.web.restapi.auth.*;
import com.harmony.web.restapi.model.*;
import com.harmony.web.restapi.api.StoreHarmonyAccessApi;
import java.io.File;
import java.util.*;
public class StoreHarmonyAccessApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
StoreHarmonyAccessApi apiInstance = new StoreHarmonyAccessApi();
Registration body = ; // Registration | Registration details of user
try {
WebStore result = apiInstance.createMerchantStore(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreHarmonyAccessApi#createMerchantStore");
e.printStackTrace();
}
}
}
import com.harmony.web.restapi.api.StoreHarmonyAccessApi;
public class StoreHarmonyAccessApiExample {
public static void main(String[] args) {
StoreHarmonyAccessApi apiInstance = new StoreHarmonyAccessApi();
Registration body = ; // Registration | Registration details of user
try {
WebStore result = apiInstance.createMerchantStore(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreHarmonyAccessApi#createMerchantStore");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
Registration *body = ; // Registration details of user
StoreHarmonyAccessApi *apiInstance = [[StoreHarmonyAccessApi alloc] init];
// register a store on storeharmony
[apiInstance createMerchantStoreWith:body
completionHandler: ^(WebStore output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var StoreHarmonyV3MerchantApi = require('store_harmony_v3_merchant_api');
var defaultClient = StoreHarmonyV3MerchantApi.ApiClient.instance;
var api = new StoreHarmonyV3MerchantApi.StoreHarmonyAccessApi()
var body = ; // {{Registration}} Registration details of user
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createMerchantStore(body, callback);
using System;
using System.Diagnostics;
using IO.StoreHarmony.Api;
using IO.StoreHarmony.Client;
using IO.StoreHarmony.Model;
namespace Example
{
public class createMerchantStoreExample
{
public void main()
{
var apiInstance = new StoreHarmonyAccessApi();
var body = new Registration(); // Registration | Registration details of user
try
{
// register a store on storeharmony
WebStore result = apiInstance.createMerchantStore(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling StoreHarmonyAccessApi.createMerchantStore: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new storeharmony\Client\ApiStoreHarmonyAccessApi();
$body = ; // Registration | Registration details of user
try {
$result = $api_instance->createMerchantStore($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StoreHarmonyAccessApi->createMerchantStore: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::StoreHarmonyClient::Configuration;
use WWW::StoreHarmonyClient::StoreHarmonyAccessApi;
my $api_instance = WWW::StoreHarmonyClient::StoreHarmonyAccessApi->new();
my $body = WWW::StoreHarmonyClient::Object::Registration->new(); # Registration | Registration details of user
eval {
my $result = $api_instance->createMerchantStore(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling StoreHarmonyAccessApi->createMerchantStore: $@\n";
}
from __future__ import print_statement
import time
import storeharmony_client
from storeharmony_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = storeharmony_client.StoreHarmonyAccessApi()
body = # Registration | Registration details of user
try:
# register a store on storeharmony
api_response = api_instance.create_merchant_store(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoreHarmonyAccessApi->createMerchantStore: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |