Skip to main content

Arrived by GPS

POST{{server}}/api/v1/smart/ticket/arrived

This endpoint is used to notify the server that a reserved smart ticket has arrived at a specific GPS location.

Request

  • gps (object, required) - The GPS coordinates of the smart ticket's current location.

    • latitude (number, required) - The latitude of the location.

    • longitude (number, required) - The longitude of the location.

Response

It returns 204 if the check was success.

Request​

Authorization​

HeaderValue
AuthorizationSmartToken {{smartToken}}

Headers​

KeyValue
Acceptapplication/json

Body (json)​

{
"gps": {
"latitude": 47.448782,
"longitude": 19.01472
}
}

Code snippets​

curl -X POST '{{server}}/api/v1/smart/ticket/arrived' \
-H 'Accept: application/json' \
-H 'Authorization: SmartToken {{smartToken}}' \
-H 'Content-Type: application/json' \
-d '{
"gps": {
"latitude": 47.448782,
"longitude": 19.01472
}
}'

Examples (2)​

Example request
POST{{server}}/api/v1/smart/ticket/arrived
Headers (1)
KeyValue
Acceptapplication/json
Body
{
"gps": {
"latitude": 47.448782,
"longitude": 19.01472
}
}
Example response 204 No Content
No response body