List the passes of a transit
GET
https://api-v2.test.eldowallet.fr/transits/:transitId/passes
Lists, page by page, the passes of a transit template, with filters on status, creation date and search. Each pass includes departureDateTime, arrivalDateTime (format dd-MM-yyyy HH:mm) and the device types it is installed on (devices).
Good to know
- The wallet must have the TRANSIT pass type enabled.
Request
path parameters
transitIdstring requiredTransit template ID (`_id`).
query parameters
sortOrderstringAccepted, but the list is always sorted by creation date, newest first.enum:asc,descdefault:"desc"statusobjectFilter by status: `active`, `inactive`, `deleted`, `canceled` or `expired`. Repeat the parameter to combine several statuses.createdAtStartstringOnly returns passes created on or after this date (ISO 8601).searchstringPartial match on first name, last name, email, barcode, or the pass or client ID.sortBystringAccepted, but the list is always sorted by creation date, newest first.default:"createdAt"limitnumberNumber of passes per page, from 1 to 1000. Default: `10`.default:10min: 1max: 1000pagenumberPage number, starting at 1. Default: `1`.default:1min: 1
header parameters
x-langstringLanguage for responsesenum:en,frdefault:"en"
Responses
- 200
- 401
- 403
- 404
- 500
Schema
application/jsondocsobject[] requiredtotalDocsnumber requiredlimitnumber requiredpagenumbertotalPagesnumber requiredpagingCounternumber requiredhasPrevPageboolean requiredhasNextPageboolean requiredprevPagenumbernextPagenumber
UNAUTHORIZED
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
FORBIDDEN
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
MODEL_NOT_FOUND
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
UNKNOWN_ERROR
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email