Auto detect login session.If you are a pelanggan it only find your history, if you are a petugas it gets all user history.
{ "startDate": "string", "endDate": "string" }
curl --location --request POST 'https://kereta.api.fadhilkholaf.my.id/pembelian-tiket/history' \ --header 'Cookie: token=' \ --header 'Content-Type: application/json' \ --data-raw '{ "startDate": "string", "endDate": "string" }'
{ "message": "string", "data": [ { "id": "string", "pelangganId": "string", "jadwalId": "string", "createdAt": "string", "updatedAt": "string" } ] }