Change a Website

Definition: PATCH /v1/merchantsites/{id}

Where:
  • {id} – GlobalPay Website ID

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

Request:

PATCH https://paytest.smart2pay.com/v1/merchantsites/1000022
Authorization: Basic MTAwMDAyMjpUZHZzZFozUGVRNkN0TU9OeEJhbm9FR2g0RnZsLzR4eFFJc0NZd3d6ekRYZnFkdytscg==

{
  "MerchantSite": {
    "URL": "http://www.testupdate.com",
    "Active": true,
    "NotificationURL": "http://www.test.com/notifications_update.node",
    "IPList": "82.208.151.136",
    "Alias":"Test website 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"
    }
  }
}

Response:

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

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