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

# Send invoice email to contractor

> This endpoint allows you to send an issued invoice to your contractor over email.
In order use the endpoint, proper configuration of global reply-to email is required (Settings > Sales > E-mail messages)



## OpenAPI

````yaml /openapi/openapi.json post /sales/invoice/send
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/invoice/send:
    post:
      tags:
        - Sales
      summary: Send invoice email to contractor
      description: >-
        This endpoint allows you to send an issued invoice to your contractor
        over email.

        In order use the endpoint, proper configuration of global reply-to email
        is required (Settings > Sales > E-mail messages)
      operationId: post-sales-invoice-send
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                invoiceId:
                  type: integer
                  x-stoplight:
                    id: t22p1bpr1btte
                topic:
                  type: string
                  x-stoplight:
                    id: a5hpyzlc5tcfb
                  example: 'New invoice #123'
                  maxLength: 400
                content:
                  type: string
                  x-stoplight:
                    id: 06p82inxcfrf4
                  maxLength: 8000
                recipient:
                  type: array
                  x-stoplight:
                    id: aykqecgp3bwje
                  items:
                    x-stoplight:
                      id: 4e5kiqhkdptx3
                    type: string
                    format: email
                recipientFromSystem:
                  type: boolean
                  x-stoplight:
                    id: r5bq0s5y64yt5
              required:
                - invoiceId
        description: >-
          Either `recipient` array or `recipientFromSystem` is required in order
          to send the e-mail.

          If not provided `topic` and/or `content` will be loaded dynamically
          from the company email configuration.


          `content` accepts both raw text as well as HTML data that will be
          parsed and cleaned up before being added to the email content.
      responses:
        '200':
          description: OK
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header
      description: OpenApi Key created within Altera.app for a certain company

````