Xestando Invoices V 1 Controller API

The invoices-v-1-controller API from Xestando — 6 operation(s) for invoices-v-1-controller.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

GET /v1/invoices Search 1 #
POST /v1/invoices Create 2 #
GET /v1/invoices/{id} Get 4 #
POST /v1/invoices/{id}/annul Annul #
GET /v1/invoices/{id}/compliance Compliance #
POST /v1/invoices/{id}/issue Issue #
POST /v1/invoices/{id}/send Send #

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/xestando-com:xestando-com-invoices-v-1-controller-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

xestando-com-invoices-v-1-controller-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: Xestando
    url: https://xestando.com
  description: 'API de operaciones de negocio y cumplimiento para pymes españolas y europeas.


    Cada operacion declara un nivel de riesgo. Las de nivel L2 y L3 no se ejecutan en la llamada: devuelven 202 con una operacion pendiente que una persona tiene que aprobar en Xestando. El catalogo completo, con el nivel de cada una, esta en GET /v1/capabilities.


    Las escrituras admiten la cabecera Idempotency-Key: repetir la misma peticion con la misma clave devuelve la respuesta de la primera y no repite el efecto.'
  title: Xestando Business Invoices V 1 Controller API
  version: v1
servers:
- description: Produccion
  url: https://api.xestando.com
security:
- oauth2: []
tags:
- name: invoices-v-1-controller
paths:
  /v1/invoices:
    get:
      operationId: search_1
      parameters:
      - in: query
        name: from
        required: false
        schema:
          type: string
          format: date
      - in: query
        name: to
        required: false
        schema:
          type: string
          format: date
      - in: query
        name: number
        required: false
        schema:
          type: string
      - in: query
        name: page
        required: false
        schema:
          type: integer
          format: int32
          default: 0
      - in: query
        name: size
        required: false
        schema:
          type: integer
          format: int32
          default: 50
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPageInvoiceV1'
          description: OK
      tags:
      - invoices-v-1-controller
      summary: Search 1
      x-summary-source: derived
    post:
      operationId: create_2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoiceDraftV1'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceV1'
          description: OK
      tags:
      - invoices-v-1-controller
      summary: Create 2
      x-summary-source: derived
  /v1/invoices/{id}:
    get:
      operationId: get_4
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceV1'
          description: OK
      tags:
      - invoices-v-1-controller
      summary: Get 4
      x-summary-source: derived
  /v1/invoices/{id}/annul:
    post:
      operationId: annul
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingApproval'
          description: OK
      tags:
      - invoices-v-1-controller
      summary: Annul
      x-summary-source: derived
  /v1/invoices/{id}/compliance:
    get:
      operationId: compliance
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceStatusV1'
          description: OK
      tags:
      - invoices-v-1-controller
      summary: Compliance
      x-summary-source: derived
  /v1/invoices/{id}/issue:
    post:
      operationId: issue
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingApproval'
          description: OK
      tags:
      - invoices-v-1-controller
      summary: Issue
      x-summary-source: derived
  /v1/invoices/{id}/send:
    post:
      operationId: send
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingApproval'
          description: OK
      tags:
      - invoices-v-1-controller
      summary: Send
      x-summary-source: derived
components:
  schemas:
    InvoiceDraftV1:
      type: object
      properties:
        customer:
          $ref: '#/components/schemas/PartyDraftV1'
        issueDate:
          type: string
          format: date
        lines:
          type: array
          items:
            $ref: '#/components/schemas/LineV1'
        notes:
          type: string
          maxLength: 500
          minLength: 0
        seriesCode:
          type: string
          maxLength: 20
          minLength: 0
        taxWithheldPercentage:
          type: number
          format: double
      required:
      - customer
    InvoiceV1:
      type: object
      properties:
        baseAmount:
          type: number
          format: double
        compliance:
          $ref: '#/components/schemas/ComplianceStatusV1'
        currency:
          type: string
        customer:
          $ref: '#/components/schemas/PartyV1'
        id:
          type: string
          format: uuid
        issueDate:
          type: string
          format: date
        lines:
          type: array
          items:
            $ref: '#/components/schemas/LineV1'
        notes:
          type: string
        number:
          type: string
        seriesCode:
          type: string
        taxAmount:
          type: number
          format: double
        taxWithheld:
          type: number
          format: double
        total:
          type: number
          format: double
    LineV1:
      type: object
      properties:
        baseAmount:
          type: number
          format: double
        description:
          type: string
        quantity:
          type: number
          format: double
        taxAmount:
          type: number
          format: double
        taxRate:
          type: number
          format: double
        total:
          type: number
          format: double
        unitPrice:
          type: number
          format: double
    PartyV1:
      type: object
      properties:
        address:
          type: string
        countryCode:
          type: string
        email:
          type: string
        id:
          type: string
          format: uuid
        name:
          type: string
        phone:
          type: string
        postCode:
          type: string
        province:
          type: string
        role:
          type: string
        taxId:
          type: string
        town:
          type: string
        tradeName:
          type: string
    PartyDraftV1:
      type: object
      properties:
        address:
          type: string
          maxLength: 300
          minLength: 0
        countryCode:
          type: string
          maxLength: 3
          minLength: 0
        email:
          type: string
          maxLength: 200
          minLength: 0
        name:
          type: string
          maxLength: 200
          minLength: 0
        phone:
          type: string
          maxLength: 40
          minLength: 0
        postCode:
          type: string
          maxLength: 20
          minLength: 0
        province:
          type: string
          maxLength: 100
          minLength: 0
        taxId:
          type: string
          maxLength: 30
          minLength: 0
        town:
          type: string
          maxLength: 100
          minLength: 0
        tradeName:
          type: string
          maxLength: 200
          minLength: 0
      required:
      - name
    ApiPageInvoiceV1:
      type: object
      properties:
        hasMore:
          type: boolean
        items:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceV1'
        page:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        total:
          type: integer
          format: int64
    PendingApproval:
      type: object
      properties:
        approvalUrl:
          type: string
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        message:
          type: string
        operation:
          type: string
        operationId:
          type: string
          format: uuid
        requiresDeviceVerification:
          type: boolean
        status:
          type: string
        summary:
          type: string
        title:
          type: string
    ComplianceStatusV1:
      type: object
      properties:
        completedAt:
          type: string
          format: date-time
        errorCode:
          type: string
        errorMessage:
          type: string
        fingerprint:
          type: string
        identifier:
          type: string
        issuedAt:
          type: string
          format: date-time
        qrPayload:
          type: string
        regime:
          type: string
        status:
          type: string
  securitySchemes:
    oauth2:
      bearerFormat: JWT
      description: Token emitido por https://oauth2.xestando.com
      scheme: bearer
      type: http
x-xestando-capabilities: /v1/capabilities