Skip to main content
POST
/
api
/
keycards
cURL
curl --request POST \
  --url https://api.pricenow.dev/api/keycards \
  --header 'Content-Type: application/json' \
  --header 'accept-language: <accept-language>' \
  --header 'pratiq-channel-uuid: <pratiq-channel-uuid>' \
  --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

accept-language
enum<string>
required

Language of the response

Available options:
en,
de,
fr,
it
pratiq-channel-uuid
string
required

UUID of the sales channel

Query Parameters

personId
number
required

Body

application/json
validity
object
required
keycardType
enum<string>
required
Available options:
SWISSTRAVELPASS
cardId
string
required

Response

200 - application/json

Successful response

data
object
required