I've got following problem: I'm playing around with REST API (json) to manage Drive&Arrive system. I created Tour with positive result which contains SCEMID of whole Tour and SCEMID of one Stop that it contains. Every method related to Stop work properly e. g. - Read stop, Get stop etas - Stop's SCEMID is recognized and there's no problem. But when I send request like Read tour data there's error SCEMID_INVALID and when I send request which lists all Tours from my token, it results with message "SUCCESS" and nothing more, but there should be already about 8 Tours that I've made.
There are codes and results:
POST Create a tour https://driveandarrive.cloud.ptvgroup.c ... e=ptvemapp
JSON Body
Code: Select all
{
"Tour": {
"stops": [
{
"locationId": "7UQJCWSHICJF6Z4R34QIG2PNB",
"coordinate": {
"locationX": 52.227747,
"locationY": 21.007712
},
"earliestArrivalTime": "2019-12-09T10:00:00.0000000+01:00",
"latestDepartureTime": "2019-12-09T11:00:00.0000000+01:00",
"pta": "2019-12-09T15:00:00.0000000+01:00",
"serviceTimeAtStop": 3,
"useServicePeriodForRecreation": false,
"weightWhenLeavingStop": 100,
"stopPositionInTour": 0,
"useLocationAddress": false
}
],
"vehicle": {
"vehicleProfileID": "mg-truck-40t"
},
"options": {
"plannedTourStartTime": "2019-12-09T11:30:00+01:00",
"additionalInfo": "",
"doRefRouteCalc": false,
"disableDepartedEventOnGeofence": false
}
}
}
Code: Select all
{
"tour": {
"stops": [
{
"coordinate": {
"locationX": 52.227747,
"locationY": 21.007712
},
"earliestArrivalTime": "2019-12-09T10:00:00.0000000+01:00",
"latestDepartureTime": "2019-12-09T11:00:00.0000000+01:00",
"pta": "2019-12-09T15:00:00.0000000+01:00",
"serviceTimeAtStop": 3,
"useServicePeriodForRecreation": false,
"weightWhenLeavingStop": 100,
"stopPositionInTour": 0,
"locationId": "7UQJCWSHICJF6Z4R34QIG2PNB",
"useLocationAddress": false,
"scemid": "9YWR7TV8L3",
"source": "ptvemapp"
}
],
"vehicle": {
"vehicleProfileID": "mg-truck-40t"
},
"options": {
"plannedTourStartTime": "2019-12-09T11:30:00.0000000+01:00",
"additionalInfo": "",
"doRefRouteCalc": false,
"disableDepartedEventOnGeofence": false
},
"scemid": "YD1ATYO5AN",
"source": "ptvemapp"
},
"responseStatus": {
"errorCode": "SUCCESS",
"message": "4714088a-8374-48a4-b5f6-ab1e00c616df"
}
}
Result
Code: Select all
{
"responseStatus": {
"errorCode": "SCEMID_INVALID",
"message": "SCEM-ID not valid. SCEM-ID should be a 10-digit, case-sensitive, alphanumeric identifier of an existing tour.|d56e8f1f-d264-4163-a601-ab1e00d79ade",
"errors": [
{
"errorCode": "SCEMID_INVALID",
"message": "SCEM-ID not valid. SCEM-ID should be a 10-digit, case-sensitive, alphanumeric identifier of an existing tour."
}
]
}
}
Code: Select all
{
"stops": [
{
"coordinate": {
"locationX": 52.227747,
"locationY": 21.007712
},
"earliestArrivalTime": "2019-12-09T10:00:00.0000000+01:00",
"latestDepartureTime": "2019-12-09T11:00:00.0000000+01:00",
"pta": "2019-12-09T15:00:00.0000000+01:00",
"serviceTimeAtStop": 3,
"useServicePeriodForRecreation": false,
"weightWhenLeavingStop": 100,
"stopPositionInTour": 0,
"locationId": "7UQJCWSHICJF6Z4R34QIG2PNB",
"useLocationAddress": false,
"scemid": "9YWR7TV8L3",
"source": "ptvemapp"
}
],
"responseStatus": {
"errorCode": "SUCCESS",
"message": "d6461487-101f-4c5f-897a-ab1e00def5fa"
}
}