Vestiarion Payables and receivables API

The Payables and receivables API from Vestiarion, for payables and receivables.

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

GET /api/v1/invoices List invoices #
POST /api/v1/invoices Add an invoice #

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/vestiarion-xyz:vestiarion-xyz-payables-and-receivables-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

vestiarion-xyz-payables-and-receivables-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vestiarion Payables and receivables API
  version: v1
  description: Read a workspace's ledger, books, counterparties, milestones, treasury and insights, each payment's evidence and receipt and the monthly close pack, and add counterparties, invoices, milestones and payee links, with a workspace API key.
servers:
- url: https://www.vestiarion.xyz
tags:
- name: Payables and receivables
paths:
  /api/v1/invoices:
    get:
      operationId: list-invoices
      summary: List invoices
      description: 'The payable and receivable book, newest first, with the row id breaking equal timestamps. Each invoice carries the agent''s reasoning, not only its verdict. Only a transaction reference beginning with `0x` is exposed as `txHash`; a simulated receipt gives `null`.


        An unknown `direction` or `status` is refused with `400` rather than ignored.'
      tags:
      - Payables and receivables
      security:
      - bearerAuth: []
      parameters:
      - name: limit
        in: query
        required: false
        description: How many items to return. Defaults to 50; a larger value is capped at 200.
        schema:
          type: integer
          default: 50
          minimum: 1
          maximum: 200
      - name: cursor
        in: query
        required: false
        description: 'The previous response''s `page.nextCursor`, passed back unchanged to continue. Opaque: never decode or construct one. A cursor this endpoint could not have issued is refused with `400`.'
        schema:
          type: string
      - name: direction
        in: query
        required: false
        description: Only payables, or only receivables.
        schema:
          type: string
          enum:
          - payable
          - receivable
      - name: status
        in: query
        required: false
        description: Only invoices in this status.
        schema:
          type: string
          enum:
          - pending
          - matched
          - scheduled
          - paid
          - held
          - flagged
          - awaiting_info
          - received
          - rejected
      - name: counterpartyId
        in: query
        required: false
        description: Only invoices from or to this counterparty.
        schema:
          type: string
        example: 4e363b59-d1ca-4425-924c-5c894bc3373f
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInvoicesResponse'
              example:
                data:
                - id: 9440f32c-000d-4a63-97f1-4eb6bf78439f
                  direction: payable
                  status: paid
                  amount: 0.11
                  currency: USDC
                  memo: Stage-isolation verification
                  poReference: PO-4001
                  goodsReceived: true
                  dueDate: '2026-09-28T15:22:48.928+00:00'
                  scheduledFor: null
                  earlyPayDiscount: null
                  lateFee: null
                  decidedAt: '2026-09-24T15:24:22.75+00:00'
                  settledAt: '2026-09-24T15:24:22.75+00:00'
                  escalatedAt: null
                  agentReasoning: 'Three-way match is complete: PO-4001 is on file and goodsReceived is true. Counterparty Vercel Inc has riskLevel ''clear'' (not high) and the invoice amount 0.11 USDC is below the counterparty payment limit of 2 USDC. Treasury operatingBalance is 22.875 USDC, leaving 22.765 USDC after payment, and no duplicate matches were found (duplicateNote confirms no earlier payable from this counterparty resembles this invoice), so there is no fraud indicator.'
                  txHash: '0xda97ba74aca6a45e4759858230e743aac0735252b874fb07c20ec8026d80a7bf'
                  paidAmount: 0.11
                  counterparty:
                    id: 4e363b59-d1ca-4425-924c-5c894bc3373f
                    name: Vercel Inc
                    riskLevel: clear
                  createdAt: '2026-09-24T15:22:50.176754+00:00'
                page:
                  nextCursor: eyJrIjoiMjAyNi0wOS0yNFQxNToyMjo1MC4xNzY3NTQrMDA6MDAiLCJpZCI6Ijk0NDBmMzJjLTAwMGQtNGE2My05N2YxLTRlYjZiZjc4NDM5ZiJ9
                  hasMore: true
                  count: 1
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: internal
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    post:
      operationId: create-invoice
      summary: Add an invoice
      description: 'Adds a payable or a receivable, checked by the rules of the console''s invoice form, and recorded in the ledger as `create_invoice` with `via: "api"` and the key''s id. It is added as the key''s issuer''s: if the agent holds it, the issuer cannot approve it, unless they are the workspace''s only approver.


        The agent decides a payable as one typed in, with every guardrail and the workspace''s limits, usually within a minute. The API never approves or pays. A `counterpartyId` the workspace does not hold, including another workspace''s, answers `400`.'
      tags:
      - Payables and receivables
      security:
      - bearerAuth: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: 'Makes a retry safe: up to 255 printable ASCII characters, unique to the record being added, such as its id in your own system. A repeat with the same key and the same body within 24 hours gets the first answer back, with `Idempotent-Replayed: true`, and adds nothing. The same key with a different body answers `409`.'
        schema:
          type: string
        example: billing-inv-2026-0042
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInvoiceRequest'
            example:
              counterpartyId: 6b361405-cfda-4400-a286-364b561911ce
              amount: '0.10'
              dueDate: '2026-10-03'
              poReference: PO-API-1
              goodsReceived: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateInvoiceResponse'
              example:
                data:
                  id: 1f96fd0b-71de-41bf-b088-779655ea6df4
                  direction: payable
                  status: pending
                  amount: 0.1
                  currency: USDC
                  memo: null
                  poReference: PO-API-1
                  goodsReceived: true
                  dueDate: '2026-10-03T12:00:00+00:00'
                  scheduledFor: null
                  earlyPayDiscount: null
                  lateFee: null
                  decidedAt: null
                  settledAt: null
                  escalatedAt: null
                  agentReasoning: null
                  txHash: null
                  paidAmount: null
                  counterparty:
                    id: 6b361405-cfda-4400-a286-364b561911ce
                    name: API Test Vendor
                    riskLevel: clear
                  createdAt: '2026-10-03T10:16:16.374931+00:00'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: rate_limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: internal
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    CreateInvoiceResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
            direction:
              type: string
              enum:
              - payable
              - receivable
            status:
              type: string
            amount:
              type: number
            currency:
              type: string
              description: 'USDC or EURC: what `amount` is in, and what a payable is paid in. A EURC payable is checked against the counterparty''s USDC limit at a quoted rate.'
            memo:
              type:
              - string
              - 'null'
            poReference:
              type:
              - string
              - 'null'
            goodsReceived:
              type: boolean
            dueDate:
              type: string
            scheduledFor:
              description: ISO timestamp the agent has committed to pay this on, once scheduled; else null.
              type:
              - string
              - 'null'
            earlyPayDiscount:
              anyOf:
              - type: object
                properties:
                  percent:
                    type: number
                  deadline:
                    type: string
                required:
                - percent
                - deadline
              - type: 'null'
              description: 'The early-payment discount this invoice carries, if any: the percent off and the deadline''s ISO timestamp.'
            lateFee:
              anyOf:
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                    - percent_month
                    - fixed
                    description: '`percent_month`, a percent a month of what is still owed, or `fixed`, an amount in `currency`.'
                  value:
                    type: number
                    description: The percent a month, or the fixed amount.
                  startsOn:
                    type: string
                    description: The first day the fee applies, as `YYYY-MM-DD`.
                required:
                - kind
                - value
                - startsOn
              - type: 'null'
              description: The late fee a payable carries, if any. The agent weighs it when a bill waits and when cash is short; it is never added to what is paid.
            decidedAt:
              type:
              - string
              - 'null'
            settledAt:
              type:
              - string
              - 'null'
            escalatedAt:
              type:
              - string
              - 'null'
            agentReasoning:
              description: Why the agent ruled as it did, verbatim from the decision.
              type:
              - string
              - 'null'
            txHash:
              description: 'An on-chain hash once the payment settled, else null: on the workspace''s network, or for a payout from a Gateway balance the mint on the payee''s chain.'
              type:
              - string
              - 'null'
            paidAmount:
              description: What actually left once this invoice was paid; null otherwise, even while a submitted transfer already carries an amount.
              type:
              - number
              - 'null'
            counterparty:
              anyOf:
              - type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  riskLevel:
                    type: string
                required:
                - id
                - name
                - riskLevel
              - type: 'null'
            createdAt:
              type: string
          required:
          - id
          - direction
          - status
          - amount
          - currency
          - memo
          - poReference
          - goodsReceived
          - dueDate
          - scheduledFor
          - earlyPayDiscount
          - lateFee
          - decidedAt
          - settledAt
          - escalatedAt
          - agentReasoning
          - txHash
          - paidAmount
          - counterparty
          - createdAt
          description: An invoice in the payable or receivable book, with the agent's reasoning.
      required:
      - data
    ListInvoicesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              direction:
                type: string
                enum:
                - payable
                - receivable
              status:
                type: string
              amount:
                type: number
              currency:
                type: string
                description: 'USDC or EURC: what `amount` is in, and what a payable is paid in. A EURC payable is checked against the counterparty''s USDC limit at a quoted rate.'
              memo:
                type:
                - string
                - 'null'
              poReference:
                type:
                - string
                - 'null'
              goodsReceived:
                type: boolean
              dueDate:
                type: string
              scheduledFor:
                description: ISO timestamp the agent has committed to pay this on, once scheduled; else null.
                type:
                - string
                - 'null'
              earlyPayDiscount:
                anyOf:
                - type: object
                  properties:
                    percent:
                      type: number
                    deadline:
                      type: string
                  required:
                  - percent
                  - deadline
                - type: 'null'
                description: 'The early-payment discount this invoice carries, if any: the percent off and the deadline''s ISO timestamp.'
              lateFee:
                anyOf:
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                      - percent_month
                      - fixed
                      description: '`percent_month`, a percent a month of what is still owed, or `fixed`, an amount in `currency`.'
                    value:
                      type: number
                      description: The percent a month, or the fixed amount.
                    startsOn:
                      type: string
                      description: The first day the fee applies, as `YYYY-MM-DD`.
                  required:
                  - kind
                  - value
                  - startsOn
                - type: 'null'
                description: The late fee a payable carries, if any. The agent weighs it when a bill waits and when cash is short; it is never added to what is paid.
              decidedAt:
                type:
                - string
                - 'null'
              settledAt:
                type:
                - string
                - 'null'
              escalatedAt:
                type:
                - string
                - 'null'
              agentReasoning:
                description: Why the agent ruled as it did, verbatim from the decision.
                type:
                - string
                - 'null'
              txHash:
                description: 'An on-chain hash once the payment settled, else null: on the workspace''s network, or for a payout from a Gateway balance the mint on the payee''s chain.'
                type:
                - string
                - 'null'
              paidAmount:
                description: What actually left once this invoice was paid; null otherwise, even while a submitted transfer already carries an amount.
                type:
                - number
                - 'null'
              counterparty:
                anyOf:
                - type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    riskLevel:
                      type: string
                  required:
                  - id
                  - name
                  - riskLevel
                - type: 'null'
              createdAt:
                type: string
            required:
            - id
            - direction
            - status
            - amount
            - currency
            - memo
            - poReference
            - goodsReceived
            - dueDate
            - scheduledFor
            - earlyPayDiscount
            - lateFee
            - decidedAt
            - settledAt
            - escalatedAt
            - agentReasoning
            - txHash
            - paidAmount
            - counterparty
            - createdAt
            description: An invoice in the payable or receivable book, with the agent's reasoning.
        page:
          type: object
          properties:
            nextCursor:
              description: Pass back as `?cursor=` to continue. Null when the end is reached.
              type:
              - string
              - 'null'
            hasMore:
              type: boolean
              description: Whether another page follows this one.
            count:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
              description: How many items this response carries.
          required:
          - nextCursor
          - hasMore
          - count
          description: Where this page sits in the collection.
      required:
      - data
      - page
    CreateInvoiceRequest:
      type: object
      properties:
        direction:
          description: '`payable`, a bill the business pays, which is the default, or `receivable`, one it is owed.'
          type: string
          enum:
          - payable
          - receivable
        counterpartyId:
          type: string
          description: The counterparty's `id`, from `GET /api/v1/counterparties` or from the answer that added it.
        amount:
          description: What it bills, in `currency`, with at most 6 decimal places. A decimal string such as `"1250.50"` keeps it exact; a number is read the same way.
          type:
          - string
          - number
        currency:
          description: '`USDC`, the default, or `EURC`.'
          type: string
          enum:
          - USDC
          - EURC
        dueDate:
          type: string
          description: The day it is due, as `YYYY-MM-DD`.
        memo:
          description: What it is for, up to 280 characters.
          type: string
        poReference:
          description: The purchase order it bills against, up to 100 characters.
          type: string
        goodsReceived:
          description: Whether what it bills for has arrived. Defaults to `false`. Without it, or without `poReference`, the agent asks for the missing detail instead of paying.
          type: boolean
        earlyPayDiscount:
          description: A discount for paying by `deadline`. The agent weighs it against what the cash would earn in the reserve until `dueDate`.
          type: object
          properties:
            percent:
              description: The percent off, greater than 0 and less than 100, with at most 2 decimal places.
              type:
              - string
              - number
            deadline:
              type: string
              description: The last day it applies, as `YYYY-MM-DD`, on or before `dueDate`.
          required:
          - percent
          - deadline
          additionalProperties: false
        lateFee:
          description: A late fee the invoice charges once it is paid late, for a payable only. The agent weighs it when a bill waits and when cash is short; it never adds it to what is paid.
          anyOf:
          - type: object
            properties:
              kind:
                type: string
                enum:
                - percent_month
                - fixed
                description: '`percent_month`, a percent a month of what is still owed, or `fixed`, an amount in `currency`.'
              value:
                description: The percent a month, more than 0 and at most 10, with at most 2 decimal places; or the fixed amount, more than 0 and at most `amount`, with at most 6.
                type:
                - string
                - number
              startsOn:
                description: The first day the fee applies, as `YYYY-MM-DD`, on or after `dueDate`. Defaults to the day after `dueDate`.
                type: string
            required:
            - kind
            - value
            additionalProperties: false
          - type: 'null'
      required:
      - counterpartyId
      - amount
      - dueDate
      additionalProperties: false
      description: An invoice to add. The agent decides a payable as one typed in, with every guardrail, usually within a minute.
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - unauthorized
              - forbidden
              - not_found
              - invalid_request
              - conflict
              - rate_limited
              - unavailable
              - internal
              description: One of a closed set, so a client can branch on it without parsing the message.
            message:
              type: string
              description: A human-readable explanation. Never carries internal detail.
          required:
          - code
          - message
      required:
      - error
      description: Every error the API returns has this shape.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A workspace API key: vxk_<prefix>_<secret>.'