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

# Mark Invoice as paid

> Sets the payment status of selected invoices as paid, marks paidAmount as whole amount.



## OpenAPI

````yaml /openapi/openapi.json post /sales/markPaid
openapi: 3.1.0
info:
  title: OpenAPI
  version: '1.0'
  summary: OpenApi
  contact:
    name: Altera Support
    url: https://altera.co
    email: wsparcie@altera.co
  description: ''
  license:
    url: https://altera.co/regulamin
    name: Terms of services for Altera.app
servers:
  - url: https://api.altera.co
    description: Production endpoint (proxied)
security:
  - Authorization: []
tags:
  - name: Configuration
  - name: Data export
  - name: Expenses
  - name: Sales
paths:
  /sales/markPaid:
    parameters: []
    post:
      tags:
        - Sales
      summary: Mark Invoice as paid
      description: >-
        Sets the payment status of selected invoices as paid, marks paidAmount
        as whole amount.
      operationId: postsales-markPaid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                invoiceIds:
                  type: array
                  items:
                    type: integer
              x-examples:
                Example 1:
                  invoiceIds:
                    - 12679
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
components:
  schemas:
    SuccessResponse:
      title: SuccessResponse
      x-stoplight:
        id: yqo2bqzd7zztg
      type: object
      properties:
        result:
          type: string
          x-stoplight:
            id: 22hlosab8poxg
          default: OK
          example: OK
          enum:
            - OK
        data:
          type: object
          x-stoplight:
            id: i58aambagr5xn
      examples:
        - result: OK
          data:
            invoiceId: 12413
      description: |-
        Regular format of success response in Altera API
        Retrieved information will always be stored in the 'data' node
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header
      description: OpenApi Key created within Altera.app for a certain company

````