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

# Add a trip offer.

Add a trip offer.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/tripoffers/addTripOffer": {
      "post": {
        "tags": [
          "TripOffer"
        ],
        "summary": "Add a trip offer.",
        "operationId": "post-addtripoffer",
        "parameters": [
          {
            "name": "apiKey",
            "in": "query",
            "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"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTripOfferModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTripOfferModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/AddTripOfferModel"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/AddTripOfferModel"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/AddTripOfferModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Trip Offer Added",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripOfferModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripOfferModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/TripOfferModel"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/TripOfferModel"
                }
              }
            }
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "AddTripOfferModel": {
        "required": [
          "space_type",
          "on_trip_accepted_webhook_url",
          "on_trip_auto_expire_webhook_url",
          "on_trip_rejected_webhook_url",
          "customer",
          "import_distance",
          "trip_start_date_utc",
          "authorization_number",
          "pickup",
          "dropoff"
        ],
        "type": "object",
        "properties": {
          "space_type": {
            "type": "string"
          },
          "assignable_to_client_api_keys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "on_trip_accepted_webhook_url": {
            "type": "string"
          },
          "on_trip_auto_expire_webhook_url": {
            "type": "string"
          },
          "on_trip_rejected_webhook_url": {
            "type": "string"
          },
          "customer": {
            "$ref": "#/components/schemas/TripOfferCustomerModel"
          },
          "import_distance": {
            "format": "int32",
            "type": "integer"
          },
          "trip_start_date_utc": {
            "format": "date-time",
            "type": "string"
          },
          "authorization_number": {
            "type": "string"
          },
          "additional_passengers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TripOfferAdditonalPassengerModel"
            }
          },
          "pickup": {
            "$ref": "#/components/schemas/TripOfferServiceModel"
          },
          "dropoff": {
            "$ref": "#/components/schemas/TripOfferServiceModel"
          },
          "offer_expires_utc": {
            "format": "date-time",
            "type": "string"
          },
          "trip_type": {
            "type": "string"
          }
        }
      },
      "TripOfferCustomerModel": {
        "required": [
          "customer_id",
          "last_name",
          "first_name",
          "address",
          "city",
          "state",
          "zip_code"
        ],
        "type": "object",
        "properties": {
          "customer_id": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "middle_name": {
            "type": "string"
          },
          "salutation": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "address1": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "zip_code": {
            "type": "string"
          },
          "lon": {
            "format": "float",
            "type": "number"
          },
          "lat": {
            "format": "float",
            "type": "number"
          },
          "phone": {
            "type": "string"
          },
          "fax": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "mobile_phone": {
            "type": "string"
          },
          "date_of_birth": {
            "format": "date-time",
            "type": "string"
          },
          "gender": {
            "type": "string"
          }
        }
      },
      "TripOfferAdditonalPassengerModel": {
        "required": [
          "space_type",
          "number_of_passengers"
        ],
        "type": "object",
        "properties": {
          "space_type": {
            "type": "string"
          },
          "number_of_passengers": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "TripOfferServiceModel": {
        "required": [
          "service_date_utc",
          "address",
          "city",
          "state",
          "zip_code",
          "lon",
          "lat"
        ],
        "type": "object",
        "properties": {
          "service_date_utc": {
            "format": "date-time",
            "type": "string"
          },
          "location_name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "address1": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "zip_code": {
            "type": "string"
          },
          "lon": {
            "format": "double",
            "type": "number"
          },
          "lat": {
            "format": "double",
            "type": "number"
          },
          "requested_pickup_time_utc": {
            "format": "date-time",
            "type": "string"
          },
          "appointment_time_utc": {
            "format": "date-time",
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "trip_charge": {
            "format": "double",
            "type": "number"
          },
          "comment": {
            "type": "string"
          },
          "service_level": {
            "type": "string"
          }
        }
      },
      "TripOfferModel": {
        "type": "object",
        "properties": {
          "TripGUID": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "TripProviderId": {
            "format": "int32",
            "type": "integer"
          },
          "SpaceType": {
            "type": "string"
          },
          "TripAssignmentDetailsId": {
            "format": "int32",
            "type": "integer"
          },
          "TripRejectionDetailsId": {
            "format": "int32",
            "type": "integer"
          },
          "CustomerId": {
            "format": "int32",
            "type": "integer"
          },
          "ImportDistance": {
            "format": "int32",
            "type": "integer"
          },
          "TripStartDateUtc": {
            "format": "date-time",
            "type": "string"
          },
          "AuthNo": {
            "type": "string"
          },
          "IsCanceled": {
            "type": "boolean"
          },
          "AutoRejectTripOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "PickupEvent": {
            "$ref": "#/components/schemas/ServiceModel"
          },
          "DropoffEvent": {
            "$ref": "#/components/schemas/ServiceModel"
          },
          "HasWebhooks": {
            "type": "boolean"
          },
          "TripType": {
            "format": "int32",
            "enum": [
              1,
              2,
              3
            ],
            "type": "integer"
          },
          "AdditonalPassengers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdditonalPassengerModel"
            }
          },
          "AssignableToClients": {
            "type": "array",
            "items": {
              "format": "int32",
              "type": "integer"
            }
          }
        }
      },
      "ServiceModel": {
        "type": "object",
        "properties": {
          "Id": {
            "format": "int64",
            "type": "integer"
          },
          "AssignedServiceId": {
            "format": "int32",
            "type": "integer"
          },
          "ServiceDateUtc": {
            "format": "date-time",
            "type": "string"
          },
          "Address": {
            "type": "string"
          },
          "Address1": {
            "type": "string"
          },
          "City": {
            "type": "string"
          },
          "State": {
            "type": "string"
          },
          "Zip": {
            "type": "string"
          },
          "lon": {
            "format": "double",
            "type": "number"
          },
          "lat": {
            "format": "double",
            "type": "number"
          },
          "ActualStartTimeUtc": {
            "format": "date-time",
            "type": "string"
          },
          "ActualEndTimeUtc": {
            "format": "date-time",
            "type": "string"
          },
          "StartLon": {
            "format": "double",
            "type": "number"
          },
          "StartLat": {
            "format": "double",
            "type": "number"
          },
          "EndLon": {
            "format": "double",
            "type": "number"
          },
          "EndLat": {
            "format": "double",
            "type": "number"
          },
          "Name": {
            "type": "string"
          },
          "Comment": {
            "type": "string"
          },
          "IsWillCall": {
            "format": "int32",
            "type": "integer"
          },
          "ServiceEventType": {
            "format": "int32",
            "enum": [
              1,
              2
            ],
            "type": "integer"
          },
          "RequestedPickupTimeUtc": {
            "format": "date-time",
            "type": "string"
          },
          "RequestedDropoffTimeUtc": {
            "format": "date-time",
            "type": "string"
          },
          "Phone": {
            "type": "string"
          },
          "TripCharge": {
            "format": "double",
            "type": "number"
          },
          "AmountPaid": {
            "format": "double",
            "type": "number"
          },
          "ServiceLevel": {
            "type": "string"
          },
          "Other": {
            "type": "string"
          },
          "Caller": {
            "type": "string"
          },
          "LocationName": {
            "type": "string"
          },
          "WillCallTimeUtc": {
            "format": "date-time",
            "type": "string"
          },
          "Other1": {
            "type": "string"
          },
          "NotificationStatus": {
            "type": "string"
          },
          "OrigOther": {
            "type": "string"
          },
          "OrigOther1": {
            "type": "string"
          },
          "OtherMulti": {
            "type": "string"
          },
          "OrigOtherMulti": {
            "type": "string"
          }
        }
      },
      "AdditonalPassengerModel": {
        "type": "object",
        "properties": {
          "SpaceType": {
            "type": "string"
          },
          "NumberOfPassengers": {
            "format": "int32",
            "type": "integer"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```