Create a Merchant Site

Definition: POST /v1/merchantsites

For each of your websites you can create a different Merchant Site, which will have its own API Key.

Please note that the requests for the Merchant Sites will use the API Key created at merchant account level.

Request:

POST https://paytest.smart2pay.com/v1/merchantsites
Authorization: Basic MzAyMDE6aEo1Um9iWXg5cjdGZk53Q3ZIWTlMWEhxcXIrRkV6cmM3YUp2UVFrNEdhejFtZzdSeXk=

{
  "MerchantSite": {
    "URL": "http://www.test.com",
    "Active": true,
    "NotificationURL": "http://www.test.com/notifications.node",
    "IPList": "82.208.151.136",
    "Alias": "Test website_1",
    "Details": {
      "Name": "Stichting Smart2Pay",
      "Country": "PL",
      "City": "Warsaw",
      "Email": "test@test.com", 
      "Address": "BRINK 27C",
      "BankName": "ING",
      "AccountIBAN": "PL641050008610000023537933350",
      "AccountSWIFT": "1000002353794650",
      "BankSWIFTID": "ABNDDEFFXXX",
      "BankCode": "BTRLRO22",
      "VATNumber": "34206701",
      "RegistrationNumber": "NL 813236460B01",
      "MCC": "5945",
      "MainBusiness": "Hobby, Toy, and Game Shops"
    }
  }
}

Response:

HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8

{
    "MerchantSite": {
      "MerchantID": 1045,
      "ID": 43078,
      "Created": "20180104161226",
      "URL": "http://www.test.com",
      "Active": true,
      "NotificationURL": "http://www.test.com/notifications.node",
      "ApiKey": "aaqosSwikwduK2l72PAGMa8kaLqHuB3hH39/ECcqaD5hW69aSX",
      "Alias": "Test website_1",
      "IPList": "82.208.151.136",
      "Details": {
        "Reasons": null,
        "Name": "Stichting Smart2Pay",
        "Country": "PL",
        "City": "Warsaw",
        "Email": "test@test.com",
        "Address": "BRINK 27C",
        "BankName": "ING",
        "AccountIBAN": "PL641050008610000023537933350",
        "AccountSWIFT": "1000002353794650",
        "BankSWIFTID": "ABNDDEFFXXX",
        "BankCode": "BTRLRO22",
        "VATNumber": "34206701",
        "RegistrationNumber": "NL 813236460B01",
        "MCC": "5945",
        "MainBusiness": "Hobby, Toy, and Game Shops"
        }
    }
}