Wenmar Pro Expenses API

The Expenses API from Wenmar Pro — 3 operation(s) for expenses.

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 4

GET /expense_categories Expense categories index #
POST /expense_categories Expense category create #
PATCH /expense_categories/{id} Expense category update #
POST /expenses Expenses quick add #

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-expenses-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-expenses-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ''
  license:
    name: ''
  title: Wenmar Expenses API
  version: 0.1.0
tags:
- name: Expenses
paths:
  /expense_categories:
    get:
      operationId: expense_categories_index
      parameters:
      - description: also retired categories
        in: query
        name: include_inactive
        required: false
        schema:
          type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the categories in display order, each with the account it posts to and the claimable share of GST/HST
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs reports.view or ledger.manage)
      security:
      - bearer: []
      tags:
      - Expenses
      summary: Expense categories index
      x-summary-source: derived
    post:
      operationId: expense_category_create
      parameters:
      - description: replays the first create with this key
        in: header
        name: idempotency-key
        required: false
        schema:
          type:
          - string
          - 'null'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                account_number:
                  default: ''
                  description: The chart account it posts to
                  type: string
                itc_bp:
                  default: null
                  description: The share of the GST/HST the shop may claim back, in basis points (default 10000)
                  format: int64
                  type:
                  - integer
                  - 'null'
                key:
                  default: ''
                  description: 'The key the receipt reader and old bills name it with: 1 to 30 of a-z, 0-9 and _'
                  type: string
                label:
                  default: ''
                  description: What the shop calls it; at most 40 characters
                  type: string
                position:
                  default: null
                  description: Where it sorts in the list
                  format: int64
                  type:
                  - integer
                  - 'null'
                tax_code:
                  default: ''
                  description: 'The usual sales tax on such a purchase: gst, hst, pst or none (default gst)'
                  type: string
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the new category
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs ledger.manage)
        '409':
          description: a category already uses this key
        '422':
          description: 'validation_failed: key, label, account_number, tax_code, itc_bp; idempotency_key_reused'
      security:
      - bearer: []
      tags:
      - Expenses
      summary: Expense category create
      x-summary-source: derived
  /expense_categories/{id}:
    patch:
      operationId: expense_category_update
      parameters:
      - description: category id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                account_number:
                  default: null
                  description: The chart account it posts to
                  type:
                  - string
                  - 'null'
                active:
                  default: null
                  description: 'false retires the category: quick expenses stop naming it'
                  type:
                  - boolean
                  - 'null'
                itc_bp:
                  default: null
                  description: The claimable share of the GST/HST, in basis points
                  format: int64
                  type:
                  - integer
                  - 'null'
                label:
                  default: null
                  description: The shop's name for it
                  type:
                  - string
                  - 'null'
                position:
                  default: null
                  description: Where it sorts in the list
                  format: int64
                  type:
                  - integer
                  - 'null'
                tax_code:
                  default: null
                  description: The usual sales tax on such a purchase
                  type:
                  - string
                  - 'null'
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the category after the change
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs ledger.manage)
        '404':
          description: no such category
        '422':
          description: 'validation_failed: label, account_number, tax_code, itc_bp'
      security:
      - bearer: []
      tags:
      - Expenses
      summary: Expense category update
      x-summary-source: derived
  /expenses:
    post:
      operationId: expenses_quick_add
      parameters:
      - description: replays the first create with this key
        in: header
        name: idempotency-key
        required: false
        schema:
          type:
          - string
          - 'null'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                attachment_ids:
                  default: []
                  description: Receipt photos (staged as `ExpenseReceipt` at the location) to file on the bill
                  items:
                    type: string
                  type: array
                category:
                  default: ''
                  description: 'The category key (expense_categories.list): fuel, parts, shop_supplies, meals, tools,

                    utilities, other, or the shop''s own'
                  type: string
                date:
                  default: null
                  description: The receipt's date, YYYY-MM-DD; absent = today at the location
                  type:
                  - string
                  - 'null'
                description:
                  default: null
                  description: What was bought; at most 120 characters (default the category's name)
                  type:
                  - string
                  - 'null'
                extraction_id:
                  default: null
                  description: The receipt reading (POST /extractions) the figures came from, if any
                  format: int64
                  type:
                  - integer
                  - 'null'
                gst_hst_cents:
                  default: 0
                  description: GST or HST on the receipt, in cents
                  format: int64
                  type: integer
                location_id:
                  default: null
                  description: The location; absent = the user's own
                  format: int64
                  type:
                  - integer
                  - 'null'
                paid_with:
                  default: ''
                  description: 'cash (from the till), debit, credit_card, cheque, other (from the bank), or account

                    (not paid yet: the bill stays owing)'
                  type: string
                payee:
                  default: ''
                  description: Who was paid, as on the receipt, when there is no vendor; at most 60 characters
                  type: string
                pst_cents:
                  default: 0
                  description: PST (or QST) on the receipt, in cents
                  format: int64
                  type: integer
                reference:
                  default: ''
                  description: The receipt or cheque number; at most 60 characters
                  type: string
                subtotal_cents:
                  default: 0
                  description: The amount before tax, in cents
                  format: int64
                  type: integer
                total_cents:
                  default: null
                  description: The receipt's total, checked against the sum; omit when unknown
                  format: int64
                  type:
                  - integer
                  - 'null'
                vendor_id:
                  default: null
                  description: The vendor from the vendor file, when there is one
                  format: int64
                  type:
                  - integer
                  - 'null'
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the bill the expense became, as GET /bills/{id} answers it, plus attachment_ids
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs ledger.manage)
        '404':
          description: no such location
        '422':
          description: 'validation_failed: payee, category, subtotal_cents, gst_hst_cents, pst_cents, total_cents, paid_with, attachment_ids; total_mismatch; idempotency_key_reused'
      security:
      - bearer: []
      tags:
      - Expenses
      summary: Expenses quick add
      x-summary-source: derived
components:
  securitySchemes:
    bearer:
      scheme: bearer
      type: http