To start a ticket, we need to set the start time, duration, price, and so on for the vehicle and park we want to create the ticket for.
The first section of the message contains the context. After that, you will find the "type": "ParkingTicket". From here you will find the data to be sent.
{ "@context": { "sc": "https:\/\/schema.org\/", "sp": "https:\/\/schema.parkeon.com\/", "ssp": "{{domain}}/{{platform}}/", "id": { "@id": "@id" }, "type": { "@id": "@type" }, "park": { "@id": "sp:park", "@type": "@id" }, "tariffArea": { "@id": "sp:tariffArea", "@type": "@id" }, "freetimeArea": { "@id": "sp:freetimeArea", "@type": "@id" }, "validityArea": { "@id": "sp:validityArea", "@container": "@list" }, "parkingAudience": { "@id": "sp:parkingAudience", "@type": "@id" }, "parkingTicket": { "@id": "sp:parkingTicket", "@type": "@id" }, "startTime": { "@id": "sc:startTime", "@type": "sc:DateTime" }, "endTime": { "@id": "sc:endTime", "@type": "sc:DateTime" }, "currency": { "@id": "sc:currency" }, "parkingAmount": { "@id": "sp:parkingAmount" }, "parkingTaxAmount": { "@id": "sp:parkingTaxAmount" }, "view": { "@id": "sp:view" }, "ParkingTicketProduct": { "@id": "sp:ParkingTicketProduct" }, "ParkingTicketExtensionProduct": { "@id": "sp:ParkingTicketExtensionProduct" }, "ParkingTicketStopProduct": { "@id": "sp:ParkingTicketStopProduct" }, "serviceContext": { "@id": "sp:serviceContext" }, "ServiceContext": { "@id": "sp:ServiceContext" }, "serviceChannel": { "@id": "sp:serviceChannel" }, "DeviceServiceChannel": { "@id": "sp:DeviceServiceChannel" }, "deviceType": { "@id": "sp:deviceType", "@type": "@id" }, "deviceManufacturer": { "@id": "sp:deviceManufacturer" }, "operatingSystem": { "@id": "sc:operatingSystem" }, "application": { "@id": "sc:application" }, "SoftwareApplication": { "@id": "sc:SoftwareApplication" }, "author": { "@type": "sc:Organization", "@id": "sc:author" }, "name": { "@id": "sc:name", "@container": "@language" }, "softwareVersion": { "@id": "sc:softwareVersion" }, "channelType": { "@id": "sp:channelType", "@type": "@id" }, "ParkingTicketOperation": { "@id": "sp:ParkingTicketOperation" }, "ticketOperation": { "@id": "sp:ticketOperation", "@type": "sp:ParkingTicketOperation" }, "operationTime": { "@id": "sp:operationTime", "@type": "sc:DateTime" }, "ticketProduct": { "@id": "sp:ticketProduct", "@type": "sp:ParkingTicketProduct" }, "extensionTicketProduct": { "@id": "sp:ticketProduct", "@type": "sp:ParkingTicketExtensionProduct" }, "stopTicketProduct": { "@id": "sp:ticketProduct", "@type": "sp:ParkingTicketStopProduct" }, "productID": { "@id": "sc:productID" }, "isExtendable": { "@id": "sp:isExtendable" }, "isStoppable": { "@id": "sp:isStoppable" }, "licensePlate": { "@id": "sp:licensePlate", "@type": "sp:LicensePlate" }, "LicensePlate": { "@id": "sp:LicensePlate" }, "plate": { "@id": "sp:plate" }, "duration": { "@id": "sp:duration", "@type": "sp:Duration" }, "paidAndFreeDuration": { "@id": "sp:paidAndFreeDuration", "@type": "sp:Duration" }, "paidDuration": { "@id": "sp:paidDuration", "@type": "sp:Duration" }, "freeDuration": { "@id": "sp:freeDuration", "@type": "sp:Duration" }, "serviceFeeAmount": { "@id": "sp:serviceFeeAmount" }, "serviceFeeTaxAmount": { "@id": "sp:serviceFeeTaxAmount" }, "parkingContract": { "@id": "sp:parkingContract", "@type": "@id" }, "ParkingTicket": { "@id": "sp:ParkingTicket" }, "disambiguatingToken": { "@id": "sp:disambiguatingToken" } }, "type": "ParkingTicket", "park": "ssp:businesscustomer\/parks\/parks\/123", "disambiguatingToken": "bc699c06b75b11ebacd0506b8d971f0003", "ticketOperation": { "type": "ParkingTicketOperation", "serviceContext": { "type": "ServiceContext", "serviceChannel": { "type": "DeviceServiceChannel", "deviceType": "sp:Smartphone", "deviceManufacturer": "flowbird", "operatingSystem": "Ubuntu", "application": { "type": "SoftwareApplication", "author": { "name": { "x-default": "Flowbird", "en": "Flowbird" } }, "name": { "x-default": "Flowbird App", "en": "Flowbird App" }, "softwareVersion": "MAJOR.MINOR.PATCH" }, "channelType": "sp:SaleApplication" } }, "operationTime": "2022-06-14T09:00:00Z", "ticketProduct": { "park": "ssp:businesscustomer\/parks\/parks\/8526", "endTime": "2022-06-14T19:00:00Z", "duration": "PT10H", "paidDuration": "PT10H", "freeDuration": "PT0S", "paidAndFreeDuration": "PT10H", "parkingAmount": 13.5, "parkingTaxAmount": 0, "currency": "EUR", "serviceFeeAmount": 0, "serviceFeeTaxAmount": 0, "isExtendable": false, "isStoppable": true, "type": "ParkingTicketProduct", "licensePlate": { "type": "LicensePlate", "plate": "LXD565" }, "startTime": "2022-06-14T09:00:00Z", "parkingAudience": "ssp:parking\/tariffs\/parkingAudiences\/1643", "tariffArea": "ssp:businesscustomer\/parks\/areas\/11903", "validityArea": [{ "id": "ssp:businesscustomer\/parks\/areas\/11903" }] } } } |