---
updatedAt: 2026-02-20T06:05:05.000Z
agentTools:
  projectIndex: https://docs.eosvolt.com/llms.txt
---

# /v1/booking

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "EOSVOLT Public API",
    "description": "This API is designed to manage electric vehicle charging sessions and charger bookings.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.eosvolt.com",
      "description": "Production"
    },
    {
      "url": "https://api-staging.eosvolt.com",
      "description": "Staging"
    }
  ],
  "paths": {
    "/v1/booking": {
      "post": {
        "tags": [
          "Bookings"
        ],
        "operationId": "39cdb586db4f43eb08c441bab84ff3d4",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBookingPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success Response",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/SuccessResponse"
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PlugType": {
        "type": "string",
        "enum": [
          "Type 2",
          "CCS1",
          "CHAdeMO",
          "GB/T DC",
          "CCS2",
          "GB/T AC",
          "Type 1",
          "NACS"
        ]
      },
      "SuccessResponse": {
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "type": "object"
          },
          "code": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "CreateBookingPayload": {
        "required": [
          "user_id",
          "start_time",
          "end_time"
        ],
        "properties": {
          "plug_identifier": {
            "type": "string",
            "example": "200.4.1"
          },
          "charger_identifier": {
            "type": "string",
            "example": "200.4"
          },
          "plug_type": {
            "$ref": "#/components/schemas/PlugType"
          },
          "user_id": {
            "type": "string"
          },
          "start_time": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2024-04-18 14:30:00"
          },
          "end_time": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
            "example": "2024-04-18 14:30:00"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Bookings",
      "description": "Bookings"
    }
  ]
}
```