MarketPe APIs
Trip

Trip Get

trip/get

POST /trip/get

Fetch a single trip by its marketpe id.

Request Body

{
  "id": "marketpe1234"
}

Request Parameters

ParameterTypeRequiredDescription
idstringYesmarketpe generated trip id.

Response

status: "success"

{
  "status": "success",
  "data": {
    "id": "marketpe1234",
    "autoIdentifier": "TRIP-001",
    "identifier": "your-trip-ref",
    "fromPlace": "Hyderabad",
    "toPlace": "Bengaluru",
    "tripStatus": "IN_PROGRESS",
    ...
  }
}

status: "error"

{
  "status": "error",
  "message": "Trip not found"
}

Last updated on