Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

curl --verbose -X GET \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/blacklist?blacklistEntryId=0

Product API

Get product from-to

curl --verbose -X GET \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
"https://test1.mobileticket.se/api/v1/product?originLocation=7411233&destinationLocation=7417164&travellerCategoryId=a"

Get product for specific zones

curl --verbose -X POST --data @- \
--header "Content-Type: application/json" \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/product <<JSON
{
"group": {
"groupType": "zone",
"groupIds": ["820", "821"]
},
"fareCategoryIds": ["day"],
"productCategoryIds": ["single"],
"travellerCategoryIds": ["a"]
}
JSON

Get product for route

curl --verbose -X POST --data @- \
--header "Content-Type: application/json" \
--header "X-BoB-AuthToken: MY_AUTH_TOKEN" \
https://test1.mobileticket.se/api/v1/product <<JSON
{
"route": [
{"stopId": "7417164"},
{"stopId": "7411233"},
{"stopId": "7422840"}
],
"fareCategoryIds": ["day"],
"productCategoryIds": ["single"],
"travellerCategoryIds": ["a"]
}
JSON