Wenmar Pro Payments API

Work order payments, refunds, and voids

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 /customers/{id}/payments Customer payments list #
GET /payment_methods Payment methods index #
PATCH /payment_methods/{key} Payment methods update #
GET /payments/{id} Payments show #
POST /payments/{id}/void Payments void #
GET /work_orders/{id}/payments Work order payments list #
POST /work_orders/{id}/payments Work order payments create #

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-payments-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-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Work order payments, refunds, and voids
  license:
    name: ''
  title: Wenmar Payments API
  version: 0.1.0
tags:
- description: Work order payments, refunds, and voids
  name: Payments
paths:
  /customers/{id}/payments:
    get:
      operationId: customer_payments_list
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  type: object
                type: array
          description: the customer's payments, applied and unapplied
        '401':
          description: unauthenticated
        '403':
          description: not authorized
      security:
      - bearer: []
      tags:
      - Payments
      summary: Customer payments list
      x-summary-source: derived
  /payment_methods:
    get:
      operationId: payment_methods_index
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  type: object
                type: array
          description: 'every payment method in counter order: key, label, kind, gl_account_number, active, position'
        '401':
          description: unauthenticated
      security:
      - bearer: []
      tags:
      - Payments
      summary: Payment methods index
      x-summary-source: derived
  /payment_methods/{key}:
    patch:
      operationId: payment_methods_update
      parameters:
      - description: the method's key (cash, etransfer…)
        in: path
        name: key
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                active:
                  default: null
                  description: false hides it from new payments
                  type:
                  - boolean
                  - 'null'
                gl_account_number:
                  default: null
                  description: The chart account its money goes to; null clears it (the location's routing)
                  type:
                  - string
                  - 'null'
                label:
                  default: null
                  description: The name shown at the counter, 1 to 30 characters
                  type:
                  - string
                  - 'null'
              required: []
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the stored method
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs settings.manage)
        '404':
          description: no such payment method
        '422':
          description: 'validation_failed: label, gl_account_number, active'
      security:
      - bearer: []
      tags:
      - Payments
      summary: Payment methods update
      x-summary-source: derived
  /payments/{id}:
    get:
      operationId: payments_show
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: payment
        '401':
          description: unauthenticated
        '403':
          description: not authorized
        '404':
          description: not found
      security:
      - bearer: []
      tags:
      - Payments
      summary: Payments show
      x-summary-source: derived
  /payments/{id}/void:
    post:
      operationId: payments_void
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                reason:
                  default: null
                  description: Why the payment is voided (e.g. NSF cheque, keyed in error)
                  type:
                  - string
                  - 'null'
              required: []
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: payment voided; includes the work order's paid/remaining
        '401':
          description: unauthenticated
        '403':
          description: not authorized
        '404':
          description: not found
        '409':
          description: already voided
        '422':
          description: posting_window (the payment's date is outside the posting window) or invalid request
      security:
      - bearer: []
      tags:
      - Payments
      summary: Payments void
      x-summary-source: derived
  /work_orders/{id}/payments:
    get:
      operationId: work_order_payments_list
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  type: object
                type: array
          description: payments on the work order (voided included)
        '401':
          description: unauthenticated
        '403':
          description: not authorized
      security:
      - bearer: []
      tags:
      - Payments
      summary: Work order payments list
      x-summary-source: derived
    post:
      operationId: work_order_payments_create
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                amount_cents:
                  description: Amount in cents, always positive (set is_refund to pay money back)
                  format: int64
                  type: integer
                card_last4:
                  default: null
                  description: The card's last 4 digits (debit, visa, mastercard, amex, other). Never the full number
                  type:
                  - string
                  - 'null'
                is_refund:
                  default: false
                  description: Money returned to the customer rather than received
                  type: boolean
                method:
                  description: cash | cheque | debit | visa | mastercard | amex | other
                  type: string
                notes:
                  default: null
                  description: Free-text note
                  type:
                  - string
                  - 'null'
                reference:
                  default: null
                  description: Cheque number, card authorization, or other tender reference
                  type:
                  - string
                  - 'null'
              required:
              - method
              - amount_cents
              type: object
        required: false
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
          description: payment recorded; includes the work order's paid/remaining
        '401':
          description: unauthenticated
        '403':
          description: not authorized
        '404':
          description: work order not found
        '422':
          description: invalid_method, validation_failed, overpayment, or work_order_not_payable
      security:
      - bearer: []
      tags:
      - Payments
      summary: Work order payments create
      x-summary-source: derived
components:
  securitySchemes:
    bearer:
      scheme: bearer
      type: http