---
updatedAt: 2026-09-23T20:14:48.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Get Trip Guids By Query

Get an array of trip Guids by funding source Id and date range

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/rides/queryByFsid": {
      "post": {
        "tags": [
          "RidesQuery"
        ],
        "summary": "Get Trip Guids By Query",
        "description": "Get an array of trip Guids by funding source Id and date range",
        "operationId": "post-ridesquerybyfsid",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RidesQueryByFSIDModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RidesQueryByFSIDModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/RidesQueryByFSIDModel"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/RidesQueryByFSIDModel"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/RidesQueryByFSIDModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Ride Ids",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        },
        "x-ai-description": "Returns the trip GUIDs for one funding source ID over a date range. The range must be 7 days or less (400 otherwise); body carries APIKey, FundingSourceId, StartDate, EndDate. Read-only; POST only carries the query.",
        "x-ai-when-to-use": "You need the trip GUIDs for a funding source across several days and have its funding source ID (from GET fundingsources).",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "Array of results carrying trip GUIDs; each feeds rides/getTripByGuid, tripstatus/getTripStatusByTripGuid, and the guid-based cancel/uncancel endpoints. 403 when the APIKey or funding source is not accessible.",
        "x-ai-required-permission": "tripManagement",
        "x-ai-display": {
          "title": "Matching Trip GUIDs",
          "key": "trip_guid",
          "columns": []
        },
        "x-ai-inputs": [
          {
            "name": "funding_source_id",
            "label": "Funding Source",
            "control": "select",
            "options": {
              "operation": "get-fundingsource",
              "valueField": "funding_source_id",
              "labelTemplate": "{name}"
            }
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "RidesQueryByFSIDModel": {
        "type": "object",
        "properties": {
          "start_date": {
            "format": "date-time",
            "type": "string"
          },
          "end_date": {
            "format": "date-time",
            "type": "string"
          },
          "funding_source_id": {
            "format": "int32",
            "type": "integer"
          },
          "tp_api_key": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```