CloseBody
Optional body for close. `charge_to_account` posts the unpaid balance to the customer's account (spec D10; any customer — cash terms add a `cash_terms_charged` warning, O1). `invoice_date` (`YYYY-MM-DD`) defaults to the shop's today and must fall inside the posting window (O2). `tenders` (plan 67) takes the payment in the same step: without `charge_to_account` they must cover the balance exactly.
Properties
| Name | Type | Description |
|---|---|---|
| by_order_terms | boolean | The order's terms decide cash or charge (plan 408): cash terms need `tenders` covering the balance; other terms take none and charge it |
| cash_received_cents | integernull | The cash the customer handed over for the cash tender (plan 1599): stored with the change so a reprinted receipt shows both. Never refuses the post (`cash_received_ignored`). |
| charge_to_account | boolean | |
| complete_first | boolean | Complete and post an in-progress order in one step (plan 408) |
| expected_invoice_number | integernull | The invoice number printed from `close/preview/document`; a post that would assign another number is refused (409 `conflict`). |
| invoice_date | stringnull | |
| tenders | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/wenmarpro-com/json-schema/wenmarpro-com-close-body-schema.json",
"title": "CloseBody",
"description": "Optional body for close. `charge_to_account` posts the unpaid balance to\nthe customer's account (spec D10; any customer — cash terms add a\n`cash_terms_charged` warning, O1). `invoice_date` (`YYYY-MM-DD`) defaults to\nthe shop's today and must fall inside the posting window (O2). `tenders`\n(plan 67) takes the payment in the same step: without `charge_to_account`\nthey must cover the balance exactly.",
"x-generated": "2026-11-28",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/wenmarpro-com-app-openapi.json#/components/schemas/CloseBody",
"properties": {
"by_order_terms": {
"description": "The order's terms decide cash or charge (plan 408): cash terms need\n`tenders` covering the balance; other terms take none and charge it",
"type": "boolean"
},
"cash_received_cents": {
"description": "The cash the customer handed over for the cash tender (plan 1599): stored with the change\nso a reprinted receipt shows both. Never refuses the post (`cash_received_ignored`).",
"format": "int64",
"type": [
"integer",
"null"
]
},
"charge_to_account": {
"type": "boolean"
},
"complete_first": {
"description": "Complete and post an in-progress order in one step (plan 408)",
"type": "boolean"
},
"expected_invoice_number": {
"description": "The invoice number printed from `close/preview/document`; a post that\nwould assign another number is refused (409 `conflict`).",
"format": "int64",
"type": [
"integer",
"null"
]
},
"invoice_date": {
"type": [
"string",
"null"
]
},
"tenders": {
"items": {
"$ref": "#/$defs/TenderBody"
},
"type": "array"
}
},
"type": "object",
"$defs": {
"TenderBody": {
"description": "One payment type's share of a cash-terms post (plan 67).",
"properties": {
"amount_cents": {
"description": "Cents: > 0 when the order's balance is owed; < 0 (money handed back) on a\ncredit order whose balance is negative. Never 0.",
"format": "int64",
"type": "integer"
},
"card_last4": {
"description": "The card's last 4 digits (debit, visa, mastercard, amex, other)",
"type": [
"string",
"null"
]
},
"method": {
"description": "cash | cheque | debit | visa | mastercard | amex | other",
"type": "string"
},
"reference": {
"description": "Cheque or authorization number",
"type": [
"string",
"null"
]
}
},
"required": [
"method",
"amount_cents"
],
"type": "object"
}
}
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/wenmarpro-com-close-body"
curl "https://apis.io/api/v1/json-schemas?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.