Change a Merchant Site

Definition: PATCH /v1/merchantsites/{id}

Where:
  • {id} – GlobalPay Website ID

You can change the attributes of an already created Merchant Site by applying a PATCH, using the SiteId API Key.

Request:

PATCH https://paytest.smart2pay.com/v1/merchantsites/43078
Authorization: Basic NDMwNzg6YWFxb3NTd2lrd2R1SzJsNzJQQUdNYThrYUxxSHVCM2hIMzkvRUNjcWFENWhXNjlhU1g=

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

Response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
    "MerchantSite": {
      "MerchantID": 1045,
      "ID": 43078,
      "Created": "20180104161226",
      "URL": "http://www.testupdate.com",
      "Active": true,
      "NotificationURL": "http://www.test.com/notifications.node",
      "ApiKey": "aaqosSwikwduK2l72PAGMa8kaLqHuB3hH39/ECcqaD5hW69aSX",
      "Alias": "Test website_1 update",
      "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": "7995",
        "MainBusiness": "gaming"
        }
    }
}