POST_api_credentials_status

POST /api/credentials/status

This resource is requested after the MT20W has written No Tour data to a credential.

Request

  • Body
    • Type: application/json
  • Schema:

    {
    "primary": "string",
    "badgeId": "string",
    "status": "string",
    "crc16": "string"
    }
    
  • Example: Write success**

    {
    "primary": "SYLlKMxuJufanUE20or+qQ==",
    "badgeId": "22",
    "status": "0000",
    "crc16": "BEB3",
    }
    
  • Example: Write failure**

    {
    "primary": "SYLlKMxuJufanUE20or+qQ==",
    "badgeId": "22",
    "status": "0001",
    "crc16": "BEB3",
    }
    

Response

  • HTTP status code 200 – OK
  • HTTP status code 404 – Not Found

  • "status" – Bit field, hex string representing a success/failure code

  • 0x0000 – Success
  • Bit 0 – Overall success/failure bit
  • Bit 1-15 – Unused
  • “crc16” – xmodem CRC16 for valid no-tour sector data combined.