Xestando Usage Records V 1 Controller API

The usage-records-v-1-controller API from Xestando — 2 operation(s) for usage-records-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 2

POST /v1/usage-records Record #
GET /v1/usage-records/summary Summary #

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-usage-records-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-usage-records-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 Usage Records V 1 Controller API
  version: v1
servers:
- description: Produccion
  url: https://api.xestando.com
security:
- oauth2: []
tags:
- name: usage-records-v-1-controller
paths:
  /v1/usage-records:
    post:
      operationId: record
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsageRecordDraftV1'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageSummary'
          description: OK
      tags:
      - usage-records-v-1-controller
      summary: Record
      x-summary-source: derived
  /v1/usage-records/summary:
    get:
      operationId: summary
      parameters:
      - in: query
        name: planId
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageSummary'
          description: OK
      tags:
      - usage-records-v-1-controller
      summary: Summary
      x-summary-source: derived
components:
  schemas:
    UsageRecordDraftV1:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/Event'
          minItems: 1
        planId:
          type: string
          format: uuid
      required:
      - events
      - planId
    Event:
      type: object
      properties:
        description:
          type: string
          maxLength: 200
          minLength: 0
        externalId:
          type: string
          maxLength: 120
          minLength: 0
        occurredAt:
          type: string
          format: date-time
        quantity:
          type: number
          format: double
          exclusiveMinimum: 0
        unitPriceCents:
          type: integer
          format: int64
          minimum: 0
      required:
      - description
      - externalId
      - quantity
      - unitPriceCents
    UsageSummary:
      type: object
      properties:
        currency:
          type: string
        feeMinor:
          type: integer
          format: int64
        lines:
          type: array
          items:
            $ref: '#/components/schemas/UsageInvoiceLineCommand'
        netMinor:
          type: integer
          format: int64
        planId:
          type: string
          format: uuid
        records:
          type: integer
          format: int32
        subtotalMinor:
          type: integer
          format: int64
        taxMinor:
          type: integer
          format: int64
        totalMinor:
          type: integer
          format: int64
    UsageInvoiceLineCommand:
      type: object
      properties:
        description:
          type: string
        quantity:
          type: number
          format: double
        unitPriceCents:
          type: integer
          format: int64
  securitySchemes:
    oauth2:
      bearerFormat: JWT
      description: Token emitido por https://oauth2.xestando.com
      scheme: bearer
      type: http
x-xestando-capabilities: /v1/capabilities