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

# Generate reverse check-in code

> Generate a check-in code for the member.



## OpenAPI

````yaml openapi/payment-v1.json POST /v1/checkin/code
openapi: 3.0.4
info:
  title: PaymentCoordinator.Api
  version: v1
servers:
  - url: https://{host}/payment
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/checkin/code:
    post:
      tags:
        - Service2Service
      summary: Generate reverse check-in code
      description: Generate a check-in code for the member.
      requestBody:
        description: The check in
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/PaymentCoordinator.Api.Controllers.Service2Service.CheckInController.GenerateCheckInCodeRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/PaymentCoordinator.Api.Controllers.Service2Service.CheckInController.GenerateCheckInCodeRequest
          application/*+json:
            schema:
              $ref: >-
                #/components/schemas/PaymentCoordinator.Api.Controllers.Service2Service.CheckInController.GenerateCheckInCodeRequest
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaymentCoordinator.Api.CQRS.CheckIn.Commands.GenerateCheckInCode.Response
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
components:
  schemas:
    PaymentCoordinator.Api.Controllers.Service2Service.CheckInController.GenerateCheckInCodeRequest:
      required:
        - memberId
      type: object
      properties:
        memberId:
          maxLength: 36
          minLength: 1
          type: string
          description: The member identifier
        userId:
          type: string
          description: The user identifier. Optional field
          nullable: true
      additionalProperties: false
    PaymentCoordinator.Api.CQRS.CheckIn.Commands.GenerateCheckInCode.Response:
      type: object
      properties:
        checkInCodeId:
          type: string
          description: The check in code identifier
          nullable: true
        code:
          type: string
          description: The code generated to be displayed by mobile application
          nullable: true
        type:
          $ref: >-
            #/components/schemas/PaymentCoordinator.Domain.Entities.CheckInCodeType
      additionalProperties: false
    LoopFoundation.Commons.Contracts.WebServiceError:
      required:
        - message
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
        message:
          minLength: 1
          type: string
        details:
          nullable: true
      additionalProperties: false
    PaymentCoordinator.Domain.Entities.CheckInCodeType:
      enum:
        - QrCode
        - BarCode
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````