Altoviz Purchase Invoices API

Purchase invoices API

Operations 2

POST /v1/purchaseinvoices/file Creates new purchase invoice from file #
GET /v1/purchaseinvoices/download/{id} Download the invoice as a PDF file #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/altoviz-com:altoviz-com-purchaseinvoices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

altoviz-com-purchaseinvoices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Altoviz Purchase Invoices API
  description: 'RESTful APIs for the Altoviz services


    ## Deprecations


    ### Product prices


    A product now stores its sale price both excluding and including tax, so both are

    returned, along with the margin figures derived from them: `taxExcludedPrice`,

    `taxIncludedPrice`, `margin`, `markupRate` (margin over cost, FR « taux de marge ») and

    `marginRate` (margin over sale price, FR « taux de marque »).


    Two fields are deprecated as a result:


    | Deprecated | Use instead |

    | --- | --- |

    | `unitPrice` | `taxExcludedPrice` |

    | `isUnitPriceTaxIncluded` | `taxIncludedPrice`, to send a tax-included price |


    **`unitPrice` is now always the tax-excluded price.** It previously held whichever half

    the product was priced in, which `isUnitPriceTaxIncluded` told you. For a product priced

    tax-included, `unitPrice` therefore returns a different number than it used to, and

    `isUnitPriceTaxIncluded` is now always `false`. If you read the flag before using the

    price, your result is unchanged. If you assumed the price was tax-included, read

    `taxIncludedPrice`.


    Writing is unaffected. Both fields are still accepted and behave exactly as before:

    `unitPrice` alone is read as tax-excluded, and setting `isUnitPriceTaxIncluded` to `true`

    still means the price you are sending includes tax. `margin`, `markupRate` and

    `marginRate` are derived by the server and ignored if sent.'
  contact:
    name: Altoviz
    email: contact@altoviz.com
  license:
    name: Altoviz license
    url: https://altoviz.com/license
  version: v1
  x-logo:
    url: https://altoviz.com/altoviz-logo-ext-violet-262x72.png
    altText: Altoviz logo
servers:
- url: https://api.altoviz.com
  description: Altoviz
security:
- {}
tags:
- name: PurchaseInvoices
  description: Purchase invoices API
paths:
  /v1/purchaseinvoices/file:
    post:
      tags:
      - PurchaseInvoices
      summary: Creates new purchase invoice from file
      operationId: POST_PurchaseInvoices_CreateFromFile
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  description: file
                  format: binary
            encoding:
              file:
                style: form
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PurchaseInvoice'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/purchaseinvoices/download/{id}:
    get:
      tags:
      - PurchaseInvoices
      summary: Download the invoice as a PDF file
      operationId: GET_PurchaseInvoices_Download
      parameters:
      - name: id
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: string
                format: binary
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    VatRegion:
      enum:
      - FR
      - EU
      - IE
      - DOM
      - Corse
      - Monaco
      type: string
    PurchaseInvoice:
      type: object
      properties:
        date:
          type: string
          description: Date
          format: date
        id:
          type: integer
          description: Expense ID
          format: int32
          readOnly: true
        notes:
          type:
          - string
          - 'null'
          description: Notes
        pdfUrl:
          type:
          - string
          - 'null'
          description: Pdf url
          readOnly: true
        reference:
          type:
          - string
          - 'null'
          description: Reference
        region:
          $ref: '#/components/schemas/VatRegion'
        status:
          $ref: '#/components/schemas/ExpenseStatus'
        subject:
          type:
          - string
          - 'null'
          description: Subject
        supplier:
          $ref: '#/components/schemas/Supplier'
        taxIncludedAmount:
          type: number
          description: Tax included amount
          format: double
        vatReverseCharge:
          type: boolean
          description: Vat reverse charge
      additionalProperties: false
      description: Purchase invoice
    Supplier:
      type: object
      properties:
        active:
          type: boolean
          description: Whether the supplier is active
        address:
          $ref: '#/components/schemas/AddressFields'
        cellPhone:
          type:
          - string
          - 'null'
          description: Cell phone number
        companyInformations:
          $ref: '#/components/schemas/CompanyInfo'
        createdAt:
          type:
          - string
          - 'null'
          description: Created date
          format: date-time
        createdById:
          type:
          - string
          - 'null'
          description: Created by user ID
        defaultPaymentMethod:
          $ref: '#/components/schemas/PaymentMethod'
        email:
          type:
          - string
          - 'null'
          description: Email
        firstName:
          type:
          - string
          - 'null'
          description: First name
        id:
          type: integer
          description: Supplier ID
          format: int32
          readOnly: true
        internalId:
          type:
          - string
          - 'null'
          description: Internal Id
        internalNotes:
          type:
          - string
          - 'null'
          description: Internal notes
        lastName:
          type:
          - string
          - 'null'
          description: Last name
        name:
          type:
          - string
          - 'null'
          description: Company name
        number:
          type:
          - string
          - 'null'
          description: Number
        phone:
          type:
          - string
          - 'null'
          description: Phone number
        title:
          type:
          - string
          - 'null'
          description: Title
        updatedAt:
          type:
          - string
          - 'null'
          description: Updated date
          format: date-time
        updatedById:
          type:
          - string
          - 'null'
          description: Updated by user ID
      additionalProperties: false
      description: Supplier
    ExpenseStatus:
      enum:
      - Done
      - Pending
      - Paid
      type: string
    Error:
      type: object
      properties:
        errors:
          type:
          - array
          - 'null'
          items:
            type: string
          description: List of error messages
        message:
          type:
          - string
          - 'null'
          description: Error message
      additionalProperties: false
      description: Error
    CompanyInfo:
      type: object
      properties:
        effectiveElectronicAddress:
          type:
          - string
          - 'null'
        electronicAddress:
          type:
          - string
          - 'null'
        siret:
          type:
          - string
          - 'null'
        vatNumber:
          type:
          - string
          - 'null'
      additionalProperties: false
    AddressFields:
      type: object
      properties:
        city:
          type:
          - string
          - 'null'
        countryIso:
          type:
          - string
          - 'null'
        countryName:
          type:
          - string
          - 'null'
          readOnly: true
        formattedAddress:
          type:
          - string
          - 'null'
          readOnly: true
        inlineAddress:
          type:
          - string
          - 'null'
          readOnly: true
        street:
          type:
          - string
          - 'null'
        zipcode:
          type:
          - string
          - 'null'
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        detail:
          type:
          - string
          - 'null'
        instance:
          type:
          - string
          - 'null'
        status:
          type:
          - integer
          - 'null'
          format: int32
        title:
          type:
          - string
          - 'null'
        type:
          type:
          - string
          - 'null'
      additionalProperties: {}
    PaymentMethod:
      enum:
      - Transfer
      - Order
      - Check
      - Cash
      - Card
      - Bill
      - Usec
      - Other
      type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      description: 'API KEY generated in application. Example: "X-API-KEY: {apiKey}"'
      name: X-API-KEY
      in: header