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

# Get Trip Cost Breakdown by trip Guid

Returns the itemized cost/charge lines recorded for a single trip, looked up by its trip guid.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/rides/getTripCostBreakdown": {
      "get": {
        "tags": [
          "Rides"
        ],
        "summary": "Get Trip Cost Breakdown by trip Guid",
        "description": "Returns the itemized cost/charge lines recorded for a single trip, looked up by its trip guid.",
        "operationId": "get-tripCostBreakdowm",
        "parameters": [
          {
            "name": "trip_guid",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TripCharges",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TripCostBreakdownModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TripCostBreakdownModel"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TripCostBreakdownModel"
                  }
                }
              },
              "text/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TripCostBreakdownModel"
                  }
                }
              }
            }
          },
          "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 itemized cost/charge breakdown recorded for a single trip, looked up by its internal trip GUID.",
        "x-ai-when-to-use": "The user asks what a trip cost, how a fare was computed, or needs charge lines for billing reconciliation.",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "Array of cost-breakdown lines (charge descriptions and amounts) for the trip; 500 when the api_key is not accessible.",
        "x-ai-required-permission": "tripManagement",
        "x-ai-display": {
          "title": "Cost Breakdown",
          "columns": [
            {
              "field": "description",
              "header": "Description"
            },
            {
              "field": "count",
              "header": "Count"
            },
            {
              "field": "rate",
              "header": "Rate"
            },
            {
              "field": "ext_amount",
              "header": "Amount"
            },
            {
              "field": "is_payee",
              "header": "Payee"
            }
          ]
        },
        "x-ai-inputs": [
          {
            "name": "trip_guid",
            "label": "Trip",
            "control": "select",
            "options": {
              "operation": "get-ridesfordate",
              "valueField": "trip_guid",
              "labelTemplate": "{rider.last_name}, {rider.first_name} — {pickup.pickup_time}",
              "args": "date={date};includeUnScheduled=true"
            }
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "TripCostBreakdownModel": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "count": {
            "format": "double",
            "type": "number"
          },
          "rate": {
            "format": "double",
            "type": "number"
          },
          "is_payee": {
            "type": "boolean"
          },
          "ext_amount": {
            "format": "double",
            "type": "number"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```