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

# Check in

> Record an arrival for a booking, an event ticket, a visit, or a member's subscription. Identify what to check in with its check-in id, with the location and a six-digit code, or with the location and a customer ref to check a member in without a code. With bearer token authentication, the user must be an administrator of the location. <h3>OAuth</h3>Required scopes: <code>checkIns</code>



## OpenAPI

````yaml /assets/openapi.json post /check_ins/v1/checkin
openapi: 3.0.2
info:
  title: Spacebring
  version: 1.0.0
  termsOfService: https://www.spacebring.com/terms
servers:
  - url: https://api.spacebring.com
security: []
paths:
  /check_ins/v1/checkin:
    post:
      tags:
        - Check-ins
      summary: Check in
      description: >-
        Record an arrival for a booking, an event ticket, a visit, or a member's
        subscription. Identify what to check in with its check-in id, with the
        location and a six-digit code, or with the location and a customer ref
        to check a member in without a code. With bearer token authentication,
        the user must be an administrator of the location.
        <h3>OAuth</h3>Required scopes: <code>checkIns</code>
      operationId: checkIn
      parameters:
        - in: header
          name: spacebring-network-id
          schema:
            type: string
            format: uuid
          required: false
          description: >-
            The id of the network. Required when using bearer token
            authentication
      requestBody:
        $ref: '#/components/requestBodies/checkIn'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getCheckIn'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseError'
      security:
        - BasicAuth: []
        - OAuth2:
            - checkIns
components:
  requestBodies:
    checkIn:
      content:
        application/json:
          schema:
            type: object
            properties:
              checkInId:
                description: The ID of the check-in.
                type: string
                format: uuid
              code:
                description: >-
                  Confirmation code of the check-in, or a member's personal
                  code. Required when the check-in was created with one.
                type: string
              locationRef:
                description: >-
                  UUID of the location the code was issued in. Required when the
                  check-in is resolved by its code or a customer ref.
                type: string
                format: uuid
              customerRef:
                description: >-
                  ID of a member to check in on their subscription without a
                  code. Only administrators of the location can check a member
                  in this way.
                type: string
                format: uuid
      required: true
  schemas:
    getCheckIn:
      type: object
      properties:
        checkIn:
          type: object
          properties:
            booking:
              description: Booking this check-in was created for, if any.
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                  description: ID of the booking.
              required:
                - id
              additionalProperties: false
            checkInDate:
              description: ISO timestamp of when the user checked in.
              type: string
              format: date-time
            checkInScheduleRef:
              description: >-
                ID of the schedule this check-in was opened under. Absent on
                check-ins created before schedules were introduced.
              type: string
              format: uuid
            checkOutDate:
              description: ISO timestamp of when the user checked out.
              type: string
              format: date-time
            code:
              description: Confirmation code of the check-in.
              type: string
            createDate:
              type: string
              format: date-time
              description: ISO timestamp of when the check-in was created.
            endDate:
              description: >-
                ISO timestamp of when the check-in expires. Absent when it was
                opened under a schedule without an end date, or with a personal
                code.
              type: string
              format: date-time
            eventTicket:
              description: Event ticket this check-in was created for, if any.
              type: object
              properties:
                eventRef:
                  type: string
                  format: uuid
                  description: ID of the event.
                id:
                  type: string
                  format: uuid
                  description: ID of the event ticket.
              required:
                - eventRef
                - id
              additionalProperties: false
            id:
              type: string
              format: uuid
              description: Unique identifier of the check-in.
            networkRef:
              type: string
              format: uuid
              description: ID of the network this check-in belongs to.
            locationRef:
              type: string
              format: uuid
              description: ID of the location this check-in belongs to.
            status:
              type: string
              enum:
                - checkedIn
                - checkedOut
                - scheduled
                - expired
              description: Status of the check-in.
            startDate:
              type: string
              format: date-time
              description: ISO timestamp of when the check-in starts.
            type:
              type: string
              enum:
                - deskBooking
                - roomBooking
                - eventTicket
                - visit
                - subscription
              description: What the check-in was created for.
            user:
              description: >-
                The user this check-in is for, read from the users service so
                the details are current.
              type: object
              properties:
                email:
                  description: Email address of the user.
                  nullable: true
                  type: string
                id:
                  type: string
                  format: uuid
                  description: Unique identifier of the user.
                name:
                  description: First name of the user.
                  nullable: true
                  type: string
                phoneNumber:
                  description: Phone number of the user.
                  nullable: true
                  type: string
                photoUrl:
                  description: User profile photo URL.
                  nullable: true
                  type: string
                surname:
                  description: Surname of the user.
                  nullable: true
                  type: string
              required:
                - id
              additionalProperties: false
            visit:
              description: Visit this check-in was created for, if any.
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                  description: ID of the visit.
                userHost:
                  description: >-
                    The host the visit is with, read from the users service so
                    the details are current.
                  type: object
                  properties:
                    id:
                      type: string
                      format: uuid
                      description: Unique identifier of the host.
                    name:
                      description: First name of the host.
                      nullable: true
                      type: string
                    surname:
                      description: Surname of the host.
                      nullable: true
                      type: string
                  required:
                    - id
                  additionalProperties: false
              required:
                - id
              additionalProperties: false
          required:
            - createDate
            - id
            - networkRef
            - locationRef
            - status
            - startDate
            - type
          additionalProperties: false
          description: The check-in.
      required:
        - checkIn
      additionalProperties: false
    responseError:
      type: object
      properties:
        message:
          type: string
        type:
          type: string
  securitySchemes:
    BasicAuth:
      type: http
      description: >-
        See our [authentication
        documentation](https://www.spacebring.com/docs/developer/api/authentication#basic-authentication)
        for how to authorize your requests
      scheme: basic
    OAuth2:
      type: oauth2
      description: >-
        See our [authentication
        documentation](https://www.spacebring.com/docs/developer/api/authentication#oauth2)
        for how to authorize your requests
      flows:
        authorizationCode:
          authorizationUrl: https://api.spacebring.com/oauth2/authorize
          tokenUrl: https://api.spacebring.com/oauth2/token
          refreshUrl: https://api.spacebring.com/oauth2/token
          scopes:
            benefits.readonly: Read benefits and applications
            benefits: Read and write benefits and applications
            checkIns.readonly: Read check-ins
            checkIns: Read and write check-ins
            community.readonly: Read community companies and memberships
            community: Read and write community companies and memberships
            events.readonly: Read events and tickets
            events: Read and write events and tickets
            feed.readonly: Read feed posts
            feed: Read and write feed posts
            invoices.readonly: Read contracts, credit notes, discounts and invoices
            invoices: Read and write contract, credit notes, discounts and invoices
            locations.readonly: Read locations
            locations: Read and write locations
            plans.readonly: Read plans
            plans: Read and write plans
            resources.readonly: Read resources and bookings
            resources: Read and write resources and bookings
            subscriptions.readonly: Read subscriptions
            subscriptions: Read and write subscriptions
            shop.readonly: Read products and orders
            shop: Read and write products and orders
            support.readonly: Read support tickets
            support: Read and write support tickets
            transactions.readonly: Read transactions
            transactions: Read and write transactions
            visitors.readonly: Read visitors
            visitors: Read and write visitors

````