Wenmar Pro Workflow Config API
Per-location workflow configuration
Per-location workflow configuration
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/wenmarpro-com:wenmarpro-com-workflow-config-api"
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.
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: 3.2.0
info:
description: Per-location workflow configuration
license:
name: ''
title: Wenmar Workflow Config API
version: 0.1.0
tags:
- description: Per-location workflow configuration
name: Workflow Config
paths:
/ar_options:
get:
operationId: ar_options_show
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: 'the A/R option document: location_id, buckets (four of title and days), over_days, discounts_enabled, last_invoice_number, last_receipt_number, last_unapplied_number (each a number or null), legacy (the AROPTION values Wenmar shows and never uses)'
'401':
description: unauthenticated
'403':
description: the user may not read this location
'404':
description: no such location
security:
- bearer: []
tags:
- Workflow Config
summary: Ar options show
x-summary-source: derived
patch:
operationId: ar_options_update
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
buckets:
default: null
description: The four aging columns, first to fourth; left out = not changed
items:
properties:
days:
default: 0
description: Upper limit of the column in days, 1-999; each larger than the one before
format: int64
type: integer
title:
default: ''
description: Column title, 1 to 8 characters; stored trimmed
type: string
type: object
type:
- array
- 'null'
discounts_enabled:
default: null
description: Allow a discount when a payment is taken; left out = not changed
type:
- boolean
- 'null'
location_id:
default: null
description: 'The location whose options are changed; default: the user''s own'
format: int64
type:
- integer
- 'null'
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the document after the change
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'404':
description: no such location
'422':
description: 'validation_failed, field buckets: not four entries, days not 1-999 or not increasing, a title blank or longer than 8'
security:
- bearer: []
tags:
- Workflow Config
summary: Ar options update
x-summary-source: derived
/first_run:
get:
operationId: first_run_show
responses:
'200':
content:
application/json:
schema:
type: object
description: steps [{key, done, skipped}] in order, open (0 = finished)
'401':
description: unauthenticated
'403':
description: needs settings.manage
security:
- bearer: []
tags:
- Workflow Config
summary: First run show
x-summary-source: derived
/first_run/skips:
post:
operationId: first_run_skip
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SkipBody'
required: true
responses:
'200':
content:
application/json:
schema:
type: object
description: the checklist after the skip
'401':
description: unauthenticated
'403':
description: needs settings.manage
'422':
description: no step, or an unknown step key
security:
- bearer: []
tags:
- Workflow Config
summary: First run skip
x-summary-source: derived
/locations/{id}/company_setup:
get:
operationId: company_setup_show
parameters:
- in: path
name: id
required: true
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: the company setup document (FoxPro COOPTION shape)
'401':
description: unauthenticated
'403':
description: needs settings.manage
'404':
description: no such location
security:
- bearer: []
tags:
- Workflow Config
summary: Company setup show
x-summary-source: derived
patch:
operationId: company_setup_update
parameters:
- description: accepted and ignored
in: header
name: If-Match
required: false
schema:
type:
- string
- 'null'
- in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema: {}
required: true
responses:
'200':
content:
application/json:
schema:
type: object
description: the document with the new control dates
'401':
description: unauthenticated
'403':
description: needs settings.manage
'404':
description: no such location
'422':
description: 'validation_failed, or posting_window_order: POST BACK TO is after POST UP TO'
security:
- bearer: []
tags:
- Workflow Config
summary: Company setup update
x-summary-source: derived
/locations/{id}/workflow_config:
get:
operationId: workflow_config_show
parameters:
- in: path
name: id
required: true
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: the location's workflow config
'401':
description: unauthenticated
'404':
description: no such location
security:
- bearer: []
tags:
- Workflow Config
summary: Workflow config show
x-summary-source: derived
patch:
operationId: workflow_config_patch
parameters:
- in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
changes:
default: null
description: 'The keys to change, each with its whole new value, as `location_workflow_configs.show`
returns them under `config` (for example `tax`, `labor_rates`, `numbering`,
`min_margin_hundredths`, `documents`, `fees`). A key left out is not changed. `fees`
holds the shop-supplies rule: `shop_supplies` with description, percent_bp,
percent_of, cap_cents and taxable; null removes the rule'
expected_version:
default: null
description: The version the caller read; when sent and no longer the latest, nothing is changed
format: int64
type:
- integer
- 'null'
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: 'the location''s workflow config after the change; body: changes (the keys of config to replace, each with its whole value) and optionally expected_version'
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'404':
description: no such location
'409':
description: expected_version is not the latest version
'422':
description: 'validation_failed: an unknown key or an invalid value'
security:
- bearer: []
tags:
- Workflow Config
summary: Workflow config patch
x-summary-source: derived
/payment_types:
delete:
operationId: payment_types_delete
parameters:
- description: the letter to delete
in: query
name: letter
required: true
schema:
type: string
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: '`{ letter, deleted: true }`'
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'404':
description: no such letter
'422':
description: payment_type_cash (C) or payment_type_in_use
security:
- bearer: []
tags:
- Workflow Config
summary: Payment types delete
x-summary-source: derived
get:
operationId: payment_types_index
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
items:
type: object
type: array
description: 'the payment-type rows in letter order: letter, name, method, bank, direct, commission_bp, commission_account'
'401':
description: unauthenticated
security:
- bearer: []
tags:
- Workflow Config
summary: Payment types index
x-summary-source: derived
put:
operationId: payment_types_upsert
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
bank:
default: 0
description: Bank account 1, 2 or 3; 0 = none (not allowed with direct deposit)
format: int64
type: integer
commission_account:
default: null
description: 'Up to five digits; left out: kept'
type:
- string
- 'null'
commission_bp:
default: 0
description: Commission in basis points, 0-9999
format: int64
type: integer
direct:
default: false
description: Deposited straight to the bank
type: boolean
letter:
default: ''
description: One character; stored upper-cased. X, 1, 2, 3 and C are refused
type: string
location_id:
default: null
description: 'The location whose table is edited; default: the user''s own'
format: int64
type:
- integer
- 'null'
method:
default: null
description: 'cash, cheque, debit, visa, mastercard, amex, etransfer or other; left out: kept ("other" for a new letter)'
type:
- string
- 'null'
name:
default: ''
description: At most 10 characters; case kept
type: string
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 settings.manage)
'422':
description: 'payment_type_reserved (X, 1, 2, 3), payment_type_cash (C), or validation_failed: letter, name, bank, commission_bp, method, commission_account'
security:
- bearer: []
tags:
- Workflow Config
summary: Payment types upsert
x-summary-source: derived
/service_options:
get:
operationId: service_options_show
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: 'the Service option document: location_id, last_order_number and last_estimate_number (a number or null), keep_estimates_days, misc_part_margin_hundredths, min_parts_margin_hundredths, check_credit_limit, labor_rates (five of code and rate_cents), function_keys (labour and sublet, nine texts each), fixed (the SEOPTION values Wenmar shows and does not let a user change)'
'401':
description: unauthenticated
'403':
description: the user may not read this location
'404':
description: no such location
security:
- bearer: []
tags:
- Workflow Config
summary: Service options show
x-summary-source: derived
patch:
operationId: service_options_update
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
check_credit_limit:
default: null
description: Refuse posting on account above the customer's credit limit
type:
- boolean
- 'null'
function_keys:
anyOf:
- properties:
labour:
default: null
description: Nine texts for a labour description, F2 first; left out = not changed
items:
type: string
type:
- array
- 'null'
sublet:
default: null
description: Nine texts for a sublet description, F2 first; left out = not changed
items:
type: string
type:
- array
- 'null'
type: object
- type: 'null'
default: null
description: The function-key texts; left out = not changed
keep_estimates_days:
default: null
description: Days an estimate is kept, 0-999 (stored; nothing is deleted by age)
format: int64
type:
- integer
- 'null'
labor_rates:
default: null
description: The labour rates, at most five; replaces the list; left out = not changed
items:
properties:
code:
default: ''
description: One letter or digit; blank = this place is empty
type: string
rate_cents:
default: 0
description: Hourly rate in cents, 0-99999
format: int64
type: integer
type: object
type:
- array
- 'null'
location_id:
default: null
description: 'The location whose options are changed; default: the user''s own'
format: int64
type:
- integer
- 'null'
min_parts_margin_hundredths:
default: null
description: Minimum margin of a part line, hundredths of a percent, 0-9999; 0 = no check
format: int64
type:
- integer
- 'null'
misc_part_margin_hundredths:
default: null
description: Margin proposed for a free-text part and a sublet, hundredths of a percent, 0-9999
format: int64
type:
- integer
- 'null'
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: the document after the change
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'404':
description: no such location
'422':
description: validation_failed on keep_estimates_days, misc_part_margin_hundredths, min_parts_margin_hundredths, labor_rates or function_keys
security:
- bearer: []
tags:
- Workflow Config
summary: Service options update
x-summary-source: derived
/terms:
delete:
operationId: terms_delete
parameters:
- description: the terms code to delete
in: query
name: code
required: true
schema:
type: string
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: '`{ code, deleted: true }`'
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'404':
description: no such code
'422':
description: 'terms_in_use: a customer, an open order or an unpaid invoice uses the code'
security:
- bearer: []
tags:
- Workflow Config
summary: Terms delete
x-summary-source: derived
get:
operationId: terms_index
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
items:
type: object
type: array
description: 'the payment-terms rows in code order: code, description, due_days, due_day_of_month, discount_bp, discount_days, finance_company (true, false or null), cash'
'401':
description: unauthenticated
security:
- bearer: []
tags:
- Workflow Config
summary: Terms index
x-summary-source: derived
put:
operationId: terms_upsert
parameters:
- description: 'the location; default: the user''s own'
in: query
name: location_id
required: false
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
code:
default: ''
description: One or two characters; stored upper-cased
type: string
description:
default: ''
description: At most 15 characters; case kept
type: string
discount_bp:
default: 0
description: Discount in basis points, 0-9999 (2.00 % = 200)
format: int64
type: integer
discount_days:
default: 0
description: Days the discount is valid, 0-999
format: int64
type: integer
due_day_of_month:
default: 0
description: Day of the following month, 0-31 (0 = not used)
format: int64
type: integer
due_days:
default: 0
description: Days after the invoice date, 0-99
format: int64
type: integer
finance_company:
default: null
description: true = yes, false = no, null = blank
type:
- boolean
- 'null'
location_id:
default: null
description: 'The location whose table is edited; default: the user''s own'
format: int64
type:
- integer
- 'null'
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 settings.manage)
'422':
description: 'validation_failed: code, description, due_days, due_day_of_month, discount_bp, discount_days'
security:
- bearer: []
tags:
- Workflow Config
summary: Terms upsert
x-summary-source: derived
components:
schemas:
SkipBody:
description: 'Request mirror of `domain::wire::first_run::SkipFirstRunSteps` (utoipa needs a local
`ToSchema` type). Each entry is a step key such as `labour_rate`.'
properties:
steps:
items:
type: string
type: array
required:
- steps
type: object
securitySchemes:
bearer:
scheme: bearer
type: http