GET Access/pass?deviceid={deviceid}&tagid={tagid}&datetime={datetime}&batch={batch}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
deviceid

UID of the access device

string

Required

tagid

Badge ID that must be in the same format as stored on Sportrick (the same shown in the registry page of the customer)

string

Required

datetime

Date and time of the access (format: YYYY-MM-DD)

date

Required

batch

True if it's not a live pass, but it's happened in the past (eg. the device was offline or the live pass returned an error)

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

AccessControlResponse
NameDescriptionTypeAdditional information
Allowed

boolean

None.

LockedReason

AccessLockedReason

None.

SubscriptionID

string

None.

SubscriptionType

AccessSubscriptionType

None.

SubscriptionName

string

None.

SubscriptionExpirationDate

date

None.

RemainingAccesses

integer

None.

Customer

Customer

None.

ExtraInfo

AccessExtraInfo

None.

RelayOpenDuration

time interval

None.

TagMessage

string

None.

IsExit

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Allowed": true,
  "LockedReason": "None",
  "SubscriptionID": "sample string 2",
  "SubscriptionType": "Booking",
  "SubscriptionName": "sample string 3",
  "SubscriptionExpirationDate": "2025-05-10T10:37:54.8805221+02:00",
  "RemainingAccesses": 1,
  "Customer": {
    "id": "sample string 1",
    "lastname": "sample string 2",
    "firstname": "sample string 3",
    "dob": "2025-05-10T10:37:54.8805221+02:00",
    "birthplace": "sample string 4",
    "email": "sample string 5",
    "gender": "sample string 6",
    "address": "sample string 7",
    "zipcode": "sample string 8",
    "medicalexpirydate": "2025-05-10T10:37:54.8805221+02:00",
    "city": "sample string 9",
    "state": "sample string 10",
    "phone": "sample string 11",
    "notes": "sample string 12",
    "taxcode": "sample string 13",
    "badgeid": "sample string 14",
    "memexpirydate": "2025-05-10T10:37:54.8805221+02:00",
    "typerow": "sample string 15",
    "ecommerce": true,
    "mobilephone": "sample string 16",
    "medicalexpirydate2": "2025-05-10T10:37:54.8805221+02:00",
    "vatcode": "sample string 17",
    "insertdate": "2025-05-10T10:37:54.8805221+02:00",
    "employee": true,
    "customerstate": "sample string 20",
    "statscurrentseason": 21.0,
    "statspastseason": 22.0,
    "statslast3months": 23.0,
    "statslast6months": 24.0,
    "debt": 25.0,
    "lastaccess": "2025-05-10T10:37:54.8805221+02:00",
    "lastedit": "2025-05-10T10:37:54.8805221+02:00",
    "activityexpiredate": "2025-05-10T10:37:54.8805221+02:00",
    "marketingagreement": true,
    "notifyagreement": true,
    "lastlogin": "2025-05-10T10:37:54.8805221+02:00",
    "myzoneid": "sample string 26",
    "massivedeleteid": 1.0,
    "progressive": 1,
    "userowner": "sample string 27",
    "userassignee": "sample string 28",
    "branch": [
      {
        "id": "sample string 1",
        "name": "sample string 2",
        "ecomm_name": "sample string 3"
      },
      {
        "id": "sample string 1",
        "name": "sample string 2",
        "ecomm_name": "sample string 3"
      }
    ]
  },
  "ExtraInfo": "None",
  "RelayOpenDuration": "00:00:00.1234567",
  "TagMessage": "sample string 5",
  "IsExit": true
}

application/xml, text/xml

Sample:
<AccessControlResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel.Responses">
  <Allowed>true</Allowed>
  <Customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel">
    <d2p1:activityexpiredate>2025-05-10T10:37:54.8805221+02:00</d2p1:activityexpiredate>
    <d2p1:address>sample string 7</d2p1:address>
    <d2p1:badgeid>sample string 14</d2p1:badgeid>
    <d2p1:birthplace>sample string 4</d2p1:birthplace>
    <d2p1:branch>
      <d2p1:Branch>
        <d2p1:ecomm_name>sample string 3</d2p1:ecomm_name>
        <d2p1:id>sample string 1</d2p1:id>
        <d2p1:name>sample string 2</d2p1:name>
      </d2p1:Branch>
      <d2p1:Branch>
        <d2p1:ecomm_name>sample string 3</d2p1:ecomm_name>
        <d2p1:id>sample string 1</d2p1:id>
        <d2p1:name>sample string 2</d2p1:name>
      </d2p1:Branch>
    </d2p1:branch>
    <d2p1:city>sample string 9</d2p1:city>
    <d2p1:customerstate>sample string 20</d2p1:customerstate>
    <d2p1:debt>25</d2p1:debt>
    <d2p1:dob>2025-05-10T10:37:54.8805221+02:00</d2p1:dob>
    <d2p1:ecommerce>true</d2p1:ecommerce>
    <d2p1:email>sample string 5</d2p1:email>
    <d2p1:employee>true</d2p1:employee>
    <d2p1:firstname>sample string 3</d2p1:firstname>
    <d2p1:gender>sample string 6</d2p1:gender>
    <d2p1:id>sample string 1</d2p1:id>
    <d2p1:insertdate>2025-05-10T10:37:54.8805221+02:00</d2p1:insertdate>
    <d2p1:lastaccess>2025-05-10T10:37:54.8805221+02:00</d2p1:lastaccess>
    <d2p1:lastedit>2025-05-10T10:37:54.8805221+02:00</d2p1:lastedit>
    <d2p1:lastlogin>2025-05-10T10:37:54.8805221+02:00</d2p1:lastlogin>
    <d2p1:lastname>sample string 2</d2p1:lastname>
    <d2p1:marketingagreement>true</d2p1:marketingagreement>
    <d2p1:massivedeleteid>1</d2p1:massivedeleteid>
    <d2p1:medicalexpirydate>2025-05-10T10:37:54.8805221+02:00</d2p1:medicalexpirydate>
    <d2p1:medicalexpirydate2>2025-05-10T10:37:54.8805221+02:00</d2p1:medicalexpirydate2>
    <d2p1:memexpirydate>2025-05-10T10:37:54.8805221+02:00</d2p1:memexpirydate>
    <d2p1:mobilephone>sample string 16</d2p1:mobilephone>
    <d2p1:myzoneid>sample string 26</d2p1:myzoneid>
    <d2p1:notes>sample string 12</d2p1:notes>
    <d2p1:notifyagreement>true</d2p1:notifyagreement>
    <d2p1:phone>sample string 11</d2p1:phone>
    <d2p1:progressive>1</d2p1:progressive>
    <d2p1:state>sample string 10</d2p1:state>
    <d2p1:statscurrentseason>21</d2p1:statscurrentseason>
    <d2p1:statslast3months>23</d2p1:statslast3months>
    <d2p1:statslast6months>24</d2p1:statslast6months>
    <d2p1:statspastseason>22</d2p1:statspastseason>
    <d2p1:taxcode>sample string 13</d2p1:taxcode>
    <d2p1:typerow>sample string 15</d2p1:typerow>
    <d2p1:userassignee>sample string 28</d2p1:userassignee>
    <d2p1:userowner>sample string 27</d2p1:userowner>
    <d2p1:vatcode>sample string 17</d2p1:vatcode>
    <d2p1:zipcode>sample string 8</d2p1:zipcode>
  </Customer>
  <ExtraInfo>None</ExtraInfo>
  <IsExit>true</IsExit>
  <LockedReason>None</LockedReason>
  <RelayOpenDuration>PT0.1234567S</RelayOpenDuration>
  <RemainingAccesses>1</RemainingAccesses>
  <SubscriptionExpirationDate>2025-05-10T10:37:54.8805221+02:00</SubscriptionExpirationDate>
  <SubscriptionID>sample string 2</SubscriptionID>
  <SubscriptionName>sample string 3</SubscriptionName>
  <SubscriptionType>Booking</SubscriptionType>
  <TagMessage>sample string 5</TagMessage>
</AccessControlResponse>