{
  "openapi": "3.0.1",
  "info": {
    "title": "Liveforce Customer API",
    "description": "Liveforce Customer Rest and GQL API",
    "version": "0.2.6"
  },
  "servers": [
    {
      "url": "https://api.liveforce.co"
    }
  ],
  "paths": {
    "/gql": {
      "post": {
        "parameters": [],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "GraphQL API endpoint",
        "operationId": "post-gql",
        "description": "This endpoint is used for [GraphQL API](https://docs.liveforce.co/graphql)."
      }
    },
    "/0.2/gql": {
      "post": {
        "parameters": [],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "GraphQL API endpoint (old)",
        "operationId": "post-0-2-gql",
        "description": "This endpoint is used for [GraphQL API](https://docs.liveforce.co/graphql).\n\n**It is recommended to use the new endpoint `https://api.liveforce.co/gql` instead.**"
      }
    },
    "/0.2/crew/updates": {
      "get": {
        "parameters": [
          {
            "name": "updatedAfter",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "X-Pagination-Current-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Page-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Total-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Per-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArrayOfCrewUpdated"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List recently updated crew",
        "operationId": "get-0-2-crew-updates",
        "description": "🔭 **Required scope**: `read:company_crew_data`.\n\nGet paginated list of company crew members that were updated after a specific timestamp.\n\nNote that pagination parameters are passed in request/response headers, not in query."
      }
    },
    "/0.2/payment-reports": {
      "get": {
        "operationId": "get-0-2-payment-reports",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateTo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateFrom",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "X-Pagination-Current-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Page-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Total-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Per-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArrayOfPaymentReport"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {}
          },
          "401": {
            "description": "401 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {}
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List payment reports",
        "description": "🔭 **Required scope**: `read:payment_reports`.\n\nBy default, 20 results sorted by `createdAt` field `DESC` (the latest first)."
      }
    },
    "/0.2/file-upload": {
      "post": {
        "operationId": "post-0-2-file-upload",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "$ref": "#/components/schemas/UploadedFile"
              }
            },
            "image/png": {
              "schema": {
                "$ref": "#/components/schemas/UploadedFile"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUploadResponse"
                }
              }
            },
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Upload a file",
        "description": "Uploads file to a server and returns a file URL that can be used in other API calls.\n\nNote that file is passed directly in the request body, without multipart encoding or any other wrapping."
      }
    },
    "/0.2/crew/{id}": {
      "get": {
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrewExtended"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get specific company crew",
        "operationId": "get-0-2-crew-id",
        "description": "🔭 **Required scope**: `read:company_crew_data`.\n\nGet detailed information about a specific company crew member by ID."
      }
    },
    "/0.2/crew": {
      "get": {
        "parameters": [
          {
            "name": "page",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "X-Pagination-Current-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Page-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Total-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Per-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArrayOfCrewContact"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrewContact"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List company crew",
        "operationId": "get-0-2-crew",
        "description": "🔭 **Required scope**: `read:company_crew_data`.\n\nGet paginated list of company crew members.\n\nNote that pagination parameters are passed in request/response headers, not in query."
      }
    },
    "/0.2/payment-reports/{id}": {
      "get": {
        "operationId": "get-0-2-payment-reports-id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentReport"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {}
          },
          "401": {
            "description": "401 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {}
          },
          "404": {
            "description": "404 response",
            "content": {}
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get specific payment report",
        "description": "🔭 **Required scope**: `read:payment_reports`.\n\nImportant note about payment item total payable. It consists of two parts:\n\n1. `timesheet.total` (calculated total salary after all adjustments, with holiday pay, but without expenses)\n2. `expenses.totalApproved`\n\nSo add both values to get final total value.\n\nAlso note, that timesheet or expenses may be `null`."
      }
    },
    "/0.2/crew/extended": {
      "get": {
        "parameters": [
          {
            "name": "page",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "X-Pagination-Current-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Page-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Total-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Per-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArrayOfCrewExtended"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List company crew (extended data)",
        "operationId": "get-0-2-crew-extended",
        "description": "🔭 **Required scope**: `read:company_crew_data`.\n\nGet paginated list of company crew members, includes extended data in response.\n\nNote that pagination parameters are passed in request/response headers, not in query."
      }
    },
    "/0.2/crew/payment-details": {
      "get": {
        "parameters": [
          {
            "name": "page",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "X-Pagination-Current-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Page-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Total-Count": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Pagination-Per-Page": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArrayOfCrewPayment"
                }
              }
            }
          },
          "400": {
            "description": "400 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "401 response",
            "headers": {
              "errorMessage": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "404 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "500 response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List company crew (payment data)",
        "operationId": "get-0-2-crew-payment-details",
        "description": "🔭 **Required scope**: `read:company_crew_data`.\n\nGet paginated list of company crew members, includes payment details in response.\n\nNote that pagination parameters are passed in request/response headers, not in query."
      }
    }
  },
  "components": {
    "schemas": {
      "CrewUpdated": {
        "type": "object",
        "properties": {
          "crewId": {
            "$ref": "#/components/schemas/UserID"
          },
          "uniqueId": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Crew updated by ID"
      },
      "AdminForReport": {
        "type": "object",
        "properties": {
          "avatar": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/UserID"
          },
          "lastName": {
            "type": "string"
          }
        },
        "description": "AdminForReport presents admin base data for payment-reports endpoint"
      },
      "CrewCountryValue": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "description": "Country specific data value"
      },
      "FileUploadResponse": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "description": "File response with URL to uploaded file"
      },
      "ArrayOfCrewExtended": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CrewExtended"
        }
      },
      "ArrayOfCrewUpdated": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CrewUpdated"
        }
      },
      "CountrySpecificData": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CrewCountryValue"
            }
          }
        },
        "description": "Crew country specific data"
      },
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "description": "Error Response"
      },
      "UploadedFile": {
        "type": "string",
        "format": "binary"
      },
      "CrewExtended": {
        "type": "object",
        "properties": {
          "crewId": {
            "$ref": "#/components/schemas/UserID"
          },
          "title": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "birthDay": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "avatar": {
            "type": "string"
          },
          "gender": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "biography": {
            "type": "string"
          },
          "experience": {
            "type": "string"
          },
          "workCapacity": {
            "type": "string"
          },
          "employmentType": {
            "type": "string"
          },
          "cv": {
            "type": "string"
          },
          "travelAbility": {
            "type": "string"
          },
          "disability": {
            "type": "string"
          },
          "linkedIdURL": {
            "type": "string"
          },
          "twitterURL": {
            "type": "string"
          },
          "facebookURL": {
            "type": "string"
          },
          "instagramURL": {
            "type": "string"
          },
          "uniqueId": {
            "type": "string"
          },
          "bankNumber": {
            "type": "string"
          },
          "sortCode": {
            "type": "string"
          },
          "taxCode": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "postCode": {
            "type": "string"
          },
          "longitude": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "registeredAt": {
            "type": "string",
            "format": "date-time"
          },
          "firstJobStartDate": {
            "type": "string",
            "format": "date"
          },
          "countrySpecificData": {
            "$ref": "#/components/schemas/CountrySpecificData"
          }
        },
        "description": "Crew response for crew/{id} endpoint"
      },
      "ArrayOfCrewContact": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CrewContact"
        }
      },
      "CrewContact": {
        "type": "object",
        "properties": {
          "crewId": {
            "$ref": "#/components/schemas/UserID"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postCode": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Crew contact details response for crew/{id} endpoint"
      },
      "UserID": {
        "type": "integer",
        "format": "int64"
      },
      "ArrayOfCrewPayment": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CrewBilling"
        }
      },
      "CrewBilling": {
        "type": "object",
        "properties": {
          "crewId": {
            "$ref": "#/components/schemas/UserID"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "bankNumber": {
            "type": "string"
          },
          "sortCode": {
            "type": "string"
          },
          "taxCode": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postCode": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "countrySpecificData": {
            "$ref": "#/components/schemas/CountrySpecificData"
          }
        },
        "description": "Crew list response for crew endpoint"
      },
      "ValidationError": {
        "type": "object",
        "properties": {
          "errorMessage": {
            "type": "string"
          }
        }
      },
      "PaymentReport": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "createdByAdmin": {
            "$ref": "#/components/schemas/AdminForReport"
          },
          "fromDate": {
            "type": "string"
          },
          "hasEmployee": {
            "type": "boolean"
          },
          "hasExpenses": {
            "type": "boolean"
          },
          "hasSelfEmployed": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "paidAt": {
            "type": "string"
          },
          "paidByAdmin": {
            "$ref": "#/components/schemas/AdminForReport"
          },
          "title": {
            "type": "string"
          },
          "toDate": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "description": "PaymentReport response for payment-reports endpoint"
      },
      "ArrayOfPaymentReport": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/PaymentReport"
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}