Wenmar Pro Bills API

Bills, expenses and bill payments (accounts payable)

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 6

POST /bill_payments/{id}/void Bill payments void #
GET /bills Bills index #
POST /bills Bills create #
GET /bills/{id} Bills show #
POST /bills/{id}/payments Bills pay #
POST /bills/{id}/void Bills void #

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/wenmarpro-com:wenmarpro-com-bills-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

wenmarpro-com-bills-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Bills, expenses and bill payments (accounts payable)
  license:
    name: ''
  title: Wenmar Bills API
  version: 0.1.0
tags:
- description: Bills, expenses and bill payments (accounts payable)
  name: Bills
paths:
  /bill_payments/{id}/void:
    post:
      operationId: bill_payments_void
      parameters:
      - description: bill payment id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the bill, without the voided payment
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs ledger.manage)
        '404':
          description: no such payment
        '409':
          description: 'conflict: already void'
      security:
      - bearer: []
      tags:
      - Bills
      summary: Bill payments void
      x-summary-source: derived
  /bills:
    get:
      operationId: bills_index
      parameters:
      - description: first bill date, YYYY-MM-DD
        in: query
        name: from
        required: false
        schema:
          type: string
      - description: last bill date, YYYY-MM-DD
        in: query
        name: to
        required: false
        schema:
          type: string
      - description: only this vendor's bills
        in: query
        name: vendor_id
        required: false
        schema:
          format: int64
          type: integer
      - description: 'true: only bills not void with something left to pay'
        in: query
        name: open
        required: false
        schema:
          type: boolean
      - description: 1-100, default 50
        in: query
        name: limit
        required: false
        schema:
          format: int64
          type: integer
      - description: rows to skip
        in: query
        name: offset
        required: false
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: '`{data, total, next_offset}`: bills newest date first, each with paid_cents and remaining_cents'
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs reports.view)
        '422':
          description: 'validation_failed: from, to'
      security:
      - bearer: []
      tags:
      - Bills
      summary: Bills index
      x-summary-source: derived
    post:
      operationId: bills_create
      requestBody:
        content:
          application/json:
            schema:
              properties:
                bill_date:
                  default: ''
                  description: The bill's date, YYYY-MM-DD
                  type: string
                due_date:
                  default: null
                  description: When it is due, YYYY-MM-DD; absent = due on the bill date for aging
                  type:
                  - string
                  - 'null'
                lines:
                  default: []
                  description: One or more lines
                  items:
                    properties:
                      account_number:
                        default: ''
                        description: The expense account (chart of accounts), 1 to 10 characters
                        type: string
                      amount_cents:
                        default: 0
                        description: The amount before tax, in cents
                        format: int64
                        type: integer
                      description:
                        default: ''
                        description: What was bought; at most 120 characters
                        type: string
                      tax_cents:
                        default: 0
                        description: The tax on the line, in cents; 0 for none
                        format: int64
                        type: integer
                      tax_code:
                        default: ''
                        description: gst, hst, pst or none (the default)
                        type: string
                    type: object
                  type: array
                location_id:
                  default: null
                  description: The location the bill belongs to; absent = the whole account
                  format: int64
                  type:
                  - integer
                  - 'null'
                memo:
                  default: ''
                  description: At most 120 characters
                  type: string
                number:
                  default: ''
                  description: The vendor's invoice number; at most 30 characters
                  type: string
                paid:
                  anyOf:
                  - properties:
                      bank_account:
                        default: ''
                        description: The bank account it was paid from, 1 to 10 characters
                        type: string
                      paid_on:
                        default: ''
                        description: The date it was paid, YYYY-MM-DD
                        type: string
                      reference:
                        default: ''
                        description: The cheque number or reference; at most 60 characters
                        type: string
                    type: object
                  - type: 'null'
                  default: null
                  description: 'Paid at once: the bill is an expense and its full payment is recorded with it'
                payable_account:
                  default: null
                  description: The payable account credited with the total (default 21000)
                  type:
                  - string
                  - 'null'
                payee:
                  default: ''
                  description: Who was paid when there is no vendor (an expense); at most 60 characters
                  type: string
                vendor_id:
                  default: null
                  description: The vendor (from the vendor file); required unless a payee is given
                  format: int64
                  type:
                  - integer
                  - 'null'
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the new bill with its lines and payments
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs ledger.manage)
        '422':
          description: 'validation_failed: vendor_id, payee, bill_date, due_date, lines, paid, payable_account, location_id; idempotency_key_reused'
      security:
      - bearer: []
      tags:
      - Bills
      summary: Bills create
      x-summary-source: derived
  /bills/{id}:
    get:
      operationId: bills_show
      parameters:
      - description: bill id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the bill with its lines, payments and remaining_cents
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs reports.view)
        '404':
          description: no such bill
      security:
      - bearer: []
      tags:
      - Bills
      summary: Bills show
      x-summary-source: derived
  /bills/{id}/payments:
    post:
      operationId: bills_pay
      parameters:
      - description: bill id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                amount_cents:
                  default: 0
                  description: The amount, in cents; at most what is left to pay
                  format: int64
                  type: integer
                bank_account:
                  default: ''
                  description: The bank account paid from, 1 to 10 characters
                  type: string
                paid_on:
                  default: ''
                  description: The date paid, YYYY-MM-DD
                  type: string
                reference:
                  default: ''
                  description: The cheque number or reference; at most 60 characters
                  type: string
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the bill with the new payment
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs ledger.manage)
        '404':
          description: no such bill
        '409':
          description: 'conflict: the bill is void'
        '422':
          description: 'validation_failed: paid_on, bank_account, amount_cents (more than remains), reference; idempotency_key_reused'
      security:
      - bearer: []
      tags:
      - Bills
      summary: Bills pay
      x-summary-source: derived
  /bills/{id}/void:
    post:
      operationId: bills_void
      parameters:
      - description: bill id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the voided bill
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs ledger.manage)
        '404':
          description: no such bill
        '409':
          description: 'conflict: already void, or it has a live payment'
      security:
      - bearer: []
      tags:
      - Bills
      summary: Bills void
      x-summary-source: derived
components:
  securitySchemes:
    bearer:
      scheme: bearer
      type: http