Create a Website

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",
    "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"
    }
  }
}

Response:

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

{
  "MerchantSite": {
    "ID": 1000022,
    "Created": "20160317115423",
    "URL": "http://www.test.com",
    "Active": true,
    "NotificationURL": "http://www.test.com/notifications.node",
    "ApiKey": "TdvsdZ3PeQ6CtMONxBanoEGh4Fvl/4xxQIsCYwwzzDXfqdw+lr",
    "Alias": "Test website",
    "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"
    }
  }
}