Example JSON Request & Response - GET Centre

https://...surpass.com/api/v2/Centre/

{
  "count": 54,
  "top": 10,
  "skip": 0,
  "pageCount": 6,
  "nextPageLink": "https://...surpass.com/api/v2/Centre/?$skip=10",
  "prevPageLink": null,
  "response": [
    {
      "id": 1,
      "reference": "BTL001",
      "href": "https://...surpass.com/api/v2/Centre/1"
    },
    {
      "id": 2,
      "reference": "SHIP9999",
      "href": "https://...surpass.com/api/v2/Centre/2"
    },...
  ],
  "errors": null,
  "serverTimeZone": "GMT Standard Time"
}

https://...surpass.com/api/v2/Centre/232

https://...surpass.com/api/v2/Centre?reference=APITest  

{
  "count": null,
  "top": null,
  "skip": null,
  "pageCount": null,
  "nextPageLink": null,
  "prevPageLink": null,
  "response": [
    {
      "id": 232,
      "reference": "Test Centre",
      "href": "https://....surpass.com/api/v2/Centre/232",
      "name": "Test Centre",
      "randomiseTestForms": true,
      "hideSubjectsIncludedInSubjectGroups": false,
      "excludeItemStatistics": false,
      "addressLine1": "BTL",
      "addressLine2": "Saltswharf, Ashley Lane",
      "town": "Shipley",
      "county": {
        "id": 7,
        "href": "https://....surpass.com/api/v2/County/7",
        "name": "West Yorkshire"
      },
      "postCode": "BD177DB",
      "country": {
        "id": 0,
        "href": "https://....surpass.com/api/v2/Country/0",
        "name": "England"
      },
      "primaryContact": {
        "id": 287,
        "reference": "CentreFlock",
        "href": "https://....surpass.com/api/v2/User/287"
      },
      "technicalContact": {
        "id": 287,
        "reference": "CentreFlock",
        "href": "https://...surpass.com/api/v2/User/287"
      },
      "status": "Retired"
    }
  ],
  "errors": null,
  "serverTimeZone": "GMT Standard Time"
}


Feedback and Knowledge Base