Regenerate credentials for a Website

You can regenerate the credentials for a website by performing an action based on POST HTTP request. Using some filters in the query string, this method regenerates the ApiKey for the specified site.

Definition: POST /v1/merchantsites/{id}/regenerateapikey

Where:
  • {id} – GlobalPay Website ID

Request:

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

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": "4hccSiLV56BV0IduaFvbzvaGEAdG8Bhv20hAgv7kTOZNe4KIhB",
    "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"
    }
  }
}