openapi: 3.0.3
info:
  title: 'Yaita 3.0 API documentation'
  description: ''
  version: 1.0.0
servers:
  -
    url: 'https://dev.yaita.co.zw/public'
paths:
  /logoutadmin:
    post:
      summary: 'logs out an administrator account'
      operationId: logsOutAnAdministratorAccount
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Admin Controller End_points'
      security: []
  /checkauthadmin:
    post:
      summary: 'Checks if an administrator account has a valid session'
      operationId: checksIfAnAdministratorAccountHasAValidSession
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Admin Controller End_points'
      security: []
  /adminAuth:
    post:
      summary: 'Authenticates the administrator'
      operationId: authenticatesTheAdministrator
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Admin Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: ''
                  example: amy23@example.com
                password:
                  type: string
                  description: ''
                  example: 'xh?5o|cz9'
              required:
                - email
                - password
      security: []
  /admin:
    post:
      summary: 'Creates an administrator account'
      operationId: createsAnAdministratorAccount
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Admin Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: ''
                  example: samantha79@example.org
                password:
                  type: string
                  description: ''
                  example: 'wYvn1Sx;GNT6&sqp8lg}'
                name:
                  type: string
                  description: ''
                  example: et
              required:
                - email
                - password
                - name
      security: []
  /consolidation:
    post:
      summary: 'Create a new Consolidation requires admin authentication'
      operationId: createANewConsolidationRequiresAdminAuthentication
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Consolidation Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Consolidation label'
                  example: labore
              required:
                - name
  /consolidation/order:
    post:
      summary: 'Create a new Consolidation Requires administrator authentication'
      operationId: createANewConsolidationRequiresAdministratorAuthentication
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Consolidation Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                consolidation:
                  type: integer
                  description: 'Consolidation id'
                  example: 6
                order:
                  type: integer
                  description: 'order id'
                  example: 14
              required:
                - consolidation
                - order
  /consolidations:
    post:
      summary: 'Get all Consolidation and the orders consolidation Requires administrator authentication'
      operationId: getAllConsolidationAndTheOrdersConsolidationRequiresAdministratorAuthentication
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Consolidation Controller End_points'
  /consolidation/orders:
    post:
      summary: 'Get Consolidation and the orders consolidation Requires administrator authentication'
      operationId: getConsolidationAndTheOrdersConsolidationRequiresAdministratorAuthentication
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Consolidation Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                consolidation:
                  type: integer
                  description: 'Consolidation id'
                  example: 14
              required:
                - consolidation
  /sanctum/csrf-cookie:
    get:
      summary: 'Return an empty response simply to trigger the storage of the CSRF cookie in the browser.'
      operationId: returnAnEmptyResponseSimplyToTriggerTheStorageOfTheCSRFCookieInTheBrowser
      description: ''
      parameters: []
      responses:
        204:
          description: ''
      tags:
        - Endpoints
      security: []
  /api/user:
    get:
      summary: ''
      operationId: getApiUser
      description: ''
      parameters: []
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Unauthenticated.
                properties:
                  message:
                    type: string
                    example: Unauthenticated.
      tags:
        - Endpoints
      security: []
  /:
    get:
      summary: ''
      operationId: get
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
  /orderitem:
    get:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /orderitem/create:
    get:
      summary: 'Show the form for creating a new resource.'
      operationId: showTheFormForCreatingANewResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - Endpoints
      security: []
  '/orderitem/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the orderitem.'
        example: non
        required: true
        schema:
          type: string
  '/orderitem/{orderitem}/edit':
    get:
      summary: 'Show the form for editing the specified resource.'
      operationId: showTheFormForEditingTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: orderitem
        description: 'The orderitem.'
        example: inventore
        required: true
        schema:
          type: string
  /invoice:
    get:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /invoice/create:
    get:
      summary: 'Show the form for creating a new resource.'
      operationId: showTheFormForCreatingANewResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - Endpoints
      security: []
  '/invoice/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the invoice.'
        example: quo
        required: true
        schema:
          type: string
  '/invoice/{invoice}/edit':
    get:
      summary: 'Show the form for editing the specified resource.'
      operationId: showTheFormForEditingTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: invoice
        description: 'The invoice.'
        example: qui
        required: true
        schema:
          type: string
  /customer:
    get:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /customer/create:
    get:
      summary: 'Show the form for creating a new resource.'
      operationId: showTheFormForCreatingANewResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - Endpoints
      security: []
  '/customer/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the customer.'
        example: nisi
        required: true
        schema:
          type: string
  '/customer/{customer}/edit':
    get:
      summary: 'Show the form for editing the specified resource.'
      operationId: showTheFormForEditingTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: customer
        description: 'The customer.'
        example: rerum
        required: true
        schema:
          type: string
  /driver:
    get:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data: Unauthorised
                properties:
                  data:
                    type: string
                    example: Unauthorised
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driver/create:
    get:
      summary: 'Show the form for creating a new resource.'
      operationId: showTheFormForCreatingANewResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - Endpoints
      security: []
  '/driver/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the driver.'
        example: neque
        required: true
        schema:
          type: string
  '/driver/{driver}/edit':
    get:
      summary: 'Show the form for editing the specified resource.'
      operationId: showTheFormForEditingTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
    parameters:
      -
        in: path
        name: driver
        description: 'The driver.'
        example: quis
        required: true
        schema:
          type: string
  /orderitemzoom:
    post:
      summary: ''
      operationId: postOrderitemzoom
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createorderspecial:
    post:
      summary: ''
      operationId: postCreateorderspecial
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createorderspecialzoom:
    post:
      summary: ''
      operationId: postCreateorderspecialzoom
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createscheduledorder:
    post:
      summary: ''
      operationId: postCreatescheduledorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getblogbybqrcd:
    post:
      summary: ''
      operationId: postGetblogbybqrcd
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createorderspecialschduled:
    post:
      summary: ''
      operationId: postCreateorderspecialschduled
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createorderspecialmultipledropoffs:
    post:
      summary: ''
      operationId: postCreateorderspecialmultipledropoffs
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getdriverorders:
    post:
      summary: ''
      operationId: postGetdriverorders
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getdriverdelivered:
    post:
      summary: ''
      operationId: postGetdriverdelivered
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getorderitemproducts:
    post:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /updateorder:
    post:
      summary: ''
      operationId: postUpdateorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getpaymenttypes:
    post:
      summary: ''
      operationId: postGetpaymenttypes
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /updatedriverlocation:
    post:
      summary: ''
      operationId: postUpdatedriverlocation
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /resetpassworddriver:
    post:
      summary: ''
      operationId: postResetpassworddriver
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getrequests:
    post:
      summary: ''
      operationId: postGetrequests
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /rejectall:
    post:
      summary: ''
      operationId: postRejectall
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverearnings:
    post:
      summary: ''
      operationId: postDriverearnings
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /changedriverpassword:
    post:
      summary: ''
      operationId: postChangedriverpassword
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /updatedriverphone:
    post:
      summary: ''
      operationId: postUpdatedriverphone
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /updatedrivername:
    post:
      summary: ''
      operationId: postUpdatedrivername
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverearningsweek:
    post:
      summary: ''
      operationId: postDriverearningsweek
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverearningstoday:
    post:
      summary: ''
      operationId: postDriverearningstoday
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverearningsmonth:
    post:
      summary: ''
      operationId: postDriverearningsmonth
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverorderstoday:
    post:
      summary: ''
      operationId: postDriverorderstoday
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverordersweek:
    post:
      summary: ''
      operationId: postDriverordersweek
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverordersmonth:
    post:
      summary: ''
      operationId: postDriverordersmonth
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createblog:
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /updateblog:
    post:
      summary: ''
      operationId: postUpdateblog
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /deleteblog:
    post:
      summary: ''
      operationId: postDeleteblog
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getblog:
    post:
      summary: ''
      operationId: postGetblog
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getblogs:
    post:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getlatestblogs:
    post:
      summary: ''
      operationId: postGetlatestblogs
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getallblogs:
    post:
      summary: ''
      operationId: postGetallblogs
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getblogbytitle:
    post:
      summary: ''
      operationId: postGetblogbytitle
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createdriver:
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getdrivers:
    post:
      summary: ''
      operationId: postGetdrivers
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getdriverandcarimg:
    post:
      summary: ''
      operationId: postGetdriverandcarimg
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /activatedriver:
    post:
      summary: ''
      operationId: postActivatedriver
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /activatedriverthroughmail:
    get:
      summary: ''
      operationId: getActivatedriverthroughmail
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
  /deactivatedriver:
    post:
      summary: ''
      operationId: postDeactivatedriver
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getrate:
    post:
      summary: ''
      operationId: postGetrate
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /setrate:
    post:
      summary: ''
      operationId: postSetrate
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverlogout:
    post:
      summary: ''
      operationId: postDriverlogout
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /newdrivers:
    post:
      summary: ''
      operationId: postNewdrivers
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /savecostings:
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getprices:
    post:
      summary: ''
      operationId: postGetprices
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getbulkprices:
    post:
      summary: ''
      operationId: postGetbulkprices
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getpricesadmin:
    post:
      summary: ''
      operationId: postGetpricesadmin
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /subscribenewsletter:
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /testdzoro:
    post:
      summary: ''
      operationId: postTestdzoro
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getsubscription:
    post:
      summary: ''
      operationId: postGetsubscription
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /createsubscription:
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /driverAuth:
    post:
      summary: ''
      operationId: postDriverAuth
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /customerAuth:
    get:
      summary: ''
      operationId: getCustomerAuth
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
  /order:
    get:
      summary: 'Returns filtered vendor Orders. Requires that the vendor be authenticated'
      operationId: returnsFilteredVendorOrdersRequiresThatTheVendorBeAuthenticated
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data: null
                properties:
                  data:
                    type: string
                    example: null
      tags:
        - 'Order Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  description: "one from 'All','Express','Scheduled','Suspense','Pending','Enroute' or 'Delivered'"
                  example: quaerat
              required:
                - type
    post:
      summary: 'Creates an Order which has 2 parameters i.e. customer, vendor. Typically not used'
      operationId: createsAnOrderWhichHas2ParametersIeCustomerVendorTypicallyNotUsed
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                customer_id:
                  type: integer
                  description: ''
                  example: 3
                vendor_id:
                  type: integer
                  description: ''
                  example: 10
              required:
                - customer_id
                - vendor_id
      security: []
  /order/create:
    get:
      summary: 'Show the form for creating a new resource.'
      operationId: showTheFormForCreatingANewResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - 'Order Controller End_points'
      security: []
  '/order/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                  - data
                  - null
      tags:
        - 'Order Controller End_points'
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the order.'
        example: et
        required: true
        schema:
          type: string
  '/order/{order}/edit':
    get:
      summary: 'Show the form for editing the specified resource.'
      operationId: showTheFormForEditingTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                  - data
                  -
                    id: 1
                    customer_id: 1
                    vendor_id: 2
                    driver_id: 0
                    name: '-'
                    cost: '0.00'
                    delivery_request: 0
                    status: '2'
                    mode_of_transport: 'null'
                    size_of_carrier: 'null'
                    paid: 0
                    charge: 8
                    paid_cash: 0
                    infull: 1
                    delivery_charge: 0
                    cash_on_delivery: 0
                    pickup_location: 'Harare Fulfilment Center'
                    pickup_lat: 0
                    pickup_long: 0
                    dropoff_location: 'Bindura University of Science Education'
                    dropoff_lat: 0
                    dropoff_long: 0
                    eta: 0
                    distance: 92.614
                    paynow_pollurl: '0'
                    delivery_date: '2021-12-09'
                    multiple_dropoff: 0
                    client_pays: 0
                    canceled: 0
                    created_at: null
                    updated_at: '2022-01-21T08:40:21.000000Z'
                    d_note: test
                    delivery_type: ''
      tags:
        - 'Order Controller End_points'
      security: []
    parameters:
      -
        in: path
        name: order
        description: 'The order.'
        example: 1
        required: true
        schema:
          type: integer
  /getallordersthismonth:
    get:
      summary: ''
      operationId: getGetallordersthismonth
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - 'Order Controller End_points'
      security: []
    post:
      summary: ''
      operationId: postGetallordersthismonth
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /sendrequestcash:
    post:
      summary: ''
      operationId: postSendrequestcash
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /checkrequests:
    get:
      summary: ''
      operationId: getCheckrequests
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - 'Order Controller End_points'
      security: []
  /fetchcluster:
    post:
      summary: ''
      operationId: postFetchcluster
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /completeorderadmin:
    post:
      summary: ''
      operationId: postCompleteorderadmin
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /createorderadmin:
    post:
      summary: ''
      operationId: postCreateorderadmin
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getordersbyvendor:
    post:
      summary: ''
      operationId: postGetordersbyvendor
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /cancelorder:
    post:
      summary: ''
      operationId: postCancelorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /completecancelorder:
    post:
      summary: ''
      operationId: postCompletecancelorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getordersbydriver:
    post:
      summary: ''
      operationId: postGetordersbydriver
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /assigndrivermanually:
    post:
      summary: ''
      operationId: postAssigndrivermanually
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /bitlyshortener:
    post:
      summary: ''
      operationId: postBitlyshortener
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /sendrequestscheduled:
    get:
      summary: ''
      operationId: getSendrequestscheduled
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data: 'ORDERS UPDATED'
                properties:
                  data:
                    type: string
                    example: 'ORDERS UPDATED'
      tags:
        - 'Order Controller End_points'
      security: []
  /sendrequest:
    get:
      summary: ''
      operationId: getSendrequest
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - 'Order Controller End_points'
      security: []
  /setpollurl:
    post:
      summary: ''
      operationId: postSetpollurl
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /earnings:
    post:
      summary: ''
      operationId: postEarnings
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /setenroute:
    post:
      summary: ''
      operationId: postSetenroute
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /updateorderwithobject:
    post:
      summary: ''
      operationId: postUpdateorderwithobject
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getclients:
    post:
      summary: ''
      operationId: postGetclients
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /setdriver:
    post:
      summary: ''
      operationId: postSetdriver
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /intransit:
    post:
      summary: ''
      operationId: postIntransit
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /enrouteorder:
    post:
      summary: ''
      operationId: postEnrouteorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /sendmail:
    post:
      summary: ''
      operationId: postSendmail
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /updatepickuplocation:
    post:
      summary: ''
      operationId: postUpdatepickuplocation
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /updatedropofflocation:
    post:
      summary: ''
      operationId: postUpdatedropofflocation
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /recieveorder:
    post:
      summary: ''
      operationId: postRecieveorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /sendmailaspdf:
    post:
      summary: ''
      operationId: postSendmailaspdf
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /driverEarningsWeek:
    post:
      summary: ''
      operationId: postDriverEarningsWeek
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /fulfilments:
    post:
      summary: ''
      operationId: postFulfilments
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /latest:
    post:
      summary: ''
      operationId: postLatest
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /latestforlive:
    post:
      summary: ''
      operationId: postLatestforlive
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /updatecoordinates:
    post:
      summary: ''
      operationId: postUpdatecoordinates
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getorders:
    post:
      summary: ''
      operationId: postGetorders
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /fulfiledontotal:
    post:
      summary: ''
      operationId: postFulfiledontotal
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /filteredfulfiledontotal:
    post:
      summary: ''
      operationId: postFilteredfulfiledontotal
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /statistics:
    post:
      summary: ''
      operationId: postStatistics
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /api/createorder:
    post:
      summary: 'Creates an Order'
      operationId: createsAnOrder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                pickup:
                  type: string
                  description: 'pick up location'
                  example: et
                dropoff:
                  type: string
                  description: 'drop off location'
                  example: et
                c_name:
                  type: string
                  description: 'customer name'
                  example: libero
                c_phone:
                  type: string
                  description: 'customer phone'
                  example: dicta
                delivery_note:
                  type: string
                  description: 'delivery note if any'
                  example: illum
                cost:
                  type: number
                  description: 'cost of good to be delivered'
                  example: 132.49950962
                cash_on_delivery:
                  type: integer
                  description: 'boolean 0 or 1'
                  example: 11
                orderItems:
                  type: string
                  description: 'json array of Json objects for products example [{"id":1,"quantity":1}, {"id":4,"quantity":2}] where id is product id and quantity is the quantity to be delivered'
                  example: qui
              required:
                - pickup
                - dropoff
                - c_name
                - c_phone
                - cost
                - cash_on_delivery
                - orderItems
  /api/createorderscheduled:
    post:
      summary: ''
      operationId: postApiCreateorderscheduled
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /api/requestdelivery:
    post:
      summary: ''
      operationId: postApiRequestdelivery
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /api/getorders:
    post:
      summary: ''
      operationId: postApiGetorders
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /setdistancetime:
    post:
      summary: ''
      operationId: postSetdistancetime
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /acceptorder:
    post:
      summary: ''
      operationId: postAcceptorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /rejectorder:
    post:
      summary: ''
      operationId: postRejectorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /updatevehicle:
    post:
      summary: ''
      operationId: postUpdatevehicle
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /deliverorder:
    post:
      summary: ''
      operationId: postDeliverorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getorderwithorderitems:
    post:
      summary: ''
      operationId: postGetorderwithorderitems
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getneworders:
    post:
      summary: 'Get new Orders as Administrator. Requires the user to be authenticated as administrator'
      operationId: getNewOrdersAsAdministratorRequiresTheUserToBeAuthenticatedAsAdministrator
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
  /updatepicklocation:
    post:
      summary: ''
      operationId: postUpdatepicklocation
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /editorder:
    post:
      summary: ''
      operationId: postEditorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getallorderswithfilter:
    post:
      summary: ''
      operationId: postGetallorderswithfilter
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getinfull:
    post:
      summary: ''
      operationId: postGetinfull
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /getsharedorder:
    post:
      summary: ''
      operationId: postGetsharedorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /shareorderlink:
    post:
      summary: ''
      operationId: postShareorderlink
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /fetchorder:
    post:
      summary: ''
      operationId: postFetchorder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /y_vendor/order:
    post:
      summary: ''
      operationId: postY_vendorOrder
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Order Controller End_points'
      security: []
  /product:
    get:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                  - data
                  - []
      tags:
        - 'Product Controller End_points'
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      security: []
  /product/create:
    get:
      summary: 'Show the form for creating a new resource.'
      operationId: showTheFormForCreatingANewResource
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - 'Product Controller End_points'
      security: []
  '/product/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        404:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'No query results for model [App\Models\Product] 7'
                properties:
                  message:
                    type: string
                    example: 'No query results for model [App\Models\Product] 7'
      tags:
        - 'Product Controller End_points'
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the product.'
        example: 7
        required: true
        schema:
          type: integer
  '/product/{product_id}/edit':
    get:
      summary: 'Show the form for editing the specified resource.'
      operationId: showTheFormForEditingTheSpecifiedResource
      description: ''
      parameters: []
      responses:
        404:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'No query results for model [App\Models\Product] 9'
                properties:
                  message:
                    type: string
                    example: 'No query results for model [App\Models\Product] 9'
      tags:
        - 'Product Controller End_points'
      security: []
    parameters:
      -
        in: path
        name: product_id
        description: 'The ID of the product.'
        example: 9
        required: true
        schema:
          type: integer
  /createproduct:
    post:
      summary: 'Create Vendor Product.'
      operationId: createVendorProduct
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: ''
                  example: odio
                price:
                  type: string
                  description: ''
                  example: odio
                unit_of_measure:
                  type: string
                  description: ''
                  example: nihil
                quantity:
                  type: integer
                  description: ''
                  example: 17
                f_center:
                  type: integer
                  description: 'fullfilment center ID'
                  example: 19
                color:
                  type: string
                  description: 'color hex code example #fff'
                  example: quam
                size:
                  type: string
                  description: ''
                  example: nulla
              required:
                - name
                - price
                - unit_of_measure
                - quantity
                - f_center
                - color
                - size
  /getproduct:
    post:
      summary: ''
      operationId: postGetproduct
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      security: []
  /updateproduct:
    post:
      summary: ''
      operationId: postUpdateproduct
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      security: []
  /delete:
    post:
      summary: ''
      operationId: postDelete
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      security: []
  /y_vendor/product:
    post:
      summary: 'Create Vendor Product.'
      operationId: createVendorProduct
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Product Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: ''
                  example: voluptate
                price:
                  type: string
                  description: ''
                  example: porro
                unit_of_measure:
                  type: string
                  description: ''
                  example: dolores
                quantity:
                  type: integer
                  description: ''
                  example: 13
                f_center:
                  type: integer
                  description: 'fullfilment center ID'
                  example: 10
                color:
                  type: string
                  description: 'color hex code example #fff'
                  example: velit
                size:
                  type: string
                  description: ''
                  example: quos
              required:
                - name
                - price
                - unit_of_measure
                - quantity
                - f_center
                - color
                - size
  /y_vendor/products:
    get:
      summary: 'Get Vendor Product.'
      operationId: getVendorProduct
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses:
        403:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data: error
                properties:
                  data:
                    type: string
                    example: error
      tags:
        - 'Product Controller End_points'
  /vendor:
    get:
      summary: 'Get vendor products.'
      operationId: getVendorProducts
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data: []
                properties:
                  data:
                    type: array
                    example: []
      tags:
        - 'Vendor Controller End_points'
    post:
      summary: 'Create vendor account.'
      operationId: createVendorAccount
      description: "the type can be 2=>pro customer 3=> pro_plus customer 4=> groth plus customer 0 or\n1 free account customer"
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: integer
                  description: ''
                  example: 2
                name:
                  type: string
                  description: ''
                  example: voluptas
                email:
                  type: string
                  description: ''
                  example: leila25@example.net
                address:
                  type: string
                  description: ''
                  example: veniam
                phone:
                  type: string
                  description: ''
                  example: suscipit
                logo:
                  type: string
                  description: 'base64 encoded image sting'
                  example: laborum
                password:
                  type: string
                  description: ''
                  example: ',Vo&"\`J1U-{E&k'
                busnessname:
                  type: string
                  description: ''
                  example: quo
              required:
                - type
                - name
                - email
                - address
                - phone
                - logo
                - password
                - busnessname
      security: []
  /vendor/create:
    get:
      summary: ''
      operationId: getVendorCreate
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: ''
      tags:
        - 'Vendor Controller End_points'
      security: []
  '/vendor/{id}':
    get:
      summary: 'Not In use'
      operationId: notInUse
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - 'Vendor Controller End_points'
      security: []
    put:
      summary: 'Not in use'
      operationId: notInUse
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
    delete:
      summary: 'Not in use'
      operationId: notInUse
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the vendor.'
        example: 1
        required: true
        schema:
          type: integer
  '/vendor/{vendor_id}/edit':
    get:
      summary: 'Not in use'
      operationId: notInUse
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                  - data
                  -
                    id: 1
                    name: Ali
                    busnessname: test
                    email: test@gmail.com
                    phone: 'NULL'
                    address: 'NULL'
                    status: 1
                    bank: 'NULL'
                    account_number: 'NULL'
                    isfree: 0
                    iscenter: 0
                    ispro: 1
                    growth: 0
                    growthplus: 0
                    branch: 'NULL'
                    billing_phone: 'NULL'
                    billing_name: 'NULL'
                    mobile_billing_type: 'NULL'
                    last_active: '2024-08-04 15:36:21'
                    free: 0
                    created_at: null
                    updated_at: '2024-08-04T15:36:21.000000Z'
      tags:
        - 'Vendor Controller End_points'
      security: []
    parameters:
      -
        in: path
        name: vendor_id
        description: 'The ID of the vendor.'
        example: 1
        required: true
        schema:
          type: integer
  /signup:
    post:
      summary: 'Create vendor account.'
      operationId: createVendorAccount
      description: "the type can be 2=>pro customer 3=> pro_plus customer 4=> groth plus customer 0 or\n1 free account customer"
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: integer
                  description: ''
                  example: 3
                name:
                  type: string
                  description: ''
                  example: reprehenderit
                email:
                  type: string
                  description: ''
                  example: casandra87@example.net
                address:
                  type: string
                  description: ''
                  example: aut
                phone:
                  type: string
                  description: ''
                  example: sit
                logo:
                  type: string
                  description: 'base64 encoded image sting'
                  example: odit
                password:
                  type: string
                  description: ''
                  example: $o@~jxv
                busnessname:
                  type: string
                  description: ''
                  example: blanditiis
              required:
                - type
                - name
                - email
                - address
                - phone
                - logo
                - password
                - busnessname
      security: []
  /signupfromadmin:
    post:
      summary: 'Not in Use Create vendor account from admin dashboard.'
      operationId: notInUseCreateVendorAccountFromAdminDashboard
      description: 'Admin needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: integer
                  description: '2=>pro customer, 3=> pro_plus customer, 4=> groth plus customer, 0 or 1 free account customer'
                  example: 10
                name:
                  type: string
                  description: ''
                  example: delectus
                email:
                  type: string
                  description: ''
                  example: asa76@example.net
                address:
                  type: string
                  description: ''
                  example: et
                phone:
                  type: string
                  description: ''
                  example: tempore
                logo:
                  type: string
                  description: 'base64 encoded image sting'
                  example: enim
                password:
                  type: string
                  description: ''
                  example: 'L"=0TDr#^]ByQ'
                busnessname:
                  type: string
                  description: ''
                  example: est
              required:
                - type
                - name
                - email
                - address
                - phone
                - logo
                - password
                - busnessname
  /getactive_today:
    post:
      summary: ''
      operationId: postGetactive_today
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /filteredvendorproducts:
    post:
      summary: 'Get vendor products filtered by fullfilement center.'
      operationId: getVendorProductsFilteredByFullfilementCenter
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                f_center:
                  type: integer
                  description: 'fullfilment center ID'
                  example: 17
              required:
                - f_center
  /filteredvendororders:
    post:
      summary: 'Get filtered vendor Orders.'
      operationId: getFilteredVendorOrders
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filter:
                  type: integer
                  description: '1,2,3,4,5 or 6 0=> all orders,1=> today, 2=>week, 3=>month,4=>3 months, 5=> 6 months, 6 => 1 year'
                  example: 17
              required:
                - filter
  /getallmecharntadmin:
    post:
      summary: 'Yaita get all vendors.'
      operationId: yaitaGetAllVendors
      description: 'Administrator should be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
  /activateaccount:
    get:
      summary: 'Activate vendor account through link sent in email on create account.'
      operationId: activateVendorAccountThroughLinkSentInEmailOnCreateAccount
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - 'Vendor Controller End_points'
      security: []
  /createapi:
    post:
      summary: ''
      operationId: postCreateapi
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /getvendordashstats:
    get:
      summary: 'Get vendor dashboard statistics.'
      operationId: getVendorDashboardStatistics
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data: fales
                properties:
                  data:
                    type: string
                    example: fales
      tags:
        - 'Vendor Controller End_points'
  /setpro:
    post:
      summary: 'Change vendor account to pro.'
      operationId: changeVendorAccountToPro
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /setgrowth:
    post:
      summary: 'Change vendor account to growth.'
      operationId: changeVendorAccountToGrowth
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /setgrowthplus:
    post:
      summary: 'Change vendor account to growth plus.'
      operationId: changeVendorAccountToGrowthPlus
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /setondemand:
    post:
      summary: 'Change vendor account to free.'
      operationId: changeVendorAccountToFree
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /updatevendorlogo:
    post:
      summary: 'Update vendor logo.'
      operationId: updateVendorLogo
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                logo:
                  type: string
                  description: 'base64 encoded image sting'
                  example: magni
  /deleteuser:
    post:
      summary: 'delete Vendor account.'
      operationId: deleteVendorAccount
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
  /getyaitareceipt:
    post:
      summary: 'Yaita get order details.'
      operationId: yaitaGetOrderDetails
      description: 'Order details come with the customer details and the prouducts details'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                pqqz:
                  type: integer
                  description: 'The id of the order.'
                  example: 1
              required:
                - pqqz
      security: []
  /getordersforappdash:
    post:
      summary: 'Get vendor orders for mobile app dashboard.'
      operationId: getVendorOrdersForMobileAppDashboard
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filter:
                  type: string
                  description: "one from 'all','week','month','threemonths','sixmonths' or 'year'"
                  example: velit
              required:
                - filter
  /getordersfordashtable:
    post:
      summary: 'Get vendor orders for dashboard.'
      operationId: getVendorOrdersForDashboard
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filter:
                  type: string
                  description: "one from the list 'all','week','month','threemonths','sixmonths' or 'year'"
                  example: magni
              required:
                - filter
  /updatevendor:
    post:
      summary: ''
      operationId: postUpdatevendor
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /logout:
    post:
      summary: 'Yaita logout vendor account.'
      operationId: yaitaLogoutVendorAccount
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /vendorcount:
    post:
      summary: 'Yaita get vendor counts.'
      operationId: yaitaGetVendorCounts
      description: 'Administrator should be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
  /newvendors:
    post:
      summary: 'Yaita get new vendors.'
      operationId: yaitaGetNewVendors
      description: 'Administrator should be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
  /getactivevendorswithfilter:
    post:
      summary: 'Get active vendors with a filter.'
      operationId: getActiveVendorsWithAFilter
      description: 'Vendor needs to be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filter:
                  type: integer
                  description: "one from the list '1','2','3','4' or '5'"
                  example: 18
              required:
                - filter
  /getvendors:
    post:
      summary: 'Yaita get all vendors.'
      operationId: yaitaGetAllVendors
      description: 'Administrator should be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
  /getvendorimg:
    get:
      summary: 'Yaita get vendor logo.'
      operationId: yaitaGetVendorLogo
      description: 'Administrator should be authenticated'
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  description: 'The id of the vendor.'
                  example: 10
              required:
                - id
  /resetpassword:
    post:
      summary: 'Reset vendor account password.'
      operationId: resetVendorAccountPassword
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: ''
                  example: seth32@example.net
      security: []
  /generateallinvoices:
    post:
      summary: 'Yaita generate invoices for all orders for the administrator.'
      operationId: yaitaGenerateInvoicesForAllOrdersForTheAdministrator
      description: 'Administrator should be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
  /paidsubscriptioncash:
    post:
      summary: 'Pay yaita subscription cash.'
      operationId: payYaitaSubscriptionCash
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                vendor:
                  type: integer
                  description: 'The id of the vendor.'
                  example: 10
              required:
                - vendor
  /paidsubscriptionecocash:
    post:
      summary: 'Pay yaita subscription ecocash.'
      operationId: payYaitaSubscriptionEcocash
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                vendor:
                  type: integer
                  description: 'The id of the vendor.'
                  example: 10
              required:
                - vendor
  /getmechantproducts:
    post:
      summary: 'Get vendor/machant products.'
      operationId: getVendormachantProducts
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                vendor:
                  type: integer
                  description: 'The id of the vendor.'
                  example: 10
              required:
                - vendor
      security: []
  /getordersbyvendorfiltered:
    post:
      summary: ''
      operationId: postGetordersbyvendorfiltered
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      security: []
  /y_vendor:
    post:
      summary: 'Create vendor account.'
      operationId: createVendorAccount
      description: "the type can be 2=>pro customer 3=> pro_plus customer 4=> groth plus customer 0 or\n1 free account customer"
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: integer
                  description: ''
                  example: 2
                name:
                  type: string
                  description: ''
                  example: sit
                email:
                  type: string
                  description: ''
                  example: kurtis21@example.org
                address:
                  type: string
                  description: ''
                  example: iusto
                phone:
                  type: string
                  description: ''
                  example: officia
                logo:
                  type: string
                  description: 'base64 encoded image sting'
                  example: ullam
                password:
                  type: string
                  description: ''
                  example: 'Two9#4Dwm,4$4i'
                busnessname:
                  type: string
                  description: ''
                  example: at
              required:
                - type
                - name
                - email
                - address
                - phone
                - logo
                - password
                - busnessname
      security: []
  /y_vendors:
    post:
      summary: 'Yaita get all vendors.'
      operationId: yaitaGetAllVendors
      description: 'Administrator should be authenticated'
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
  /vendorAuth:
    post:
      summary: 'Authenticates a vendor using email and password.'
      operationId: authenticatesAVendorUsingEmailAndPassword
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Vendor Controller End_points'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: ''
                  example: cemmerich@example.org
                password:
                  type: string
                  description: ''
                  example: '@jyeZ<\i9{HW213rS'
              required:
                - email
                - password
tags:
  -
    name: 'Admin Controller End_points'
    description: "\nAPIs for the Orders"
  -
    name: 'Consolidation Controller End_points'
    description: "\nAPIs for the Order Consolidation"
  -
    name: Endpoints
    description: ''
  -
    name: 'Order Controller End_points'
    description: "\nAPIs for the Orders"
  -
    name: 'Product Controller End_points'
    description: "\nAPIs for the vendor"
  -
    name: 'Vendor Controller End_points'
    description: "\nAPIs for the vendor"
