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

# Close receipt

> Close an existing receipt by updating its payment methods and setting the closing timestamp.



## OpenAPI

````yaml /api-reference/v2/openapi.json post /receipts/{id}/close
openapi: 3.1.0
info:
  title: Clopos Open API v2
  description: >-
    The **Clopos Open API v2** provides secure and unified access to the Clopos
    ecosystem, enabling seamless integration of POS, ordering, payments, and
    restaurant management services.
  contact:
    email: dev@clopos.com
  version: 2.0.0
  license:
    name: ''
servers:
  - url: https://integrations.clopos.com/open-api/v2
    description: '**Base Url**'
security:
  - xToken: []
tags:
  - name: Authentication
  - name: Venues
  - name: Users
  - name: Customers
  - name: Menu
  - name: Stations
  - name: Products
  - name: Price Lists
  - name: Sales
  - name: Orders
  - name: Receipts
paths:
  /receipts/{id}/close:
    post:
      tags:
        - Receipts
      summary: Close receipt
      description: >-
        Close an existing receipt by updating its payment methods and setting
        the closing timestamp.
      parameters:
        - name: id
          in: path
          required: true
          description: Receipt ID
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloseReceiptRequest'
      responses:
        '200':
          description: Receipt closed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloseReceiptResponse'
        '400':
          description: Validation error - closed_at must be greater than created_at
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Receipt not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CloseReceiptRequest:
      type: object
      required:
        - payment_methods
      properties:
        payment_methods:
          type: array
          description: List of payment methods with amounts
          items:
            $ref: '#/components/schemas/PaymentMethodEntry'
          minItems: 1
        closed_at:
          type: string
          description: >-
            Closing timestamp. Defaults to current time if omitted. Format:
            YYYY-MM-DD HH:mm:ss
          example: '2025-11-07 09:59:54'
      example:
        payment_methods:
          - id: 2
            name: Cash
            amount: 8.14
        closed_at: '2025-11-07 09:59:54'
    CloseReceiptResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
          properties:
            id:
              type: integer
            closed_at:
              type: string
            payment_methods:
              type: array
              items:
                $ref: '#/components/schemas/PaymentMethodEntry'
      example:
        success: true
        message: Receipt closed
        data:
          id: 10950
          closed_at: '2025-11-07 09:59:54'
          payment_methods:
            - id: 2
              name: Cash
              amount: 8.14
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
    PaymentMethodEntry:
      type: object
      required:
        - id
        - name
        - amount
      properties:
        id:
          type: integer
        name:
          type: string
        amount:
          type: number
  securitySchemes:
    xToken:
      type: apiKey
      in: header
      name: x-token
      description: JWT access token obtained from /v2/auth endpoint

````