> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getjusto.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Abrir caja

> Abre la caja en el turno actual. Si el local no tiene turno abierto, también abre el turno. Queda registrado a nombre del usuario que conectó el MCP de administración y usa sus permisos, como en el PDV. Con un token de la API responde userRequired.



## OpenAPI

````yaml post /tabs/{storeId}/cash-registers/{cashRegisterId}/open
openapi: 3.1.0
info:
  title: Justo API
  version: 3.0.0
servers:
  - url: https://api.service.getjusto.com/v3
    description: Production server
security: []
paths:
  /tabs/{storeId}/cash-registers/{cashRegisterId}/open:
    post:
      summary: Open cash register
      description: >-
        Abre la caja en el turno actual. Si el local no tiene turno abierto,
        también abre el turno. Queda registrado a nombre del usuario que conectó
        el MCP de administración y usa sus permisos, como en el PDV. Con un
        token de la API responde userRequired.
      parameters:
        - in: path
          name: storeId
          required: true
          schema:
            type: string
          description: ID Justo del local.
        - in: path
          name: cashRegisterId
          required: true
          schema:
            type: string
          description: ID de la caja, de GET /tabs/{storeId}/cash-registers.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/tabsOpenCashRegisterInput'
      responses:
        '200':
          description: The OpenAPI spec
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/tabsCashRegister'
        '400':
          description: Errors
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: 'false'
                  error:
                    type: object
                    properties:
                      error:
                        type: string
                        example: error
                      message:
                        type: string
                        example: The request has an error
components:
  schemas:
    tabsOpenCashRegisterInput:
      type: object
      additionalProperties: false
      properties:
        startBalances:
          type: array
          items:
            type: object
            required:
              - paymentMethodId
            additionalProperties: false
            properties:
              paymentMethodId:
                type: string
                description: Medio de pago, de GET /tabs/{storeId}/payment-methods.
              balance:
                type: number
                minimum: 0
                description: Monto contado en la caja.
          description: >-
            Monto con que parte la caja por medio de pago, normalmente el
            efectivo contado. Opcional.
        startComments:
          type: string
          description: Comentarios de apertura.
      example:
        startBalances:
          - paymentMethodId: tpm-4c48bf33
            balance: 50000
    tabsCashRegister:
      type: object
      description: Caja del local y su estado en el turno actual.
      properties:
        _id:
          type: string
          description: ID de la caja.
        name:
          type: string
          description: Nombre de la caja.
        isDefault:
          type: boolean
          description: Si es la caja por defecto del local.
        status:
          type: string
          enum:
            - notOpened
            - open
            - closed
          description: >-
            notOpened: no se ha abierto en el turno actual (o no hay turno).
            open: abierta. closed: ya se cerró en este turno.
        shiftId:
          type:
            - string
            - 'null'
          description: Turno abierto del local, si hay uno.
        openedAt:
          type:
            - string
            - 'null'
          description: Fecha de apertura en este turno.
        openedByName:
          type:
            - string
            - 'null'
          description: Quién la abrió.
        closedAt:
          type:
            - string
            - 'null'
          description: Fecha de cierre en este turno.
        closedByName:
          type:
            - string
            - 'null'
          description: Quién la cerró.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.