Skip to content

Keycard Validation

Validate keycard

This endpoint provides functionality to check if the customer's keycard is valid before operating with it.

Supported keycards

Keycard which can be validated with this endpoint are next: - swisspass

How to validate keycard

To do that, it's required to provide keycardNumber and type. For some keycards there might be additional properties.

Here is a sample of successful swisspass keycard validation which requires additionalProperty.postalCode.

{
    "type": "swisspass",
    "KeycardNumber":"S44069670815",
    "additionalProperty":[
        {
            "propertyId":"postalCode",
            "value": "6600"
        }
    ]
}
POST https://api.discover.swiss/test/market/v1/keycard/validate
{
    "isValid": true,
    "validationMessages": []
}

Last update: February 1, 2024 17:36:45