# API Quick Start

Base URL:

```text
https://your-domain.com/api/v1
```

## Admin Login

```http
POST /api/v1/admin/login
```

```json
{
  "login": "admin@pronto.local",
  "password": "admin12345"
}
```

## Customer OTP Login

```http
POST /api/v1/auth/otp/send
```

```json
{
  "phone": "8888888888"
}
```

```http
POST /api/v1/auth/otp/verify
```

```json
{
  "phone": "8888888888",
  "otp": "123456",
  "name": "Demo Customer"
}
```

## Create Booking Flow

1. Add address:

```http
POST /api/v1/customer/addresses
```

2. Create cart:

```http
POST /api/v1/cart
```

```json
{
  "address_id": 1,
  "booking_type": "instant"
}
```

3. Add service:

```http
POST /api/v1/cart/1/items
```

```json
{
  "service_id": 1,
  "quantity": 1
}
```

4. Create quote:

```http
POST /api/v1/cart/1/quote
```

5. Create booking:

```http
POST /api/v1/bookings
```

```json
{
  "cart_id": 1,
  "quote_id": 1,
  "notes": "Please call before arrival."
}
```

6. Create payment:

```http
POST /api/v1/bookings/1/pay
```

7. Verify local payment:

```http
POST /api/v1/payments/1/verify
```

```json
{
  "method": "upi",
  "status": "captured"
}
```

## Web Admin

Open:

```text
/admin/login
```

Default login:

```text
admin@pronto.local
admin12345
```
