{
  "openapi": "3.1.0",
  "info": {
    "description": "Read a salon's bookings, customers and bills, and book for its website. Guide: https://salonmodo.com/developers",
    "title": "SalonModo salon API",
    "version": "1"
  },
  "security": [
    {
      "salonKey": []
    }
  ],
  "paths": {
    "/api/v1/bills": {
      "get": {
        "operationId": "bills",
        "parameters": [
          {
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBillList"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Bills, oldest first; from and to are days in the salon's time zone",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/bills/{id}": {
      "get": {
        "operationId": "bill",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBill"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "One bill",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/bookings": {
      "get": {
        "operationId": "bookings",
        "parameters": [
          {
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBookingList"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Bookings, oldest first; from and to are days in the salon's time zone",
        "tags": [
          "SalonModo API"
        ]
      },
      "post": {
        "operationId": "book",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiNewBooking"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBooked"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Book (read-and-book keys). The same Idempotency-Key returns the same booking instead of a second one",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/bookings/{id}": {
      "get": {
        "operationId": "booking",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBooking"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "One booking",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/bookings/{id}/cancel": {
      "post": {
        "operationId": "cancel",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiCancel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBooking"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Cancel a booking this key made",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/bookings/{id}/move": {
      "post": {
        "operationId": "move",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiMove"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBooking"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Move a booking this key made",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/branches": {
      "get": {
        "operationId": "branches",
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiBranch"
                  }
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "The key's branches, with their opening hours",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/customers": {
      "get": {
        "operationId": "customers",
        "parameters": [
          {
            "in": "query",
            "name": "changedSince",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCustomerList"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Customers, oldest first; names and phones as the key's Full customer details allows",
        "tags": [
          "SalonModo API"
        ]
      },
      "post": {
        "operationId": "addCustomer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiCustomerInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Add a customer (read-and-book keys)",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/customers/{id}": {
      "get": {
        "operationId": "customer",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "One customer",
        "tags": [
          "SalonModo API"
        ]
      },
      "patch": {
        "operationId": "changeCustomer",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiCustomerInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Change a customer (read-and-book keys); fields left out stay as they are",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/sales/daily": {
      "get": {
        "operationId": "sales",
        "parameters": [
          {
            "in": "query",
            "name": "date",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiDaySales"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Each branch's bills and sales on a day (today when left out)",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/salon": {
      "get": {
        "operationId": "salon",
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSalon"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "The salon, its branches, and the key making the call",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/services": {
      "get": {
        "operationId": "services",
        "parameters": [
          {
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiService"
                  }
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "The services and their options, with a branch's own prices when one is given",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/slots": {
      "get": {
        "operationId": "slots",
        "parameters": [
          {
            "in": "query",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "date",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "serviceId",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "in": "query",
            "name": "optionId",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "in": "query",
            "name": "staffId",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiSlot"
                  }
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Free times on a day for one or more services, as the booking page finds them",
        "tags": [
          "SalonModo API"
        ]
      }
    },
    "/api/v1/staff": {
      "get": {
        "operationId": "staff",
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiStaff"
                  }
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "The stylists customers can book",
        "tags": [
          "SalonModo API"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiBill": {
        "type": "object",
        "properties": {
          "appointmentId": {
            "type": "string",
            "format": "uuid"
          },
          "branchId": {
            "type": "string",
            "format": "uuid"
          },
          "cgstPaise": {
            "type": "integer",
            "format": "int64"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "customer": {
            "$ref": "#/components/schemas/ApiCustomerRef"
          },
          "discountPaise": {
            "type": "integer",
            "format": "int64"
          },
          "duePaise": {
            "type": "integer",
            "format": "int64"
          },
          "grossPaise": {
            "type": "integer",
            "format": "int64"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "invoiceNo": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBillItem"
            }
          },
          "paidPaise": {
            "type": "integer",
            "format": "int64"
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiMoney"
            }
          },
          "refunds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiMoney"
            }
          },
          "roundOffPaise": {
            "type": "integer",
            "format": "int64"
          },
          "sgstPaise": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string"
          },
          "taxablePaise": {
            "type": "integer",
            "format": "int64"
          },
          "tipPaise": {
            "type": "integer",
            "format": "int64"
          },
          "totalPaise": {
            "type": "integer",
            "format": "int64"
          },
          "voidedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiBillItem": {
        "type": "object",
        "properties": {
          "cgstPaise": {
            "type": "integer",
            "format": "int64"
          },
          "discountPaise": {
            "type": "integer",
            "format": "int64"
          },
          "grossPaise": {
            "type": "integer",
            "format": "int64"
          },
          "gstRate": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "productId": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "serviceId": {
            "type": "string",
            "format": "uuid"
          },
          "sgstPaise": {
            "type": "integer",
            "format": "int64"
          },
          "staffId": {
            "type": "string",
            "format": "uuid"
          },
          "taxablePaise": {
            "type": "integer",
            "format": "int64"
          },
          "totalPaise": {
            "type": "integer",
            "format": "int64"
          },
          "unitPricePaise": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiBillList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBill"
            }
          },
          "next": {
            "type": "string"
          }
        }
      },
      "ApiBooked": {
        "type": "object",
        "properties": {
          "booking": {
            "$ref": "#/components/schemas/ApiBooking"
          },
          "repeated": {
            "type": "boolean"
          }
        }
      },
      "ApiBooking": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "format": "uuid"
          },
          "cancelReason": {
            "type": "string"
          },
          "cancelledAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "customer": {
            "$ref": "#/components/schemas/ApiCustomerRef"
          },
          "endsAt": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "madeByThisKey": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBookingService"
            }
          },
          "source": {
            "type": "string"
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "ApiBookingList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBooking"
            }
          },
          "next": {
            "type": "string"
          }
        }
      },
      "ApiBookingService": {
        "type": "object",
        "properties": {
          "endsAt": {
            "type": "string",
            "format": "date-time"
          },
          "optionId": {
            "type": "string",
            "format": "uuid"
          },
          "optionName": {
            "type": "string"
          },
          "pricePaise": {
            "type": "integer",
            "format": "int64"
          },
          "serviceId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceName": {
            "type": "string"
          },
          "staffId": {
            "type": "string",
            "format": "uuid"
          },
          "staffName": {
            "type": "string"
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiBranch": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "hours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiHours"
            }
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          }
        }
      },
      "ApiBranchSales": {
        "type": "object",
        "properties": {
          "bills": {
            "type": "integer",
            "format": "int64"
          },
          "branchId": {
            "type": "string",
            "format": "uuid"
          },
          "paidPaise": {
            "type": "integer",
            "format": "int64"
          },
          "salesPaise": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiCancel": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string"
          }
        }
      },
      "ApiCustomer": {
        "type": "object",
        "properties": {
          "anniversary": {
            "type": "string"
          },
          "birthday": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "gender": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiCustomerIn": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          }
        }
      },
      "ApiCustomerInput": {
        "type": "object",
        "properties": {
          "anniversary": {
            "type": "string"
          },
          "birthday": {
            "type": "string"
          },
          "gender": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          }
        }
      },
      "ApiCustomerList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiCustomer"
            }
          },
          "next": {
            "type": "string"
          }
        }
      },
      "ApiCustomerRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          }
        }
      },
      "ApiDaySales": {
        "type": "object",
        "properties": {
          "branches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBranchSales"
            }
          },
          "date": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "ApiHours": {
        "type": "object",
        "properties": {
          "closesAt": {
            "type": "string",
            "format": "time-local"
          },
          "opensAt": {
            "type": "string",
            "format": "time-local"
          },
          "weekday": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ApiMoney": {
        "type": "object",
        "properties": {
          "amountPaise": {
            "type": "integer",
            "format": "int64"
          },
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "method": {
            "type": "string"
          }
        }
      },
      "ApiMove": {
        "type": "object",
        "properties": {
          "staffIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiNewBooking": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "format": "uuid"
          },
          "customer": {
            "$ref": "#/components/schemas/ApiCustomerIn"
          },
          "note": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiServiceWanted"
            }
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiOption": {
        "type": "object",
        "properties": {
          "durationMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "pricePaise": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiRating": {
        "properties": {
          "answeredAt": {
            "type": "string",
            "format": "date-time"
          },
          "billId": {
            "type": "string",
            "format": "uuid"
          },
          "branchId": {
            "type": "string",
            "format": "uuid"
          },
          "comment": {
            "type": "string"
          },
          "customer": {
            "$ref": "#/components/schemas/ApiCustomerRef"
          },
          "feeling": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "rating": {
            "type": "integer",
            "format": "int32"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ApiRefund": {
        "properties": {
          "amountPaise": {
            "type": "integer",
            "format": "int64"
          },
          "appointmentId": {
            "type": "string",
            "format": "uuid"
          },
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "billId": {
            "type": "string",
            "format": "uuid"
          },
          "branchId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string"
          }
        }
      },
      "ApiSalon": {
        "type": "object",
        "properties": {
          "branches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBranch"
            }
          },
          "fullDetails": {
            "type": "boolean"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "keyKind": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "test": {
            "type": "boolean"
          },
          "timezone": {
            "type": "string"
          }
        }
      },
      "ApiService": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string"
          },
          "durationMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "gender": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiOption"
            }
          },
          "pricePaise": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ApiServiceWanted": {
        "type": "object",
        "properties": {
          "optionId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceId": {
            "type": "string",
            "format": "uuid"
          },
          "staffId": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "ApiSlot": {
        "type": "object",
        "properties": {
          "endsAt": {
            "type": "string",
            "format": "date-time"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiSlotService"
            }
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiSlotService": {
        "type": "object",
        "properties": {
          "endsAt": {
            "type": "string",
            "format": "date-time"
          },
          "optionId": {
            "type": "string",
            "format": "uuid"
          },
          "pricePaise": {
            "type": "integer",
            "format": "int64"
          },
          "serviceId": {
            "type": "string",
            "format": "uuid"
          },
          "staffId": {
            "type": "string",
            "format": "uuid"
          },
          "staffName": {
            "type": "string"
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApiStaff": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "serviceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "salonKey": {
        "description": "The salon's key from More → API and webhooks: smk_live_... (or smk_test_... from a practice salon)",
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
