> ## 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.

# Get barcode.

> This endpoint generates and returns a barcode image encoding the specified receipt identifier.



## OpenAPI

````yaml openapi/receipts-v1.json GET /v1/receipts/{receiptId}/barcode
openapi: 3.0.1
info:
  title: Receipts.Api - V1
  version: v1
servers:
  - url: https://{host}/receipts
    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:
  - oauth2: []
paths:
  /v1/receipts/{receiptId}/barcode:
    get:
      tags:
        - Service2Service
      summary: Get barcode.
      description: >-
        This endpoint generates and returns a barcode image encoding the
        specified receipt identifier.
      parameters:
        - name: receiptId
          in: path
          description: The unique identifier of the receipt.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
  securitySchemes:
    oauth2:
      type: apiKey
      name: Authorization
      in: header

````