---
updatedAt: 2025-09-29T10:27:27.000Z
agentTools:
  projectIndex: https://route-stripe.readme.io/llms.txt
---

# Get Plans

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "RouteStripe API",
    "version": "1.0.0",
    "description": "Unified API specification for managing routing, plans, visits, vehicles, warehouses, members, attachments, and companies in a logistics system.\nSchemas, parameters, request bodies, and responses are consolidated to eliminate duplication.\n"
  },
  "servers": [
    {
      "url": "https://api.routestripe.com",
      "description": "Production"
    },
    {
      "url": "https://test-api.routestripe.com",
      "description": "Test"
    },
    {
      "url": "http://routestripe.local:81",
      "description": "Development"
    }
  ],
  "tags": [
    {
      "name": "Plans"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key"
      }
    },
    "parameters": {
      "CompanyIdQueryParam": {
        "name": "company_id",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer"
        },
        "description": "Filter by company ID."
      }
    },
    "schemas": {
      "ApiResponse": {
        "type": "object",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "success",
              "fail"
            ]
          },
          "data": {
            "type": "object",
            "items": {}
          }
        },
        "additionalProperties": false
      },
      "BaseItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ExternalWarehouseId": {
        "type": "object",
        "properties": {
          "external_warehouse_id": {
            "type": "string"
          }
        }
      },
      "StartLocationType": {
        "type": "string",
        "enum": [
          "W",
          "C",
          "P"
        ],
        "description": "W - warehouse, C - custom location, P - parking",
        "example": "W",
        "default": "W"
      },
      "EndLocationType": {
        "type": "string",
        "enum": [
          "N",
          "W",
          "C",
          "P"
        ],
        "description": "W - warehouse, C - custom location, P - parking, N - none",
        "example": "N"
      },
      "VehicleSettingsType": {
        "type": "string",
        "example": "{\"work_hour_start\":\"08:00\",\"work_hour_end\":\"18:00\",\"has_breaks\":0,\"speed_factor\":\"1.0\",\"max_distance\":0,\"overtime\":0,\"break_duration\":0}"
      },
      "LocationLatType": {
        "type": "number",
        "format": "float",
        "description": "Latitude",
        "example": 50.043529
      },
      "LocationLngType": {
        "type": "number",
        "format": "float",
        "description": "Longitude",
        "example": 30.516586
      },
      "LocationAddressType": {
        "type": "string",
        "description": "Address",
        "example": "Khreschatyk St, 15, Kyiv, Ukraine, 02000",
        "default": ""
      },
      "PlanBase": {
        "type": "object",
        "required": [
          "title",
          "company_id",
          "service_date"
        ],
        "properties": {
          "title": {
            "type": "string",
            "example": "Plan 12"
          },
          "company_id": {
            "type": "integer",
            "example": 85
          },
          "warehouse_id": {
            "type": "integer",
            "example": 110,
            "description": "Alternative name: external_warehouse_id"
          },
          "query_id": {
            "type": "integer",
            "example": 0,
            "deprecated": true
          },
          "squash_duration": {
            "type": "number",
            "format": "float",
            "example": 1
          },
          "avoid_tolls": {
            "type": "integer",
            "example": 1
          },
          "avoid_highways": {
            "type": "integer",
            "example": 0
          },
          "solving_time": {
            "type": "string",
            "nullable": true,
            "example": null,
            "deprecated": true
          },
          "exploration": {
            "type": "string",
            "nullable": true,
            "example": null,
            "deprecated": true
          },
          "status": {
            "type": "integer",
            "example": 1
          },
          "settings": {
            "type": "string",
            "example": "{}",
            "deprecated": true
          },
          "solution": {
            "type": "string",
            "example": "{}",
            "deprecated": true
          },
          "service_date": {
            "type": "string",
            "format": "date",
            "example": "2025-09-17"
          },
          "start_location_type": {
            "$ref": "#/components/schemas/StartLocationType"
          },
          "start_location_lng": {
            "$ref": "#/components/schemas/LocationLngType"
          },
          "start_location_lat": {
            "$ref": "#/components/schemas/LocationLatType"
          },
          "start_location_address": {
            "$ref": "#/components/schemas/LocationAddressType"
          },
          "end_location_type": {
            "$ref": "#/components/schemas/EndLocationType"
          },
          "end_location_lng": {
            "$ref": "#/components/schemas/LocationLngType"
          },
          "end_location_lat": {
            "$ref": "#/components/schemas/LocationLatType"
          },
          "end_location_address": {
            "$ref": "#/components/schemas/LocationAddressType"
          },
          "vehicle_settings": {
            "$ref": "#/components/schemas/VehicleSettingsType"
          },
          "visit_balance_coefficient": {
            "type": "number",
            "example": 0,
            "default": 0,
            "description": "Coefficient for calculating visit balance: 0 - Optimize; 1 - Visits; 2 - Time;"
          }
        }
      },
      "PlanStore": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PlanBase"
          },
          {
            "$ref": "#/components/schemas/ExternalWarehouseId"
          }
        ]
      },
      "Plan": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseItem"
          },
          {
            "$ref": "#/components/schemas/PlanStore"
          }
        ]
      }
    },
    "responses": {
      "ListPlan": {
        "description": "List of plans.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ApiResponse"
                },
                {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "$ref": "#/components/schemas/Plan"
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "BadRequest": {
        "description": "Invalid request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiResponse"
            },
            "examples": {
              "notFound": {
                "value": {
                  "data": "Bad Request",
                  "status": "fail"
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiResponse"
            },
            "examples": {
              "Unauthorized": {
                "value": {
                  "data": "Invalid API key provided. Please check and try again.",
                  "status": "fail"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/routing-plan/list": {
      "get": {
        "tags": [
          "Plans"
        ],
        "summary": "Get Plans.",
        "parameters": [
          {
            "$ref": "#/components/parameters/CompanyIdQueryParam"
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2025-09-17",
            "description": "Filter by service date."
          },
          {
            "name": "warehouses",
            "in": "query",
            "required": false,
            "description": "Filter by warehouse IDs.",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "explode": true,
            "example": [
              1,
              2
            ]
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ListPlan"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    }
  }
}
```