Skip to main content
POST
/
api
/
keycards
cURL
curl --request POST \
  --url https://api.pricenow.dev/api/keycards \
  --header 'Content-Type: application/json' \
  --header 'pratiq-client-id: <pratiq-client-id>' \
  --data '
{
  "validity": {
    "from": "2023-11-07T05:31:56Z",
    "to": "2023-11-07T05:31:56Z"
  },
  "keycardType": "SWISSTRAVELPASS",
  "cardId": "<string>"
}
'
{
  "data": {
    "id": 123,
    "dataCarrierId": "<string>",
    "personId": 123,
    "metaInformation": {},
    "type": "SKIDATA"
  }
}

Headers

pratiq-client-id
required

Global Webshop Client Id

pratiq-channel-uuid
string

UUID of the sales channel

Query Parameters

personId
number
required

Body

application/json
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
validity
object
required
keycardType
enum<string>
required
Available options:
SWISSTRAVELPASS
cardId
string
required

Response

200 - application/json

Successful response

data
object | null
required