Marketplace

Marketplace service has been prepared to provide payment with credit card to company/websites that provided marketplace service by Wirecard. Below are methods and explanations that can be used in marketplace scenario.

In order to prevent the out-of-service situation of end-users, you need to integrate the transaction result service into your system.
Successful and unsuccessful result pages are created to give information to users.In the event of a system failure, it is necessary to use transaction result services in order to avoid situations where the end user does not have access to the successful or failed page.
You can access the most appropriate transaction service for you by clicking Here

Document Verification

Add Sub Merchant (Individual)

Add sub merchant method will be used for the definition of a new account that can sell products through the marketplace. The information to be transmitted during the identification of this account, which can sell products through the marketplace, must be prepared in XML message format.

Required input informations of Add Sub Merchant Integration Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Add Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "AddSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class No AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String No

Tax Office

TaxNumber String No

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String No

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String No

Signature Authority Name

Surname String No

Signature Authority Surname

BirthDate YYYY/MM/DD No

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

SubPartnerId Int

The unique id value set by the Wirecard to the result of add marketplace process.

Sample Service Call Codes


    
    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType=subPartnerType;
    request.Name = name;
    request.BranchName = name;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);
    return View(response);

    //Request
    MarketPlaceAddSubMerchantRequest marketPlaceAddSubMerchantRequest = new MarketPlaceAddSubMerchantRequest();
    marketPlaceAddSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceAddSubMerchantRequest.OperationType="AddSubPartner";
    marketPlaceAddSubMerchantRequest.UniqueId = "123456";
    marketPlaceAddSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceAddSubMerchantRequest.Name=request.getParameter("name");

    marketPlaceAddSubMerchantRequest.Token= new Token();
    marketPlaceAddSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceAddSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceAddSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceAddSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceAddSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceAddSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceAddSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceAddSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceAddSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceAddSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceAddSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceAddSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceAddSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;



    String marketPlaceAddSubMerchantResponse = marketPlaceAddSubMerchantRequest.execute(marketPlaceAddSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "AddSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req= MarketPlaceAddSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="AddSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')
    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "aaaa"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "AddSubPartner"
    req.SubPartnerType=params[:subPartnerType]
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeAddSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "Name": request.Name,
    "BranchName": request.BranchName,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone
    "Email":request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,
    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceAddSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString().Replace("-", "");
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion

    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();

    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

    <Item Key="SubPartnerId" Value="" />

            </Result>
                    

Add Sub Merchant (Private Company)

Add sub merchant method will be used for the definition of a new account that can sell products through the marketplace. The information to be transmitted during the identification of this account, which can sell products through the marketplace, must be prepared in XML message format.

Required input informations of Add Sub Merchant Integration Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Add Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "AddSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class No AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String No

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String No

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String No

Signature Authority Name

Surname String No

Signature Authority Surname

BirthDate YYYY/MM/DD No

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

SubPartnerId Int

The unique id value set by the Wirecard to the result of add marketplace process.

Sample Service Call Codes


    
    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType=subPartnerType;
    request.Name = name;
    request.BranchName = name;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);
    return View(response);

    //Request
    MarketPlaceAddSubMerchantRequest marketPlaceAddSubMerchantRequest = new MarketPlaceAddSubMerchantRequest();
    marketPlaceAddSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceAddSubMerchantRequest.OperationType="AddSubPartner";
    marketPlaceAddSubMerchantRequest.UniqueId = "123456";
    marketPlaceAddSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceAddSubMerchantRequest.Name=request.getParameter("name");

    marketPlaceAddSubMerchantRequest.Token= new Token();
    marketPlaceAddSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceAddSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceAddSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceAddSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceAddSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceAddSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceAddSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceAddSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceAddSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceAddSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceAddSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceAddSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceAddSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;



    String marketPlaceAddSubMerchantResponse = marketPlaceAddSubMerchantRequest.execute(marketPlaceAddSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "AddSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req= MarketPlaceAddSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="AddSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')
    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "aaaa"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "AddSubPartner"
    req.SubPartnerType=params[:subPartnerType]
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeAddSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "Name": request.Name,
    "BranchName": request.BranchName,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone
    "Email":request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,
    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceAddSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString().Replace("-", "");
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion

    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();

    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

    <Item Key="SubPartnerId" Value="" />

            </Result>
                    

Add Sub Merchant (Corporation)

Add sub merchant method will be used for the definition of a new account that can sell products through the marketplace. The information to be transmitted during the identification of this account, which can sell products through the marketplace, must be prepared in XML message format.

Required input informations of Add Sub Merchant Integration Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Add Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "AddSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class No AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String No

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String Yes

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String No

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String No

Signature Authority Name

Surname String No

Signature Authority Surname

BirthDate YYYY/MM/DD No

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

SubPartnerId Int

The unique id value set by the Wirecard to the result of add marketplace process.

Sample Service Call Codes


    
    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType=subPartnerType;
    request.Name = name;
    request.BranchName = name;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);
    return View(response);

    //Request
    MarketPlaceAddSubMerchantRequest marketPlaceAddSubMerchantRequest = new MarketPlaceAddSubMerchantRequest();
    marketPlaceAddSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceAddSubMerchantRequest.OperationType="AddSubPartner";
    marketPlaceAddSubMerchantRequest.UniqueId = "123456";
    marketPlaceAddSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceAddSubMerchantRequest.Name=request.getParameter("name");

    marketPlaceAddSubMerchantRequest.Token= new Token();
    marketPlaceAddSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceAddSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceAddSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceAddSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceAddSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceAddSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceAddSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceAddSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceAddSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceAddSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceAddSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceAddSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceAddSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;



    String marketPlaceAddSubMerchantResponse = marketPlaceAddSubMerchantRequest.execute(marketPlaceAddSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "AddSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req= MarketPlaceAddSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="AddSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')
    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "aaaa"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "AddSubPartner"
    req.SubPartnerType=params[:subPartnerType]
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeAddSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "Name": request.Name,
    "BranchName": request.BranchName,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone
    "Email":request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,
    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceAddSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString().Replace("-", "");
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion

    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();

    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

    <Item Key="SubPartnerId" Value="" />

            </Result>
                    

Update Sub Merchant (Individual)

Update sub merchant method will be used for updating account information which created for selling product, through the marketplace.

Update Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Update Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "UpdateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

SubPartnerId Int Yes

Unique id value of the store record which will be updated.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class No AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String No

Tax Office

TaxNumber String No

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String No

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String No

Signature Authority Name

Surname String No

Signature Authority Surname

BirthDate YYYY/MM/DD No

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

Sample Service Call Codes


    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    //Request
    MarketPlaceUpdateSubMerchantRequest marketPlaceUpdateSubMerchantRequest = new MarketPlaceUpdateSubMerchantRequest();

    marketPlaceUpdateSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceUpdateSubMerchantRequest.OperationType="UpdateSubPartner";
    marketPlaceUpdateSubMerchantRequest.UniqueId = "123456";
    marketPlaceUpdateSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceUpdateSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceUpdateSubMerchantRequest.SubPartnerId=Integer.parseInt(request.getParameter("subPartnerId"));

    marketPlaceUpdateSubMerchantRequest.Token= new Token();
    marketPlaceUpdateSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceUpdateSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceUpdateSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceUpdateSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceUpdateSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;

    String marketPlaceUpdateSubMerchantResponse = marketPlaceUpdateSubMerchantRequest.execute(marketPlaceUpdateSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "UpdateSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SubPartnerId = $_POST["subPartnerId"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place update servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req=MarketPlaceUpdateSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="UpdateSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.SubPartnerId=request.POST.get('subPartnerId')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')

    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "Istanbul Turkey"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "UpdateSubPartner"
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    req.SubPartnerType=params[:subPartnerType]
    req.SubPartnerId = params[:subPartnerId];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeUpdateSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "SubPartnerId": request.SubPartnerId,
    "Name": request.Name,
    "BranchName": request.Name,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone,
    "Email": request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail,
    "MobilePhone": request.ContactInfoMobilePhone
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceUpdateSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion

    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <SubPartnerId></SubPartnerId>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

            </Result>
                    

Update Sub Merchant (Private Company)

Update sub merchant method will be used for updating account information which created for selling product, through the marketplace.

Update Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Update Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "UpdateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

SubPartnerId Int Yes

Unique id value of the store record which will be updated.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class No AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String No

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String No

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String No

Signature Authority Name

Surname String No

Signature Authority Surname

BirthDate YYYY/MM/DD No

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

Sample Service Call Codes


    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    //Request
    MarketPlaceUpdateSubMerchantRequest marketPlaceUpdateSubMerchantRequest = new MarketPlaceUpdateSubMerchantRequest();

    marketPlaceUpdateSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceUpdateSubMerchantRequest.OperationType="UpdateSubPartner";
    marketPlaceUpdateSubMerchantRequest.UniqueId = "123456";
    marketPlaceUpdateSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceUpdateSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceUpdateSubMerchantRequest.SubPartnerId=Integer.parseInt(request.getParameter("subPartnerId"));

    marketPlaceUpdateSubMerchantRequest.Token= new Token();
    marketPlaceUpdateSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceUpdateSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceUpdateSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceUpdateSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceUpdateSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;

    String marketPlaceUpdateSubMerchantResponse = marketPlaceUpdateSubMerchantRequest.execute(marketPlaceUpdateSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "UpdateSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SubPartnerId = $_POST["subPartnerId"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place update servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req=MarketPlaceUpdateSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="UpdateSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.SubPartnerId=request.POST.get('subPartnerId')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')

    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "Istanbul Turkey"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "UpdateSubPartner"
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    req.SubPartnerType=params[:subPartnerType]
    req.SubPartnerId = params[:subPartnerId];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeUpdateSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "SubPartnerId": request.SubPartnerId,
    "Name": request.Name,
    "BranchName": request.Name,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone,
    "Email": request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail,
    "MobilePhone": request.ContactInfoMobilePhone
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceUpdateSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion

    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <SubPartnerId></SubPartnerId>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

            </Result>
                    

Update Sub Merchant (Corporation)

Update sub merchant method will be used for updating account information which created for selling product, through the marketplace.

Update Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Update Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "UpdateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

SubPartnerId Int Yes

Unique id value of the store record which will be updated.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class No AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String No

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String Yes

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String No

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String No

Signature Authority Name

Surname String No

Signature Authority Surname

BirthDate YYYY/MM/DD No

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

Sample Service Call Codes


    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    //Request
    MarketPlaceUpdateSubMerchantRequest marketPlaceUpdateSubMerchantRequest = new MarketPlaceUpdateSubMerchantRequest();

    marketPlaceUpdateSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceUpdateSubMerchantRequest.OperationType="UpdateSubPartner";
    marketPlaceUpdateSubMerchantRequest.UniqueId = "123456";
    marketPlaceUpdateSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceUpdateSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceUpdateSubMerchantRequest.SubPartnerId=Integer.parseInt(request.getParameter("subPartnerId"));

    marketPlaceUpdateSubMerchantRequest.Token= new Token();
    marketPlaceUpdateSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceUpdateSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceUpdateSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceUpdateSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceUpdateSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;

    String marketPlaceUpdateSubMerchantResponse = marketPlaceUpdateSubMerchantRequest.execute(marketPlaceUpdateSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "UpdateSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SubPartnerId = $_POST["subPartnerId"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place update servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req=MarketPlaceUpdateSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="UpdateSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.SubPartnerId=request.POST.get('subPartnerId')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')

    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "Istanbul Turkey"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "UpdateSubPartner"
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    req.SubPartnerType=params[:subPartnerType]
    req.SubPartnerId = params[:subPartnerId];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeUpdateSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "SubPartnerId": request.SubPartnerId,
    "Name": request.Name,
    "BranchName": request.Name,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone,
    "Email": request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail,
    "MobilePhone": request.ContactInfoMobilePhone
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceUpdateSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion

    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <SubPartnerId></SubPartnerId>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

            </Result>
                    

Deactivate Sub Merchant

Deactivate sub merchant method will be used for deactivate account information which created for selling product, through the marketplace.

Deactivate Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
It is not possible to reactivate an account that has been closed with Deactivate Sub Merchant Method. The "AddSubPartner" method should be used for adding account.
The parameters for Deactivate Sub Merchant method are as follows:

Service Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "DeactivateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store.

Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard.

Pin String Yes

Pin value is set by Wirecard

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

Sample Service Call Codes


//Request
            MarketPlaceDeactiveRequest request = new MarketPlaceDeactiveRequest();
            request.ServiceType = "CCMarketPlace";
            request.OperationType = "DeactivateSubPartner";
            request.UniqueId = uniqueId;
            #region Token
            request.Token= new Token();
            request.Token.UserCode = settings.UserCode;
            request.Token.Pin = settings.Pin;
            var response= MarketPlaceDeactiveRequest.Execute(request, settings);
            return View(response);

//Request
            MarketPlaceDeactiveRequest marketPlaceDeactiveRequest = new MarketPlaceDeactiveRequest();  
            marketPlaceDeactiveRequest.ServiceType="CCMarketPlace";
		    marketPlaceDeactiveRequest.OperationType="DeactivateSubPartner";          
            marketPlaceDeactiveRequest.UniqueId=request.getParameter("uniqueId");
            marketPlaceDeactiveRequest.Token= new Token();
            marketPlaceDeactiveRequest.Token.Pin=settings.pin;
            marketPlaceDeactiveRequest.Token.UserCode=settings.userCode;
                
		    String marketPlaceDeactiveResponse = MarketPlaceDeactiveRequest.execute(marketPlaceDeactiveRequest,settings); //"Pazaryeri kapatma servisi başlatılması için gerekli servis çağırısını temsil eder."

//Request
            $request = new MarketPlaceDeactiveRequest();
            $request->ServiceType = "CCMarketPlace";
    
            $request->Token= new Token();
            $request->Token->UserCode=$settings->UserCode;
            $request->Token->Pin=$settings->Pin;
    
            $request->OperationType = "DeactivateSubPartner";
            $request->UniqueId = $_POST["uniqueId"];
            $response = MarketPlaceDeactiveRequest::execute($request);

//Request
            req= MarketPlaceDeactiveRequest()
            req.ServiceType="CCMarketPlace"
            req.OperationType="DeactivateSubPartner"
            #region Token
            req.Token=Token()
            req.Token.UserCode=config.UserCode
            req.Token.Pin=config.Pin
            #endregion
            req.UniqueId=request.POST.get('uniqueId')
            message = req.execute(req,config)

//Request
            req= Marketplacedeactivesubpartnerrequest.new
            req.ServiceType="CCMarketPlace"
            req.OperationType="DeactivateSubPartner"
            #region Token
            req.Token = Token.new
            req.Token.UserCode=@settings.UserCode
            req.Token.Pin=@settings.Pin 
            #end Region
            req.UniqueId=params[:uniqueId]
            returnData= req.execute(req,@settings) # xml servis çağrısının başladığı kısım

//Request
            const data = {
                "ServiceType": request.ServiceType,
                "OperationType": request.OperationType,
                "UniqueId": request.UniqueId,
                "Token": {
                    "UserCode": settings.userCode,
                    "Pin": settings.pin
                }
            };

            wirecard.MarketPlaceDeactiveSubPartner(data).then(requestResult => {
                res.json(requestResult)
            }).catch(err => {
                console.log(err)
            })

    //Request
    MarketPlaceDeactiveRequest request = new MarketPlaceDeactiveRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "DeactivateSubPartner";
    request.UniqueId = uniqueId;
    #region Token
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    var response = MarketPlaceDeactiveRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    #endregion
    return View(responseMessage);
 

//Request 
            <?xml version="1.0" encoding="utf-8" ?>
            <WIRECARD>
                <ServiceType>CCMarketPlace</ServiceType>
                <OperationType>DeactivateSubPartner</OperationType>
                <Token>
                    <UserCode></UserCode>
                    <Pin></Pin>
                </Token>
                <UniqueId></UniqueId>
            </WIRECARD>
//Response
            <?xml version="1.0" encoding="UTF-8" ?>
            <Result>
                <Item Key="StatusCode" Value="" />
                <Item Key="ResultCode" Value="" />
                <Item Key="ResultMessage" Value="" />
            </Result>
                    

Online Verification

Create Sub Merchant


Required input informations of Create Sub Merchant Integration Restful Service should be prepared in XML format and sent the following address with Post method. https://www.wirecard.com.tr/SGate/Gate
The parameters for Create Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "WDTicket"

OperationType String Yes

Static Value: "CreateSPRegistrationURL"

Token Token Sınıfı Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId Int Yes

Id to be assigned to SP by Member Business

SubPartnerType Int No

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Evet

Pin value is set by Wirecard

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Create Sub Merchant Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

If the query is not successful, the error code is returned.

ResultMessage String

If the query is not successful, the error description is returned.

ReturnUrl String

If the query is successful, the "link to the application form" is returned.

Sample Service Call Codes



    //Request
    MarketPlaceCreateRequest request = new MarketPlaceCreateRequest();
    request.ServiceType = "WDTicket";
    request.OperationType = "CreateSPRegistrationURL";
    request.UniqueId = 5000;
    request.SubPartnerType = (int)subPartnerType;

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    var response = MarketPlaceCreateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);

    //Request
MarketPlaceCreateSubMerchantRequest marketPlaceCreateSubMerchantRequest = new MarketPlaceCreateSubMerchantRequest();  
                
                
                
                marketPlaceCreateSubMerchantRequest.ServiceType="WDTicket";
		marketPlaceCreateSubMerchantRequest.OperationType="CreateSPRegistrationURL";   
                marketPlaceCreateSubMerchantRequest.UniqueId = 5000;
                marketPlaceCreateSubMerchantRequest.SubPartnerType=Integer.parseInt(request.getParameter("subPartnerType"));
                
                
                marketPlaceCreateSubMerchantRequest.Token= new Token();
                marketPlaceCreateSubMerchantRequest.Token.Pin=settings.pin;
                marketPlaceCreateSubMerchantRequest.Token.UserCode=settings.userCode;
                
                
               
                
		String marketPlaceCreateSubMerchantResponse = marketPlaceCreateSubMerchantRequest.execute(marketPlaceCreateSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceCreateSubPartnerRequest();
    $request->ServiceType = "WDTicket";
    $request->OperationType = "CreateSPRegistrationURL";
    $request->UniqueId = 5000;
    $request->SubPartnerType = $_POST["subPartnerType"];


    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;


    $response = MarketPlaceCreateSubPartnerRequest::execute($request);

    //Request
    req=MarketPlaceCreateSubPartnerRequest()
    req.ServiceType="WDTicket"
    req.OperationType="CreateSPRegistrationURL"
    req.UniqueId="5000"
    req.SubPartnerType=request.POST.get('subPartnerType')


    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion


    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplacecreaterequest.new
    req.ServiceType = "WDTicket"
    req.OperationType = "CreateSPRegistrationURL"
    req.SubPartnerType=params[:subPartnerType]
    req.UniqueId = "5000"
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region

    returnData= req.executeCreateSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": "5000",
    "SubPartnerType": request.SubPartnerType,
    

    wirecard.MarketPlaceCreateSubPartner(req.body).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceCreateRequest request = new MarketPlaceCreateRequest();
    request.ServiceType = "WDTicket";
    request.OperationType = "CreateSPRegistrationURL";
    request.UniqueId = 5000;
    request.SubPartnerType = (int)subPartnerType;

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    var response = MarketPlaceCreateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>



    <WIRECARD>
        <ServiceType>WDTicket</ServiceType>
        <OperationType>CreateSPRegistrationURL</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <UniqueId>5000</UniqueId>
    <ReturnUrl></ReturnUrl>
   
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>



    <Result>
    <Item Key="StatusCode" Value="" />



    <Item Key="ResultCode" Value="" />



    <Item Key="ResultMessage" Value="" />



    <Item Key="SubPartnerId" Value="" />



            </Result>
                    

Add Sub Merchant (Individual)

Add sub merchant method will be used for the definition of a new account that can sell products through the marketplace. The information to be transmitted during the identification of this account, which can sell products through the marketplace, must be prepared in XML message format.

Required input informations of Add Sub Merchant Integration Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Add Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "AddSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
SuccessURL String Yes

URL to which the end user will be redirected after a successful subpartner addition request

ErrorURL String Yes

URL to which the end-user will be redirected after a failed subpartner addition request

ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class Yes AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String No

Tax Office

TaxNumber String No

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String Yes

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String Yes

Signature Authority Name

Surname String Yes

Signature Authority Surname

BirthDate YYYY/MM/DD Yes

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

Online Contract Link.

SubPartnerId Int

The unique id value set by the Wirecard to the result of add marketplace process.

Sample Service Call Codes



    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType=subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SuccessURL = "https://www.test.com/Success";
    request.ErrorURL = "https://www.test.com/Error";
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);
    return View(response);

    //Request
    MarketPlaceAddSubMerchantRequest marketPlaceAddSubMerchantRequest = new MarketPlaceAddSubMerchantRequest();
    marketPlaceAddSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceAddSubMerchantRequest.OperationType="AddSubPartner";
    marketPlaceAddSubMerchantRequest.UniqueId = "123456";
    marketPlaceAddSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceAddSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceAddSubMerchantRequest.SuccessURL = "https://www.test.com/Success";
    marketPlaceAddSubMerchantRequest.ErrorURL = "https://www.test.com/Error";
    marketPlaceAddSubMerchantRequest.Token= new Token();
    marketPlaceAddSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceAddSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceAddSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceAddSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceAddSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceAddSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceAddSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceAddSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceAddSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceAddSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceAddSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceAddSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceAddSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeRegisterNumber = "963018";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeChamber = "İTO";

    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;



    String marketPlaceAddSubMerchantResponse = marketPlaceAddSubMerchantRequest.execute(marketPlaceAddSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "AddSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SuccessURL = "https://www.test.com/Success";
    $request->ErrorURL = "https://www.test.com/Error";
    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";
    $request->FinancialInfo->TradeRegisterNumber = "963018";
    $request->FinancialInfo->TradeChamber = "İTO";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req= MarketPlaceAddSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="AddSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')
    req.SuccessURL = "https://www.test.com/Success";
    req.ErrorURL = "https://www.test.com/Error";
    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "aaaa"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "AddSubPartner"
    req.SubPartnerType=params[:subPartnerType]
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];

    req.SuccessURL = "https://www.test.com/Success";
    req.ErrorURL = "https://www.test.com/Error";
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeAddSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "Name": request.Name,
    "BranchName": request.BranchName,
    "SuccessURL": request.SuccessURL,
    "ErrorURL": request.ErrorURL,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone
    "Email":request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,
    "TradeRegisterNumber":request.FinancialInfoTradeRegisterNumber,
    "TradeChamber":request.FinancialInfoTradeChamber,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceAddSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString().Replace("-", "");
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SuccessURL = "https://www.test.com/Success";
    request.ErrorURL = "https://www.test.com/Error";

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";

    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion

    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();

    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <SuccessURL>https://www.test.com/Success</SuccessURL>
    <ErrorURL>https://www.test.com/Error</ErrorURL>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <TradeRegisterNumber>963018</TradeRegisterNumber>
    <TradeChamber>İTO</TradeChamber>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

    <Item Key="SubPartnerId" Value="" />

            </Result>
                    

Add Sub Merchant (Private Company)

Add sub merchant method will be used for the definition of a new account that can sell products through the marketplace. The information to be transmitted during the identification of this account, which can sell products through the marketplace, must be prepared in XML message format.

Required input informations of Add Sub Merchant Integration Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Add Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "AddSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
SuccessURL String Yes

URL to which the end user will be redirected after a successful subpartner addition request

ErrorURL String Yes

URL to which the end-user will be redirected after a failed subpartner addition request

ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class Yes AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String Yes

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String Yes

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String Yes

Signature Authority Name

Surname String Yes

Signature Authority Surname

BirthDate YYYY/MM/DD Yes

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

Online Contract Link.

SubPartnerId Int

The unique id value set by the Wirecard to the result of add marketplace process.

Sample Service Call Codes



    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType=subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SuccessURL = "https://www.test.com/Success";
    request.ErrorURL = "https://www.test.com/Error";
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);
    return View(response);

    //Request
    MarketPlaceAddSubMerchantRequest marketPlaceAddSubMerchantRequest = new MarketPlaceAddSubMerchantRequest();
    marketPlaceAddSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceAddSubMerchantRequest.OperationType="AddSubPartner";
    marketPlaceAddSubMerchantRequest.UniqueId = "123456";
    marketPlaceAddSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceAddSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceAddSubMerchantRequest.SuccessURL = "https://www.test.com/Success";
    marketPlaceAddSubMerchantRequest.ErrorURL = "https://www.test.com/Error";
    marketPlaceAddSubMerchantRequest.Token= new Token();
    marketPlaceAddSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceAddSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceAddSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceAddSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceAddSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceAddSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceAddSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceAddSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceAddSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceAddSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceAddSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceAddSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceAddSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeRegisterNumber = "963018";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeChamber = "İTO";

    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;



    String marketPlaceAddSubMerchantResponse = marketPlaceAddSubMerchantRequest.execute(marketPlaceAddSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "AddSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SuccessURL = "https://www.test.com/Success";
    $request->ErrorURL = "https://www.test.com/Error";
    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";
    $request->FinancialInfo->TradeRegisterNumber = "963018";
    $request->FinancialInfo->TradeChamber = "İTO";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req= MarketPlaceAddSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="AddSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')
    req.SuccessURL = "https://www.test.com/Success";
    req.ErrorURL = "https://www.test.com/Error";
    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "aaaa"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "AddSubPartner"
    req.SubPartnerType=params[:subPartnerType]
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];

    req.SuccessURL = "https://www.test.com/Success";
    req.ErrorURL = "https://www.test.com/Error";
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeAddSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "Name": request.Name,
    "BranchName": request.BranchName,
    "SuccessURL": request.SuccessURL,
    "ErrorURL": request.ErrorURL,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone
    "Email":request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,
    "TradeRegisterNumber":request.FinancialInfoTradeRegisterNumber,
    "TradeChamber":request.FinancialInfoTradeChamber,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceAddSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString().Replace("-", "");
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SuccessURL = "https://www.test.com/Success";
    request.ErrorURL = "https://www.test.com/Error";

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";

    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion

    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();

    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <SuccessURL>https://www.test.com/Success</SuccessURL>
    <ErrorURL>https://www.test.com/Error</ErrorURL>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <TradeRegisterNumber>963018</TradeRegisterNumber>
    <TradeChamber>İTO</TradeChamber>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

    <Item Key="SubPartnerId" Value="" />

            </Result>
                    

Add Sub Merchant (Corporation)

Add sub merchant method will be used for the definition of a new account that can sell products through the marketplace. The information to be transmitted during the identification of this account, which can sell products through the marketplace, must be prepared in XML message format.

Required input informations of Add Sub Merchant Integration Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Add Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "AddSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
SuccessURL String Yes

URL to which the end user will be redirected after a successful subpartner addition request

ErrorURL String Yes

URL to which the end-user will be redirected after a failed subpartner addition request

ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class Yes AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String Yes

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String Yes

IBAN Info

TradeRegisterNumber String Yes

Trade Register Number

TradeChamber String Yes

Trade Chamber

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String Yes

Signature Authority Name

Surname String Yes

Signature Authority Surname

BirthDate YYYY/MM/DD Yes

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

Online Contract Link.

SubPartnerId Int

The unique id value set by the Wirecard to the result of add marketplace process.

Sample Service Call Codes



    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType=subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SuccessURL = "https://www.test.com/Success";
    request.ErrorURL = "https://www.test.com/Error";
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);
    return View(response);

    //Request
    MarketPlaceAddSubMerchantRequest marketPlaceAddSubMerchantRequest = new MarketPlaceAddSubMerchantRequest();
    marketPlaceAddSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceAddSubMerchantRequest.OperationType="AddSubPartner";
    marketPlaceAddSubMerchantRequest.UniqueId = "123456";
    marketPlaceAddSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceAddSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceAddSubMerchantRequest.SuccessURL = "https://www.test.com/Success";
    marketPlaceAddSubMerchantRequest.ErrorURL = "https://www.test.com/Error";
    marketPlaceAddSubMerchantRequest.Token= new Token();
    marketPlaceAddSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceAddSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceAddSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceAddSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceAddSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceAddSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceAddSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceAddSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceAddSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceAddSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceAddSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceAddSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceAddSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeRegisterNumber = "963018";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeChamber = "İTO";

    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceAddSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;



    String marketPlaceAddSubMerchantResponse = marketPlaceAddSubMerchantRequest.execute(marketPlaceAddSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "AddSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SuccessURL = "https://www.test.com/Success";
    $request->ErrorURL = "https://www.test.com/Error";
    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";
    $request->FinancialInfo->TradeRegisterNumber = "963018";
    $request->FinancialInfo->TradeChamber = "İTO";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req= MarketPlaceAddSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="AddSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')
    req.SuccessURL = "https://www.test.com/Success";
    req.ErrorURL = "https://www.test.com/Error";
    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "aaaa"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "AddSubPartner"
    req.SubPartnerType=params[:subPartnerType]
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];

    req.SuccessURL = "https://www.test.com/Success";
    req.ErrorURL = "https://www.test.com/Error";
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeAddSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "Name": request.Name,
    "BranchName": request.BranchName,
    "SuccessURL": request.SuccessURL,
    "ErrorURL": request.ErrorURL,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone
    "Email":request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,
    "TradeRegisterNumber":request.FinancialInfoTradeRegisterNumber,
    "TradeChamber":request.FinancialInfoTradeChamber,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceAddSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "AddSubPartner";
    request.UniqueId = Guid.NewGuid().ToString().Replace("-", "");
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SuccessURL = "https://www.test.com/Success";
    request.ErrorURL = "https://www.test.com/Error";

    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";

    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion

    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();

    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <SuccessURL>https://www.test.com/Success</SuccessURL>
    <ErrorURL>https://www.test.com/Error</ErrorURL>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <TradeRegisterNumber>963018</TradeRegisterNumber>
    <TradeChamber>İTO</TradeChamber>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

    <Item Key="SubPartnerId" Value="" />

            </Result>
                    

Update Sub Merchant (Individual)

Update sub merchant method will be used for updating account information which created for selling product, through the marketplace.

Update Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Update Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "UpdateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

SubPartnerId Int Yes

Unique id value of the store record which will be updated.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class Yes AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String No

Tax Office

TaxNumber String No

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String Yes

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String Yes

Signature Authority Name

Surname String Yes

Signature Authority Surname

BirthDate YYYY/MM/DD Yes

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

Online Contract Link.

Sample Service Call Codes


    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    //Request
    MarketPlaceUpdateSubMerchantRequest marketPlaceUpdateSubMerchantRequest = new MarketPlaceUpdateSubMerchantRequest();

    marketPlaceUpdateSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceUpdateSubMerchantRequest.OperationType="UpdateSubPartner";
    marketPlaceUpdateSubMerchantRequest.UniqueId = "123456";
    marketPlaceUpdateSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceUpdateSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceUpdateSubMerchantRequest.SubPartnerId=Integer.parseInt(request.getParameter("subPartnerId"));

    marketPlaceUpdateSubMerchantRequest.Token= new Token();
    marketPlaceUpdateSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceUpdateSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceUpdateSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceUpdateSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceUpdateSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;

    String marketPlaceUpdateSubMerchantResponse = marketPlaceUpdateSubMerchantRequest.execute(marketPlaceUpdateSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "UpdateSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SubPartnerId = $_POST["subPartnerId"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place update servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req=MarketPlaceUpdateSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="UpdateSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.SubPartnerId=request.POST.get('subPartnerId')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')

    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "Istanbul Turkey"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "UpdateSubPartner"
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    req.SubPartnerType=params[:subPartnerType]
    req.SubPartnerId = params[:subPartnerId];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeUpdateSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "SubPartnerId": request.SubPartnerId,
    "Name": request.Name,
    "BranchName": request.Name,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone,
    "Email": request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail,
    "MobilePhone": request.ContactInfoMobilePhone
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceUpdateSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion

    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <SubPartnerId></SubPartnerId>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

            </Result>
                    

Update Sub Merchant (Private Company)

Update sub merchant method will be used for updating account information which created for selling product, through the marketplace.

Update Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Update Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "UpdateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

SubPartnerId Int Yes

Unique id value of the store record which will be updated.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class Yes AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String Yes

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String Yes

IBAN Info

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String Yes

Signature Authority Name

Surname String Yes

Signature Authority Surname

BirthDate YYYY/MM/DD Yes

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

Online Contract Link.

Sample Service Call Codes


    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    //Request
    MarketPlaceUpdateSubMerchantRequest marketPlaceUpdateSubMerchantRequest = new MarketPlaceUpdateSubMerchantRequest();

    marketPlaceUpdateSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceUpdateSubMerchantRequest.OperationType="UpdateSubPartner";
    marketPlaceUpdateSubMerchantRequest.UniqueId = "123456";
    marketPlaceUpdateSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceUpdateSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceUpdateSubMerchantRequest.SubPartnerId=Integer.parseInt(request.getParameter("subPartnerId"));

    marketPlaceUpdateSubMerchantRequest.Token= new Token();
    marketPlaceUpdateSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceUpdateSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceUpdateSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceUpdateSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceUpdateSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";

    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;

    String marketPlaceUpdateSubMerchantResponse = marketPlaceUpdateSubMerchantRequest.execute(marketPlaceUpdateSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "UpdateSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SubPartnerId = $_POST["subPartnerId"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place update servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req=MarketPlaceUpdateSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="UpdateSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.SubPartnerId=request.POST.get('subPartnerId')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')

    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "Istanbul Turkey"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "UpdateSubPartner"
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    req.SubPartnerType=params[:subPartnerType]
    req.SubPartnerId = params[:subPartnerId];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"

    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeUpdateSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "SubPartnerId": request.SubPartnerId,
    "Name": request.Name,
    "BranchName": request.Name,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone,
    "Email": request.ContactInfoEmail,
    "InvoiceEmail":request.ContactInfoInvoiceEmail,
    "MobilePhone": request.ContactInfoMobilePhone
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN":request.FinancialInfoIBAN,

    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceUpdateSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";


    #endregion

    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <SubPartnerId></SubPartnerId>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
    <IdentityNumber>11111111111</IdentityNumber>
    <TaxOffice>İstanbul</TaxOffice>
    <TaxNumber>1111111111</TaxNumber>
    <BankName>0012</BankName>
    <IBAN>TR330006100519786457841326</IBAN>
    <AccountName>Ahmet Yaşar</AccountName>
                </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

            </Result>
                    

Update Sub Merchant (Corporation)

Update sub merchant method will be used for updating account information which created for selling product, through the marketplace.

Update Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Update Sub Merchant method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "UpdateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

SubPartnerId Int Yes

Unique id value of the store record which will be updated.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

UniqueId String Yes

Unique id value which be set by the member company for the store

SubPartnerType Enum Yes

Store Type:
There can be three different values:
1. Individual
2. Private Company
3. Corporation

Name String Yes

Store Type

BranchName String No It allows the name of the branch to be identified.
ContactInfo ContactInfo Class Yes Contact Info Informations. The following internal table describes the internal parameters.
FinancialInfo FinancialInfo Class Yes FinancialInfo Informations. The following internal table describes the internal parameters.
AuthSignatory AuthSignatory Class Yes AuthSignatory Informations. The following internal table describes the internal parameters.
Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

ContactInfo Informations
Parameter Name Data Type Mandatory Description
Country String Yes

Country of Store Exp: TR

City String Yes

City Code of Store Exp: 34

Address String Yes

Store Address

BusinessPhone String No

Store Phone Number

MobilePhone String Yes

Mobile phone number of the store owner or authorized person

Email String Yes

E-mail address to the store or store owner

InvoiceEmail String No

Email address to which billing information will be forwarded

FinancialInfo Informations
Parameter Name Data Type Mandatory Description
IdentityNumber String Yes

TC identity number of the store owner or authorized person

TaxOffice String Yes

Tax Office

TaxNumber String Yes

Tax Number

BankName String Yes

Bank code: Exp: 0019

IBAN String Yes

IBAN Info

TradeRegisterNumber String Yes

Trade Register Number

TradeChamber String Yes

Trade Chamber

AuthSignatory Informations
Parameter Name Data Type Mandatory Description
Name String Yes

Signature Authority Name

Surname String Yes

Signature Authority Surname

BirthDate YYYY/MM/DD Yes

Signature Authority BirthDate

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

Online Contract Link.

Sample Service Call Codes


    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region ContactInfo Bilgileri
    request.ContactInfo= new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    request.ContactInfo.InvoiceEmail = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";
    #endregion
    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    //Request
    MarketPlaceUpdateSubMerchantRequest marketPlaceUpdateSubMerchantRequest = new MarketPlaceUpdateSubMerchantRequest();

    marketPlaceUpdateSubMerchantRequest.ServiceType="CCMarketPlace";
    marketPlaceUpdateSubMerchantRequest.OperationType="UpdateSubPartner";
    marketPlaceUpdateSubMerchantRequest.UniqueId = "123456";
    marketPlaceUpdateSubMerchantRequest.SubPartnerType=request.getParameter("subPartnerType");
    marketPlaceUpdateSubMerchantRequest.Name=request.getParameter("name");
    marketPlaceUpdateSubMerchantRequest.SubPartnerId=Integer.parseInt(request.getParameter("subPartnerId"));

    marketPlaceUpdateSubMerchantRequest.Token= new Token();
    marketPlaceUpdateSubMerchantRequest.Token.Pin=settings.pin;
    marketPlaceUpdateSubMerchantRequest.Token.UserCode=settings.userCode;

    marketPlaceUpdateSubMerchantRequest.ContactInfo= new ContactInfo();
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Country = "TR";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.City = "34";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    marketPlaceUpdateSubMerchantRequest.ContactInfo.MobilePhone =request.getParameter("mobilePhoneNumber");
    marketPlaceUpdateSubMerchantRequest.ContactInfo.BusinessPhone = "2121111111";

    marketPlaceUpdateSubMerchantRequest.FinancialInfo = new FinancialInfo();
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IdentityNumber =request.getParameter("identityNumber");
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxOffice = "İstanbul";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.TaxNumber = "11111111111";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.BankName = "0012";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.IBAN = "TR330006100519786457841326";
    marketPlaceUpdateSubMerchantRequest.FinancialInfo.AccountName = "Ahmet Yılmaz";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeRegisterNumber = "963018";
    marketPlaceAddSubMerchantRequest.FinancialInfo.TradeChamber = "İTO";

    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo = new AuthSignatoryInfo();
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Name = "Ahmet";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.Surname = "Yaşar";
    marketPlaceUpdateSubMerchantRequest.AuthSignatoryInfo.BirthDate = date;

    String marketPlaceUpdateSubMerchantResponse = marketPlaceUpdateSubMerchantRequest.execute(marketPlaceUpdateSubMerchantRequest,settings); //"Pazaryeri Oluşturma servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceAddOrUpdateRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "UpdateSubPartner";
    $request->UniqueId = Helper::Guid ();
    $request->SubPartnerType = $_POST["subPartnerType"];
    $request->Name = $_POST["name"];
    $request->BranchName= $_POST["name"];
    $request->SubPartnerId = $_POST["subPartnerId"];

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->BaseUrl = $settings->BaseUrl;

    $request->ContactInfo= new ContactInfo();
    $request->ContactInfo->Country="TR";
    $request->ContactInfo->City="34";
    $request->ContactInfo->Address= "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    $request->ContactInfo->BusinessPhone="2121111111";
    $request->ContactInfo->MobilePhone=$_POST["mobilePhoneNumber"];
    $request->ContactInfo->Email=$_POST["emailAddress"];
    $request->ContactInfo->InvoiceEmail=$_POST["invoiceEMailAddress"];

    $request->FinancialInfo= new FinancialInfo();
    $request->FinancialInfo->IdentityNumber=$_POST["identityNumber"];
    $request->FinancialInfo->TaxOffice= "İstanbul";
    $request->FinancialInfo->TaxNumber= "11111111111";
    $request->FinancialInfo->BankName= "0012";
    $request->FinancialInfo->IBAN= "TR330006100519786457841326";
    $request->FinancialInfo->TradeRegisterNumber = "963018";
    $request->FinancialInfo->TradeChamber = "İTO";

    $request->AuthSignatoryName="Ahmet";
    $request->AuthSignatorySurname="Yılmaz";
    $request->AuthSignatoryBirthDate=date("Y/m/d");

    $response = MarketPlaceAddOrUpdateRequest::execute($request); // Market Place update servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req=MarketPlaceUpdateSubPartnerRequest()
    req.ServiceType="CCMarketPlace"
    req.OperationType="UpdateSubPartner"
    req.UniqueId=str(randint(1, 10000))
    req.SubPartnerType=request.POST.get('subPartnerType')
    req.SubPartnerId=request.POST.get('subPartnerId')
    req.Name=request.POST.get('name')
    req.BranchName=request.POST.get('name')

    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion

    #region Contactinfo Bilgileri
    req.ContactInfo= ContactInfo()
    req.ContactInfo.Country = "TR"
    req.ContactInfo.City = "34"
    req.ContactInfo.Address = "Istanbul Turkey"
    req.ContactInfo.MobilePhone =request.POST.get('mobilePhoneNumber')
    req.ContactInfo.BusinessPhone = "2121111111"
    req.ContactInfo.Email =request.POST.get('emailAddress')
    req.ContactInfo.InvoiceEmail =request.POST.get('invoiceEmailAddress')
    #endregion

    #region Financialinfo Bilgileri
    req.FinancialInfo = FinancialInfo()
    req.FinancialInfo.IdentityNumber =request.POST.get('identityNumber')
    req.FinancialInfo.TaxOffice = "istanbul"
    req.FinancialInfo.TaxNumber = "11111111111"
    req.FinancialInfo.BankName = "0012"
    req.FinancialInfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";
    #endregion

    #region AuthSignatoryinfo Bilgileri
    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=datetime.now().strftime("%Y-%m-%d")
    #endregion

    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplaceaddorupdaterequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "UpdateSubPartner"
    req.UniqueId = SecureRandom.uuid
    req.Name = params[:name];
    req.BranchName = params[:name];
    req.SubPartnerType=params[:subPartnerType]
    req.SubPartnerId = params[:subPartnerId];
    #region Token
    req.Token = Token.new
    req.Token.UserCode=@settings.UserCode
    req.Token.Pin=@settings.Pin
    #end Region
    #region Contactinfo Bilgileri
    req.Contactinfo= Contactinfo.new
    req.Contactinfo.Country = "TR"
    req.Contactinfo.City = "34"
    req.Contactinfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"
    req.Contactinfo.MobilePhone =params[:mobilePhoneNumber]
    req.Contactinfo.BusinessPhone = "2121111111"
    req.Contactinfo.Email = params[:emailAddress]
    req.Contactinfo.InvoiceEmail  =params[:invoiceMailAddress]
    #endregion
    #region Financialinfo Bilgileri
    req.Financialinfo = Financialinfo.new
    req.Financialinfo.IdentityNumber =params[:identityNumber]
    req.Financialinfo.TaxOffice = "İstanbul"
    req.Financialinfo.TaxNumber = "11111111111"
    req.Financialinfo.BankName = "0012"
    req.Financialinfo.IBAN = "TR330006100519786457841326"
    req.FinancialInfo.TradeRegisterNumber = "963018";
    req.FinancialInfo.TradeChamber = "İTO";


    req.AuthSignatoryName="Ahmet"
    req.AuthSignatorySurname="Yılmaz"
    req.AuthSignatoryBirthDate=Time.now.strftime("%Y/%m/%d")
    returnData= req.executeUpdateSubPartner(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data= {
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode": settings.userCode,
    "Pin": settings.pin
    },
    "UniqueId": Guid.raw(),
    "SubPartnerType": request.SubPartnerType,
    "SubPartnerId": request.SubPartnerId,
    "Name": request.Name,
    "BranchName": request.Name,
    "ContactInfo": {
    "Country": request.ContactInfoCountry,
    "City": request.ContactInfoCity,
    "Address": request.ContactInfoAddress,
    "BusinessPhone": request.ContactInfoBusinessPhone,
    "MobilePhone": request.ContactInfoMobilePhone,
    "Email": request.ContactInfoEmail,
    "MobilePhone": request.ContactInfoMobilePhone,
    "InvoiceEmail":request.ContactInfoInvoiceEmail
    },
    "FinancialInfo": {
    "IdentityNumber": request.FinancialInfoIdentityNumber,
    "TaxOffice": request.FinancialInfoTaxOffice,
    "TaxNumber": request.FinancialInfoTaxNumber,
    "BankName": request.FinancialInfoBankName,
    "IBAN": request.FinancialInfoIBAN,
    "TradeRegisterNumber":request.FinancialInfoTradeRegisterNumber,
    "TradeChamber":request.FinancialInfoTradeChamber,
    },
    "AuthSignatory": {
    "Name": request.AuthSignatoryName,
    "Surname": request.AuthSignatorySurname,
    "BirthDate": request.AuthSignatoryBirthDate,
    }
    };

    wirecard.MarketPlaceUpdateSubPartner(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request
    MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "UpdateSubPartner";
    request.UniqueId = Guid.NewGuid().ToString();
    request.SubPartnerType = subPartnerType;
    request.Name = name;
    request.BranchName = name;
    request.SubPartnerId = subPartnerId;
    #region Token Bilgileri
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;

    #endregion

    #region ContactInfo Bilgileri
    request.ContactInfo = new ContactInfo();
    request.ContactInfo.Country = "TR";
    request.ContactInfo.City = "34";
    request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul";
    request.ContactInfo.MobilePhone = mobilePhoneNumber;
    request.ContactInfo.BusinessPhone = "2121111111";
    request.ContactInfo.Email = email;
    #endregion
    #region FinancialInfo Bilgileri
    request.FinancialInfo = new FinancialInfo();
    request.FinancialInfo.IdentityNumber = identityNumber;
    request.FinancialInfo.TaxOffice = "İstanbul";
    request.FinancialInfo.TaxNumber = "11111111111";
    request.FinancialInfo.BankName = "0012";
    request.FinancialInfo.IBAN = "TR330006100519786457841326";
    request.FinancialInfo.TradeRegisterNumber = "963018";
    request.FinancialInfo.TradeChamber = "İTO";

    #endregion

    #region AuthSignatory  Bilgileri
    request.AuthSignatoryInfo = new AuthSignatoryInfo();
    request.AuthSignatoryInfo.Name = "Ahmet";
    request.AuthSignatoryInfo.Surname = "Yaşar";
    request.AuthSignatoryInfo.BirthDate = DateTime.Now.ToString("yyyy/MM/dd");
    #endregion
    var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
    <ServiceType>CCMarketPlace</ServiceType>
    <OperationType>AddSubPartner</OperationType>
    <Token>
    <UserCode></UserCode>
    <Pin></Pin>
                </Token>
    <SubPartnerId></SubPartnerId>
    <UniqueId>35c74184-674b-4cd8-a8b2-a41a34630e8a</UniqueId>
    <SubPartnerType>Individual</SubPartnerType>
    <Name>Test Mağazası</Name>
    <ContactInfo>
    <Country>TR</Country>
    <City>34</City>
    <Address>Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul</Address>
    <BusinessPhone>2121111111</BusinessPhone>
    <MobilePhone>2121111111</MobilePhone>
                </ContactInfo>
    <FinancialInfo>
        <IdentityNumber>11111111111</IdentityNumber>
        <TaxOffice>İstanbul</TaxOffice>
        <TaxNumber>1111111111</TaxNumber>
        <BankName>0012</BankName>
        <IBAN>TR330006100519786457841326</IBAN>
        <TradeRegisterNumber>963018</TradeRegisterNumber>
        <TradeChamber>İTO</TradeChamber>
        <AccountName>Ahmet Yaşar</AccountName>
    </FinancialInfo>
    <AuthSignatory>
        <Name>Ahmet</Name>
        <Surname>Yılmaz</Surname>
        <BirthDate>1970/10/29</BirthDate>
    </AuthSignatory>
            </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value="" />

    <Item Key="ResultMessage" Value="" />

            </Result>
                    

Deactivate Sub Merchant

Deactivate sub merchant method will be used for deactivate account information which created for selling product, through the marketplace.

Deactivate Sub Merchant Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
It is not possible to reactivate an account that has been closed with Deactivate Sub Merchant Method. The "AddSubPartner" method should be used for adding account.
The parameters for Deactivate Sub Merchant method are as follows:

Service Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "DeactivateSubPartner"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

UniqueId String Yes

Unique id value which be set by the member company for the store.

Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard.

Pin String Yes

Pin value is set by Wirecard

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

Sample Service Call Codes


//Request
            MarketPlaceDeactiveRequest request = new MarketPlaceDeactiveRequest();
            request.ServiceType = "CCMarketPlace";
            request.OperationType = "DeactivateSubPartner";
            request.UniqueId = uniqueId;
            #region Token
            request.Token= new Token();
            request.Token.UserCode = settings.UserCode;
            request.Token.Pin = settings.Pin;
            var response= MarketPlaceDeactiveRequest.Execute(request, settings);
            return View(response);

//Request
            MarketPlaceDeactiveRequest marketPlaceDeactiveRequest = new MarketPlaceDeactiveRequest();  
            marketPlaceDeactiveRequest.ServiceType="CCMarketPlace";
		    marketPlaceDeactiveRequest.OperationType="DeactivateSubPartner";          
            marketPlaceDeactiveRequest.UniqueId=request.getParameter("uniqueId");
            marketPlaceDeactiveRequest.Token= new Token();
            marketPlaceDeactiveRequest.Token.Pin=settings.pin;
            marketPlaceDeactiveRequest.Token.UserCode=settings.userCode;
                
		    String marketPlaceDeactiveResponse = MarketPlaceDeactiveRequest.execute(marketPlaceDeactiveRequest,settings); //"Pazaryeri kapatma servisi başlatılması için gerekli servis çağırısını temsil eder."

//Request
            $request = new MarketPlaceDeactiveRequest();
            $request->ServiceType = "CCMarketPlace";
    
            $request->Token= new Token();
            $request->Token->UserCode=$settings->UserCode;
            $request->Token->Pin=$settings->Pin;
    
            $request->OperationType = "DeactivateSubPartner";
            $request->UniqueId = $_POST["uniqueId"];
            $response = MarketPlaceDeactiveRequest::execute($request);

//Request
            req= MarketPlaceDeactiveRequest()
            req.ServiceType="CCMarketPlace"
            req.OperationType="DeactivateSubPartner"
            #region Token
            req.Token=Token()
            req.Token.UserCode=config.UserCode
            req.Token.Pin=config.Pin
            #endregion
            req.UniqueId=request.POST.get('uniqueId')
            message = req.execute(req,config)

//Request
            req= Marketplacedeactivesubpartnerrequest.new
            req.ServiceType="CCMarketPlace"
            req.OperationType="DeactivateSubPartner"
            #region Token
            req.Token = Token.new
            req.Token.UserCode=@settings.UserCode
            req.Token.Pin=@settings.Pin 
            #end Region
            req.UniqueId=params[:uniqueId]
            returnData= req.execute(req,@settings) # xml servis çağrısının başladığı kısım

//Request
            const data = {
                "ServiceType": request.ServiceType,
                "OperationType": request.OperationType,
                "UniqueId": request.UniqueId,
                "Token": {
                    "UserCode": settings.userCode,
                    "Pin": settings.pin
                }
            };

            wirecard.MarketPlaceDeactiveSubPartner(data).then(requestResult => {
                res.json(requestResult)
            }).catch(err => {
                console.log(err)
            })

    //Request
    MarketPlaceDeactiveRequest request = new MarketPlaceDeactiveRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "DeactivateSubPartner";
    request.UniqueId = uniqueId;
    #region Token
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    var response = MarketPlaceDeactiveRequest.Execute(request, settings);

    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    #endregion
    return View(responseMessage);
 

//Request 
            <?xml version="1.0" encoding="utf-8" ?>
            <WIRECARD>
                <ServiceType>CCMarketPlace</ServiceType>
                <OperationType>DeactivateSubPartner</OperationType>
                <Token>
                    <UserCode></UserCode>
                    <Pin></Pin>
                </Token>
                <UniqueId></UniqueId>
            </WIRECARD>
//Response
            <?xml version="1.0" encoding="UTF-8" ?>
            <Result>
                <Item Key="StatusCode" Value="" />
                <Item Key="ResultCode" Value="" />
                <Item Key="ResultMessage" Value="" />
            </Result>
                    

Payment With 3D Secure

The payment method with 3D Secure is a process used to complete credit card payment transactions via the bank's "3DSEC" verification page.

Payment Integration with 3D Secure, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The end user must be directed to complete the 3DSEC step to delivered URL via the response message.
The parameters for Payment With 3D Secure method are as follows:

Service Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "Sale3DSEC"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

CreditCardInfo CreditCardInfo Class Yes CreditCardInfo Informations. The following internal table describes the internal parameters.
CardTokenization CardTokenization Class Yes CardTokenization Informations. The following internal table describes the internal parameters.
During credit card transaction, if the transaction card is requested to be recorded on the Wirecard system, or if a transaction is performed with a previously recorded card is requested, values under this class will be sent in full.
CustomerInfo CustomerInfo Class No CustomerInfo Informations. The following internal table describes the internal parameters.
Language String No

Information is the language in which the e-mail will be provided.
TR: Turkish
EN: English

Port String No

Port information of the end user performing the payment transaction

MPAY String No

Free Value
Merchant’s unique transaction id can be sent via this parameter.

CurrencyCode String No

TRY/USD/EUR
Currency Code : TRY/USD/EUR

IPAddress String Yes

IP address information of the end user performing the payment transaction

Port String Yes

Port information of the end user performing the payment transaction

Description String Yes

The content of the payment transaction

InstallmentCount Int Yes

Installment Count:
0: One shot
3: 3 installment
6: 6 installment
9: 9 installment

ErrorURL String Yes

The end user will redirect to the URL after a failed operation
The end user will be directed to this page after the "3DSEC" verification step

SuccessURL String Yes

The end user will redirect to the URL after successful operation
The end user will be directed to this page after the "3DSEC" verification step

CommissionRate Int Yes

The amount of the commission to be applied to the store for payment.
Commision value should be multiplied by 100. No decimal values. E.g. 1,10 TL should be sent as 110

Parameter field specified is essential in our companies which will work with installment structure and dynamic ratio.

ExtraParam String No

Parameter value to be used to trigger additional options in the method
Should be left empty for the payment with 3D.

PaymentContent String No

Content of the payment transaction

SubPartnerId Int Yes

Unique id value of the store record which will be processed payment.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

CustomerInfo Information
Parameter Name Data Type Mandatory Description
CustomerName String No

Name of the person to be informed

CustomerSurname String No

Surname of the person to be informed

CustomerEmail String No

E-mail of the person to be informed

CreditCardInfo Informations
Parameter Name Data Type Mandatory Description
CreditCardNo String Yes

Credit card number to be used for payment
Should be in ‘5400XXXXXXXXXXXX’ format

OwnerName String Yes

Name which is on the credit card
Should be in ‘John Doe’ or ‘JOHN DOE’ format

ExpireYear Int Yes

Expire year of the credit card
Should be in ‘2017’ format

ExpireMonth Int Yes

Expire month of the credit card
Should be in ‘1,7,10,12, etc’ format.

Cvv String Yes

The CVV value on the back of the credit card

Price Int Yes

Amount of payment
Real value should be multiplied by 100. No decimal values. E.g. 1,10 TL should be sent as 110.

CardTokenization Informations
Parameter Name Data Type Mandatory Description
RequestType Int Yes

It can be sent as 0 or 1.
0: No action.
1: Performs payment and card registration

CustomerId String Yes

This value should be sent as "1" if card recording is wanted during payment processing. It is mandatory to send this value for the same situation.

ValidityPeriod int Yes

Credit card token record expiration date should be sent as 0. This field is required if you want to save the transaction credit card.

CCTokenId Guid Yes

Token value assigned by Wirecard for a previously created card. If this value is full, no credit card information needs to be entered.

Wirecard Common Payment Page

The Wirecard Common Payment Page allows payment via the member company system using the 3D Secure feature.

Required input informations of Wirecard Common Payment Page Integration Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Wirecard Common Payment Page method are as follows:

Serivce Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "WDTicket"

OperationType String Yes

Static Value: "MPSale3DSECWithUrl"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

CustomerInfo CustomerInfo Class No CustomerInfo Informations. The following internal table describes the internal parameters.
Language String No

Information is the language in which the e-mail will be provided.
TR: Turkish
EN: English

SubPartnerId Int Yes

Unique id value of the store record which will be processed payment.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

Price Int Yes

Amount of payment
Real value should be multiplied by 100. No decimal values. E.g. 1,10 TL should be sent as 110.

CommissionRate Int Yes

The amount of the commission to be applied to the store for payment.
Commision value should be multiplied by 100. No decimal values. E.g. 1,10 TL should be sent as 110

MPAY String No

Free Value
Merchant’s unique transaction id can be sent via this parameter.

CurrencyCode String No

TRY/USD/EUR
Currency Code : TRY/USD/EUR

InstallmentOptions Int No

Installment Count:
0: One shot
3: 3 installment
6: 6
9: 9 installment

CommissionRateList Int No

If companies will work in installment structure and only with
dynamic rate, have to send this parameter field.

The internal parameters and data type that should be added
to the parameter internal table are as follows.
<Inst0>int</Inst0>
<Inst3>int</Inst3>
<Inst6>int</Inst6>
<Inst9>int</Inst9>

If 0,3,6,9 values ​​are available in the Installation Options
parameter, the values ​​of Inst0, Inst3, Inst6 and Inst9
parameters should be specified.

ErrorURL String Yes

The end user will redirect to the URL after a failed operation
The end user will be directed to this page after the "3DSEC" verification step

SuccessURL String Yes

The end user will redirect to the URL after successful operation
The end user will be directed to this page after the "3DSEC" verification step

ExtraParam String No

Parameter value to be used to trigger additional options in the method
Should be left empty for the payment with 3D.

Description String Yes

The content of the payment transaction

PaymentContent String No

Content of the payment transaction

Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

CustomerInfo Information
Parameter Name Data Type Mandatory Description
CustomerName String No

Name of the person to be informed

CustomerSurname String No

Surname of the person to be informed

CustomerEmail String No

E-mail of the person to be informed

Service Output Parameters

Parameter Name Data Type Description
StatusCode Int

Process Result
0: Process Successful
1: Process Unsuccessful

ResultCode String

Wirecard result code of the payment transaction

ResultMessage String

Description of ResultCode value.

OrderObjectId Guid

Unique id of the payment transaction
This value is set automatically by Wirecard services.

RedirectUrl String

The end user will be directed to this URL for 3DSEC validation.
The end user must be directed to this URL to complete the 3DSEC step.

Sample Service Call Codes


    //Request
    MarketPlaceSale3DSecOrMpSaleRequest request = new MarketPlaceSale3DSecOrMpSaleRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "Sale3DSEC";
    request.MPAY = "";

    request.CurrencyCode=currencyCode;
    request.IPAddress = "127.0.0.1";
    request.Port = "123";
    request.Description = "Bilgisayar";
    request.InstallmentCount = installmentCount;
    request.CommissionRate = 100; //komisyon oranı 1. 100 ile çarpılıp gönderiliyor
    request.ExtraParam = "";
    request.PaymentContent = "BLGSYR01";
    request.SubPartnerId = subPartnerId;
    request.ErrorURL = "http://localhost:7597/Home/MarketPlaceError";
    request.SuccessURL = "http://localhost:7597/Home/MarketPlaceSuccess";
    #region Token
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion
    #region CreditCardInfo
    request.CreditCardInfo = new CreditCardInfo();
    request.CreditCardInfo.CreditCardNo = creditCardNo;
    request.CreditCardInfo.OwnerName = ownerName;
    request.CreditCardInfo.ExpireYear = expireYear;
    request.CreditCardInfo.ExpireMonth = expireMonth;
    request.CreditCardInfo.Cvv = cvv;
    request.CreditCardInfo.Price = 1;//0,01 TL
    #endregion
    #region CardTokenization
    request.CardTokenization= new CardTokenization();
    request.CardTokenization.RequestType = 0;
    request.CardTokenization.CustomerId = Guid.NewGuid().ToString();
    request.CardTokenization.ValidityPeriod = 0;
    request.CardTokenization.ValidityPeriod = 0;
    request.CardTokenization.CCTokenId = Guid.NewGuid();
    #endregion
    #region CustomerInfo
    request.CustomerInfo = new CustomerInfo();
    request.CustomerInfo.CustomerName = "ahmet";
    request.CustomerInfo.CustomerSurname = "yılmaz";
    request.CustomerInfo.CustomerEmail = "ahmet.yilmaz@gmail.com";
    #endregion
    request.Language = "TR";
    var response = MarketPlaceSale3DSecOrMpSaleRequest.Execute(request, settings);
    return View(responseMessage);

    //Request
    MarketPlaceSale3DSecRequest marketPlaceSale3DSecRequest = new MarketPlaceSale3DSecRequest();
    marketPlaceSale3DSecRequest.ServiceType = "CCMarketPlace";
    marketPlaceSale3DSecRequest.OperationType = "Sale3DSEC";
    marketPlaceSale3DSecRequest.MPAY = "";
    marketPlaceSale3DSecRequest.CurrencyCode =request.getParameter("currencyCode");
    marketPlaceSale3DSecRequest.IPAddress = "127.0.0.";
    marketPlaceSale3DSecRequest.Port = "123";
    marketPlaceSale3DSecRequest.Description = "Bilgisayar";
    marketPlaceSale3DSecRequest.InstallmentCount =Integer.parseInt(request.getParameter("installmentCount"));
    marketPlaceSale3DSecRequest.CommissionRate = 100; //komisyon oranı 1. 100 ile çarpılıp gönderiliyor
    marketPlaceSale3DSecRequest.ExtraParam = "";
    marketPlaceSale3DSecRequest.PaymentContent = "BLGSYR01";
    marketPlaceSale3DSecRequest.SubPartnerId =Integer.parseInt(request.getParameter("subPartnerId"));
    marketPlaceSale3DSecRequest.ErrorURL = "http://localhost:8084/wirecard-java/error.htm";
    marketPlaceSale3DSecRequest.SuccessURL = "http://localhost:8084/wirecard-java/success.htm";

    marketPlaceSale3DSecRequest.Token = new Token();
    marketPlaceSale3DSecRequest.Token.UserCode = settings.userCode;
    marketPlaceSale3DSecRequest.Token.Pin = settings.pin;

    marketPlaceSale3DSecRequest.CreditCardInfo = new CreditCardInfo();
    marketPlaceSale3DSecRequest.CreditCardInfo.CreditCardNo =request.getParameter("creditCardNo");
    marketPlaceSale3DSecRequest.CreditCardInfo.OwnerName =request.getParameter("ownerName");
    marketPlaceSale3DSecRequest.CreditCardInfo.ExpireYear =Integer.parseInt(request.getParameter("expireYear"));
    marketPlaceSale3DSecRequest.CreditCardInfo.ExpireMonth =Integer.parseInt(request.getParameter("expireMonth"));
    marketPlaceSale3DSecRequest.CreditCardInfo.Cvv =request.getParameter("cvv");
    marketPlaceSale3DSecRequest.CreditCardInfo.Price = 1;//0,01 TL

    marketPlaceSale3DSecRequest.CardTokenization = new CardTokenization();
    marketPlaceSale3DSecRequest.CardTokenization.RequestType=0;
    marketPlaceSale3DSecRequest.CardTokenization.CustomerId="01";
    marketPlaceSale3DSecRequest.CardTokenization.ValidityPeriod=0;
    marketPlaceSale3DSecRequest.CardTokenization.CCTokenId=uuid.toString();

    marketPlaceSale3DSecRequest.CustomerInfo = new CustomerInfo();
    marketPlaceSale3DSecRequest.CustomerInfo.CustomerName = "ahmet";
    marketPlaceSale3DSecRequest.CustomerInfo.CustomerSurname = "yılmaz";
    marketPlaceSale3DSecRequest.CustomerInfo.CustomerEmail = "ahmet.yilmaz@gmail.com";
    marketPlaceSale3DSecRequest.Language = "TR";
    String marketPlaceSale3DSecResponse = marketPlaceSale3DSecRequest.execute(marketPlaceSale3DSecRequest,settings); //"Pazaryeri 3DSecure servisi başlatılması için gerekli servis çağırısını temsil eder."

    //Request
    $request = new MarketPlaceSale3DOrMpSaleRequest();
    $request->ServiceType = "CCMarketPlace";
    $request->OperationType = "Sale3DSEC";

    $request->Token= new Token();
    $request->Token->UserCode=$settings->UserCode;
    $request->Token->Pin=$settings->Pin;
    $request->MPAY = "";
    $request->CurrencyCode =$_POST["currencyCode"];
    $request->IPAddress = helper::get_client_ip();
    $request->PaymentContent = "Bilgisayar";
    $request->InstallmentCount = $_POST["installmentCount"];
    $request->Description = "BLGSYR01";
    $request->ExtraParam = "";
    $request->Port = "01";
    $request->ErrorURL = "http://localhost:5000/fail.php";
    $request->SuccessURL = "http://localhost:5000/success.php";
    $request->CommissionRate = 100;//%1
    $request->SubPartnerId = $_POST["subPartnerId"];
    $request->CreditCardInfo= new CreditCardInfo();
    $request->CreditCardInfo->CreditCardNo=$_POST["creditCardNo"];
    $request->CreditCardInfo->OwnerName=$_POST["ownerName"];
    $request->CreditCardInfo->ExpireYear=$_POST["expireYear"];
    $request->CreditCardInfo->ExpireMonth=$_POST["expireMonth"];
    $request->CreditCardInfo->Cvv=$_POST["cvv"];
    $request->CreditCardInfo->Price=1;//0.01 TL
    $request->CardTokenization= new CardTokenization();
    $request->CardTokenization->RequestType="0";
    $request->CardTokenization->CustomerId="01";
    $request->CardTokenization->ValidityPeriod="0";
    $request->CardTokenization->CCTokenId=Helper::Guid ();
    $request->CustomerInfo = new CustomerInfo();
    $request->CustomerInfo->CustomerName = "ahmet";
    $request->CustomerInfo->CustomerSurname = "yılmaz";
    $request->CustomerInfo->CustomerEmail = "ahmet.yilmaz@gmail.com";
    $request->Language = "TR";
    $response = MarketPlaceSale3DOrMpSaleRequest::execute($request); // Market Place 3D Secure servisi başlatılması için gerekli servis çağırısını temsil eder.

    //Request
    req=MarketPlaceSale3DSecOrMpSaleRequest()
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "Sale3DSEC"
    req.MPAY = ""
    req.CurrencyCode=request.POST.get('currencyCode')
    req.IPAddress = "127.0.0.1"
    req.Port = "123"
    req.Description = "Bilgisayar"
    req.InstallmentCount =request.POST.get('installmentCount')
    req.CommissionRate = "100"; #komisyon oranı 1. 100 ile çarpılıp gönderiliyor
    req.ExtraParam = ""
    req.PaymentContent = "BLGSYR01"
    req.SubPartnerId =request.POST.get('subPartnerId')
    req.ErrorURL = "http://127.0.0.1:8000/fail"
    req.SuccessURL = "http://127.0.0.1:8000/home/success"
    req.Port = "123"
    #region Token
    req.Token=Token()
    req.Token.UserCode=config.UserCode
    req.Token.Pin=config.Pin
    #endregion
    #region CreditCardInfo
    req.CreditCardInfo = CreditCardInfo()
    req.CreditCardInfo.CreditCardNo =request.POST.get('creditCardNo')
    req.CreditCardInfo.OwnerName =request.POST.get('ownerName')
    req.CreditCardInfo.ExpireYear =request.POST.get('expireYear')
    req.CreditCardInfo.ExpireMonth =request.POST.get('expireMonth')
    req.CreditCardInfo.Cvv =request.POST.get('cvv')
    req.CreditCardInfo.Price = "1";#0,01 TL
    #endregion
    #region CardTokenization
    req.CardTokenization = CardTokenization()
    req.CardTokenization.RequestType="0"
    req.CardTokenization.CustomerId="01"
    req.CardTokenization.ValidityPeriod="0"
    req.CardTokenization.CCTokenId=str(uuid.uuid4())
    #endregion
    req.CustomerInfo = new CustomerInfo();
    req.CustomerInfo.CustomerName = "ahmet";
    req.CustomerInfo.CustomerSurname = "yılmaz";
    req.CustomerInfo.CustomerEmail = "ahmet.yilmaz@gmail.com";
    req.Language = "TR";
    message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

    //Request
    req= Marketplacesale3dsecurerequest.new
    req.ServiceType = "CCMarketPlace"
    req.OperationType = "Sale3DSEC"
    req.CurrencyCode=params[:currencyCode]
    req.MPAY = ""
    req.IPAddress = "127.0.0.1";
    req.Port = "123"
    req.Description = "Bilgisayar"
    req.InstallmentCount =params[:installmentCount]
    req.CommissionRate = "100"; #komisyon oranı 1. 100 ile çarpılıp gönderiliyor
    req.ExtraParam = ""
    req.PaymentContent = "BLGSYR01"
    req.SubPartnerId = params[:subPartnerId]
    req.ErrorURL = "http://localhost:3000/home/MarketPlaceError"
    req.SuccessURL = "http://localhost:3000/home/MarketPlaceSuccess"
    #region Token
    req.Token = Token.new
    req.Token.UserCode = @settings.UserCode
    req.Token.Pin = @settings.Pin
    #endregion
    #region CreditCardInfo
    req.Creditcardinfo = Creditcardinfo.new
    req.Creditcardinfo.CreditCardNo = params[:creditCardNo]
    req.Creditcardinfo.OwnerName =params[:ownerName]
    req.Creditcardinfo.ExpireYear =params[:expireYear]
    req.Creditcardinfo.ExpireMonth =params[:expireMonth]
    req.Creditcardinfo.Cvv =params[:cvv]
    req.Creditcardinfo.Price = "1";#0,01 TL
    #endregion
    #region CardTokenization
    req.Cardtokenization = Cardtokenization.new
    req.Cardtokenization.RequestType ="0"
    req.Cardtokenization.CustomerId ="01"
    req.Cardtokenization.ValidityPeriod ="0"
    req.Cardtokenization.CCTokenId =SecureRandom.uuid

    #endregion
    req.CustomerInfo = new CustomerInfo();
    req.CustomerInfo.CustomerName = "ahmet";
    req.CustomerInfo.CustomerSurname = "yılmaz";
    req.CustomerInfo.CustomerEmail = "ahmet.yilmaz@gmail.com";
    req.Language = "TR";
    returnData= req.execute(req,@settings) # xml servis çağrısının başladığı kısım

    //Request
    const data={
    "ServiceType": request.ServiceType,
    "OperationType": request.OperationType,
    "Token": {
    "UserCode":settings.userCode,
    "Pin": settings.pin
    },
    "CreditCardInfo": {
    "CreditCardNo": request.CreditCardInfoCreditCardNo,
    "OwnerName": request.CreditCardInfoOwnerName,
    "ExpireYear": request.CreditCardInfoExpireYear,
    "ExpireMonth": request.CreditCardInfoExpireMonth,
    "Cvv": request.CreditCardInfoCvv,
    "Price": request.CreditCardInfoPrice,
    },
    "CustomerInfo": {
    "CustomerName": request.CustomerName,
    "CustomerSurname": request.CustomerSurname,
    "CustomerEmail": request.CustomerEmail,
    },
    "Language": request.Language,
    "MPAY": request.Mpay,
    "CurrencyCode":request.CurrencyCode,
    "ExtraParam": request.ExtraParam,
    "Description":request.Description,
    "IPAddress": request.IPAddress,
    "Port": request.Port,
    "ErrorURL": request.ErrorURL,
    "SuccessURL": request.SuccessURL,
    "InstallmentCount": request.InstallmentCount,
    "CommissionRate": request.CommissionRate,
    "SubPartnerId": request.SubPartnerId,
    "PaymentContent": request.PaymentContent
    }
    wirecard.MarketPlaceSale3DSec(data).then(requestResult => {
    res.json(requestResult)
    }).catch(err => {
    console.log(err)
    })

    //Request

    MarketPlaceSale3DSecOrMpSaleRequest request = new MarketPlaceSale3DSecOrMpSaleRequest();
    request.ServiceType = "CCMarketPlace";
    request.OperationType = "Sale3DSEC";
    request.MPAY = "";
    request.CurrencyCode = currencyCode;
    request.IPAddress = "195.168.1.4";
    request.Port = "123";
    request.Description = "Bilgisayar";
    request.InstallmentCount = installmentCount;
    request.CommissionRate = 100; //komisyon oranı 1. 100 ile çarpılıp gönderiliyor
    request.ExtraParam = "";
    request.PaymentContent = "BLGSYR01";
    request.SubPartnerId = subPartnerId;
    request.ErrorURL = "http://localhost:32123/Home/Fail";
    request.SuccessURL = "http://localhost:32123/Home/Success";

    #region Token
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion



    #region CreditCardInfo
    request.CreditCardInfo = new CreditCardInfo();
    request.CreditCardInfo.CreditCardNo = creditCardNo;
    request.CreditCardInfo.OwnerName = ownerName;
    request.CreditCardInfo.ExpireYear = expireYear;
    request.CreditCardInfo.ExpireMonth = expireMonth;
    request.CreditCardInfo.Cvv = cvv;
    request.CreditCardInfo.Price = 1;//0,01 TL
    #endregion

    #region CardTokenization

    request.CardTokenization = new CardTokenization();
    request.CardTokenization.RequestType = 0;
    request.CardTokenization.CustomerId = Guid.NewGuid().ToString();
    request.CardTokenization.ValidityPeriod = 0;
    request.CardTokenization.CCTokenId = string.Empty;

    #endregion
    request.CustomerInfo = new CustomerInfo();
    request.CustomerInfo.CustomerName = "ahmet";
    request.CustomerInfo.CustomerSurname = "yılmaz";
    request.CustomerInfo.CustomerEmail = "ahmet.yilmaz@gmail.com";
    request.Language = "TR";
    var response = MarketPlaceSale3DSecOrMpSaleRequest.Execute(request, settings);
    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
    <?xml version="1.0" encoding="utf-8" ?>

    <WIRECARD>
        <ServiceType>CCMarketPlace</ServiceType>
        <OperationType>Sale3DSEC</OperationType>
        <Token>
            <UserCode></UserCode>
            <Pin></Pin>
        </Token>
        <CreditCardInfo>
            <CreditCardNo></CreditCardNo>
            <OwnerName></OwnerName>
            <ExpireYear></ExpireYear>
            <ExpireMonth></ExpireMonth>
            <Cvv></Cvv>
            <Price>100</Price>
        </CreditCardInfo>
        <CustomerInfo>
            <CustomerName></CustomerName>
            <CustomerSurname></CustomerSurname>
            <CustomerEmail></CustomerEmail>
        </CustomerInfo>
        <Language></Language>
        <MPAY></MPAY>
        <CurrencyCode> </CurrencyCode>
        <ExtraParam></ExtraParam>
        <Description>Bilgisayar</Description>
        <IPAddress>13.93.145.96</IPAddress>
        <Port>1</Port>
        <ErrorURL>"http://localhost:7597/Home/Error</ErrorURL>
        <SuccessURL>http://localhost:7597/Home/Success</SuccessURL>
        <InstallmentCount>0</InstallmentCount>
        <CommissionRate>100</CommissionRate>
        <SubPartnerId></SubPartnerId>
        <PaymentContent>Bilgisayar Ödemesi</PaymentContent>
    </WIRECARD>
//Response
    <?xml version="1.0" encoding="UTF-8" ?>

    <Result>
    <Item Key="StatusCode" Value="" />

    <Item Key="ResultCode" Value=" " />

    <Item Key="ResultMessage" Value=" " />

    <Item Key="OrderObjectId" Value=" " />

    <Item Key="RedirectUrl" Value="" />

            </Result>
                    

Sub Merchant Payment Confirmation

The Sub Merchant Payment Method provides that the amount of the paid transaction is confirmed for transfer to the store, if it was predefined for the member.

Sub Merchant Payment Confirmation Integration, input information for Restful Service should be prepared in XML format and sent the following address with Post method.
https://www.wirecard.com.tr/SGate/Gate
The parameters for Sub Merchant Payment Confirmation method are as follows:

Service Input Parameters

Input Informations
Parameter Name Data Type Mandatory Description
ServiceType String Yes

Static Value: "CCMarketPlace"

OperationType String Yes

Static Value: "ReleasePayment"

Token Token Class Yes

Token Informations. The following internal table describes the internal parameters.

CommissionRate Int No

The amount of the commission to be applied to the store for payment.
Commision value should be multiplied by 100. No decimal values. E.g. 1,10 TL should be sent as 110

SubPartnerId Int Yes

Unique id value of the store record which will be processed payment.
This value is created by Wirecard during the Add Marketplace service call and is shared via the Add Marketplace response message.

MPAY String No

Free Value
Merchant’s unique transaction id can be sent via this parameter.

OrderId Guid -

The unique id value for the payment to be processed.
If the MPAY value is used for the Payment Confirmation, this value does not need to be sent. It should be used when MPAY is not sent.

Description String Yes

Transaction Description

Token Informations
Parameter Name Data Type Mandatory Description
UserCode String Yes

Merchant value is set by Wirecard

Pin String Yes

Pin value is set by Wirecard

Service Output Patameters

Parameter Name Data Type Description
StatusCode Int

Result of Add Marketplace Process
0: Process Successful
1: Process Unsuccessful

ResultCode String

The result code of add marketplace process which set by Wirecard

ResultMessage String

ResultCode value description.

Sample Service Call Codes


//Request
            var request= new MarketPlaceReleasePaymentRequest();
            request.ServiceType = "CCMarketPlace";
            request.OperationType = "ReleasePayment";
            request.SubPartnerId = subPartnerId;
            request.CommissionRate = 100; //%1
            request.MPAY = "";
            request.OrderId=Guid.NewGuid();
            request.Description = "Bilgisayar ödemesi";
            #region Token
            request.Token= new Token();
            request.Token.UserCode = settings.UserCode;
            request.Token.Pin = settings.Pin;
            #endregion
            var response = MarketPlaceReleasePaymentRequest.Execute(request, settings);
            return View(responseMessage);

//Request      
            MarketplaceReleasePaymentRequest marketplaceReleasePaymentRequest = new MarketplaceReleasePaymentRequest();  
                
            marketplaceReleasePaymentRequest.ServiceType = "CCMarketPlace";
            marketplaceReleasePaymentRequest.OperationType = "ReleasePayment";
               
            marketplaceReleasePaymentRequest.Token = new Token();
            marketplaceReleasePaymentRequest.Token.UserCode = settings.userCode;
            marketplaceReleasePaymentRequest.Token.Pin = settings.pin;
            marketplaceReleasePaymentRequest.SubPartnerId = Integer.parseInt(request.getParameter("subPartnerId"));
            marketplaceReleasePaymentRequest.CommissionRate = 100; //%1
            marketplaceReleasePaymentRequest.MPAY = "";
            marketplaceReleasePaymentRequest.OrderId=guid;
            marketplaceReleasePaymentRequest.Description = "Bilgisayar ödemesi";
  
		    String marketplaceReleasePaymentResponse = MarketplaceReleasePaymentRequest.execute(marketplaceReleasePaymentRequest,settings); //"MarketPlace ReleasePayment servisi başlatılması için gerekli servis çağırısını temsil eder."

//Request
            $request = new MarketPlaceSaleReleasePaymentRequest();
            $request->ServiceType = "CCMarketPlace";
            $request->OperationType = "ReleasePayment";
            $request->Token= new Token();
            $request->Token->UserCode=$settings->UserCode;
            $request->Token->Pin=$settings->Pin;
    
            $request->MPAY = "";
            $request->CommissionRate = 100;//%1
            $request->SubPartnerId = $_POST["subPartnerId"];
            $request->Description = "Odeme Onaylandı";
            $request->OrderId = Helper::Guid ();
            $response = MarketPlaceSaleReleasePaymentRequest::execute($request);

//Request
            req=MarketPlaceReleasePaymentRequest()
            req.ServiceType = "CCMarketPlace"
            req.OperationType = "ReleasePayment"
            req.SubPartnerId =request.POST.get('subPartnerId') 
            req.CommissionRate = "100"; #%1
            req.MPAY = ""
            req.OrderId=str(uuid.uuid4())
            req.Description = "Bilgisayar ödemesi"
            #region Token
            req.Token=Token()
            req.Token.UserCode=config.UserCode
            req.Token.Pin=config.Pin
            #endregion 
            message = req.execute(req,config) # Xml servis çağrısının başlatıldığı kısım

//Request
            req= Marketplacereleasepaymentrequest.new
            req.ServiceType = "CCMarketPlace"
            req.OperationType = "ReleasePayment"
            req.SubPartnerId =params[:subPartnerId]  
            req.CommissionRate = "100"; #%1
            req.MPAY = ""
            req.OrderId=SecureRandom.uuid
            req.Description = "Bilgisayar ödemesi"
            #region Token
            req.Token = Token.new
            req.Token.UserCode = @settings.UserCode
            req.Token.Pin = @settings.Pin 
            #endregion
      
            returnData= req.execute(req,@settings) # xml servis çağrısının başladığı kısım

//Request            
            const data={
                "ServiceType": request.ServiceType,
                "OperationType": request.OperationType,
                "Token": {
                    "UserCode":settings.userCode,
                    "Pin": settings.pin
                },
            "SubPartnerId": request.SubPartnerId,
            "CommissionRate": request.CommissionRate,
            "MPAY": request.MPAY,
            "OrderId":Guid.raw(),
            "Description": request.Description
            }


            wirecard.MarketPlaceReleasePayment(data).then(requestResult => {
                res.json(requestResult)
                }).catch(err => {
                    console.log(err)
            })

    //Request
    var request = new MarketPlaceReleasePaymentRequest();

    request.ServiceType = "CCMarketPlace";
    request.OperationType = "ReleasePayment";
    request.SubPartnerId = subPartnerId;
    request.CommissionRate = 100; //%1
    request.MPAY = "";
    request.OrderId = Guid.NewGuid();
    request.Description = "Bilgisayar ödemesi";

    #region Token
    request.Token = new Token();
    request.Token.UserCode = settings.UserCode;
    request.Token.Pin = settings.Pin;
    #endregion

    var response = MarketPlaceReleasePaymentRequest.Execute(request, settings);
    ServicesXmlResponse responseMessage = new ServicesXmlResponse();
    responseMessage.XmlResponse = response;
    return View(responseMessage);
 

//Request 
            <?xml version="1.0" encoding="utf-8" ?>
            <WIRECARD>
                <ServiceType>CCMarketPlace</ServiceType>
                <OperationType>ReleasePayment</OperationType>
                <Token>
                    <UserCode></UserCode>
                    <Pin></Pin>
                </Token>
                <SubPartnerId></SubPartnerId>
                <CommissionRate>100</CommissionRate>//1
                <MPAY></MPAY>
                <OrderId>28d56127-aea9-4362-83e1-6a7cb710f1d4</OrderId>
                <Description>ödeme açıklaması</Description>
            </WIRECARD>
//Response
            <?xml version="1.0" encoding="UTF-8" ?>
            <Result>
                <Item Key="StatusCode" Value="" />
                <Item Key="ResultCode" Value=" " />
                <Item Key="ResultMessage" Value=" " />
             </Result>