Returns a list of available time intervals with their corresponding prices. This allows the device to display the options to the customer.
Device API
https://open-api-demo.devices.magicline.com/
https://redocly.sportalliance.com/_mock/apis/magicline/deviceapi/deviceapi/
- Demo tenant
https://open-api-demo.devices.magicline.com/open-api/device/time/price
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/deviceapi/deviceapi/open-api/device/time/price
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://open-api-demo.devices.magicline.com/open-api/device/time/price \
-H 'Accept-Language: de' \
-H 'Authorization: Bearer <YOUR_oauth2_HERE>'
{ "selection": [ { … } ] }
In which format the card number value was provided. All of the following examples represent the same card number
DECIMAL
- Card number is interpreted as string of decimal numbers.- Example :
"1173673668653440"
- Example :
HEX_MSB
- Card number is interpreted as hex string using big-endian (from most significant to least significant byte) order.- Example :
"042b73321a3180"
- Example :
HEX_LSB
- Card number is interpreted as hex string using little-endian (from least significant to most significant byte) order.- Example :
"80311a32732b04"
- Example :
- Demo tenant
https://open-api-demo.devices.magicline.com/open-api/device/time/identification
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/deviceapi/deviceapi/open-api/device/time/identification
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open-api-demo.devices.magicline.com/open-api/device/time/identification \
-H 'Accept-Language: de' \
-H 'Authorization: Bearer <YOUR_oauth2_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"identification": {
"type": "NUMBER",
"value": "1233588160",
"format": "DECIMAL"
}
}'
OK - identification has been successfully executed you can continue with usage endpoint
{ "text": "", "authorized": true }
Request
This should be conducted post-identification with shouldExecuteAction = false
in order to execute a dry-run, ensuring that customers can obtain the benefit, for example has contingent, etc. If this first request was successful, the benefit can be enabled. After the benefit was successfully enabled, this endpoint needs to be called again with shouldExecuteAction = true
, which will subsequently lead to the customer being charged or benefit being used. You can find more information about usage here
In which format the card number value was provided. All of the following examples represent the same card number
DECIMAL
- Card number is interpreted as string of decimal numbers.- Example :
"1173673668653440"
- Example :
HEX_MSB
- Card number is interpreted as hex string using big-endian (from most significant to least significant byte) order.- Example :
"042b73321a3180"
- Example :
HEX_LSB
- Card number is interpreted as hex string using little-endian (from least significant to most significant byte) order.- Example :
"80311a32732b04"
- Example :
In a dry run, when the value is set to false, you will receive a validation result without customer being charged. Learn more about it here.
- Demo tenant
https://open-api-demo.devices.magicline.com/open-api/device/time/usage
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/deviceapi/deviceapi/open-api/device/time/usage
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open-api-demo.devices.magicline.com/open-api/device/time/usage \
-H 'Accept-Language: de' \
-H 'Authorization: Bearer <YOUR_oauth2_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"identification": {
"type": "NUMBER",
"value": "1233588160",
"format": "DECIMAL"
},
"durationInSeconds": 30,
"shouldExecuteAction": true
}'
{ "text": "", "authorized": true, "price": { "amount": 20, "currency": "EUR" } }