How do I manually cancel a travelcard (as we can't automatically do it at present)


135
views
0
11 months ago by

1 Answer


0
11 months ago by

URL:

https://sfs-trains.travel.cloud/booking/{sfsBookingId}/ticket/{couponId}/cancel

 

Headers:

Authorization: Bearer xxxxxxxxxxxxxxx

x-clicktravel-application-gateway-token: c516d40922575f643c3daf68205887889871b930

Content-Type: application/vnd.clicktravel.schema-v1+json

 

payload:

{
"credentials": {
"credentials": "Y2xpY2t0cmF2ZWw6Y2xpY2t0cmF2ZWw0ODVlNHprOlJBUw==",
"channel": "OPR"
}
}

 

Then update Travel booking:

"cancelledDateTime": "2017-06-28T10:12:19.132+0000",
"cancellingDateTime": "2017-06-28T10:12:18.132+0000",

need adding to bookingDatesItem

 

And update CloudSearch:

{"Subject":"travel.BookingUpdatedEvent","Message":"{\"bookingId\":\"100005668\",\"principal\":\"1535ffdd-f524-4d59-8e22-ec1d0680fc2b\"}"}

 

Please login to add an answer/comment or follow this question.