Wenmar Pro Vendors API

Vendors: look-ups, edits and payment terms

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 10

DELETE /vendor_terms Vendor terms delete #
GET /vendor_terms Vendor terms index #
PUT /vendor_terms Vendor terms upsert #
GET /vendors Vendors index #
POST /vendors Vendors create #
DELETE /vendors/{id} Vendors delete #
GET /vendors/{id} Vendors show #
PATCH /vendors/{id} Vendors update #
GET /vendors/{id}/bank Vendors bank #
POST /vendors/{id}/renumber Vendors renumber #

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-vendors-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-vendors-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Vendors: look-ups, edits and payment terms'
  license:
    name: ''
  title: Wenmar Vendors API
  version: 0.1.0
tags:
- description: 'Vendors: look-ups, edits and payment terms'
  name: Vendors
paths:
  /vendor_terms:
    delete:
      operationId: vendor_terms_delete
      parameters:
      - description: the vendor terms code to delete
        in: query
        name: code
        required: true
        schema:
          type: string
      - description: 'true: a refusal carries FoxPro''s message text'
        in: query
        name: fox
        required: false
        schema:
          type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: '`{ code, deleted: true }`'
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs catalog.write)
        '404':
          description: no such code
        '422':
          description: 'vendor_terms_in_use: a vendor has the code (details.vendors)'
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendor terms delete
      x-summary-source: derived
    get:
      operationId: vendor_terms_index
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  type: object
                type: array
          description: 'every vendor payment-terms code in code order: code, description, due_days, due_day_of_month, discount_bp, discount_days'
        '401':
          description: unauthenticated
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendor terms index
      x-summary-source: derived
    put:
      operationId: vendor_terms_upsert
      requestBody:
        content:
          application/json:
            schema:
              properties:
                code:
                  default: ''
                  description: One or two characters, no blanks inside; stored trimmed, upper case
                  type: string
                description:
                  default: ''
                  description: At most 15 characters; case kept; may be blank
                  type: string
                discount_bp:
                  default: 0
                  description: Prompt-payment discount in basis points, 0-9999 (2.00 % = 200)
                  format: int64
                  type: integer
                discount_days:
                  default: 0
                  description: Days from the invoice date within which the discount applies, 0-999
                  format: int64
                  type: integer
                due_day_of_month:
                  default: 0
                  description: Day of the month the invoice is due, 0-31 (0 = not used)
                  format: int64
                  type: integer
                due_days:
                  default: 0
                  description: Days from the invoice date to the due date, 0-99 (0 = use due_day_of_month)
                  format: int64
                  type: integer
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the stored row plus `created`
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs catalog.write)
        '422':
          description: 'validation_failed: code, description, due_days, due_day_of_month, discount_bp, discount_days'
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendor terms upsert
      x-summary-source: derived
  /vendors:
    get:
      operationId: vendors_index
      parameters:
      - description: 'exact vendor number (with exact=false: the first characters of it)'
        in: query
        name: number
        required: false
        schema:
          type: string
      - description: false turns number into a prefix search (default true)
        in: query
        name: exact
        required: false
        schema:
          type: boolean
      - description: 'the first characters of the vendor number; sent blank: every vendor'
        in: query
        name: prefix
        required: false
        schema:
          type: string
      - description: a fragment of the vendor name, case-insensitive
        in: query
        name: name
        required: false
        schema:
          type: string
      - description: 'seven digits: the local phone number'
        in: query
        name: phone
        required: false
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  type: object
                type: array
          description: 'every vendor the search selects (FoxPro APSCAN): by exact number, number prefix, name fragment or seven phone digits'
        '401':
          description: unauthenticated
        '422':
          description: 'no search key, or only blank ones without `prefix` (query: one_of), or a phone without seven digits (phone: seven_digits)'
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendors index
      x-summary-source: derived
    post:
      operationId: vendors_create
      requestBody:
        content:
          application/json:
            schema:
              description: The body of `vendors.create` and `vendors.update`. A text field that is not sent is not changed.
              properties:
                address1:
                  default: null
                  description: Address lines, at most 30 characters each
                  type:
                  - string
                  - 'null'
                address2:
                  default: null
                  type:
                  - string
                  - 'null'
                address3:
                  default: null
                  type:
                  - string
                  - 'null'
                agent:
                  default: null
                  description: At most 40 characters
                  type:
                  - string
                  - 'null'
                agent_fax:
                  default: null
                  type:
                  - string
                  - 'null'
                agent_phone:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_account:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address1:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address2:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address3:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address4:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_beneficiary:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_branch:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_fax:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_name:
                  default: null
                  description: 'The vendor''s bank: name (40), four address lines (30), phone and fax (15), branch (10), account (12), beneficiary (40)'
                  type:
                  - string
                  - 'null'
                bank_phone:
                  default: null
                  type:
                  - string
                  - 'null'
                contact:
                  default: null
                  description: At most 20 characters
                  type:
                  - string
                  - 'null'
                credit_limit_cents:
                  default: null
                  description: The credit limit in cents, 0-999999900
                  format: int64
                  type:
                  - integer
                  - 'null'
                email:
                  default: null
                  description: The supplier's e-mail address on file, at most 254 characters. Mail from it never lands in an Unknown conversation
                  type:
                  - string
                  - 'null'
                fax:
                  default: null
                  type:
                  - string
                  - 'null'
                fox:
                  default: false
                  description: 'true = the rules of FoxPro''s vendor editor: a 6-character number, a terms code that is on file, a G/L account from the chart. Default false'
                  type: boolean
                gl_account:
                  default: null
                  description: The default G/L expense account, at most 10 characters
                  type:
                  - string
                  - 'null'
                gst_number:
                  default: null
                  description: The vendor's GST number, at most 10 characters
                  type:
                  - string
                  - 'null'
                id:
                  default: null
                  description: 'vendors.update: the vendor''s id. Never sent to vendors.create'
                  format: int64
                  type:
                  - integer
                  - 'null'
                if_updated_at:
                  default: null
                  description: 'vendors.update: the updated_at read with the vendor; when the vendor changed since, the write is refused (stale)'
                  type:
                  - string
                  - 'null'
                name:
                  default: null
                  description: At most 40 characters
                  type:
                  - string
                  - 'null'
                notes:
                  default: null
                  description: At most 25 characters
                  type:
                  - string
                  - 'null'
                number:
                  default: null
                  description: 'vendors.create: the vendor number, 1-6 characters without blanks, stored upper case. Never sent to vendors.update (vendors.renumber changes it)'
                  type:
                  - string
                  - 'null'
                our_account:
                  default: null
                  description: Our account number at the vendor, at most 10 characters
                  type:
                  - string
                  - 'null'
                phone:
                  default: null
                  description: Phone and fax numbers, at most 15 characters each
                  type:
                  - string
                  - 'null'
                postal:
                  default: null
                  description: At most 10 characters
                  type:
                  - string
                  - 'null'
                terms_code:
                  default: null
                  description: A vendor terms code (vendor_terms), at most 2 characters
                  type:
                  - string
                  - 'null'
              type: object
        required: false
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
          description: the vendor with its bank fields and updated_at
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs catalog.write)
        '422':
          description: 'validation_failed (number, a text field, credit_limit_cents, terms_code, gl_account), vendor_number_taken, or with `fox: true` vendor_number_format'
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendors create
      x-summary-source: derived
  /vendors/{id}:
    delete:
      operationId: vendors_delete
      parameters:
      - description: vendor id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      - description: the updated_at read with the vendor
        in: query
        name: if_updated_at
        required: false
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: '`{ id, number, deleted: true }`'
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs catalog.write)
        '404':
          description: vendor not found
        '412':
          description: stale
        '422':
          description: 'vendor_in_use: a part names the vendor (details.parts)'
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendors delete
      x-summary-source: derived
    get:
      operationId: vendors_show
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: one vendor (no bank details)
        '401':
          description: unauthenticated
        '404':
          description: vendor not found
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendors show
      x-summary-source: derived
    patch:
      operationId: vendors_update
      parameters:
      - description: vendor id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              description: The body of `vendors.create` and `vendors.update`. A text field that is not sent is not changed.
              properties:
                address1:
                  default: null
                  description: Address lines, at most 30 characters each
                  type:
                  - string
                  - 'null'
                address2:
                  default: null
                  type:
                  - string
                  - 'null'
                address3:
                  default: null
                  type:
                  - string
                  - 'null'
                agent:
                  default: null
                  description: At most 40 characters
                  type:
                  - string
                  - 'null'
                agent_fax:
                  default: null
                  type:
                  - string
                  - 'null'
                agent_phone:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_account:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address1:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address2:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address3:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_address4:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_beneficiary:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_branch:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_fax:
                  default: null
                  type:
                  - string
                  - 'null'
                bank_name:
                  default: null
                  description: 'The vendor''s bank: name (40), four address lines (30), phone and fax (15), branch (10), account (12), beneficiary (40)'
                  type:
                  - string
                  - 'null'
                bank_phone:
                  default: null
                  type:
                  - string
                  - 'null'
                contact:
                  default: null
                  description: At most 20 characters
                  type:
                  - string
                  - 'null'
                credit_limit_cents:
                  default: null
                  description: The credit limit in cents, 0-999999900
                  format: int64
                  type:
                  - integer
                  - 'null'
                email:
                  default: null
                  description: The supplier's e-mail address on file, at most 254 characters. Mail from it never lands in an Unknown conversation
                  type:
                  - string
                  - 'null'
                fax:
                  default: null
                  type:
                  - string
                  - 'null'
                fox:
                  default: false
                  description: 'true = the rules of FoxPro''s vendor editor: a 6-character number, a terms code that is on file, a G/L account from the chart. Default false'
                  type: boolean
                gl_account:
                  default: null
                  description: The default G/L expense account, at most 10 characters
                  type:
                  - string
                  - 'null'
                gst_number:
                  default: null
                  description: The vendor's GST number, at most 10 characters
                  type:
                  - string
                  - 'null'
                if_updated_at:
                  default: null
                  description: 'vendors.update: the updated_at read with the vendor; when the vendor changed since, the write is refused (stale)'
                  type:
                  - string
                  - 'null'
                name:
                  default: null
                  description: At most 40 characters
                  type:
                  - string
                  - 'null'
                notes:
                  default: null
                  description: At most 25 characters
                  type:
                  - string
                  - 'null'
                number:
                  default: null
                  description: 'vendors.create: the vendor number, 1-6 characters without blanks, stored upper case. Never sent to vendors.update (vendors.renumber changes it)'
                  type:
                  - string
                  - 'null'
                our_account:
                  default: null
                  description: Our account number at the vendor, at most 10 characters
                  type:
                  - string
                  - 'null'
                phone:
                  default: null
                  description: Phone and fax numbers, at most 15 characters each
                  type:
                  - string
                  - 'null'
                postal:
                  default: null
                  description: At most 10 characters
                  type:
                  - string
                  - 'null'
                terms_code:
                  default: null
                  description: A vendor terms code (vendor_terms), at most 2 characters
                  type:
                  - string
                  - 'null'
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the vendor with its bank fields and updated_at
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs catalog.write)
        '404':
          description: vendor not found
        '412':
          description: 'stale: `if_updated_at` was sent and the vendor changed since'
        '422':
          description: validation_failed
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendors update
      x-summary-source: derived
  /vendors/{id}/bank:
    get:
      operationId: vendors_bank
      parameters:
      - description: vendor id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the vendor's ten bank fields
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs catalog.write)
        '404':
          description: vendor not found
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendors bank
      x-summary-source: derived
  /vendors/{id}/renumber:
    post:
      operationId: vendors_renumber
      parameters:
      - description: vendor id
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                fox:
                  default: false
                  description: 'true = FoxPro''s rule: exactly 6 characters. Default false'
                  type: boolean
                if_updated_at:
                  default: null
                  description: The updated_at read with the vendor; when the vendor changed since, the write is refused (stale)
                  type:
                  - string
                  - 'null'
                number:
                  default: ''
                  description: The new number, 1-6 characters without blanks, stored upper case
                  type: string
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: 'the vendor under its new number, plus `renumbered: { parts, stock_movements }`'
        '401':
          description: unauthenticated
        '403':
          description: forbidden (needs catalog.write)
        '404':
          description: vendor not found
        '412':
          description: stale
        '422':
          description: 'validation_failed (number), vendor_number_taken, or with `fox: true` vendor_number_format'
      security:
      - bearer: []
      tags:
      - Vendors
      summary: Vendors renumber
      x-summary-source: derived
components:
  securitySchemes:
    bearer:
      scheme: bearer
      type: http